From 7c93d53fd52d9158a37cfec4a4463a8f233fb7fd Mon Sep 17 00:00:00 2001 From: Mattsson <111893710+mattssonn@users.noreply.github.com> Date: Fri, 7 Aug 2026 14:46:21 +0200 Subject: [PATCH] chore(nav): hide Korjournal from the sidebar (#1453) The /mileage route and all mileage functionality stay live; only the sidebar entry is hidden. Co-authored-by: Claude Fable 5 --- components/dashboard/DashboardNav.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dashboard/DashboardNav.tsx b/components/dashboard/DashboardNav.tsx index ed0b6892..0429901c 100644 --- a/components/dashboard/DashboardNav.tsx +++ b/components/dashboard/DashboardNav.tsx @@ -45,7 +45,6 @@ import { PanelLeftClose, Library, BookCheck, - Car, } from 'lucide-react' import { getBranding } from '@/lib/branding/service' import { ENABLED_EXTENSION_IDS as _ENABLED_EXTENSION_IDS } from '@/lib/extensions/_generated/enabled-extensions' @@ -194,7 +193,8 @@ const navItems: NavItem[] = [ { href: '/invoices', labelKey: 'invoices', icon: ReceiptText, group: 'arbeta' }, { href: '/supplier-invoices', labelKey: 'supplier_invoices', icon: Wallet, group: 'arbeta' }, { href: '/salary', labelKey: 'salary', icon: HandCoins, group: 'arbeta', employerOnly: true }, - { href: '/mileage', labelKey: 'mileage', icon: Car, group: 'arbeta' }, + // Körjournal is deliberately hidden from the nav; the /mileage route stays live. + // { href: '/mileage', labelKey: 'mileage', icon: Car, group: 'arbeta' }, // Analys: read the numbers. { href: '/kpi', labelKey: 'kpi', icon: TrendingUp, group: 'analys' }, { href: '/reports', labelKey: 'reports', icon: BarChart3, group: 'analys' },