You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is pulling out just the navigator improvements from #21727. This brings also in the movers work, but shows it all together. The illustration here is for the navigator within the navigation block, however, this could apply to any place eventually where it's used.
What this does:
Ellipsis menu comes in by the navigation element. For now, I brought in 'delete' and 'duplicate'.
The action to add a sub-menu should be available in the corresponding navigator item (either in the ellipsis menu or as its own button).
During this he also said:
The ellipsis menu in the navigator UI should replicate the block ellipsis menu (duplicate, remove, etc).
You can see the ellipsis being used above, however what the adding could evolve to is explored here:
A benefit of this could be removing completely the + and just having you click to add directly where you are. I really like this idea as it takes away the visual complexity.
Further exploring
A few other options could be:
Making the size wider
Removing icons
It's good to keep the spec for this a little narrow to bring in iterations, so whilst there could be more, for now these bring in what was being explored in a larger issue.
This linked PR appears closed. Was there another one working on including movers?
2. Missing tree structure connector
The mockups above don't include the tree connector like the current iteration. It helps me visually make the connection that this is a sub-tree of a particular item. Can that be added back?
3. Animation
When moving the blocks up or down, it would be great to include animation like we do with blocks. I'm sure this was probably just difficult to achieve with the prototype (and probably on your radar already), but wanted to note this anyways.
4. Similar to a selectbox
For me, this state looks so similar to a selectbox. Is there another iteration that can place the movers side-by-side? This will also allow for a larger tap/click area.
5. Good menu items
The options in the ellipses menu work really well. (ie. Add link, Duplicate, Remove link) I notice that two options have the word "link" and the other doesn't. How do you feel about that? Should just the first item include "link" since it is an option that doesn't apply to the selected subnav link?
#21935 is the movers PR, goodness that was a wrong link, fixed now.
The mockups above don't include the tree connector like the current iteration. It helps me visually make the connection that this is a sub-tree of a particular item. Can that be added back?
It can, I sort of prefer it without, if feedback falls on adding back in it can.
Animation can be added for moving them up and down, that's already been in progress in the existing moving PR.
For me, this state looks so similar to a selectbox. Is there another iteration that can place the movers side-by-side? This will also allow for a larger tap/click area.
I don't mind how the movers look but #21935 has them as I mocked, whatever is decided there can reflect here. As a note the original implementation is side by side, so it's just a case of adding the ellipsis to whatever settles.
Regarding the word link, I on reflection would be happy for it to just say 'remove' and avoid the word link full stop.
For the ellipsis menu we should aim at replicating the exact menu that the block provides already (with its shortcuts) to the point of technically reusing the same component. I noticed we don't have the "insert before" and "insert after" actions on child elements here. We should figure out why they aren't. cc @talldan
These designs look good! To me, the hierarchy looks clearer with the tree structure connectors. It would be interesting to see how it looks with menu items with long titles, and for deeper menus (5+ levels).
As the conversation seems to be more or less agreeing in way forward, let's mark this for development. There are some refinements can be discussed, but that shouldn't stop us moving into producing. Thanks everyone.
#18014 is the PR where I've been working (for a long time) on adding the movers.
The blocks are animated when they move 👍
The main difference at the moment is that the mover buttons are side by side in that PR. I have a feeling they might be too small if implemented on stacked like they are in the design.
These designs look good! To me, the hierarchy looks clearer with the tree structure connectors. It would be interesting to see how it looks with menu items with long titles, and for deeper menus (5+ levels).
This is a good point and would be good to explore separately. Making it possible to expand/collapse parts of the tree might be one way to help improve that.
@karmatosed@mapk I put together an experimental PR to try the stacked movers in block navigation instead of having them side-by-side - #22314.
To me, the buttons seem too small, and also keyboard navigation was also confusing in this configuration.
The issue with the buttons being small seems to be exacerbated by there potentially being other movers in very close proximity on the row above and below. It's pretty easy to mis-click.
@mtias It's worth noting what existing page builders call their similar interfaces.
Elementor also has something similar which they simply call Navigator. However, I agree that's probably not the right term for this interface anymore. (I think "Block Navigator" would definitely be less confusing than "Block Navigation", though.)
Divi has a similar interface which they call Layers View. I don't think "layers" is quite the right term, but the "___ view" naming might be the right terminology.
That's a lot of good notes, thank y'all! I made the navigator items non-editable for now. Let's look into making them editable based on a user action soon some time soon.
@ZebulanStanphill yes, indeed. When we first did this feature I thought "Outline" was a good differentiator, but we had used it just for headings already. I think something like "List View" might be ok-ish.
So #22427 has brought the ellipsis menu to the items in the navigator, but the issue is that we're still uncertain on what items should this menu include and how does #22656 (adding other kinds of blocks to the navigation menu) affect this menu as well.
This issue is almost there, see an actual screenshot:
The only remaining thing is making a final decision about the specific menu items. At the moment, the same 5 items are being displayed in every navigator ellipsis menu (see the screenshot above). Should there be any more? If so, what should they be? If we wanted to offer the same actions as in the block toolbar, there would need to be an "Edit link" menu item, what would it do? "Transform block" doesn't make sense to me either. "Add submenu" is taken care of by the inserter. The only useful one I am able to come up with is "edit label", but it's not clear what it would do for other types of blocks like the search form. Maybe the menu on the screenshot above is good enough already and this issue could be closed?
Activity
mapk commentedon May 4, 2020
I enjoy watching the iterations happen with this block! These Navigator iterations will be very beneficial.
1. Movers
This linked PR appears closed. Was there another one working on including movers?
2. Missing tree structure connector
The mockups above don't include the tree connector like the current iteration. It helps me visually make the connection that this is a sub-tree of a particular item. Can that be added back?
3. Animation
When moving the blocks up or down, it would be great to include animation like we do with blocks. I'm sure this was probably just difficult to achieve with the prototype (and probably on your radar already), but wanted to note this anyways.
4. Similar to a selectbox
For me, this state looks so similar to a selectbox. Is there another iteration that can place the movers side-by-side? This will also allow for a larger tap/click area.
5. Good menu items
The options in the ellipses menu work really well. (ie.
Add link,Duplicate,Remove link) I notice that two options have the word "link" and the other doesn't. How do you feel about that? Should just the first item include "link" since it is an option that doesn't apply to the selected subnav link?karmatosed commentedon May 5, 2020
#21935 is the movers PR, goodness that was a wrong link, fixed now.
It can, I sort of prefer it without, if feedback falls on adding back in it can.
Animation can be added for moving them up and down, that's already been in progress in the existing moving PR.
I don't mind how the movers look but #21935 has them as I mocked, whatever is decided there can reflect here. As a note the original implementation is side by side, so it's just a case of adding the ellipsis to whatever settles.
Regarding the word link, I on reflection would be happy for it to just say 'remove' and avoid the word link full stop.
mtias commentedon May 5, 2020
For the ellipsis menu we should aim at replicating the exact menu that the block provides already (with its shortcuts) to the point of technically reusing the same component. I noticed we don't have the "insert before" and "insert after" actions on child elements here. We should figure out why they aren't. cc @talldan
manmotive commentedon May 5, 2020
These designs look good! To me, the hierarchy looks clearer with the tree structure connectors. It would be interesting to see how it looks with menu items with long titles, and for deeper menus (5+ levels).
I realise I may be thinking a long way ahead here, but plugin/theme developers will need a way to extend the options for menu items (in a similar way to https://make.wordpress.org/core/2020/02/25/wordpress-5-4-introduces-new-hooks-to-add-custom-fields-to-menu-items/), and this looks like the most suitable place to add new options. Can this be kept in mind whilst developing this feature?
adamziel commentedon May 5, 2020
Just chiming in - I prefer it with the connectors, the hierarchy seems cleaner to me that way.
adamziel commentedon May 5, 2020
Also, #21948 makes the navigator items customizable using slots - merging it would pave the way forward for some early prototypes of this feature.
karmatosed commentedon May 5, 2020
As the conversation seems to be more or less agreeing in way forward, let's mark this for development. There are some refinements can be discussed, but that shouldn't stop us moving into producing. Thanks everyone.
talldan commentedon May 6, 2020
#18014 is the PR where I've been working (for a long time) on adding the movers.
The blocks are animated when they move 👍
The main difference at the moment is that the mover buttons are side by side in that PR. I have a feeling they might be too small if implemented on stacked like they are in the design.
This is a good point and would be good to explore separately. Making it possible to expand/collapse parts of the tree might be one way to help improve that.
talldan commentedon May 13, 2020
@karmatosed @mapk I put together an experimental PR to try the stacked movers in block navigation instead of having them side-by-side - #22314.
To me, the buttons seem too small, and also keyboard navigation was also confusing in this configuration.
The issue with the buttons being small seems to be exacerbated by there potentially being other movers in very close proximity on the row above and below. It's pretty easy to mis-click.
talldan commentedon May 13, 2020
@mtias These actions seem to insert the default block, which isn't insertable in the Navigation Block.
A good fix would be to borrow the appender logic and check whether only a single block type is insertable, and if so that could be used.
9 remaining items
karmatosed commentedon May 22, 2020
Looping in the work going on in #22497 here as relevant. I agree that adding an edit link makes a lot of sense.
ZebulanStanphill commentedon May 22, 2020
@mtias It's worth noting what existing page builders call their similar interfaces.
Elementor also has something similar which they simply call Navigator. However, I agree that's probably not the right term for this interface anymore. (I think "Block Navigator" would definitely be less confusing than "Block Navigation", though.)
Divi has a similar interface which they call Layers View. I don't think "layers" is quite the right term, but the "___ view" naming might be the right terminology.
adamziel commentedon May 27, 2020
That's a lot of good notes, thank y'all! I made the navigator items non-editable for now. Let's look into making them editable based on a user action soon some time soon.
mtias commentedon May 28, 2020
@ZebulanStanphill yes, indeed. When we first did this feature I thought "Outline" was a good differentiator, but we had used it just for headings already. I think something like "List View" might be ok-ish.
adamziel commentedon May 28, 2020
I think these two issues may have to be resolved before making more progress here: #22706 #22705
ZebulanStanphill commentedon May 28, 2020
@mtias "List view" is definitely the best potential label I've heard so far. 👍
draganescu commentedon Jun 22, 2020
So #22427 has brought the ellipsis menu to the items in the navigator, but the issue is that we're still uncertain on what items should this menu include and how does #22656 (adding other kinds of blocks to the navigation menu) affect this menu as well.
cc @mtias
adamziel commentedon Jun 29, 2020
These two are resolved by now:
adamziel commentedon Jun 29, 2020
This issue is almost there, see an actual screenshot:
The only remaining thing is making a final decision about the specific menu items. At the moment, the same 5 items are being displayed in every navigator ellipsis menu (see the screenshot above). Should there be any more? If so, what should they be? If we wanted to offer the same actions as in the block toolbar, there would need to be an "Edit link" menu item, what would it do? "Transform block" doesn't make sense to me either. "Add submenu" is taken care of by the inserter. The only useful one I am able to come up with is "edit label", but it's not clear what it would do for other types of blocks like the search form. Maybe the menu on the screenshot above is good enough already and this issue could be closed?
CC @talldan @shaunandrews @draganescu @mtias
draganescu commentedon Jul 15, 2020
Let's close this issue. Since we have a menu implemented in the navigator any required items in that menu will be tied to the issues they are part of.