fix: remove lingering FM references from insights services
CI / Lint · Typecheck · Test · Build (push) Successful in 59s
CI / Playwright (smoke) (push) Has been skipped
CI / Build & push images (push) Successful in 2m22s

tx.fm.count calls + fmsImplicating fields were missed in the main FM
removal pass. Drops the field from Category/Manufacturer/PartModel
insights types, services, tests, and detail-page stat cards.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 18:51:56 -04:00
parent db8e86b749
commit da6bd071ee
12 changed files with 12 additions and 60 deletions
+2 -6
View File
@@ -270,9 +270,9 @@ export default function CategoryDetail() {
</div>
</div>
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6">
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5">
{insightsQuery.isPending || !insights ? (
Array.from({ length: 6 }).map((_, i) => <Skeleton key={i} className="h-20" />)
Array.from({ length: 5 }).map((_, i) => <Skeleton key={i} className="h-20" />)
) : (
<>
<StatCard label="MPNs" value={insights.totalPartModels.toLocaleString()} />
@@ -300,10 +300,6 @@ export default function CategoryDetail() {
: undefined
}
/>
<StatCard
label="FMs implicated"
value={insights.failures.fmsImplicating.toLocaleString()}
/>
</>
)}
</div>
+2 -6
View File
@@ -256,9 +256,9 @@ export default function ManufacturerDetail() {
</div>
</div>
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6">
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5">
{insightsQuery.isPending || !insights ? (
Array.from({ length: 6 }).map((_, i) => <Skeleton key={i} className="h-20" />)
Array.from({ length: 5 }).map((_, i) => <Skeleton key={i} className="h-20" />)
) : (
<>
<StatCard label="MPNs" value={insights.totalPartModels.toLocaleString()} />
@@ -286,10 +286,6 @@ export default function ManufacturerDetail() {
: undefined
}
/>
<StatCard
label="FMs implicated"
value={insights.failures.fmsImplicating.toLocaleString()}
/>
</>
)}
</div>
+2 -6
View File
@@ -262,9 +262,9 @@ export default function PartModelDetail() {
</div>
</div>
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-5">
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
{insightsQuery.isPending || !insights ? (
Array.from({ length: 5 }).map((_, i) => <Skeleton key={i} className="h-20" />)
Array.from({ length: 4 }).map((_, i) => <Skeleton key={i} className="h-20" />)
) : (
<>
<StatCard label="Units" value={insights.totalParts.toLocaleString()} />
@@ -291,10 +291,6 @@ export default function PartModelDetail() {
: undefined
}
/>
<StatCard
label="FMs implicated"
value={insights.failures.fmsImplicating.toLocaleString()}
/>
</>
)}
</div>