diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md index f3a659ee2..e700ce61c 100644 --- a/docs/release-control/v6/internal/subsystems/storage-recovery.md +++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md @@ -704,6 +704,10 @@ instead of feature-local spacing overrides. Recovery may select the shared default `SummaryPanel` / `SummaryMetricCard` density mode, and it should not reintroduce one-off padding hacks or right-side duplicate KPI blocks inside `RecoverySummary.tsx`. +That same one-headline rule applies to the footprint card too. `Protected +Footprint` should lead with one dominant item-type count and carry platform +coverage as a support row instead of presenting dual headline counts plus mix +chips inside the same card. That same scan-first rule applies to the workspace strip. Recovery should not show tab labels and then repeat the same workspace count as standalone text in the same strip; the workspace tabs should carry their own counts, while the diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx index 4fed4cf8c..3e6f0f606 100644 --- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx +++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx @@ -61,6 +61,7 @@ describe('RecoverySummary', () => { expect(screen.getAllByText(/attention/i).length).toBeGreaterThan(0); expect(screen.getByText(/recovery points/i)).toBeInTheDocument(); expect(screen.getByText(/item types/i)).toBeInTheDocument(); + expect(screen.getByText('Platforms')).toBeInTheDocument(); expect(screen.getByText('Primary Item')).toBeInTheDocument(); expect(screen.getByText('Primary Platform')).toBeInTheDocument(); expect(screen.getByText('Avg / Day')).toBeInTheDocument(); diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsx index 0d93600fb..f2a63c9be 100644 --- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx +++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx @@ -93,8 +93,6 @@ export const RecoverySummary: Component = (props) => { value: summary().neverSucceeded, }, ]); - const platformMixPreview = createMemo(() => platformCoverage().items.slice(0, 2)); - const itemMixPreview = createMemo(() => itemCoverage().items.slice(0, 2)); const freshWithin24hCount = createMemo( () => (freshnessBuckets().find((bucket) => bucket.key === 'under1h')?.count ?? 0) + @@ -169,44 +167,21 @@ export const RecoverySummary: Component = (props) => {
-
-
-
- {itemCoverage().itemTypeCount} -
-
item types
-
-
-
- {platformCoverage().platformCount} -
-
platforms
+
+
+ {itemCoverage().itemTypeCount}
+
item types
-
- - {(item) => ( - - {item.label} {item.count} - - )} - - - {(platform) => ( - - {platform.label} {platform.count} - - )} - -