You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pages data view: Update title field so that homepage and posts page are marked with a badge #57763
In the current pages list the homepage and posts page appear at the top with icons to denote their purpose:
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.
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;
There can only be one home / posts page
I don't know that you'd ever sort / filter by 'is home page'
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.
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
Activity
jameskoster commentedon Jan 12, 2024
Accounting for the different layouts I think the safest initial approach here may be to add a text label:
youknowriad commentedon May 15, 2024
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.
jameskoster commentedon May 15, 2024
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;
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.
youknowriad commentedon May 15, 2024
Ok, so you're saying that this is just a different rendering for the "title" field. That could work.
[-]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[/+]oandregal commentedon May 16, 2024
Going to give this one a quick shot.
oandregal commentedon May 16, 2024
PR at #61718