Skip to content

Pages data view: Update title field so that homepage and posts page are marked with a badge #57763

Closed

Description

@jameskoster

In wp-admin this is achieved with a text label:

Screenshot 2024-01-11 at 14 21 48

In the current pages list the homepage and posts page appear at the top with icons to denote their purpose:

Screenshot 2024-01-11 at 14 22 22

In the pages data view there is no indication at all about which page serves as the homepage / posts page. Lets come up with a design to achieve this.


There are other situations where such a pattern can be useful – for instance the privacy policy page in core, and the shop / cart / checkout pages are also marked this way – so it could be worth implementing this in a reusable/extendable fashion.

Activity

  1. added
    [Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond
    on Jan 11, 2024
  2. jameskoster commented on Jan 12, 2024

    @jameskoster
    ContributorAuthor

    Accounting for the different layouts I think the safest initial approach here may be to add a text label:

    page marking
  3. youknowriad commented on May 15, 2024

    @youknowriad
    Contributor

    Is this the same "badge" kind of fields that we have in "patterns" for the sync status? Because the design looks different to me in the mockups.

  4. moved this from Next to In Dev in Design prioritieson May 15, 2024
  5. moved this from In Dev to Needs Dev in Design prioritieson May 15, 2024
  6. jameskoster commented on May 15, 2024

    @jameskoster
    ContributorAuthor

    It depends whether this data is a field, technically speaking. I could be convinced otherwise, but I didn't see it as one for a couple of reasons;

    1. There can only be one home / posts page
    2. I don't know that you'd ever sort / filter by 'is home page'
    3. It doesn't feel like a field you'd ever toggle off, and given all pages except one would be false, it seems a waste of space in the table.

    My feeling was that it should be a badge, appended to the title field. Ideally we graduate the badge to a component for consistent display, but that can happen later.

  7. youknowriad commented on May 15, 2024

    @youknowriad
    Contributor

    Ok, so you're saying that this is just a different rendering for the "title" field. That could work.

  8. changed the title [-]Pages data view: mark homepage and posts page[/-] [+]Pages data view: Update title field so that homepage and posts page are marked with a badge[/+] on May 15, 2024
  9. self-assigned this
    on May 16, 2024
  10. oandregal commented on May 16, 2024

    @oandregal
    Member

    Going to give this one a quick shot.

  11. oandregal commented on May 16, 2024

    @oandregal
    Member

    PR at #61718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs DevReady for, and needs developer efforts[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions