From 0d6df57a884e7b32e71c91e1e1b53aab45f6bb51 Mon Sep 17 00:00:00 2001 From: Hardik Date: Sun, 31 May 2026 03:08:25 +0530 Subject: [PATCH] fix(sidebar): purchasing Vendors links to /inventory, admin to /admin No mirroring: the two vendor links serve different purposes. Purchasing -> /inventory/vendors (site selector, distance sort) Administration -> /admin/vendors (CRUD registry) Co-Authored-By: Claude Sonnet 4.6 --- App/components/layout/sidebar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/App/components/layout/sidebar.tsx b/App/components/layout/sidebar.tsx index 4ddc238..7c4da9d 100644 --- a/App/components/layout/sidebar.tsx +++ b/App/components/layout/sidebar.tsx @@ -56,9 +56,9 @@ const PURCHASING_STAFF: NavItem[] = [ // Manager / Admin catalogue management — Sites conditionally shown const PURCHASING_MGMT: NavItem[] = [ - { href: "/admin/vendors", label: "Vendors", icon: Store, roles: ["MANAGER", "ADMIN"] }, - { href: "/admin/products", label: "Items", icon: Package, roles: ["MANAGER", "ADMIN"] }, - { href: "/admin/vessels", label: "Cost Centres", icon: Ship, roles: ["MANAGER", "ADMIN"] }, + { href: "/inventory/vendors", label: "Vendors", icon: Store, roles: ["MANAGER", "ADMIN"] }, + { href: "/admin/products", label: "Items", icon: Package, roles: ["MANAGER", "ADMIN"] }, + { href: "/admin/vessels", label: "Cost Centres", icon: Ship, roles: ["MANAGER", "ADMIN"] }, ...(INVENTORY_ENABLED ? [{ href: "/admin/sites", label: "Sites", icon: MapPin, roles: ["MANAGER", "ADMIN"] as Role[] }] : []),