From 2763fc195e86fddd73f65a73b99c266d2c255a1d Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Sun, 17 May 2026 15:29:38 +0200 Subject: [PATCH] feat(18-02): update sidebarPrimaryNavItems and add team icon to SidebarNavIcon - Replace Dashboard/Tasks/Planning/Chat/Files with Home/My Tasks/Projects/Events/Team Members - Remove DividerAfter from all items (section labels replace dividers per D-08) - Add "team" case to SidebarNavIcon switch using Lucide users SVG paths --- backend/templates/app_layout.templ | 7 +++++++ backend/templates/app_layout_helpers.go | 13 +++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/backend/templates/app_layout.templ b/backend/templates/app_layout.templ index eaaac7b..aac8659 100644 --- a/backend/templates/app_layout.templ +++ b/backend/templates/app_layout.templ @@ -45,6 +45,13 @@ templ SidebarNavIcon(kind string) { + case "team": + default: } diff --git a/backend/templates/app_layout_helpers.go b/backend/templates/app_layout_helpers.go index 3abcb25..f07c6d7 100644 --- a/backend/templates/app_layout_helpers.go +++ b/backend/templates/app_layout_helpers.go @@ -50,13 +50,14 @@ func sidebarNavItemID(href string) string { // sidebarPrimaryNavItems returns the ordered list of primary nav items with // active state computed from activePath. // -// Per D-N01/D-N02: Tasks, Chat, and Files are visual-only (no Href) in Phase 15. +// Per D-08 (Phase 18): GENERAL section items — Home, My Tasks, Projects, Events, Team Members. +// Chat and Files are removed from primary nav (accessible within tablo detail pages). func sidebarPrimaryNavItems(activePath string) []sidebarNavItem { return []sidebarNavItem{ - {Href: "/", Label: "Dashboard", Icon: "panels", Active: isActivePath(activePath, "/"), DividerAfter: true}, - {Href: "", Label: "Tasks", Icon: "tasks", Active: false}, - {Href: "/planning", Label: "Planning", Icon: "planning", Active: isActivePath(activePath, "/planning")}, - {Href: "", Label: "Chat", Icon: "chat", Active: false}, - {Href: "", Label: "Files", Icon: "files", Active: false}, + {Href: "/", Label: "Home", Icon: "panels", Active: isActivePath(activePath, "/")}, + {Href: "#", Label: "My Tasks", Icon: "tasks", Active: false}, + {Href: "/", Label: "Projects", Icon: "layers", Active: false}, + {Href: "/planning", Label: "Events", Icon: "planning", Active: isActivePath(activePath, "/planning")}, + {Href: "#", Label: "Team Members", Icon: "team", Active: false}, } }