rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
441 stars 243 forks source link

Remember which items are collapsed and expanded in the left hand navigation bar #10451

Open nwmac opened 4 months ago

nwmac commented 4 months ago

Internal Reference: SURE-3658

Change behaviour for side navigation so that we don't auto-close the other groups when you click on a nav item within a group.

User can still use the arrow to collapse an expanded group.

We should store the nav state for a cluster to localStorage, so that when the user reloads the UI, they get the expanded state from their previous session. We need to store this per-cluster.

@kwwii ^^ Do we want a preference so the user can turn off the between-session remembering?

edenhernandez-suse commented 4 months ago

The way I see it, instead of a setting with little visibility, I would add a button to collapse the entire navigation, i.e. reset the navigation status as if nothing happened.

kwwii commented 4 months ago

Totally agree with Edén here. This should NOT be an extra setting in an alreadey over-loaded list of settings as it will not be easily discoverable. It would be preferable to have proper behaviour without any settings necessary.