From 6666d1ddecd0aff678e72bd9c154aace0668de50 Mon Sep 17 00:00:00 2001 From: dnviti Date: Wed, 3 Dec 2025 01:54:24 +0100 Subject: [PATCH] refactor: move reports menu item from main to administration section --- docs/development/ZENTRAL.md | 2 ++ .../devlog/2025-12-03_move_reports_menu.md | 19 +++++++++++++++++++ src/frontend/src/components/Sidebar.tsx | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 docs/development/devlog/2025-12-03_move_reports_menu.md diff --git a/docs/development/ZENTRAL.md b/docs/development/ZENTRAL.md index dacbc90..8ab607f 100644 --- a/docs/development/ZENTRAL.md +++ b/docs/development/ZENTRAL.md @@ -12,3 +12,5 @@ File riassuntivo dello stato di sviluppo di Zentral. - Fix mancata migrazione database e avvio backend. - [2025-12-03 Module Management Refinement](./devlog/2025-12-03_module_management.md) - **Completato** - 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. diff --git a/docs/development/devlog/2025-12-03_move_reports_menu.md b/docs/development/devlog/2025-12-03_move_reports_menu.md new file mode 100644 index 0000000..c4882a2 --- /dev/null +++ b/docs/development/devlog/2025-12-03_move_reports_menu.md @@ -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. diff --git a/src/frontend/src/components/Sidebar.tsx b/src/frontend/src/components/Sidebar.tsx index 0b7e1d8..0fa87e7 100644 --- a/src/frontend/src/components/Sidebar.tsx +++ b/src/frontend/src/components/Sidebar.tsx @@ -91,7 +91,6 @@ export default function Sidebar({ onClose }: { onClose?: () => void }) { { id: 'location', label: t('menu.location'), icon: , path: '/location' }, { id: 'articles', label: t('menu.articles'), icon: , path: '/articoli' }, { id: 'resources', label: t('menu.resources'), icon: , path: '/risorse' }, - { id: 'reports', label: t('menu.reports'), icon: , path: '/report-templates' }, ], }, { @@ -149,6 +148,7 @@ export default function Sidebar({ onClose }: { onClose?: () => void }) { { id: 'modules', label: t('menu.modules'), icon: , path: '/modules' }, { id: 'autocodes', label: t('menu.autoCodes'), icon: , path: '/admin/auto-codes' }, { id: 'customfields', label: t('menu.customFields'), icon: , path: '/admin/custom-fields' }, + { id: 'reports', label: t('menu.reports'), icon: , path: '/report-templates' }, ], }, ];