-
Notifications
You must be signed in to change notification settings - Fork 144
Hide Settings subnav if no extensions are registered there #5572
Comments
This is an interesting idea and I see what you mean about the duplicate navigation.
I'm a little wary of this approach. We'd have to start defining what the core settings are inside the navigation and we risk getting "out of sync" with what is the default in core. The good news here is that any extensions who properly register a settings tab/screen will automatically be added to the new Settings menu and do not need to manually register.
I'd prefer to avoid this route if possible since we lose some of the benefits behind the navigation (i.e., adding unnecessary page loads and slowing down the ability to navigate). What if we removed the navigation tabs on the Settings page? No duplication and we still get all the speed and benefits of the new navigation. The only issue I see with this is sub-sub-navs (see "Advanced"). |
That is good news 🎉
Yep, If we went the route of hiding the legacy top level tabs we've been exploring those possibilities on the design side. The ideal route would be to keep those tertiary level links visible as tabs on the settings screens. As a possibility, we'd like to introduce the tab component for the tertiary navigation on Settings screens. An example here for Advanced: Can the tertiary tabs remain visible on the Settings screens if the top level tabs are hidden? |
Good call @elizaan36 and introducing the tab component to house tertiary nav items makes sense to me. That could be part of the header. Some design consideration would be needed to handle overlap with the "Help" tab.
I'm pretty sure we can hide that with CSS when the navigation is turned on. I vote to hide the legacy top level tabs for 1.7.0 and iterate on the tertiary tabs next. Sound good? |
Sounds good. The existing tertiary links are essentially tabs so it makes sense as a first step, then we can update the component in the near future. |
@psealock @elizaan36 I spied one issue with this currently, the Tools section: Right now you can access the "System Status" & "Tools" tabs via the side nav, but not "Logs" & "Scheduled Actions." So, if we just hide the top nav we'll lose access to those pages. Do we just want to take steps to add those items to the side nav as the solution here? |
Nice find @joelclimbsthings, I see the same thing with "Scheduled Actions". Those items aren't being registered for some reason. I think best to track down why that might be. @joshuatf I also see the System Status tab not being interpreted correctly by the url matching algorithm |
All of these items are manually registered and added to directly mimic the original designs. If we're planning to update these links and remove the subnavs that exist on the pages, then we'll probably want to remove manual registration and try to populate these a bit more automatically. We may try and hook into the filter /cc @jameskoster and @pmcpinto in case you have a different idea of how these submenu items should be added to the nav menus.
@psealock I see it correctly on the latest
@joelclimbsthings spotted the fix for this. It has to do with duplicate IDs; we'll get this one fixed shortly. |
I'm not seeing any other way to register these menu items. cc @elizaan36 in case you have any idea |
Describe the bug
Not necessarily a bug but not a good user experience. Once we roll out the new navigation, there will be a double navigation in Settings - The new navigation subnav on the left, and the core legacy Settings tabs across the top of every Settings screen. This is a bummer for users and could cause confusion (i.e. which settings navigation should I use?)
Solution
Hide the new Settings subnav if there are no extensions registered there. This would hide it in most cases until extensions begin to adopt the new navigation and start registering in the new Settings subnav vs the old legacy tabs. The experience would look like this:
Clicking into the Settings item in the top level nav will open the existing Settings screen on the General tab.
When an extension registers in the new nav settings
Once extensions begin registering in the new nav Settings, we can detect whether the extension is installed and show the new Settings subnav.
In this interim step, there will be two complete navigations shown. It would be even more confusing to only show one or two links in one nav (in the potential case where we would hide the Core nav items and show extensions.)
Once extensions have all begun adopting the new navigation, we can deprecate the old nav and avoid the double nav issue altogether.
The text was updated successfully, but these errors were encountered: