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): shorten summary support bands
rcourtman60e902ab9afb
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex fa620a176f..3ac9fcc687 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -723,7 +723,7 @@ stale, and footprint telemetry in multiple stacked readouts inside one card.Recovery summary cards should keep one dominant metric with one short supportband so the strip scans at the same speed as infrastructure and workloadsinstead of behaving like a recovery-only executive summary.-That support band should stay genuinely short, usually two or three compact+That support band should stay genuinely short, usually one or two 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 cardsdiff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsxindex 4b4add4488..a0ec800ddf 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx@@ -64,7 +64,6 @@ describe('RecoverySummary', () => {expect(screen.getByText('Platforms')).toBeInTheDocument();expect(screen.getByText('Healthy')).toBeInTheDocument();expect(screen.getByText('Failed')).toBeInTheDocument();- expect(screen.getByText('<1h')).toBeInTheDocument();expect(screen.getByText('>7d')).toBeInTheDocument();expect(screen.getByText('fresh in 24h')).toBeInTheDocument();expect(screen.getByText('Latest Activity')).toBeInTheDocument();@@ -74,7 +73,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('<1h')).not.toBeInTheDocument();expect(screen.queryByText('<24h')).not.toBeInTheDocument();+ expect(screen.queryByText('Multi-platform')).not.toBeInTheDocument();expect(screen.queryByText('Primary Platform')).not.toBeInTheDocument();expect(screen.queryByText('Primary Item')).not.toBeInTheDocument();expect(screen.queryByText('Avg / Day')).not.toBeInTheDocument();diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsxindex 936823dfde..d8b347b4c0 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx@@ -63,42 +63,43 @@ 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',- },- 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 rows: Array<{ label: string; value: string | number; valueClass?: string }> = [];+ const failedCount = postureSummary().failed + postureSummary().neverSucceeded;+ if (healthyCount() > 0) {+ rows.push({+ label: 'Healthy',+ value: healthyCount(),+ valueClass: 'text-emerald-600 dark:text-emerald-400',+ });+ }+ if (failedCount > 0) {+ rows.push({+ label: 'Failed',+ value: failedCount,+ valueClass: 'text-rose-600 dark:text-rose-400',+ });+ } else if (postureSummary().stale > 0) {+ rows.push({+ label: 'Stale',+ value: postureSummary().stale,+ valueClass: 'text-amber-600 dark:text-amber-400',+ });+ } else if (postureSummary().warning > 0) {+ rows.push({+ label: 'Warning',+ value: postureSummary().warning,+ valueClass: 'text-amber-600 dark:text-amber-400',+ });+ } else if (postureSummary().running > 0) {+ rows.push({+ label: 'Running',+ value: postureSummary().running,+ valueClass: 'text-blue-600 dark:text-blue-400',+ });+ }+ return rows.slice(0, 2);+ },);const freshWithin24hCount = createMemo(() =>@@ -109,25 +110,50 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {() => freshnessBuckets().find((bucket) => bucket.key === 'under1h')?.count ?? 0,);const freshnessRows = createMemo(- () =>- [- {+ () => {+ const rows: Array<{ label: string; value: string | number; valueClass?: string }> = [];+ const over7dCount = freshnessBuckets().find((bucket) => bucket.key === 'over7d')?.count ?? 0;+ if (over7dCount > 0) {+ rows.push({ label: '>7d', value: over7dCount });+ }+ if (summary().neverSucceeded > 0) {+ rows.push({+ label: 'Never Succeeded',+ value: summary().neverSucceeded,+ });+ }+ if (freshWithin1hCount() > 0) {+ rows.push({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 }>,+ });+ }+ return rows.slice(0, 2);+ },);+ const footprintRows = createMemo(() => {+ const rows: Array<{ label: string; value: string | number; valueClass?: string }> = [+ { label: 'Platforms', value: platformCoverage().platformCount },+ ];+ if (platformCoverage().multiPlatformCount > 0) {+ rows.push({+ label: 'Multi-platform',+ value: platformCoverage().multiPlatformCount,+ });+ }+ return rows.slice(0, 2);+ });++ const historyRows = createMemo(() => {+ const rows: Array<{ label: string; value: string | number; valueClass?: string }> = [];+ if (activity().latestLabel) {+ rows.push({ label: 'Latest Activity', value: activity().latestLabel });+ }+ rows.push({ label: 'Days Active', value: activity().activeDays });+ return rows.slice(0, 2);+ });+const MetricRows = (rowProps: {rows: Array<{ label: string; value: string | number; valueClass?: string }>;}) => (@@ -195,11 +221,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<div class="text-[11px] text-muted">item types</div></div><div class="border-t border-border-subtle pt-1.5">- <MetricRows- rows={[- { label: 'Platforms', value: platformCoverage().platformCount },- ]}- />+ <MetricRows rows={footprintRows()} /></div></div></SummaryMetricCard>@@ -218,12 +240,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<div class="text-[11px] text-muted">recovery points</div></div><div class="border-t border-border-subtle pt-1.5">- <MetricRows- rows={[- { label: 'Days Active', value: activity().activeDays },- { label: 'Latest Activity', value: activity().latestLabel ?? 'n/a' },- ]}- />+ <MetricRows rows={historyRows()} /></div></div></SummaryMetricCard>