From 44f93feb13bc529e4f0cf5e760ed45cd277f5d30 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 28 Aug 2026 00:23:32 +0200 Subject: [PATCH] feat(boss-dashboard): add drivers section --- src/app/(mobile)/m/dashboard-view.tsx | 61 +++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git a/src/app/(mobile)/m/dashboard-view.tsx b/src/app/(mobile)/m/dashboard-view.tsx index b5eab97..94b73e7 100644 --- a/src/app/(mobile)/m/dashboard-view.tsx +++ b/src/app/(mobile)/m/dashboard-view.tsx @@ -184,10 +184,63 @@ export default function BossDashboardView() { )} - {/* Placeholder for drivers (Task 13) */} -
- Driver stops land here in Task 13. -
+ {/* Drivers section */} +
+
+

+ Driver stops today +

+ {data && ( + + {data.drivers.reduce((s, d) => s + d.stopsToday, 0)} + + )} +
+ + {data && data.drivers.length === 0 ? ( +
+ No driver stops scheduled today. +
+ ) : ( + + )} +
); }