From b592a02bef997f14cb8f69f639e2d917a12d8b44 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sun, 17 May 2026 15:30:13 +0200 Subject: [PATCH] feat(18-02): rebuild DashboardSidebar with GENERAL/PROJECTS sections and collapse button - Add GENERAL section label above primary nav items list - Add PROJECTS section label and tablo list inlined directly in DashboardSidebar - Wire collapse button with inline JS toggling sidebar-is-collapsed on .dashboard-shell - Remove SidebarOrganizationFooter call (moves to avatar dropdown in Plan 03) - Remove DividerAfter rendering branch (section labels replace dividers) --- backend/templates/app_layout.templ | 41 ++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/backend/templates/app_layout.templ b/backend/templates/app_layout.templ index aac8659..de5d2eb 100644 --- a/backend/templates/app_layout.templ +++ b/backend/templates/app_layout.templ @@ -122,28 +122,59 @@ templ SidebarOrganizationFooter(user *auth.User, csrfToken string) { } // DashboardSidebar renders the full sidebar with brand, nav, projects, and footer. +// Rebuilt in Phase 18 Plan 02 per D-07/D-08/D-09: two-section structure (GENERAL + PROJECTS), +// collapse button wired via inline JS (no server round-trip, resets on reload per D-09). +// SidebarOrganizationFooter moves to avatar dropdown in Plan 03. templ DashboardSidebar(activePath string, tablos []sqlc.Tablo, user *auth.User, csrfToken string) {