From eb3f8011679a41fb0909c1522fe853cc1ec7a062 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 28 Aug 2026 00:22:30 +0200 Subject: [PATCH] feat(boss-dashboard): add reps list section --- src/app/(mobile)/m/dashboard-view.tsx | 88 +++++++++++++++++++++++++-- 1 file changed, 84 insertions(+), 4 deletions(-) diff --git a/src/app/(mobile)/m/dashboard-view.tsx b/src/app/(mobile)/m/dashboard-view.tsx index 44d4f84..b5eab97 100644 --- a/src/app/(mobile)/m/dashboard-view.tsx +++ b/src/app/(mobile)/m/dashboard-view.tsx @@ -124,10 +124,65 @@ export default function BossDashboardView() { )} - {/* Placeholder for reps (Task 12) */} -
- Reps list lands here in Task 12. -
+ {/* Reps section */} +
+
+

+ Sales reps +

+ {data && ( + + {data.reps.length} + + )} +
+ + {data && data.reps.length === 0 ? ( +
+ No rep activity in this window. +
+ ) : ( + + )} +
{/* Placeholder for drivers (Task 13) */}
@@ -176,3 +231,28 @@ function OrderTotal({
); } + +function Metric({ + label, + value, + color, +}: { + label: string; + value: number; + color: string; +}) { + return ( +
+
+ {value.toLocaleString()} +
+
+ {label} +
+
+ ); +} + +function openSheet(_rep: BossDashboardData["reps"][number]) { + // Wired in Task 14. +}