From f95b8d4577649fb23918abe1614940b809e6b568 Mon Sep 17 00:00:00 2001 From: rckrdmrd Date: Wed, 7 Jan 2026 05:42:06 -0600 Subject: [PATCH] fix: Update dashboard layout and routes configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/app/layouts/DashboardLayout.tsx | 4 +++ frontend/src/app/router/routes.tsx | 31 ++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/frontend/src/app/layouts/DashboardLayout.tsx b/frontend/src/app/layouts/DashboardLayout.tsx index e2d16d5..61f08eb 100644 --- a/frontend/src/app/layouts/DashboardLayout.tsx +++ b/frontend/src/app/layouts/DashboardLayout.tsx @@ -18,6 +18,8 @@ import { Shield, FileText, Key, + LayoutDashboard, + BarChart3, } from 'lucide-react'; import { cn } from '@utils/cn'; import { useUIStore } from '@stores/useUIStore'; @@ -42,6 +44,8 @@ const navigation = [ { name: 'Proyectos', href: '/projects', icon: FolderKanban }, { name: 'CRM', href: '/crm', icon: UserCircle }, { name: 'RRHH', href: '/hr', icon: Users }, + { name: 'Dashboards', href: '/dashboards', icon: LayoutDashboard }, + { name: 'Reportes', href: '/reports', icon: BarChart3 }, { name: 'Configuracion', href: '/settings', icon: Settings }, ]; diff --git a/frontend/src/app/router/routes.tsx b/frontend/src/app/router/routes.tsx index a616df7..0993037 100644 --- a/frontend/src/app/router/routes.tsx +++ b/frontend/src/app/router/routes.tsx @@ -17,6 +17,11 @@ const DashboardViewPage = lazy(() => import('@pages/dashboards/DashboardViewPage const DashboardEditPage = lazy(() => import('@pages/dashboards/DashboardEditPage')); const DashboardCreatePage = lazy(() => import('@pages/dashboards/DashboardCreatePage')); +// Reports pages (Reports & Dashboards module) +const ReportsPage = lazy(() => import('@pages/reports/ReportsPage')); +const ReportBuilderPage = lazy(() => import('@pages/reports/ReportBuilderPage')); +const ScheduledReportsPage = lazy(() => import('@pages/reports/ScheduledReportsPage')); + // Users pages const UsersListPage = lazy(() => import('@pages/users/UsersListPage')); const UserDetailPage = lazy(() => import('@pages/users/UserDetailPage')); @@ -163,6 +168,32 @@ export const router = createBrowserRouter([ ), }, + // Reports routes + { + path: '/reports', + element: ( + + + + ), + }, + { + path: '/reports/builder', + element: ( + + + + ), + }, + { + path: '/reports/scheduled', + element: ( + + + + ), + }, + // Users routes { path: '/users',