From 5d75752e2d43d16e2691670e42adb6ef6c383880 Mon Sep 17 00:00:00 2001 From: Simone Cavalli Date: Thu, 11 Jun 2026 15:06:10 +0200 Subject: [PATCH] feat: add app shortcuts to sidebar (quotes + crm leads) - Add 'App' section in sidebar footer - Link to 'Nuovo Preventivo' (/admin/quotes/new) - Link to 'CRM Lead' (/admin/leads) - Uses FileText and UserCheck icons from lucide-react - Same styling as main nav items with active state Co-Authored-By: Claude Haiku 4.5 --- src/components/admin/AdminSidebar.tsx | 35 ++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/components/admin/AdminSidebar.tsx b/src/components/admin/AdminSidebar.tsx index d55e20b..29ee24b 100644 --- a/src/components/admin/AdminSidebar.tsx +++ b/src/components/admin/AdminSidebar.tsx @@ -11,6 +11,8 @@ import { TrendingUp, BookOpen, Settings, + FileText, + UserCheck, LogOut, } from "lucide-react"; @@ -24,6 +26,11 @@ const NAV_ITEMS = [ { href: "/admin/impostazioni", label: "Impostazioni", icon: Settings }, ]; +const APP_ITEMS = [ + { href: "/admin/quotes/new", label: "Nuovo Preventivo", icon: FileText }, + { href: "/admin/leads", label: "CRM Lead", icon: UserCheck }, +]; + export function AdminSidebar() { const pathname = usePathname(); @@ -58,8 +65,34 @@ export function AdminSidebar() { })} - {/* Logout */} + {/* Apps */}
+
+ App +
+
+ {APP_ITEMS.map(({ href, label, icon: Icon }) => { + const active = isActive(href); + return ( + + + {label} + + ); + })} +
+
+ + {/* Logout */} +