podman-desktop icon indicating copy to clipboard operation
podman-desktop copied to clipboard

Ability to show/hide navigation items

Open deboer-tim opened this issue 1 year ago • 4 comments

Is your enhancement related to a problem? Please describe

As we add more navigation items there are more items that are rarely used, extensions that add 2 items but you only use one of them, or cases where you want to temporarily hide the icon without uninstalling the extension.

Describe the solution you'd like

Users should be able to right-click on the navigation bar to see a list of all navigation items in a checkbox list, and easily add or remove the visible items.

Describe alternatives you've considered

No response

Additional context

No response

deboer-tim avatar Jun 20 '24 19:06 deboer-tim

here it's not clear where the state is managed/handle

benoitf avatar Jun 21 '24 06:06 benoitf

It's user state but needs to be on disk, so maybe storing a set of the hidden ids in configuration would be easiest?

deboer-tim avatar Jun 21 '24 14:06 deboer-tim

I wasn't clear, I mean:

  • is that the frontend that read the properties and display things
  • backend that read the properties and then expose methods and frontend read the data from there

benoitf avatar Jun 21 '24 14:06 benoitf

Nav items from extensions are contributed via backend, but I can't think of any reason why the backend would need to know the full list of what we display (e.g. that there is a dashboard or extensions nav item), what's currently hidden, etc., so I would say this is all in frontend.

deboer-tim avatar Jun 24 '24 20:06 deboer-tim