Skip to content

feat(sidebar): make nav groups collapsible; workspace group starts closed#129

Open
dantaspaulo wants to merge 1 commit into
trypostit:mainfrom
dantaspaulo:feat/collapsible-sidebar-groups
Open

feat(sidebar): make nav groups collapsible; workspace group starts closed#129
dantaspaulo wants to merge 1 commit into
trypostit:mainfrom
dantaspaulo:feat/collapsible-sidebar-groups

Conversation

@dantaspaulo

Copy link
Copy Markdown

Problem

The sidebar renders every nav group expanded. With the main, posts, workspace
and support groups all open at once, the secondary "Workspace" group (channels,
signatures, labels, assets) competes with the primary flow for attention.

Change

NavMain gains two optional props:

  • collapsible (default false) — when set, the group label becomes a
    Collapsible trigger with a rotating chevron.
  • defaultOpen (default true) — the initial open state when collapsible.

When collapsible is not set, the group renders exactly as before (always
open), so every other caller is unaffected.

AppSidebar then marks only the Workspace group as
collapsible :default-open="false", so it starts collapsed. The main, posts and
support groups are unchanged.

…osed

NavMain gains optional `collapsible` + `defaultOpen` props. When collapsible,
the group label becomes a Collapsible trigger with a rotating chevron; when not
(the default), the group renders exactly as before, always open.

AppSidebar marks the "Workspace" group as `collapsible :default-open="false"` so
it starts closed — with several groups expanded the sidebar competes with the
primary flow for attention. Other groups are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant