Skip to content

Commit 8bc2e53

Browse files
committed
fix(showcase/dashboard): add maxPossible to parity-matrix DepthResult literals
Two object literals in parity-matrix.tsx ParityCategorySection were missing the required maxPossible field on DepthResult, causing 'next build' to fail with TS2322 and blocking the shell-dashboard production rebuild. Setting maxPossible: 0 matches achieved: 0 for unwired cells (no probe → no ceiling), which is consistent with how DepthChip renders an unshipped cell. Cherry-picked from 1db2fbc on fix/dashboard-polish (Jordan Ritter); landing standalone so the showcase deploy can rebuild from main without waiting on the larger dashboard-polish branch.
1 parent 23997ff commit 8bc2e53

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

showcase/shell-dashboard/src/components/parity-matrix.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ function ParityCategorySection({
115115
const refCell = cellIndex.get(`${referenceSlug}/${feature.id}`);
116116
const refDepth: DepthResult = refCell
117117
? deriveDepth(refCell, liveStatus)
118-
: { achieved: 0, isRegression: false, unsupported: false };
118+
: {
119+
achieved: 0,
120+
maxPossible: 0,
121+
isRegression: false,
122+
unsupported: false,
123+
};
119124
const refStatus = refDepth.unsupported
120125
? "unsupported"
121126
: (refCell?.status ?? "unshipped");
@@ -141,7 +146,12 @@ function ParityCategorySection({
141146
const cell = cellIndex.get(`${int.slug}/${feature.id}`);
142147
const depth: DepthResult = cell
143148
? deriveDepth(cell, liveStatus)
144-
: { achieved: 0, isRegression: false, unsupported: false };
149+
: {
150+
achieved: 0,
151+
maxPossible: 0,
152+
isRegression: false,
153+
unsupported: false,
154+
};
145155
const cellStatus = depth.unsupported
146156
? "unsupported"
147157
: (cell?.status ?? "unshipped");

0 commit comments

Comments
 (0)