feat(L1): modular widget dashboard — 15 configurable widgets

Replaces monolithic AdminDashboard/ClientDashboard with a per-user
configurable widget grid. 15 widget types: ProductionStats, QueueStatus,
RecentRenders, CostOverview, WorkerStatus, KPISummary, OrderThroughput,
Revenue, ItemStatus, ProcessingTimes, RenderTimeByOutputType,
OutputTypeUsage, TopProducts, OrdersByUser, RenderBackendStats.

DashboardTimeframeContext provides shared timeframe state. Dashboard
config persisted in DB via GET/PUT /api/dashboard/config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 23:11:13 +01:00
parent a70cb55d01
commit f15b035b88
19 changed files with 939 additions and 798 deletions
+10
View File
@@ -6,6 +6,16 @@ export type WidgetType =
| 'RecentRenders'
| 'CostOverview'
| 'WorkerStatus'
| 'KPISummary'
| 'OrderThroughput'
| 'RevenueChart'
| 'ItemStatus'
| 'ProcessingTimes'
| 'RenderTimeByOutputType'
| 'OutputTypeUsage'
| 'TopProducts'
| 'OrdersByUser'
| 'RenderBackendStats'
export interface WidgetPosition {
col: number