fix: define dashboard metric status

This commit is contained in:
WorkBuddy
2026-10-25 09:07:09 +08:00
parent b38056f1d0
commit dd291868fb
+2
View File
@@ -1,4 +1,5 @@
export type DashboardTone = 'rose' | 'amber' | 'blue' | 'green' | 'purple' | 'red'
export type DashboardMetricStatus = 'ready' | 'forbidden' | 'error'
export interface DashboardMetric {
key: string
@@ -7,6 +8,7 @@ export interface DashboardMetric {
trendText: string
tone: DashboardTone
available: boolean
status: DashboardMetricStatus
route: string
}