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): differentiate freshness summary signal
rcourtman8267eddcf460
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex db0c02bcda..d2208cba7e 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -689,6 +689,10 @@ expressed as short metric rows. Recovery summary cards should stay on theshared monitoring-card rhythm of one dominant metric plus compact supportingrows rather than reviving bespoke visual telemetry that makes the strip readheavier than the rest of Pulse.+That same differentiation rule applies across cards too. `Recovery Posture`+and `Freshness` should not lead with the same stale/attention headline; the+freshness card should emphasize recent successful coverage such as fresh-in-24h+reach, while posture owns the attention-state headline.That same density rule should route through the shared summary primitivesinstead of feature-local spacing overrides. Recovery may select the sharedcompact `SummaryPanel` / `SummaryMetricCard` density mode, but it should notdiff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsxindex 7d6dd99be6..f17928e834 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx@@ -68,13 +68,14 @@ describe('RecoverySummary', () => {expect(screen.getByText('Failed')).toBeInTheDocument();expect(screen.getByText('<24h')).toBeInTheDocument();expect(screen.getByText('<7d')).toBeInTheDocument();+ expect(screen.getByText('fresh in 24h')).toBeInTheDocument();+ expect(screen.getByText('stale items')).toBeInTheDocument();expect(screen.getByText('Peak Throughput')).toBeInTheDocument();expect(screen.getByText('Latest Activity')).toBeInTheDocument();expect(screen.getByText('2 protected')).toBeInTheDocument();expect(screen.getByText('1 attention')).toBeInTheDocument();expect(screen.getAllByText(/Never Succeeded/i).length).toBeGreaterThan(0);expect(screen.getByText('need attention')).toBeInTheDocument();- expect(screen.getByText('stale items')).toBeInTheDocument();expect(screen.queryByText('protected items')).not.toBeInTheDocument();});diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsxindex c4e771b5a4..1941c5e70d 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx@@ -107,6 +107,11 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {]);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) ++ (freshnessBuckets().find((bucket) => bucket.key === 'under24h')?.count ?? 0),+ );const MetricRows = (rowProps: {rows: Array<{ label: string; value: string | number; valueClass?: string }>;@@ -182,16 +187,16 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<div class="flex h-full flex-col gap-2"><div class="flex items-end justify-between gap-3"><div>- <div class="text-xl font-semibold tabular-nums text-amber-600 dark:text-amber-400">- {summary().stale}+ <div class="text-xl font-semibold tabular-nums text-emerald-600 dark:text-emerald-400">+ {freshWithin24hCount()}</div>- <div class="text-[11px] text-muted">stale items</div>+ <div class="text-[11px] text-muted">fresh in 24h</div></div><div class="text-right text-[11px]">- <div class="font-semibold tabular-nums text-base-content">- {freshnessRows()[0]?.value ?? 0}+ <div class="font-semibold tabular-nums text-amber-600 dark:text-amber-400">+ {summary().stale}</div>- <div class="text-muted">fresh in 24h</div>+ <div class="text-muted">stale items</div></div></div><div class="border-t border-border-subtle pt-1.5">