-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utilise dataviews to improve Navigation Menu management in the Editor #65828
Comments
This approach is like you read my mind! Since managing menus in the site editor, I've missed the abstraction of the classic menu editing experience. It feels awkward jumping around so many places to edit menus and almost redundant to do a bulk of the editing in the right hand panel when the left hand panel could handle the experience in one location. I also think removing the step to go into the editor canvas and edit blocks is a much better experience. When I want to edit menus, I want to edit just the architecture of the menus. This abstracted approach makes a lot more sense. |
The breadcrumb appearance for drilldowns here is the only aspect of this mockup that's unclear to me. Can the concept work as-is, but with the existing drill-down flow instead? |
Absolutely :) |
Do we need to update the mockups, or can we move this to "Needs dev" with the above text-clarification? I think this one is ready! |
I updated the mockups. The missing piece for me (before marking this as ready for dev) is how we render menu items in the 'Edit menu' panel. Does that use and updated |
It does seem dependant on an updated ItemGroup, yes, though absent better status indicators, I'll shuffle the labels still! Thank you for updating. |
Related #50580 |
This bit is probably where this will come unstuck in development. What specifically are we previewing in the editor preview area? As more than one Navigation block can use a given Navigation Menu, there's no canonical way to display the menu. This is the same issue we ran into with the Focused Navigation Editor and that's why it's been removed from the Editor. Also several folks were very much against the existing Navigation Menu editor because they felt it caused a slot of confusion. Specifically I recall @draganescu felt strongly that it wasnt helpful. Therefore I would suggest that we split this work into two stages:
I believe if we attempt both together then we will struggle whereas I felt the dataviews changes have merit in their own right. |
I'd also advocate that we update the name of this Issue to be "Utilise dataviews to improve Navigation Menu management in the Editor" |
Revisiting this question; maybe we just re-use the treegrid (list view) component, like we do in the Inspector. cc @fcoveram as I think you've been looking at this a bit recently. |
Thanks for the ping @jameskoster. I'm working on an idea based on the image you attached. |
Thanks both 👍 You may already be aware, but if we are going down this route let's not forget that we already have an interface on the Navigation block itself which mirrors this pretty closely. We should be careful to ensure parity between these experiences so as to avoid users having to learn another new interface. |
The location of this editing experience in the left panel feels much more natural. Jumping over to the right inspector panel feels cumbersome. Also, the treegrid really helps visualize the hierarchy. Something I keep observing is that the site editor uses the term Classic WordPress used the term Menus, and I wonder if it should switch back to that. Menus feels simpler and more intuitive. |
Appreciate the feedback.
That's good to hear 👍 The editable tree in the right hand side was added to support the main in-editor editing experience before the left hand sidebar existed. In time it may become obsolete but we should also consider block editors used outside of WordPress context which might want to utilise a Navigation block but which don't benefit from the WordPress Editor "chrome" such as the left hand sidebar.
This was a discussion point early in the development of the Navigation block. We decided on Navigation for the block and Navigation Menus for the data (the items). Partly this is to disambiguate from other types "menu" such as those used in restaruants. At this point I can't see us changing this. |
I tried two ideas that involved moving menu items up, down, inside, and outside; but none landed on solid proposals. Instead, they introduce more complex patterns that expand the issue's scope. That said, I think the current Navigation menu editing flow in the inspector has more room for improvement as the UI relies on existing components, and the current interaction feels detached from similar UX flows. I suggest lowering the priority of this issue and shifting the design efforts to #65699. What do you think? |
Would it be possible for you to share those explorations here for others to contribute?
In what way? What were the specific issues you encountered? |
I can speak a bit to this, I happen to agree with Francisco. Consider that we have this: This interface is both management and menu editing. The proposal here is to replace that screen with something that's DataViews powered, however to the best of my understanding because they are designed to be visual representations of data in a silo. I.e. it would be a perfect tool to show you a list of all the menus you have saved on your site, with a link to edit them. Because:
In that vein, I agree that we should update the Navigation section of the site editor to be DataViews powered, but in a pure management way. It would use the existing implementation to simply surface every saved Navigation CPT, just like the Pages section surfaces navigation menus. You'd be able to delete, rename, QuickEdit its properties and attributes. And you'd be able to click a link to edit in the full editor, but not edit it in site view, because data-views doesn't support that. Given we also want to improve the editing experience in the full editor, the combination could work well. But the latter would be the most impactful thing to work on, arguably. None of this necessarily prevent us from coming back to this at a later time, and implementing a separate tree-view with drag and drop component that would allow the editing in site view, as already exists. But because the existing implementation hasn't set the world on fire, it's unlikely to be as high impact as improving the full editor experience first. What do you think? |
Joen's comment put what I encountered in a better way. Specifically bullets 1 and 4 where the interactions in ListView need to exist in DataView. That blend creates a blurry line between both views as the "where I need to do what I want" is not clear given that both views do the same. The experience in Editor feels less polished because the block order of a menu exist in both ListView and Inspector, where the latter is in a poor place.
Despite the above, here below are the mockups I kept on hold. With drill downWithout drill down |
That's great context which makes it easier to understand how we're proposing using Dataviews for menus. In general I agree that the priorities should be:
If we agree, shall I update this Issue to reflect the object set above? |
I feel the need to clarify a detail from the original design that may have been mis-understood. The only part consuming the In any case, @getdave please feel free to update the issue to concentrate purely on the first part (listing menus using We should also discuss the |
I see value in the mockup listing the menus. The edit action can perfectly take users to the Editor, unless I'm missing something in between that interrupts this flow. I shared here (#56245) an idea that seems consistent with Regarding
I was considering a property to see in which patterns is being used, but I'm unaware if that is an on-going idea. |
This one would be useful for other synced entities like template parts and patterns, even templates. But it's a big technical hurdle I think. To connect the dot there's an issue here: #60205 |
In WordPress 6.6 managing pages, templates, and patterns in the site editor transitioned from ad hoc implementations to utilise the new Data Views component. This issue explores how the Navigation section in the site editor might work if it followed this path.
Menu list
List
layout to include a preview.Table
layout for performing bulk actions.Editing a menu
ItemGroup
.Editing a menu item
Would this be an improvement on what is currently shipping? Are there alternative approaches to elevate the menu management experience in the site editor?
The text was updated successfully, but these errors were encountered: