# Refactoring Menu and Modules ## Objective Restructure the navigation menu and organize existing functionalities into specific modules as requested: - Dashboard -> Gestione Eventi - Clienti -> Vendite - Articoli -> Magazzino - Risorse -> Personale (New Module) ## Plan 1. **Create "Personale" module**: Create directory structure `src/frontend/src/modules/personale`. 2. **Move Files**: - `src/frontend/src/pages/Dashboard.tsx` -> `src/frontend/src/modules/events/pages/DashboardPage.tsx` - `src/frontend/src/pages/ClientiPage.tsx` -> `src/frontend/src/modules/sales/pages/ClientiPage.tsx` - `src/frontend/src/pages/ArticoliPage.tsx` -> `src/frontend/src/modules/warehouse/pages/ArticoliPage.tsx` - `src/frontend/src/pages/RisorsePage.tsx` -> `src/frontend/src/modules/personale/pages/RisorsePage.tsx` 3. **Update Routes**: - Update `src/frontend/src/App.tsx` to remove old routes and add `PersonaleRoutes`. - Update `src/frontend/src/modules/events/routes.tsx` to include Dashboard. - Update `src/frontend/src/modules/sales/routes.tsx` to include Clienti. - Update `src/frontend/src/modules/warehouse/routes.tsx` to include Articoli. - Create `src/frontend/src/modules/personale/routes.tsx`. 4. **Update Sidebar**: - Update `src/frontend/src/components/Sidebar.tsx` to reflect the new menu structure. 5. **Verify**: Ensure all links work and the application runs correctly.