-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
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:
- Select a Template Part containing a Navigation block
- Click "Edit Navigation" in the template part block toolbar
- Navigation block becomes selected
- Inspector opens to Content tab (not List View)
- User must manually click List View tab to access tree structure
Expected behavior:
- Select a Template Part containing a Navigation block
- Click "Edit Navigation" in the template part block toolbar
- Navigation block becomes selected
- Inspector automatically opens to List View tab (active)
- 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
- Enable sidebar inspector controls for Navigation Link blocks selected in List View #74895 - Navigation: Cannot select child navigation links or access their controls in contentOnly mode
- Ensure "Edit Navigation" action is available and automatically selects Navigation block across all editor contexts #73383 - Add "Edit Navigation" shortcut to navigation block
- Pattern Editing and contentOnly interactivity #71517 - Pattern Editing and contentOnly interactivity project