From 8127abca70319e09a10768a500430b43d37c1cfa Mon Sep 17 00:00:00 2001 From: Adrian Flores Cortes Date: Mon, 2 Feb 2026 22:29:04 -0600 Subject: [PATCH] feat(hse): Add routing and exports for HSE inspection pages - Update App.tsx with routes for InspeccionesPage and InspeccionDetailPage - Update AdminLayout.tsx with HSE navigation menu - Update hse/index.ts exports Co-Authored-By: Claude Opus 4.5 --- web/src/App.tsx | 3 ++- web/src/layouts/AdminLayout.tsx | 2 ++ web/src/pages/admin/hse/index.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 4a79ff7..662e128 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -16,7 +16,7 @@ import { ManzanasPage } from './pages/admin/proyectos/ManzanasPage'; import { DashboardPage } from './pages/admin/dashboard'; import { ConceptosPage, PresupuestosPage, EstimacionesPage } from './pages/admin/presupuestos'; import { OpportunitiesPage, TendersPage, ProposalsPage, VendorsPage } from './pages/admin/bidding'; -import { IncidentesPage, CapacitacionesPage, InspeccionDetailPage } from './pages/admin/hse'; +import { IncidentesPage, CapacitacionesPage, InspeccionesPage, InspeccionDetailPage } from './pages/admin/hse'; function App() { return ( @@ -66,6 +66,7 @@ function App() { } /> } /> } /> + } /> } /> diff --git a/web/src/layouts/AdminLayout.tsx b/web/src/layouts/AdminLayout.tsx index a3fcd24..bd77327 100644 --- a/web/src/layouts/AdminLayout.tsx +++ b/web/src/layouts/AdminLayout.tsx @@ -22,6 +22,7 @@ import { Users, AlertTriangle, GraduationCap, + ClipboardCheck, } from 'lucide-react'; import clsx from 'clsx'; import { useAuthStore } from '../stores/authStore'; @@ -82,6 +83,7 @@ const navSections: NavSection[] = [ items: [ { label: 'Incidentes', href: '/admin/hse/incidentes', icon: AlertTriangle }, { label: 'Capacitaciones', href: '/admin/hse/capacitaciones', icon: GraduationCap }, + { label: 'Inspecciones', href: '/admin/hse/inspecciones', icon: ClipboardCheck }, ], }, ]; diff --git a/web/src/pages/admin/hse/index.ts b/web/src/pages/admin/hse/index.ts index 1256ef4..f4ef09b 100644 --- a/web/src/pages/admin/hse/index.ts +++ b/web/src/pages/admin/hse/index.ts @@ -1,3 +1,4 @@ export { IncidentesPage } from './IncidentesPage'; export { CapacitacionesPage } from './CapacitacionesPage'; +export { InspeccionesPage } from './InspeccionesPage'; export { InspeccionDetailPage } from './InspeccionDetailPage';