feat(dashboard): add upcoming EOL + admin operations widgets
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user