feat(dashboard): add upcoming EOL + admin operations widgets
CI / Lint · Typecheck · Test · Build (push) Successful in 47s
CI / Playwright (smoke) (push) Has been skipped
CI / Build & push images (push) Successful in 1m5s

Surface operational signal alongside inventory: upcoming-EOL banner and
KPI for everyone; admin-only repairs tempo, FM close time, open FMs by
host, and custody backlog. Service shapes payload by role.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-17 16:22:10 -04:00
parent ae65d9f2a8
commit 52e092502b
5 changed files with 593 additions and 82 deletions
+12
View File
@@ -27,11 +27,23 @@ export interface PartModelEolSummary {
deployedCount: number;
}
export interface OperationsAnalytics {
repairs7d: number;
repairs30d: number;
newFms7d: number;
avgFmCloseHours30d: number | null;
repairsTrend30d: { date: string; count: number }[];
openFmsByHost: { hostId: string; hostName: string; count: number }[];
custodyBacklog: { userId: string; username: string; count: number }[];
}
export interface DashboardAnalytics {
totalParts: number;
byState: StateCount[];
ageBuckets: AgeBucket[];
topBins: BinCount[];
deployedPastEol: PartModelEolSummary[];
upcomingEol: PartModelEolSummary[];
openFms: number;
operations?: OperationsAnalytics;
}