From 1b44173933cf4a0caf4aa60b07df1be3f7ed73a8 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 7 Nov 2025 22:03:45 +0000 Subject: [PATCH] fix: Remove conditional rendering to always show dashboard components Components were conditionally rendered based on data availability, causing a blank page during loading or on API errors. Each component already has internal loading state handling with skeleton loaders. Changed: - HealthStatusCard: Always render, let component show skeleton - ActionQueueCard: Always render, let component show skeleton - OrchestrationSummaryCard: Always render, let component show skeleton - ProductionTimelineCard: Always render, let component show skeleton - InsightsGrid: Always render, let component show skeleton Benefits: - Users see loading skeletons instead of blank page - Better UX during initial load and API failures - Components handle their own loading/error states --- frontend/src/pages/app/DashboardPage.tsx | 52 ++++++++++-------------- 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a/frontend/src/pages/app/DashboardPage.tsx b/frontend/src/pages/app/DashboardPage.tsx index ecb186b4..b8a9bb06 100644 --- a/frontend/src/pages/app/DashboardPage.tsx +++ b/frontend/src/pages/app/DashboardPage.tsx @@ -153,44 +153,36 @@ export function NewDashboardPage() { {/* Main Dashboard Layout */}
{/* SECTION 1: Bakery Health Status */} - {healthStatus && } + {/* SECTION 2: What Needs Your Attention (Action Queue) */} - {actionQueue && ( - - )} + {/* SECTION 3: What the System Did for You (Orchestration Summary) */} - {orchestrationSummary && ( - - )} + {/* SECTION 4: Today's Production Timeline */} - {productionTimeline && ( - - )} + {/* SECTION 5: Quick Insights Grid */} - {insights && ( -
-

Key Metrics

- -
- )} +
+

Key Metrics

+ +
{/* SECTION 6: Quick Action Links */}