refactor: move reports menu item from main to administration section
This commit is contained in:
@@ -12,3 +12,5 @@ File riassuntivo dello stato di sviluppo di Zentral.
|
|||||||
- Fix mancata migrazione database e avvio backend.
|
- Fix mancata migrazione database e avvio backend.
|
||||||
- [2025-12-03 Module Management Refinement](./devlog/2025-12-03_module_management.md) - **Completato**
|
- [2025-12-03 Module Management Refinement](./devlog/2025-12-03_module_management.md) - **Completato**
|
||||||
- Refinement logica attivazione/acquisto moduli, gestione dipendenze e UI.
|
- Refinement logica attivazione/acquisto moduli, gestione dipendenze e UI.
|
||||||
|
- [2025-12-03 Move Reports Menu](./devlog/2025-12-03_move_reports_menu.md) - **Completato**
|
||||||
|
- Spostamento voce menu Report sotto Amministrazione.
|
||||||
|
|||||||
19
docs/development/devlog/2025-12-03_move_reports_menu.md
Normal file
19
docs/development/devlog/2025-12-03_move_reports_menu.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Spostamento Menu Report
|
||||||
|
|
||||||
|
**Data:** 2025-12-03
|
||||||
|
**Stato:** Completato
|
||||||
|
|
||||||
|
## Obiettivo
|
||||||
|
Spostare la voce di menu "Report" dalla sezione principale "Zentral" alla sezione "Amministrazione", in quanto la gestione dei template di stampa è un compito amministrativo.
|
||||||
|
|
||||||
|
## Modifiche Apportate
|
||||||
|
### Frontend
|
||||||
|
- Modificato `src/frontend/src/components/Sidebar.tsx`:
|
||||||
|
- Rimossa la voce `reports` dalla lista `children` della sezione `core`.
|
||||||
|
- Aggiunta la voce `reports` alla lista `children` della sezione `admin`.
|
||||||
|
|
||||||
|
## Verifica
|
||||||
|
- Avviata l'applicazione (`make run dev`).
|
||||||
|
- Verificato tramite browser che la voce "Report" non sia più presente sotto "Zentral".
|
||||||
|
- Verificato tramite browser che la voce "Report" sia presente sotto "Amministrazione".
|
||||||
|
- Verificato che il routing verso `/report-templates` funzioni ancora correttamente.
|
||||||
@@ -91,7 +91,6 @@ export default function Sidebar({ onClose }: { onClose?: () => void }) {
|
|||||||
{ id: 'location', label: t('menu.location'), icon: <PlaceIcon />, path: '/location' },
|
{ id: 'location', label: t('menu.location'), icon: <PlaceIcon />, path: '/location' },
|
||||||
{ id: 'articles', label: t('menu.articles'), icon: <InventoryIcon />, path: '/articoli' },
|
{ id: 'articles', label: t('menu.articles'), icon: <InventoryIcon />, path: '/articoli' },
|
||||||
{ id: 'resources', label: t('menu.resources'), icon: <PersonIcon />, path: '/risorse' },
|
{ id: 'resources', label: t('menu.resources'), icon: <PersonIcon />, path: '/risorse' },
|
||||||
{ id: 'reports', label: t('menu.reports'), icon: <PrintIcon />, path: '/report-templates' },
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -149,6 +148,7 @@ export default function Sidebar({ onClose }: { onClose?: () => void }) {
|
|||||||
{ id: 'modules', label: t('menu.modules'), icon: <ModulesIcon />, path: '/modules' },
|
{ id: 'modules', label: t('menu.modules'), icon: <ModulesIcon />, path: '/modules' },
|
||||||
{ id: 'autocodes', label: t('menu.autoCodes'), icon: <AutoCodeIcon />, path: '/admin/auto-codes' },
|
{ id: 'autocodes', label: t('menu.autoCodes'), icon: <AutoCodeIcon />, path: '/admin/auto-codes' },
|
||||||
{ id: 'customfields', label: t('menu.customFields'), icon: <AutoCodeIcon />, path: '/admin/custom-fields' },
|
{ id: 'customfields', label: t('menu.customFields'), icon: <AutoCodeIcon />, path: '/admin/custom-fields' },
|
||||||
|
{ id: 'reports', label: t('menu.reports'), icon: <PrintIcon />, path: '/report-templates' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user