diff --git a/src/app/admin/route-trace/page.tsx b/src/app/admin/route-trace/page.tsx index fd9c343..341d899 100644 --- a/src/app/admin/route-trace/page.tsx +++ b/src/app/admin/route-trace/page.tsx @@ -71,13 +71,19 @@ export default async function RouteTraceDashboardPage() { const recentActivity = eventsResult.success ? eventsResult.events : []; return ( -
+
+ {/* Subtle decorative background */} +
+
+
+
+ {/* Header */} -
+
-
+
{Icons.routeTrace("h-5 w-5 sm:h-6 sm:w-6 text-white")}
diff --git a/src/components/route-trace/RouteTraceDashboard.tsx b/src/components/route-trace/RouteTraceDashboard.tsx index fbb0efe..7d68756 100644 --- a/src/components/route-trace/RouteTraceDashboard.tsx +++ b/src/components/route-trace/RouteTraceDashboard.tsx @@ -213,7 +213,7 @@ function ActivityFeed({ events }: { events: RecentLotEvent[] }) { if (events.length === 0) return null; return ( -
+
{Icons.zap("w-4 h-4")} @@ -223,7 +223,7 @@ function ActivityFeed({ events }: { events: RecentLotEvent[] }) {
{events.map((evt) => ( -
+
+
{icon}

{title}

- + {lots.length}
{lots.length === 0 ? ( -
{emptyMessage}
+
+
+ + + + {emptyMessage} +
+
) : (
{lots.map((lot) => ( -
+
+
{Icons.box("w-4 h-4")} @@ -382,7 +389,7 @@ function InventoryByCropSection({ inventoryByCrop }: { inventoryByCrop: Inventor const packed = byStatus["packed"] ?? 0; return ( -
+

{crop}

@@ -439,7 +446,7 @@ function FieldYieldTable({ fieldYield }: { fieldYield: FieldYieldSummary[] }) { if (fieldYield.length === 0) return null; return ( -
+
{Icons.chart("w-4 h-4")} @@ -457,7 +464,7 @@ function FieldYieldTable({ fieldYield }: { fieldYield: FieldYieldSummary[] }) { {fieldYield.map((row, idx) => ( - +

{row.field_location}

{row.field_block !== "N/A" &&

Block {row.field_block}

} @@ -527,7 +534,7 @@ export default function RouteTraceDashboard({ {statEntries.map(({ key, value }) => { const cfg = STATUS_CONFIG[key]; return ( -
+
{cfg.icon} {cfg.label} @@ -537,7 +544,7 @@ export default function RouteTraceDashboard({ ); })} {/* Total lots — spans across */} -
+
{Icons.clipboard("w-3.5 h-3.5 sm:w-4 sm:h-4")} Total Lots