From eaf2de69600b06ee83bdc1050a26dfbe0af2525c Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Wed, 13 Aug 2025 21:30:20 +0000 Subject: [PATCH] Reorganize navigation by moving suppliers and stores to administration Refactors the sidebar navigation by moving "Fournisseurs" and "Magasins" to the "Administration" category and removing the "Gestion" category. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/7c468936-2a88-4686-ac0a-84921a45222d/St2dwA2 --- client/src/components/Sidebar.tsx | 56 +++++-------------------------- replit.md | 14 ++++++++ 2 files changed, 22 insertions(+), 48 deletions(-) diff --git a/client/src/components/Sidebar.tsx b/client/src/components/Sidebar.tsx index 516881e..99069b6 100644 --- a/client/src/components/Sidebar.tsx +++ b/client/src/components/Sidebar.tsx @@ -125,7 +125,13 @@ export default function Sidebar() { }, ]; - const managementItems = [ + const adminItems = [ + { + path: "/users", + label: "Utilisateurs", + icon: UserCog, + roles: ["admin"] + }, { path: "/suppliers", label: "Fournisseurs", @@ -138,15 +144,6 @@ export default function Sidebar() { icon: Users, roles: ["admin"] }, - ]; - - const adminItems = [ - { - path: "/users", - label: "Utilisateurs", - icon: UserCog, - roles: ["admin"] - }, { path: "/utilities", label: "Utilitaires", @@ -377,44 +374,7 @@ export default function Sidebar() { })} - {/* Management Section */} - {managementItems.some(item => hasPermission(item.roles)) && ( - <> - {!sidebarCollapsed && ( -