Add improved production UI 3
This commit is contained in:
@@ -18,8 +18,10 @@ const ProcurementPage = React.lazy(() => import('../pages/app/operations/procure
|
||||
const SuppliersPage = React.lazy(() => import('../pages/app/operations/suppliers/SuppliersPage'));
|
||||
const OrdersPage = React.lazy(() => import('../pages/app/operations/orders/OrdersPage'));
|
||||
const POSPage = React.lazy(() => import('../pages/app/operations/pos/POSPage'));
|
||||
const MaquinariaPage = React.lazy(() => import('../pages/app/operations/maquinaria/MaquinariaPage'));
|
||||
|
||||
// Analytics pages
|
||||
const ProductionAnalyticsPage = React.lazy(() => import('../pages/app/analytics/ProductionAnalyticsPage'));
|
||||
const ForecastingPage = React.lazy(() => import('../pages/app/analytics/forecasting/ForecastingPage'));
|
||||
const SalesAnalyticsPage = React.lazy(() => import('../pages/app/analytics/sales-analytics/SalesAnalyticsPage'));
|
||||
const AIInsightsPage = React.lazy(() => import('../pages/app/analytics/ai-insights/AIInsightsPage'));
|
||||
@@ -188,17 +190,37 @@ export const AppRouter: React.FC = () => {
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/app/database/maquinaria"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<AppShell>
|
||||
<MaquinariaPage />
|
||||
</AppShell>
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
|
||||
{/* Analytics Routes */}
|
||||
<Route
|
||||
path="/app/analytics/forecasting"
|
||||
<Route
|
||||
path="/app/analytics/production"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<AppShell>
|
||||
<ProductionAnalyticsPage />
|
||||
</AppShell>
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/app/analytics/forecasting"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<AppShell>
|
||||
<ForecastingPage />
|
||||
</AppShell>
|
||||
</ProtectedRoute>
|
||||
}
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/app/analytics/sales"
|
||||
|
||||
@@ -61,6 +61,7 @@ export const ROUTES = {
|
||||
PRODUCTION_SCHEDULE: '/production/schedule',
|
||||
PRODUCTION_QUALITY: '/production/quality',
|
||||
PRODUCTION_REPORTS: '/production/reports',
|
||||
PRODUCTION_ANALYTICS: '/app/analytics/production',
|
||||
|
||||
// Sales & Analytics
|
||||
SALES: '/sales',
|
||||
@@ -310,6 +311,16 @@ export const routesConfig: RouteConfig[] = [
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
{
|
||||
path: '/app/database/maquinaria',
|
||||
name: 'Maquinaria',
|
||||
component: 'MaquinariaPage',
|
||||
title: 'Maquinaria',
|
||||
icon: 'production',
|
||||
requiresAuth: true,
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
{
|
||||
path: '/app/database/bakery-config',
|
||||
name: 'BakeryConfig',
|
||||
@@ -350,13 +361,25 @@ export const routesConfig: RouteConfig[] = [
|
||||
path: '/app/analytics',
|
||||
name: 'Analytics',
|
||||
component: 'AnalyticsPage',
|
||||
title: 'Analytics',
|
||||
title: 'Análisis',
|
||||
icon: 'sales',
|
||||
requiresAuth: true,
|
||||
requiredRoles: ROLE_COMBINATIONS.MANAGEMENT_ACCESS,
|
||||
requiredAnalyticsLevel: 'basic',
|
||||
showInNavigation: true,
|
||||
children: [
|
||||
{
|
||||
path: '/app/analytics/production',
|
||||
name: 'ProductionAnalytics',
|
||||
component: 'ProductionAnalyticsPage',
|
||||
title: 'Análisis de Producción',
|
||||
icon: 'production',
|
||||
requiresAuth: true,
|
||||
requiredRoles: ROLE_COMBINATIONS.MANAGEMENT_ACCESS,
|
||||
requiredAnalyticsLevel: 'advanced',
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
{
|
||||
path: '/app/analytics/forecasting',
|
||||
name: 'Forecasting',
|
||||
|
||||
Reference in New Issue
Block a user