Skip to content

Navigator iterations: ellipsis and movers #22089

Closed

Description

@karmatosed

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'.
  • Brings in movers from 5.4.1 Backports #21793

add

Note, I also brought in an active state that could be explored without.

Exploring moving the +

One potential could be to as @mtias noted in #21727 (comment):

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:

Frame 26

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

wider

Removing icons

withouticons

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.

Activity

  1. added
    Needs Design Feedback
    [Block] Navigation
    on May 4, 2020
  2. mapk commented on May 4, 2020

    @mapk
    Contributor

    I enjoy watching the iterations happen with this block! These Navigator iterations will be very beneficial.

    1. Movers

    Brings in movers from #21793

    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?

    Screen Shot 2020-05-04 at 1 47 07 PM

    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.

    Screen Shot 2020-05-04 at 1 54 47 PM

    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?

  3. karmatosed commented on May 5, 2020

    @karmatosed
    MemberAuthor

    #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.

  4. mtias commented on May 5, 2020

    @mtias
    Member

    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

  5. manmotive commented on May 5, 2020

    @manmotive

    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?

  6. adamziel commented on May 5, 2020

    @adamziel
    Contributor

    It can, I sort of prefer it without, if feedback falls on adding back in it can.

    Just chiming in - I prefer it with the connectors, the hierarchy seems cleaner to me that way.

  7. adamziel commented on May 5, 2020

    @adamziel
    Contributor

    Also, #21948 makes the navigator items customizable using slots - merging it would pave the way forward for some early prototypes of this feature.

  8. added
    Needs Dev
    and removed
    Needs Design Feedback
    on May 5, 2020
  9. karmatosed commented on May 5, 2020

    @karmatosed
    MemberAuthor

    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.

  10. talldan commented on May 6, 2020

    @talldan
    Contributor

    #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.

  11. talldan commented on May 13, 2020

    @talldan
    Contributor

    @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.

  12. talldan commented on May 13, 2020

    @talldan
    Contributor

    I noticed we don't have the "insert before" and "insert after" actions on child elements here.

    @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.

  13. 9 remaining items

  14. karmatosed commented on May 22, 2020

    @karmatosed
    MemberAuthor

    Looping in the work going on in #22497 here as relevant. I agree that adding an edit link makes a lot of sense.

  15. ZebulanStanphill commented on May 22, 2020

    @ZebulanStanphill
    Member

    @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.

  16. adamziel commented on May 27, 2020

    @adamziel
    Contributor

    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.

  17. mtias commented on May 28, 2020

    @mtias
    Member

    @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.

  18. adamziel commented on May 28, 2020

    @adamziel
    Contributor

    I think these two issues may have to be resolved before making more progress here: #22706 #22705

  19. ZebulanStanphill commented on May 28, 2020

    @ZebulanStanphill
    Member

    @mtias "List view" is definitely the best potential label I've heard so far. 👍

  20. removed
    [Block] Navigation
    on Jun 4, 2020
  21. draganescu commented on Jun 22, 2020

    @draganescu
    Contributor

    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

  22. adamziel commented on Jun 29, 2020

    @adamziel
    Contributor

    I think these two issues may have to be resolved before making more progress here: #22706 #22705

    These two are resolved by now:

    • The navigator selection is now completely separated from the editor selection.
    • For the time being, it probably doesn't make sense to bring the navigator into the editor
  23. adamziel commented on Jun 29, 2020

    @adamziel
    Contributor

    This issue is almost there, see an actual screenshot:

    Zrzut ekranu 2020-06-29 o 16 50 42

    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

  24. added
    Needs Design Feedback
    and removed
    Needs Dev
    on Jul 7, 2020
  25. draganescu commented on Jul 15, 2020

    @draganescu
    Contributor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design Feedback[Feature] List View

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions