diff --git a/frontend/src/api/hooks/newDashboard.ts b/frontend/src/api/hooks/newDashboard.ts index 71bfc112..31018a46 100644 --- a/frontend/src/api/hooks/newDashboard.ts +++ b/frontend/src/api/hooks/newDashboard.ts @@ -153,7 +153,7 @@ export function useBakeryHealthStatus(tenantId: string) { queryKey: ['bakery-health-status', tenantId], queryFn: async () => { const response = await apiClient.get( - `/orchestrator/tenants/${tenantId}/dashboard/health-status` + `/tenants/${tenantId}/dashboard/health-status` ); return response.data; }, @@ -174,7 +174,7 @@ export function useOrchestrationSummary(tenantId: string, runId?: string) { queryFn: async () => { const params = runId ? { run_id: runId } : {}; const response = await apiClient.get( - `/orchestrator/tenants/${tenantId}/dashboard/orchestration-summary`, + `/tenants/${tenantId}/dashboard/orchestration-summary`, { params } ); return response.data; @@ -195,7 +195,7 @@ export function useActionQueue(tenantId: string) { queryKey: ['action-queue', tenantId], queryFn: async () => { const response = await apiClient.get( - `/orchestrator/tenants/${tenantId}/dashboard/action-queue` + `/tenants/${tenantId}/dashboard/action-queue` ); return response.data; }, @@ -215,7 +215,7 @@ export function useProductionTimeline(tenantId: string) { queryKey: ['production-timeline', tenantId], queryFn: async () => { const response = await apiClient.get( - `/orchestrator/tenants/${tenantId}/dashboard/production-timeline` + `/tenants/${tenantId}/dashboard/production-timeline` ); return response.data; }, @@ -235,7 +235,7 @@ export function useInsights(tenantId: string) { queryKey: ['dashboard-insights', tenantId], queryFn: async () => { const response = await apiClient.get( - `/orchestrator/tenants/${tenantId}/dashboard/insights` + `/tenants/${tenantId}/dashboard/insights` ); return response.data; }, diff --git a/frontend/src/pages/app/DashboardPage.tsx b/frontend/src/pages/app/DashboardPage.tsx index e322a546..ecb186b4 100644 --- a/frontend/src/pages/app/DashboardPage.tsx +++ b/frontend/src/pages/app/DashboardPage.tsx @@ -126,18 +126,24 @@ export function NewDashboardPage() { }; return ( -
+
{/* Mobile-optimized container */}
{/* Header */}
-

Panel de Control

-

Your bakery at a glance

+

Panel de Control

+

Your bakery at a glance