chore(preference): add sidenav pinned preference (#8062)

This commit is contained in:
Vikrant Gupta 2025-05-27 13:29:31 +05:30 committed by GitHub
parent 28a01bf042
commit d1d7da6c9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,6 +128,16 @@ func NewDefaultPreferenceMap() map[string]Preference {
IsDiscreteValues: true,
AllowedScopes: []string{"user"},
},
"SIDENAV_PINNED": {
Key: "SIDENAV_PINNED",
Name: "Keep the primary sidenav always open",
Description: "Controls whether the primary sidenav remains expanded or can be collapsed. When enabled, the sidenav will stay open and pinned to provide constant visibility of navigation options.",
ValueType: "boolean",
DefaultValue: false,
AllowedValues: []interface{}{true, false},
IsDiscreteValues: true,
AllowedScopes: []string{"user"},
},
}
}