From 0af17bd98b55e9508c645a0c84a6b9f1e35f70b0 Mon Sep 17 00:00:00 2001 From: miraclesonly Date: Tue, 25 Aug 2026 09:04:58 +0100 Subject: [PATCH 1/4] fix(dashboard-shell): highlight the parent nav item on nested routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Active-nav-item detection used exact pathname equality (pathname === item.href). A maintainer navigating from the pipeline board into a specific bounty (/issues/abc123, reached via PipelineBoard.tsx's own links) made pathname !== "/issues", so "Bounty pipeline" lost its highlighted state exactly while the user was drilled into a page that's conceptually still part of that section — the sidebar appeared to have nothing selected, a common and expected navigation state this exact-match check didn't account for. Added a prefix check for non-overview items (anything not under /dashboard/*) so a nested route like /issues/abc123 keeps its parent section highlighted, while /dashboard/* overview links keep exact matching so they don't stay highlighted while browsing unrelated sections (closes #220). --- src/components/dashboard/DashboardShell.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/dashboard/DashboardShell.tsx b/src/components/dashboard/DashboardShell.tsx index 1f07793..5760cce 100644 --- a/src/components/dashboard/DashboardShell.tsx +++ b/src/components/dashboard/DashboardShell.tsx @@ -71,7 +71,16 @@ export function DashboardShell({