From a4abe3abeab1eaa64151f3732b56bda726b840e2 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 16 Aug 2026 09:25:07 +0700 Subject: [PATCH] fix(frontend): remove duplicate Dashboard entry in nav rail The sidebar rendered /dashboard twice: once as a hardcoded NavItem (lines 45-50) and again via navItems.map() (navItems[0] is also /dashboard). Dropped the hardcoded item so the single source of truth (navItems in lib/navigation.ts) drives the rail. Removed the now-unused LayoutDashboard import. tsc + biome green. Co-Authored-By: Claude Opus 5 (Nous Research) --- services/frontend/src/components/shell/nav-rail.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/services/frontend/src/components/shell/nav-rail.tsx b/services/frontend/src/components/shell/nav-rail.tsx index 51f638d..8a9e2ed 100644 --- a/services/frontend/src/components/shell/nav-rail.tsx +++ b/services/frontend/src/components/shell/nav-rail.tsx @@ -1,6 +1,5 @@ "use client"; -import { LayoutDashboard } from "lucide-react"; import { usePathname } from "next/navigation"; import { isActivePath, navItems } from "@/lib/navigation"; import { cn } from "@/lib/utils"; @@ -42,12 +41,6 @@ export function NavRail() { return (