1515// Fichero .tsx (no .ts) porque los `element` de las rutas son JSX.
1616
1717import {
18- BarChart3 , Leaf , AlertTriangle , ClipboardCheck , FolderOpen , FileText , Settings ,
18+ BarChart3 , Leaf , AlertTriangle , ClipboardCheck , FolderOpen , FileText , Settings , ShieldAlert ,
1919} from 'lucide-react'
2020import type { ModuleDefinition } from '@/shell/types'
2121
@@ -26,6 +26,7 @@ import IncidentsPage from '@/modules/appcc/pages/IncidentsPage'
2626import OnboardingPage from '@/modules/appcc/pages/OnboardingPage'
2727import ReportsPage from '@/modules/appcc/pages/ReportsPage'
2828import TemplateEditorPage from '@/modules/appcc/pages/TemplateEditorPage'
29+ import AllergensCompliancePage from '@/modules/appcc/pages/AllergensCompliancePage'
2930import AuditsPage from '@/modules/appcc/audits/AuditsPage'
3031import AuditExecutionPage from '@/modules/appcc/audits/AuditExecutionPage'
3132import AuditTemplateEditorPage from '@/modules/appcc/audits/AuditTemplateEditorPage'
@@ -55,6 +56,7 @@ export const appccModule: ModuleDefinition = {
5556 { path : 'informes' , element : < ReportsPage /> } ,
5657 { path : 'plantillas' , element : < TemplateEditorPage /> } ,
5758 { path : 'onboarding' , element : < OnboardingPage /> } ,
59+ { path : 'alergenos' , element : < AllergensCompliancePage /> } ,
5860 ] ,
5961
6062 // Navegación interna del módulo (ModuleSidebar).
@@ -67,6 +69,7 @@ export const appccModule: ModuleDefinition = {
6769 { id : 'appcc_incidents' , label : 'Incidencias' , icon : AlertTriangle , path : 'incidencias' , requiredPermission : 'show_appcc_incidents' } ,
6870 { id : 'appcc_audits' , label : 'Auditorías' , icon : ClipboardCheck , path : 'auditorias' , requiredRole : 'admin' } ,
6971 { id : 'appcc_audit_templates' , label : 'Plantillas Auditoría' , icon : FolderOpen , path : 'auditorias/plantillas' , requiredRole : 'admin' } ,
72+ { id : 'appcc_allergens' , label : 'Alérgenos' , icon : ShieldAlert , path : 'alergenos' , requiredRole : 'admin' } ,
7073 { id : 'appcc_reports' , label : 'Informes' , icon : FileText , path : 'informes' , requiredRole : 'admin' } ,
7174 { id : 'appcc_templates' , label : 'Plantillas' , icon : FolderOpen , path : 'plantillas' , requiredRole : 'admin' } ,
7275 { id : 'appcc_onboarding' , label : 'Configurar' , icon : Settings , path : 'onboarding' , requiredRole : 'admin' } ,
0 commit comments