From faefd47e4b01f6551b6f7b0e6453ed701acf74fe Mon Sep 17 00:00:00 2001 From: Nick Szaunig Date: Tue, 25 Aug 2026 23:21:16 +0200 Subject: [PATCH] feat: dashboard tiles link to their matching list page Each stat tile now navigates to /apiaries, /colonies, /queens, /tasks, /honey-batches or /storage on click instead of being inert. --- .../src/app/(app)/dashboard/page.tsx | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/ApiCore-Frontend/src/app/(app)/dashboard/page.tsx b/ApiCore-Frontend/src/app/(app)/dashboard/page.tsx index 0bd03ec..db48c82 100644 --- a/ApiCore-Frontend/src/app/(app)/dashboard/page.tsx +++ b/ApiCore-Frontend/src/app/(app)/dashboard/page.tsx @@ -38,6 +38,7 @@ interface StatTile { value: number; icon: LucideIcon; gradient: string; + href: string; } const ALERT_META: Record< @@ -79,30 +80,35 @@ export default function DashboardPage() { value: summary.apiariesActive, icon: MapPin, gradient: "var(--gradient-honey)", + href: "/apiaries", }, { label: "Aktive Völker", value: summary.coloniesActive, icon: Layers, gradient: "var(--gradient-honey)", + href: "/colonies", }, { label: "Aktive Königinnen", value: summary.queensActive, icon: Crown, gradient: "var(--gradient-sage)", + href: "/queens", }, { label: "Offene Aufgaben", value: summary.openTasks, icon: ListTodo, gradient: "var(--gradient-sky)", + href: "/tasks", }, { label: "Honigchargen", value: summary.honeyBatchesTotal, icon: Droplet, gradient: "var(--gradient-honey)", + href: "/honey-batches", }, { label: "Artikel unter Mindestbestand", @@ -112,6 +118,7 @@ export default function DashboardPage() { summary.stockItemsLowCount > 0 ? "linear-gradient(135deg, oklch(0.72 0.15 70) 0%, oklch(0.56 0.15 50) 100%)" : "var(--gradient-sage)", + href: "/storage", }, ] : []; @@ -137,20 +144,22 @@ export default function DashboardPage() { {tiles.map((tile) => { const Icon = tile.icon; return ( - - -
- -
-
-

{tile.value}

-

{tile.label}

-
-
-
+ + + +
+ +
+
+

{tile.value}

+

{tile.label}

+
+
+
+ ); })}