From 83ac484a222fe9b966c47ffa874d6eb1c7007052 Mon Sep 17 00:00:00 2001 From: le king fu Date: Sat, 25 Apr 2026 16:07:13 -0400 Subject: [PATCH] feat(balance): add sidebar Bilan entry Insert a new "Bilan" / "Balance sheet" entry in NAV_ITEMS pointing at /balance with the Wallet lucide-react icon. Position: between Reports and Settings, matching the autopilot prompt instruction and the spec-plan-bilan v2 ordering. Sidebar.tsx imports Wallet and registers it in iconMap. Refs: #141 Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/layout/Sidebar.tsx | 2 ++ src/shared/constants/index.ts | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index a402de0..6dc19a5 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -8,6 +8,7 @@ import { SlidersHorizontal, PiggyBank, BarChart3, + Wallet, Settings, Languages, Moon, @@ -25,6 +26,7 @@ const iconMap: Record> = { SlidersHorizontal, PiggyBank, BarChart3, + Wallet, Settings, }; diff --git a/src/shared/constants/index.ts b/src/shared/constants/index.ts index c770dbf..9c9e612 100644 --- a/src/shared/constants/index.ts +++ b/src/shared/constants/index.ts @@ -46,6 +46,12 @@ export const NAV_ITEMS: NavItem[] = [ icon: "BarChart3", labelKey: "nav.reports", }, + { + key: "balance", + path: "/balance", + icon: "Wallet", + labelKey: "nav.balance", + }, { key: "settings", path: "/settings",