Skip to content

Improve UX of synced pattern block toolbar #60303

Open
@richtabor

Description

@richtabor

An exploration into improving synced pattern block toolbars (and perhaps template parts).

We should move the name to the right of the .block-editor-block-toolbar__block-controls area, to be consistent with most block toolbars, where there's an icon, drag indicators, and movers, followed by a block's specific controls. By rendering the name as in trunk today, the block toolbar is unfamiliar when selecting a synced pattern.

I propose the pattern's name is the control to engage the synced pattern controls, in their own popover. It becomes much clearer what pattern I am going to edit, or reset, if I'm clearly selecting it.

Those controls within the popover would be:

  • "Reset all changes" (when overrides are engaged).
  • "Detach instance"
  • "Edit main pattern"

I proposed them in this order as it represents the hierarchy of operations as follows:

  • When you reset all changes, the overrides that have been modified on the selected pattern are reset back to the main pattern's values.
  • Detaching a pattern is almost destructive, as it disconnects this instance of the pattern from the main pattern—but it still considers the currently selected pattern, in its current form.
  • Editing the main pattern takes you away from this pattern, back to the main pattern this is derived from. It no longer deals with the selected pattern hierarchy-wise. I like "Edit main pattern" as the context helps you understand what this is.

Note that all of these controls exist today; I'm just proposing we consolidate them into one synced patterns controls area.

Proposed

CleanShot 2024-03-29 at 11 36 37

Current

CleanShot 2024-03-29 at 11 43 05

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions