Skip to content

Custom data views: Offer a dedicated way to save changes #56205

@jameskoster

Description

@jameskoster

Saving changes to a custom data view is currently batched together with changes to the site itself:

Screenshot 2023-11-16 at 13 27 50

When initially creating the view this level of gravity is perhaps warranted. However, when you're temporarily adjusting an existing view it feels a bit heavy-handed. Generally these are 'softer' edits that you wouldn't expect to persist. For example when you view Trash in wp-admin the date filter is inactive, regardless of whether you previously filtered by date or not.

We might consider the following adjustments to the save flow for custom views;

  1. Including a "Save" action in the view menu.
  2. Indicating the view has been customised somehow.
  3. Not alerting the user of unsaved changes when navigating away.

A rough mockup:

Screenshot 2023-11-16 at 13 53 52

cc @WordPress/gutenberg-design

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions