fix: Update dashboard layout and routes configuration
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4c4e27d9ba
commit
f95b8d4577
@ -18,6 +18,8 @@ import {
|
|||||||
Shield,
|
Shield,
|
||||||
FileText,
|
FileText,
|
||||||
Key,
|
Key,
|
||||||
|
LayoutDashboard,
|
||||||
|
BarChart3,
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import { cn } from '@utils/cn';
|
import { cn } from '@utils/cn';
|
||||||
import { useUIStore } from '@stores/useUIStore';
|
import { useUIStore } from '@stores/useUIStore';
|
||||||
@ -42,6 +44,8 @@ const navigation = [
|
|||||||
{ name: 'Proyectos', href: '/projects', icon: FolderKanban },
|
{ name: 'Proyectos', href: '/projects', icon: FolderKanban },
|
||||||
{ name: 'CRM', href: '/crm', icon: UserCircle },
|
{ name: 'CRM', href: '/crm', icon: UserCircle },
|
||||||
{ name: 'RRHH', href: '/hr', icon: Users },
|
{ name: 'RRHH', href: '/hr', icon: Users },
|
||||||
|
{ name: 'Dashboards', href: '/dashboards', icon: LayoutDashboard },
|
||||||
|
{ name: 'Reportes', href: '/reports', icon: BarChart3 },
|
||||||
{ name: 'Configuracion', href: '/settings', icon: Settings },
|
{ name: 'Configuracion', href: '/settings', icon: Settings },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@ const DashboardViewPage = lazy(() => import('@pages/dashboards/DashboardViewPage
|
|||||||
const DashboardEditPage = lazy(() => import('@pages/dashboards/DashboardEditPage'));
|
const DashboardEditPage = lazy(() => import('@pages/dashboards/DashboardEditPage'));
|
||||||
const DashboardCreatePage = lazy(() => import('@pages/dashboards/DashboardCreatePage'));
|
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
|
// Users pages
|
||||||
const UsersListPage = lazy(() => import('@pages/users/UsersListPage'));
|
const UsersListPage = lazy(() => import('@pages/users/UsersListPage'));
|
||||||
const UserDetailPage = lazy(() => import('@pages/users/UserDetailPage'));
|
const UserDetailPage = lazy(() => import('@pages/users/UserDetailPage'));
|
||||||
@ -163,6 +168,32 @@ export const router = createBrowserRouter([
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Reports routes
|
||||||
|
{
|
||||||
|
path: '/reports',
|
||||||
|
element: (
|
||||||
|
<DashboardWrapper>
|
||||||
|
<ReportsPage />
|
||||||
|
</DashboardWrapper>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/reports/builder',
|
||||||
|
element: (
|
||||||
|
<DashboardWrapper>
|
||||||
|
<ReportBuilderPage />
|
||||||
|
</DashboardWrapper>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/reports/scheduled',
|
||||||
|
element: (
|
||||||
|
<DashboardWrapper>
|
||||||
|
<ScheduledReportsPage />
|
||||||
|
</DashboardWrapper>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
|
||||||
// Users routes
|
// Users routes
|
||||||
{
|
{
|
||||||
path: '/users',
|
path: '/users',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user