Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

refactor(recovery): trim summary support rows

rcourtman776d281f87bf
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index e2270d989b..9ee3c81813 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -689,6 +689,12 @@ instead of behaving like a recovery-only executive summary.
That support band should stay genuinely short, usually two or three compact
rows rather than four-item micro reports, so the operator can scan the summary
as orientation instead of reading each card like a dense checklist.
+That same summary-scan rule should also trim derivative rows that restate the
+headline instead of adding a new operator question. `Freshness` should not add
+an extra `<24h` row under a `fresh in 24h` headline, `Protected Footprint`
+should not spend a row repeating a primary-platform label when platform count
+already frames the footprint, and `Recent History` should stay on a short
+activity readout rather than carrying a four-line micro report.
That same summary-card rule should also avoid inline distribution bars or
dashboard-style subvisualizations inside the cards when the same signal can be
expressed as short metric rows. Recovery summary cards should stay on the
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
index 3e6f0f6062..69a8a9dd0c 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx
@@ -63,12 +63,9 @@ describe('RecoverySummary', () => {
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();
expect(screen.getByText('Healthy')).toBeInTheDocument();
expect(screen.getByText('Failed')).toBeInTheDocument();
expect(screen.getByText('<1h')).toBeInTheDocument();
- expect(screen.getByText('<24h')).toBeInTheDocument();
expect(screen.getByText('>7d')).toBeInTheDocument();
expect(screen.getByText('fresh in 24h')).toBeInTheDocument();
expect(screen.getByText('Latest Activity')).toBeInTheDocument();
@@ -78,6 +75,9 @@ describe('RecoverySummary', () => {
expect(screen.queryByText('protected items')).not.toBeInTheDocument();
expect(screen.queryByText('Running')).not.toBeInTheDocument();
expect(screen.queryByText('<7d')).not.toBeInTheDocument();
+ expect(screen.queryByText('<24h')).not.toBeInTheDocument();
+ expect(screen.queryByText('Primary Platform')).not.toBeInTheDocument();
+ expect(screen.queryByText('Avg / Day')).not.toBeInTheDocument();
expect(screen.queryByText('Peak Throughput')).not.toBeInTheDocument();
expect(screen.queryByText('stale items')).not.toBeInTheDocument();
});
diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
index f2a63c9be2..4e5d3c54b8 100644
--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx
+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx
@@ -80,10 +80,6 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
},
]);
const freshnessRows = createMemo(() => [
- {
- label: '<24h',
- value: freshnessBuckets().find((bucket) => bucket.key === 'under24h')?.count ?? 0,
- },
{
label: '>7d',
value: freshnessBuckets().find((bucket) => bucket.key === 'over7d')?.count ?? 0,
@@ -178,7 +174,6 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
rows={[
{ label: 'Platforms', value: platformCoverage().platformCount },
{ label: 'Primary Item', value: itemCoverage().primaryItemLabel ?? 'n/a' },
- { label: 'Primary Platform', value: platformCoverage().primaryPlatformLabel ?? 'n/a' },
]}
/>
</div>
@@ -202,7 +197,6 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {
<MetricRows
rows={[
{ label: 'Days Active', value: activity().activeDays },
- { label: 'Avg / Day', value: activity().averagePerDay.toFixed(1) },
{ label: 'Peak Day', value: activity().busiestLabel ?? 'n/a' },
{ label: 'Latest Activity', value: activity().latestLabel ?? 'n/a' },
]}
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index 3d457b188f..bcdec219be 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -417,8 +417,8 @@ describe('Recovery', () => {
const summary = await screen.findByTestId('recovery-summary');
expect(within(summary).getByText('Protected Footprint')).toBeInTheDocument();
expect(within(summary).getByText('Primary Item')).toBeInTheDocument();
- expect(within(summary).getByText('Primary Platform')).toBeInTheDocument();
expect(within(summary).getAllByText(/platforms/i).length).toBeGreaterThan(0);
+ expect(within(summary).queryByText('Primary Platform')).not.toBeInTheDocument();
});
it('normalizes legacy provider-shaped recovery payloads before rendering', async () => {