Skip to content

Default settings sidebar to open #368

@InfinityBowman

Description

@InfinityBowman

Description

The main user settings sidebar (in /packages/web/src/components/settings/SettingsLayout.jsx) currently defaults to collapsed when a user first visits. It should default to expanded/open instead.

Current Behavior

getInitialSidebarMode() returns 'collapsed' when no value is found in localStorage (corates-sidebar-mode key). On first visit, the sidebar is collapsed and the user has to manually expand it.

Expected Behavior

The settings sidebar should default to 'expanded' on first visit. Once a user explicitly collapses it, their preference should still be persisted via localStorage.

Implementation Notes

  • File: packages/web/src/components/settings/SettingsLayout.jsx
  • Change the default return value in getInitialSidebarMode() from 'collapsed' to 'expanded'
  • The settings sidebar shares localStorage keys with the main sidebar (corates-sidebar-mode), so consider whether this change should also affect the main sidebar or if they should use separate keys

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions