Skip to content

Data views: Editing default views can lead to awkward results #56204

@jameskoster

Description

@jameskoster

Currently it's possible to go to the bundled Trash view in Pages and change the status filter. It's also possible to click the 'Reset filters' button to remove the status filter altogether.

Screenshot 2023-11-16 at 13 00 59

In the screenshot above it's strange for "Trash" to be highlighted in the Navigation, and for the corresponding view to show only published pages.

A couple of potential solutions:

  1. Lock filters for default views. IE when viewing Trash it is not possible to change (or reset) the status filter. This would be closest to the wp-admin implementation.
  2. Sync the Navigation and the state of the current view. For instance if you viewed Trash and changed the status filter to draft then "Drafts" becomes active in the sidebar.

The first approach seems simpler. The second would be more involved in terms of design as we'd need to think about how to represent unsaved view configurations in the sidebar.

cc @ntsekouras @jorgefilipecosta @youknowriad @oandregal @WordPress/gutenberg-design for thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DesignNeeds design efforts.[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions