feat: warn on the dashboard when a queen is 3+ years old

Queen.hatchYear was already captured but never used anywhere - no
signal existed for "this colony's queen is overdue for evaluation or
replacement," despite that being one of the most common productivity
and swarming risk factors in beekeeping. Adds an OLD_QUEEN dashboard
alert alongside the existing overdue-task/swarm-check ones, flagging
any active colony whose current queen has completed 3+ seasons.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
Nick SzaunigandClaude Sonnet 5 committed 2026-09-06 18:43:37 +02:00
1 parent 8c4ae64e76
commit edf13d3ae4
4 files changed
+104 -26

No files matched your search

@@ -66,6 +66,11 @@ const ALERT_META: Record<
icon: Sprout,
className: "border-destructive/30 bg-destructive/5",
},
OLD_QUEEN: {
label: "Königin überaltert",
icon: Crown,
className: "border-warning/40 bg-warning/10",
},
};
export default function DashboardPage() {
+2 -1
View File
@@ -11,7 +11,8 @@ export type DashboardAlertType =
| "OVERDUE_TASK"
| "COLONY_ATTENTION"
| "LOW_STOCK"
| "OVERDUE_SWARM_CHECK";
| "OVERDUE_SWARM_CHECK"
| "OLD_QUEEN";
export interface DashboardAlert {
type: DashboardAlertType;