Skip to content

Navigation Screen: consolidate top bar with the one used in the FSE #31241

Closed

Description

@javierarce

I want to propose using the same top bar as we do in the Full Site Editor. Using the same bar will help us solve some responsive issues we have and, in the long run, make the interface more predictable and easier to understand and to update.

Here's the first proposal:

1

We could have this simple toolbar that gives access to:

  • Undo/redo
  • Switching menu
  • Save
  • Settings

Users switch menus or create new ones by clicking on the name of the menu, which I think is consistent with the Template editor, but we could make the options more explicit with a slightly different version:

2

The downside of this approach is that the bar is more crowded.

Finally, here's a simple example of how this new top bar would look on the page:

Example

Activity

  1. jameskoster commented on Apr 28, 2021

    @jameskoster
    Contributor

    I love this initiative, all unification endeavours are a win imo!

    So far in the Site Editor, the popover that is exposed when you click the entity name in the top bar reveals options and actions that can be applied to that entity. Resetting a template, for example:

    Screenshot 2021-04-28 at 08 56 43

    It looks like this heuristic may spread to the post editor as well via #27093.

    So it may be that we can migrate the navigation settings here entirely, and reduce the reliance on the Inspector. What do you think?

    For switching between entities, the Site Editor uses the sidebar menu (accessed via the W button):

    Screenshot 2021-04-28 at 08 58 53

    Do you think this could work for the navigation screen as well?

  2. javierarce commented on Apr 28, 2021

    @javierarce
    ContributorAuthor

    Thanks for bringing this up, @jameskoster!

    I thought about using the sidebar menu, but I didn't suggest it because I felt that the title popover is lighter and could work better for the general use case (which I imagine it's a user with a small number of menus).

    But the sidebar has some good features (like previews for each item, search and the add button) that could definitely work here. Plus, if the title popover evolves in a new direction, I think we should consider this idea and unify the interfaces completely.

  3. jameskoster commented on Apr 28, 2021

    @jameskoster
    Contributor

    Yeah I think that makes sense. Unify, then refine holistically! 🚀

  4. jasmussen commented on Apr 28, 2021

    @jasmussen
    Contributor

    For what it's worth, we've had a top bar, and one of the reasons we removed it was to avoid this looking like the block editor, and to look more like other wp-admin screens.

  5. jameskoster commented on Apr 28, 2021

    @jameskoster
    Contributor

    @jasmussen very good point. This speaks to the purpose of this screen, which still confuses me even to this day :)

    If it's not something we see it as a component of block-based site editing, maybe the alignment is not worth it.

  6. javierarce commented on Apr 28, 2021

    @javierarce
    ContributorAuthor

    I still think is a good idea to move forward with this change. It's not only about consolidating the two interfaces, but the FSE top bar offers a much better design than the current solution. And it's also a more scalable and organized way to offer important features.

    We could definitely find an alternative third-way, but since we already have a nice solution, I'd say let's use it :)

  7. javierarce commented on Apr 29, 2021

    @javierarce
    ContributorAuthor

    Here's a first look at how the Nav Screen would look using the sidebar. This change would require removing the current sidebar. Also, it would be nice to render previews for each menu (in the following video, I'm just using fake placeholders).

    Screen.Recording.2021-04-29.at.18.10.54.mov

    We could also remove one step from the menu creation flow using a popover (this is similar to the FSE sidebar)

    Screenshot 2021-04-29 at 18 25 22

    Here's a link to the prototype above.

  8. javierarce commented on Apr 30, 2021

    @javierarce
    ContributorAuthor

    I updated the previous prototype with a new version that doesn't close the sidebars when the user creates the menu.

    Screen.Recording.2021-04-30.at.13.05.33.mov
  9. draganescu commented on Jun 7, 2021

    @draganescu
    Contributor

    Howdy friends, it's not clear to me if there is enough consensus here to proceed with trying out such an UI update. Does this "unification" make things better for the block based Navigation editor? Does it matter that it's a completely different experience, compared to all WP-admin and even the new block based widgets editor? Thanks 🤝

  10. talldan commented on Aug 10, 2021

    @talldan
    Contributor

    It'd be good to get clarification on this.

    I personally very much like the idea of unifying. The navigation screen is a similar initiative to the widgets screen which uses the same general interface as the site and post editor. This would ensure the navigation screen isn't the odd one out.

  11. jasmussen commented on Aug 10, 2021

    @jasmussen
    Contributor

    It'd be good to get clarification on this.

    Happy to take a stab. Much of this is spread across tickets and chats, so I'll recall as best as I can.

    These screens are primarily meant to bring the diversity of blocks (and the benefits of the navigation block) to classic and universal themes. But they are also interfaces dedicated to widget and navigation editing, which comes with its own set of limitations that aren't necessarily present in the post or site editors. In other words, while these are technically block editors, they are different.

    The argument then, has been, that using the same interface isn't necessarily beneficial: assumptions about how things work from having used the block editor might simply not apply here. Perhaps most importantly: design explorations for these screens shouldn't need to be be predicated on following block editor principles that might not be relevant.

    That's the back-story and context for what exists. It should only inform but not block things from moving forward, and of course if design explorations circle back and intentionally land there again, that's valid too. With the widget screen having shipped with a similar top-bar, there's plenty of reason to suggest the navigation screen could/should have a similar interface.

    That said, and in my personal opinion, I'd suggest that if it were to be similar it should be more or less identical to the Widget editor, complete with not being fullscreen, and having an explicit label in the top left corner:

    Screenshot 2021-08-10 at 10 54 13

  12. talldan commented on Aug 10, 2021

    @talldan
    Contributor

    That said, and in my personal opinion, I'd suggest that if it were to be similar it should be more or less identical to the Widget editor, complete with not being fullscreen, and having an explicit label in the top left corner.

    Those things seem like a good compromise 👍

  13. 8 remaining items

  14. getdave commented on Sep 13, 2021

    @getdave
    Contributor

    My presumption is the latest design in PR is: #34619 but checking. It doesn't seem to have the work I linked above.

    That PR is literally just adding the global inserter. Refactoring the entire top bar is out of scope there but happy to look at that next 😄

  15. jameskoster commented on Sep 13, 2021

    @jameskoster
    Contributor

    It seems to me that there is more value in positioning the [+] and 'Save' button in a manner that is consistent with other editor views. We don't want to keep 'moving the cheese' 😅

    Would it also be fair to say that if you have actively opened the dropdown, then it's likely your focus will inherently be there rather than on other parts of the screen? 🤔

    Am I missing some context or explorations of this being closer to the expected interface where someone is interacting with the menu?

    I think the purpose of this issue is to simply align the top bar implementation with other editor views. Just as other landmark features (e.g. Inspector) are aligned.

  16. getdave commented on Sep 13, 2021

    @getdave
    Contributor

    +1 to aligning with other editors.

  17. karmatosed commented on Sep 13, 2021

    @karmatosed
    Member

    That PR is literally just adding the global inserter. Refactoring the entire top bar is out of scope there but happy to look at that next

    Oh, that's super helpful to know what to expect in what PR, thanks @getdave.

    I think the purpose of this issue is to simply align the top bar implementation with other editor views. Just as other landmark features (e.g. Inspector) are aligned.

    That makes sense in principle. The issue is that whilst you can say if you open the dropdown, your attention is there, with the way the interface is created - that's not the case. There's an overall problem with the current flow. Now, this might be aside from this issue, but it certainly is being made obvious by it, so worth exploring. Navigation has this habit of exposing any hitches.

  18. Mamaduka commented on Sep 13, 2021

    @Mamaduka
    Member

    The menu name/switcher consolidation PR is almost ready for review.

    @javierarce, based on this discussion #31241 (comment), I removed the "Create new menu" item from the menu switcher dropdown.

    Should we replace it with the "Delete menu" button? This is how "Template Mode" displays the delete action.

    CleanShot 2021-09-13 at 17 08 13

  19. javierarce commented on Sep 13, 2021

    @javierarce
    ContributorAuthor

    @javierarce, based on this discussion #31241 (comment), I removed the "Create new menu" item from the menu switcher dropdown.

    Oh, but we agreed to keep it visible at all times. I think adding a delete button that only appears when in Desktop mode could be confusing.

  20. Mamaduka commented on Sep 13, 2021

    @Mamaduka
    Member

    I thought it was agreed to keep direct action "New menu" visible at all times. Do we need to "Create menu" action buttons?

    It's a small change so no problem to bring the Dropdown button back to the screen.

    CleanShot 2021-09-13 at 17 23 57

  21. javierarce commented on Sep 13, 2021

    @javierarce
    ContributorAuthor

    Let me try to explain the whole thing 😅

    My initial idea was to have "New menu" visible in the top bar and hide it if the viewport is very narrow. In that case, we would also show a "Create new menu" button in the dropdown… but James pointed out that we could instead show "Create new menu" at all times in the dropdown, which makes sense to me (and I think it will also make the implementation easier).

    This Figma frame contains the updated version of the design.

  22. Mamaduka commented on Sep 13, 2021

    @Mamaduka
    Member

    It makes sense, and thanks for the explanation. I'm going to add "Create new menu" button back 😄

  23. talldan commented on Sep 17, 2021

    @talldan
    Contributor

    What's left to do on this one?

    From what I can see there's no editor 'more' menu, but I think that can come a bit later.

  24. Mamaduka commented on Sep 17, 2021

    @Mamaduka
    Member

    I think that will be part of the #34859.

  25. talldan commented on Sep 20, 2021

    @talldan
    Contributor

    Could be good to close this if the only task left is now tracked by another issue.

    I think #34859 needs prioritisation on the tracking issue and some design feedback. IMO, it's probably not a blocker for removing the experimental flag (the widget editors also had no settings while live in the Gutenberg plugin).

  26. Mamaduka commented on Sep 20, 2021

    @Mamaduka
    Member

    I agree with @talldan that we can close this one. The "Preference" panel issue doesn't need to have high priority.

  27. getdave commented on Sep 20, 2021

    @getdave
    Contributor

    Ok I"m going to close this one out. @javierarce let us know of any follow ups that you'd class as High.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions