v3.0-beta - Sidebar Pinning as User Preferences Value. #5135

Closed
opened 2025-12-29 19:24:38 +01:00 by adam · 4 comments
Owner

Originally created by @tb-killa on GitHub (Aug 4, 2021).

NetBox version

v3.0-dev

Feature type

New functionality

Proposed functionality

in v3.0-dev we have now a sidebar who could be pinned to be fixed or if unpinned it swap out only if we mouseover.
this functionality (pinned / no pinned) should be configured as an "User Preferences" - Setting to be available for the User.

The "Preference" could be called "ui.sidebar.pinned" with value "true" or "false" and could be saved if the User changed this value via Clicking on the "Pin" Icon, behind the Javascript themselve should write to the api with these defined value.
For Rendering the preloaded Value from the Database should be loaded and paste.

Use case

This allowed the User themselves to defined what "static" Method of Sidebar-Pinning he like and because of an saved Value inside the "User Preferences" it loaded directly.

Database changes

None.

External dependencies

None.

Originally created by @tb-killa on GitHub (Aug 4, 2021). ### NetBox version v3.0-dev ### Feature type New functionality ### Proposed functionality in v3.0-dev we have now a sidebar who could be pinned to be fixed or if unpinned it swap out only if we mouseover. this functionality (pinned / no pinned) should be configured as an "User Preferences" - Setting to be available for the User. The "Preference" could be called "ui.sidebar.pinned" with value "true" or "false" and could be saved if the User changed this value via Clicking on the "Pin" Icon, behind the Javascript themselve should write to the api with these defined value. For Rendering the preloaded Value from the Database should be loaded and paste. ### Use case This allowed the User themselves to defined what "static" Method of Sidebar-Pinning he like and because of an saved Value inside the "User Preferences" it loaded directly. ### Database changes None. ### External dependencies None.
adam added the type: featurebeta labels 2025-12-29 19:24:38 +01:00
adam closed this issue 2025-12-29 19:24:38 +01:00
Author
Owner

@thatmattlove commented on GitHub (Aug 4, 2021):

What benefit does this add over the current functionality of remembering the setting via localStorage? The only benefit I can think of is that it would be persisted across multiple browsers/devices. And even in that case, you might actually want different pinning preferences across different devices. For example, one might have a laptop/desktop with a large screen where you do want it pinned, but an iPad/tablet where you do not want it pinned. If set via user preference, this would be persisted across both devices, which would be annoying.

Am I missing another benefit?

@thatmattlove commented on GitHub (Aug 4, 2021): What benefit does this add over the current functionality of remembering the setting via localStorage? The only benefit I can think of is that it would be persisted across multiple browsers/devices. And even in that case, you might actually want different pinning preferences across different devices. For example, one might have a laptop/desktop with a large screen where you _do_ want it pinned, but an iPad/tablet where you _do not_ want it pinned. If set via user preference, this would be persisted across both devices, which would be annoying. Am I missing another benefit?
Author
Owner

@jeremystretch commented on GitHub (Aug 4, 2021):

I want to echo Matt's comment above. I'd rather have the toggle be device-specific rather than persistent.

@jeremystretch commented on GitHub (Aug 4, 2021): I want to echo Matt's comment above. I'd rather have the toggle be device-specific rather than persistent.
Author
Owner

@DanSheps commented on GitHub (Aug 5, 2021):

I think the only case where you might want this is for the user to have a default that is user specific. However, I don't see the value in this right now.

@DanSheps commented on GitHub (Aug 5, 2021): I think the only case where you **might** want this is for the user to have a default that is user specific. However, I don't see the value in this right now.
Author
Owner

@jeremystretch commented on GitHub (Aug 6, 2021):

Let's punt on this one. Maybe something to revisit once we have a more robust preferences system in place.

@jeremystretch commented on GitHub (Aug 6, 2021): Let's punt on this one. Maybe something to revisit once we have a more robust preferences system in place.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5135