From ca6d43e0e8b34e39afcccdb542137a8942a2ab8f Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 28 Aug 2026 00:21:36 +0200 Subject: [PATCH] feat(boss-dashboard): add order totals strip (Total / Delivered / Invoiced) --- src/app/(mobile)/m/dashboard-view.tsx | 33 +++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/app/(mobile)/m/dashboard-view.tsx b/src/app/(mobile)/m/dashboard-view.tsx index d8c48ef..44d4f84 100644 --- a/src/app/(mobile)/m/dashboard-view.tsx +++ b/src/app/(mobile)/m/dashboard-view.tsx @@ -115,10 +115,14 @@ export default function BossDashboardView() { ))} - {/* Placeholder for order totals (Task 11) */} -
- Order totals land here in Task 11. -
+ {/* Order totals */} + {data && ( +
+ + + +
+ )} {/* Placeholder for reps (Task 12) */}
@@ -151,3 +155,24 @@ function timeAgo(date: Date): string { if (hr < 24) return `${hr}h ago`; return date.toLocaleDateString("en-ZA", { day: "numeric", month: "short" }); } + +function OrderTotal({ + label, + value, + color, +}: { + label: string; + value: number; + color: string; +}) { + return ( +
+
+ {label} +
+
+ {value.toLocaleString()} +
+
+ ); +}