From ce8d91db08ce912896b9ac56124b3b0de5f61bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20S=C3=A9rgio=20Dantas?= Date: Wed, 1 Jul 2026 01:56:33 -0300 Subject: [PATCH] feat(sidebar): make nav groups collapsible; workspace group starts closed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- resources/js/components/AppSidebar.vue | 2 +- resources/js/components/NavMain.vue | 76 ++++++++++++++++---------- 2 files changed, 49 insertions(+), 29 deletions(-) diff --git a/resources/js/components/AppSidebar.vue b/resources/js/components/AppSidebar.vue index d7b66dd7..a88dd0a3 100644 --- a/resources/js/components/AppSidebar.vue +++ b/resources/js/components/AppSidebar.vue @@ -238,7 +238,7 @@ const handleCreateWorkspace = () => { - + diff --git a/resources/js/components/NavMain.vue b/resources/js/components/NavMain.vue index f0cd0acd..07c03fb6 100644 --- a/resources/js/components/NavMain.vue +++ b/resources/js/components/NavMain.vue @@ -1,7 +1,9 @@