OPNsense Forum

English Forums => 26.1, 26,4 Series => Topic started by: tcm1010 on March 20, 2026, 04:01:13 AM

Title: Can the GUI levels stay expanded?
Post by: tcm1010 on March 20, 2026, 04:01:13 AM
I have recently had to do a lot of troubleshooting, jumping between System:Gateways:Configuration, VPN:WireGuard:{Instance,Peers,Status}, etc.  Each time I need to jump from one category level to another, the previous category level collapses and becomes hidden, so going back to it is three clicks.  Is there a setting (I haven't yet found...) to keep the category/function/config levels I have already entered fully expanded?

Secondary question: are there any plans for a possible "favorites" category, so one click on a favorite would get me immediately to where I want to go?

Thank you in advance.

(Current version: 26.1.2_5)
Title: Re: Can the GUI levels stay expanded?
Post by: nero355 on March 20, 2026, 04:19:41 PM
Quote from: tcm1010 on March 20, 2026, 04:01:13 AMare there any plans for a possible "favorites" category, so one click on a favorite would get me immediately to where I want to go?
I am not sure what to answer so have a look at these posts :
- https://forum.opnsense.org/index.php?topic=50692.msg259170#msg259170
- https://forum.opnsense.org/index.php?topic=50686.msg259070#msg259070

I would like to think that there is a chance somewhere in the future ?!


At least you are not the only one with that wish :)
Title: Re: Can the GUI levels stay expanded?
Post by: tcm1010 on March 20, 2026, 05:05:12 PM
Quote from: nero355 on March 20, 2026, 04:19:41 PMI would like to think that there is a chance somewhere in the future ?!


At least you are not the only one with that wish :)

Thanks nero355 for pointing those out.  I did a lot of searching before posting and did not come across those threads (probably because I used "GUI" as one of the search criteria).

Shall I mark this thread [SOLVED]...or [REDUNDANT]?  :-)


Title: Re: Can the GUI levels stay expanded?
Post by: nero355 on March 20, 2026, 11:58:49 PM
Quote from: tcm1010 on March 20, 2026, 05:05:12 PMThanks nero355 for pointing those out.
You are welcome! :)

QuoteI did a lot of searching before posting and did not come across those threads (probably because I used "GUI" as one of the search criteria).
No worries! Stuff happens! ;)

QuoteShall I mark this thread [SOLVED]...or [REDUNDANT]? :-)
I would wait for a reply from one of the developers of OPNsense.
Title: Re: Can the GUI levels stay expanded?
Post by: senseOPN on March 21, 2026, 04:49:39 PM
Oh yes, a fix for this would be great!

I started to use multiple windows as mitigation.
Title: Re: Can the GUI levels stay expanded?
Post by: Greelan on March 23, 2026, 01:07:09 PM
I'm proposing to submit a PR shortly to implement a Favorites section.


Some sample screenshots attached.
Title: Re: Can the GUI levels stay expanded?
Post by: tcm1010 on March 23, 2026, 02:26:28 PM
That looks like it will work very nicely.  Thank you, Greelan!
Title: Re: Can the GUI levels stay expanded?
Post by: nero355 on March 23, 2026, 03:59:32 PM
Quote from: Greelan on March 23, 2026, 01:07:09 PM
  • Favorites are added/removed simply by clicking on a star icon next to each leaf menu item. The star icon changes appearance if the item is in the Favorites list
IMHO it would be better to manage the chosen favorites in the Favorites Category itself rather than have stars appear everywhere suddenly across the OPNsense webGUI.

Another option would be to have 'Add this page to my Favorites' on the top of each settings page, but a bit "tucked away" like for example the small button for 'Export Static DHCP Mappings to .CSV file' is at the moment :)
Title: Re: Can the GUI levels stay expanded?
Post by: Greelan on March 23, 2026, 08:14:42 PM
I realised when doing this everyone would have an opinion xD

I thought about the first option. It seemed cumbersome to me. To add a Favorite, you would need to click a button and then navigate a list and click another?

I also thought about the second option. The issue with that is there isn't consistency between pages that would make adding an icon or setting there convenient or consistent. Probably the only realistic spot to add it is at the start or end of the heading on the page.

