Skip to content

Navigation block should show List View tab when user shows intent to edit navigation structure #74894

Description

@getdave

What

When a user clicks "Edit Navigation" in the toolbar of a Template Part that contains a Navigation block, they cannot immediately see the List View representation of the navigation block. Instead, users must manually click to the List View tab to access the tree structure for editing navigation items.

Note: The "Edit Navigation" button only appears in the toolbar of Template Parts that contain a Navigation block (added in #72008).

Current behavior:

  1. Select a Template Part containing a Navigation block
  2. Click "Edit Navigation" in the template part block toolbar
  3. Navigation block becomes selected
  4. Inspector opens to Content tab (not List View)
  5. User must manually click List View tab to access tree structure

Expected behavior:

  1. Select a Template Part containing a Navigation block
  2. Click "Edit Navigation" in the template part block toolbar
  3. Navigation block becomes selected
  4. Inspector automatically opens to List View tab (active)
  5. User can immediately see and edit navigation tree structure

Note: When the Navigation block is selected via other means (e.g. Content panel), standard contentOnly mode behaviour applies.

Why

User testing with 20 participants identified that the List View is the optimal interface for managing navigation menu structure and hierarchy. When users explicitly click "Edit Navigation" in the template part toolbar, they have shown clear intent to work with the navigation structure. Surfacing the List View immediately in this specific case eliminates unnecessary clicks and improves the editing experience. Other selection paths continue to use standard contentOnly behaviour.

How

When the Navigation block is selected via the "Edit Navigation" button in the template part block toolbar, automatically activate the List View tab in the inspector instead of defaulting to the Content tab. All other selection paths (including Content panel selection) follow standard contentOnly mode behaviour.

Acceptance Criteria:

  • When user clicks "Edit Navigation" button in the template part block toolbar:
    • The Navigation block is selected
    • The List View tab is automatically active in the inspector
  • In all other scenarios (e.g. selecting Navigation from the Content panel, or selecting the block via other means), the standard behaviour of contentOnly mode applies
  • The List View displays the tree structure of all navigation items when active
  • Users can immediately interact with navigation items when List View is shown

User Stories

As a site editor, I want clicking "Edit Navigation" in the template part toolbar to immediately select the Navigation block and show the List View tab, so that I can quickly edit the menu structure without hunting for controls.

As a site editor, when I explicitly choose to edit navigation via the toolbar, I expect the editor to surface the List View interface by default, so that I can work with the navigation hierarchy right away.

Related Issues

Activity

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions