feat(manufacturers): detail page with MPN-level insights
Adds /manufacturers/:id with vendor-wide KPIs, top MPNs by units, failures by MPN, category mix, past-EOL exposure, and a filtered PartModels table. Wires upstream links from PartDetail and PartModelDetail so the manufacturer name is a navigable anchor. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
export interface ManufacturerPriceStats {
|
||||
total: number;
|
||||
average: number;
|
||||
min: number | null;
|
||||
max: number | null;
|
||||
countWithPrice: number;
|
||||
}
|
||||
|
||||
export interface ManufacturerFailureStats {
|
||||
repairs: number;
|
||||
distinctFailedParts: number;
|
||||
fmsImplicating: number;
|
||||
}
|
||||
|
||||
export interface ManufacturerCategoryCount {
|
||||
categoryId: string | null;
|
||||
categoryName: string;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface ManufacturerModelCount {
|
||||
partModelId: string;
|
||||
mpn: string;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface ManufacturerModelFailureCount {
|
||||
partModelId: string;
|
||||
mpn: string;
|
||||
repairs: number;
|
||||
}
|
||||
|
||||
export interface ManufacturerPastEolModel {
|
||||
partModelId: string;
|
||||
mpn: string;
|
||||
eolDate: string;
|
||||
deployedCount: number;
|
||||
}
|
||||
|
||||
export interface ManufacturerInsights {
|
||||
totalPartModels: number;
|
||||
totalParts: number;
|
||||
priceStats: ManufacturerPriceStats;
|
||||
failures: ManufacturerFailureStats;
|
||||
byCategory: ManufacturerCategoryCount[];
|
||||
topModelsByUnits: ManufacturerModelCount[];
|
||||
failuresByModel: ManufacturerModelFailureCount[];
|
||||
pastEolModels: ManufacturerPastEolModel[];
|
||||
}
|
||||
Reference in New Issue
Block a user