The nice part though of having the favorite icon in the menu is that multiple options can be clicked without having to open each page.

Maybe Franco or Ad will see this and can weigh in from a preferred UI perspective before I finalise a PR.
Title: Re: Can the GUI levels stay expanded?
Post by: nero355 on March 23, 2026, 10:49:17 PM
Quote from: Greelan on March 23, 2026, 08:14:42 PMI realised when doing this everyone would have an opinion xD
I know, but those stars make OPNsense a bit "Super Mario World" if you know what I mean... Consumer level stuff...

QuoteI thought about the first option. It seemed cumbersome to me. To add a Favorite, you would need to click a button and then navigate a list and click another?
IMHO similar to Enabling/Disabling KEA/DNSmasqd on Multiple Interfaces but maybe with some improvements :)
Title: Re: Can the GUI levels stay expanded?
Post by: Greelan on March 23, 2026, 11:05:45 PM
Quote from: nero355 on March 23, 2026, 10:49:17 PMIMHO similar to Enabling/Disabling KEA/DNSmasqd on Multiple Interfaces but maybe with some improvements :)
I don't think you can equate the two. There are just a few interfaces that appear in the list in your example. There are on the other hand dozens of leaf pages. Also a dropdown in a menu item would look super odd imo - not even sure it is possible.

Anyway, I'm preparing an alternative that has a small star in each breadcrumb heading. Unobstrusive and not "Super Mario World" to my eye
Title: Re: Can the GUI levels stay expanded?
Post by: Greelan on March 23, 2026, 11:53:53 PM
See attached
Title: Re: Can the GUI levels stay expanded?
Post by: Greelan on March 24, 2026, 01:53:28 AM
The further alternative, which is probably the cleanest (but a little more challenging to implement).
Title: Re: Can the GUI levels stay expanded?
Post by: nero355 on March 24, 2026, 02:46:27 PM
Quote from: Greelan on March 24, 2026, 01:53:28 AMThe further alternative, which is probably the cleanest (but a little more challenging to implement).
I really like this one! :)
Title: Re: Can the GUI levels stay expanded?
Post by: vimage22 on March 24, 2026, 05:57:57 PM
Just in case you need another opinion. Your last favorite option looks good, however an alternative might be to hide sections, especially under services. One bit of logic on this, is that it preserves the overall flow of the entire router path and grouping. Hard to explain, but Lobby/Reporting/etc leads me quickly to the more granular area. By hiding sub-objects, such as a particular service that will not be used, means less reading once you are in that section. Just a thought.
And can items under favorites have a custom order?
Title: Re: Can the GUI levels stay expanded?
Post by: Monviech (Cedrik) on March 24, 2026, 06:05:03 PM
You can already hide sections by creating a user and only give it access to pages that you want to use with it. Then log in with that user.
Title: Re: Can the GUI levels stay expanded?
Post by: vimage22 on March 24, 2026, 06:18:18 PM
Yes, thank you for suggesting that. Currently, the menu.xml files are adjusted, which will be overwritten on updates and does nothing to prevent access to a hidden service if you know the full URL. I will give your suggestion a shot. It does sound more correct.
Title: Re: Can the GUI levels stay expanded?
Post by: franco on March 24, 2026, 07:06:09 PM
You don't have to adjust the existing Menu.xml files since they are pluggable (just add one under OPNsense/MyChanges/Menu/Menu.xml for example) and you can add duplicate entries with the visibility="delete" override.

Has been the case since 2016: https://github.com/opnsense/core/commit/d53780856a58f


Cheers,
Franco
Title: Re: Can the GUI levels stay expanded?
Post by: vimage22 on March 24, 2026, 07:47:16 PM

EDIT: By creating a group called "webui", and then choosing all of the desired privileges from the drop down, was much easier than changing 148 items in System: Access: Privileges. Then assign your new user to the group and the effect is instantaneous.

Excellent, thank you again. Also, System: Access: Privileges worked really well. Adjusting the look and feel of the Web UI is quite valuable.
Title: Re: Can the GUI levels stay expanded?
Post by: Greelan on March 24, 2026, 09:03:30 PM
https://github.com/opnsense/core/pull/10033