Skip to content

Data views: Improve title display for untitled records #56154

@jameskoster

Description

@jameskoster

In data views, records without a title appear as "(no-title)". If they're also private they appear as "Private: ". It would be good to improve and align this.

Untitled public records should ideally appear as "Untitled $post_type". Private records can be denoted via badge, (similar to #57763):

Screenshot 2024-04-16 at 11 38 21
Original issueIf a page is set to private and has no title, it appears like so in the pages data view: Screenshot 2023-11-15 at 15 46 31

Regular title-less pages display a 'no-title' string:

Screenshot 2023-11-15 at 15 49 02

We might use that in this scenario too, IE: "Private: no-title".

Bonus points if that string can display as "No title", or perhaps "Untitled". cc @WordPress/gutenberg-design for thoughts on that. For reference in wp-admin title-less pages are displayed as "(no title)".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DevReady for, and needs developer efforts[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Type] BugAn existing feature does not function as intended[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions