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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
refactor(recovery): trim summary support rows
rcourtman4c41103cf05a
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 2269f0c514..18801a8ba1 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -716,6 +716,10 @@ instead of behaving like a recovery-only executive summary.That support band should stay genuinely short, usually two or three compactrows rather than four-item micro reports, so the operator can scan the summaryas orientation instead of reading each card like a dense checklist.+Those support rows should also stay signal-driven. Recovery summary cards+should omit zero-value or low-value support rows like `Primary Item` or `Peak+Day` when they do not materially improve operator triage, so the top strip+stays closer to storage's orientation-first rhythm.That same summary-scan rule should also trim derivative rows that restate theheadline instead of adding a new operator question. `Freshness` should not addan extra `<24h` row under a `fresh in 24h` headline, `Protected Footprint`diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsxindex 69a8a9dd0c..4b4add4488 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx@@ -62,7 +62,6 @@ describe('RecoverySummary', () => {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('Healthy')).toBeInTheDocument();expect(screen.getByText('Failed')).toBeInTheDocument();expect(screen.getByText('<1h')).toBeInTheDocument();@@ -77,8 +76,10 @@ describe('RecoverySummary', () => {expect(screen.queryByText('<7d')).not.toBeInTheDocument();expect(screen.queryByText('<24h')).not.toBeInTheDocument();expect(screen.queryByText('Primary Platform')).not.toBeInTheDocument();+ expect(screen.queryByText('Primary Item')).not.toBeInTheDocument();expect(screen.queryByText('Avg / Day')).not.toBeInTheDocument();expect(screen.queryByText('Peak Throughput')).not.toBeInTheDocument();+ expect(screen.queryByText('Peak Day')).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.tsxindex 4e5d3c54b8..936823dfde 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx@@ -62,33 +62,44 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {});const handleTimeRangeChange = (range: string) =>props.onTimeRangeChange?.(range as RecoverySummaryTimeRange);- const postureRows = createMemo(() => [- {- label: 'Healthy',- value: healthyCount(),- valueClass: 'text-emerald-600 dark:text-emerald-400',- },- {- label: 'Stale',- value: postureSummary().stale,- valueClass: 'text-amber-600 dark:text-amber-400',- },- {- label: 'Failed',- value: postureSummary().failed + postureSummary().neverSucceeded,- valueClass: 'text-rose-600 dark:text-rose-400',- },- ]);- const freshnessRows = createMemo(() => [- {- label: '>7d',- value: freshnessBuckets().find((bucket) => bucket.key === 'over7d')?.count ?? 0,- },- {- label: 'Never Succeeded',- value: summary().neverSucceeded,- },- ]);+ const postureRows = createMemo(+ () =>+ [+ {+ label: 'Healthy',+ value: healthyCount(),+ valueClass: 'text-emerald-600 dark:text-emerald-400',+ },+ postureSummary().failed + postureSummary().neverSucceeded > 0+ ? {+ label: 'Failed',+ value: postureSummary().failed + postureSummary().neverSucceeded,+ valueClass: 'text-rose-600 dark:text-rose-400',+ }+ : null,+ postureSummary().stale > 0+ ? {+ label: 'Stale',+ value: postureSummary().stale,+ valueClass: 'text-amber-600 dark:text-amber-400',+ }+ : null,+ postureSummary().warning > 0+ ? {+ label: 'Warning',+ value: postureSummary().warning,+ valueClass: 'text-amber-600 dark:text-amber-400',+ }+ : null,+ postureSummary().running > 0+ ? {+ label: 'Running',+ value: postureSummary().running,+ valueClass: 'text-blue-600 dark:text-blue-400',+ }+ : null,+ ].filter(Boolean) as Array<{ label: string; value: string | number; valueClass?: string }>,+ );const freshWithin24hCount = createMemo(() =>(freshnessBuckets().find((bucket) => bucket.key === 'under1h')?.count ?? 0) +@@ -97,6 +108,25 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {const freshWithin1hCount = createMemo(() => freshnessBuckets().find((bucket) => bucket.key === 'under1h')?.count ?? 0,);+ const freshnessRows = createMemo(+ () =>+ [+ {+ label: '<1h',+ value: freshWithin1hCount(),+ },+ {+ label: '>7d',+ value: freshnessBuckets().find((bucket) => bucket.key === 'over7d')?.count ?? 0,+ },+ summary().neverSucceeded > 0+ ? {+ label: 'Never Succeeded',+ value: summary().neverSucceeded,+ }+ : null,+ ].filter(Boolean) as Array<{ label: string; value: string | number; valueClass?: string }>,+ );const MetricRows = (rowProps: {rows: Array<{ label: string; value: string | number; valueClass?: string }>;@@ -151,12 +181,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<div class="text-[11px] text-muted">fresh in 24h</div></div><div class="border-t border-border-subtle pt-1.5">- <MetricRows- rows={[- { label: '<1h', value: freshWithin1hCount() },- ...freshnessRows(),- ]}- />+ <MetricRows rows={freshnessRows()} /></div></div></SummaryMetricCard>@@ -173,7 +198,6 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<MetricRowsrows={[{ label: 'Platforms', value: platformCoverage().platformCount },- { label: 'Primary Item', value: itemCoverage().primaryItemLabel ?? 'n/a' },]}/></div>@@ -197,7 +221,6 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<MetricRowsrows={[{ label: 'Days Active', value: activity().activeDays },- { 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.tsxindex 72b9e831f1..5eee56ee86 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -448,7 +448,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).queryByText('Primary Item')).not.toBeInTheDocument();+ expect(within(summary).getByText(/item types/i)).toBeInTheDocument();expect(within(summary).getAllByText(/platforms/i).length).toBeGreaterThan(0);expect(within(summary).queryByText('Primary Platform')).not.toBeInTheDocument();});