Introduce "Browser" and surface main navigation UI #36667
Description
The latest work on the navigation block infrastructure has allowed us to isolate the inner link items of the navigation block into its own post type. This now allows us to have a focused interface for managing the site structure in addition to the presence of the navigation block on the canvas. This can take different views with the focused template part mode and the list view affordances native to the block editor.
We also have all the relevant tools implemented for the tree-view of links to be a viable management interface for pages and link items. It supports reordering, drag and drop, nesting, etc.
At the same time, the W menu has been one of the proposed destinations for managing templates. This issue proposes the combination of these features and an alternate exploration where they become top level items. The aim of this work is to allow prominent access to navigation structure regardless of the state of the site editor. (For example, if navigation is collapsed on an overlay menu, the page is scrolled beyond visibility, etc.)
The list view trigger from the navigation menu (which formerly opened a modal) would open this panel instead, connecting the flows:
Finally, another option that avoids the confusion of the W menu behaving erratically between editors would be to expose this access as top level tools:
This might be a more palatable interim solution while the whole experience of the W menu is iterated upon and established across editors. The following video describes how it might work.
nav+templates.mp4
There's a few unattended details, like having a dropdown to select among different navigations used (in case a footer has a different one, etc), but it paints an idea of how it could work.
Thanks to @jameskoster and @jasmussen for exploring this idea with me.
Todo List:
- Introduce the browse mode Reorganize the site editor to introduce Browse Mode. #44770
- Fix aria regions navigation The new site editor Browse Mode breaks ARIA landmark and
navigateRegions
#46509 - Rework the "Edit" button position and design Move the edit button in the site editor sidebar to a contextual widget #46700
- Restore the of '< Dashboard' button
- Hide the inserter buttons from the "view" mode Site Editor: Don't show block inserter when the canvas is view mode #46763
- Move the template list to the left sidebar Site Editor: Try template drill down on shell sidebar (browse mode) #45100
- Move template creation to the sidebar Allow adding new templates and template parts directly from the sidebar #46458
- Move the Navigation menus to the left sidebar Add: Navigation menus to the browse mode sidebar. #46436 (@jorgefilipecosta )
- Allow resizing the sidebar/frame Allow resizing the sidebar and frame of the site editor #46903
- Notice appearance in Browse view #46274
- Add indicators to all drilldown menu items in browse view #48022
- Height mismatch between viewing and editing template parts #48476
Metadata
Assignees
Type
Projects
Status
✅ Done
Activity