Skip to content

Commit 299a3a4

Browse files
authored
Merge pull request #19 from Llorente29/feature/alergenos-capa2-herencia
Feature/alergenos capa2 herencia
2 parents 3cf3158 + 8bb62eb commit 299a3a4

23 files changed

Lines changed: 2640 additions & 14 deletions

src/modules/appcc/module.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// Fichero .tsx (no .ts) porque los `element` de las rutas son JSX.
1616

1717
import {
18-
BarChart3, Leaf, AlertTriangle, ClipboardCheck, FolderOpen, FileText, Settings,
18+
BarChart3, Leaf, AlertTriangle, ClipboardCheck, FolderOpen, FileText, Settings, ShieldAlert,
1919
} from 'lucide-react'
2020
import type { ModuleDefinition } from '@/shell/types'
2121

@@ -26,6 +26,7 @@ import IncidentsPage from '@/modules/appcc/pages/IncidentsPage'
2626
import OnboardingPage from '@/modules/appcc/pages/OnboardingPage'
2727
import ReportsPage from '@/modules/appcc/pages/ReportsPage'
2828
import TemplateEditorPage from '@/modules/appcc/pages/TemplateEditorPage'
29+
import AllergensCompliancePage from '@/modules/appcc/pages/AllergensCompliancePage'
2930
import AuditsPage from '@/modules/appcc/audits/AuditsPage'
3031
import AuditExecutionPage from '@/modules/appcc/audits/AuditExecutionPage'
3132
import 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

Comments
 (0)