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): compact recovery summary density
rcourtman62ea6a8edb6e
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 475b886011..cd2f54cd1f 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -643,6 +643,11 @@ the shared `SummaryPanel` and `SummaryMetricCard` primitives the wayinfrastructure and workloads do, and recovery item-type labels should renderthrough canonical workload/resource badge classes instead of addingrecovery-only wrapper chrome around VM, container, or other resource badges.+That same summary frame should stay compact and scan-first, not turn into a+recovery-specific mini report. Recovery summary cards should prefer concise+counts, bars, and badge-backed coverage cues over tall explanatory copy blocks+so the protected-item table takes over the page at roughly the same visual+density as the infrastructure and workloads monitoring surfaces.That shared unified-resource dependency now also includes policy-governedresource metadata on the frontend decode path: storage and recovery surfacesthat route through `frontend-modern/src/hooks/useUnifiedResources.ts` mustdiff --git a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsxindex caa4b42b7f..7a8640c0e8 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.test.tsx@@ -65,9 +65,6 @@ describe('RecoverySummary', () => {expect(screen.getByText('Platform Mix')).toBeInTheDocument();expect(screen.getByText('2 protected')).toBeInTheDocument();expect(screen.getByText('1 healthy')).toBeInTheDocument();- expect(- screen.getByText((_, element) => element?.textContent === '2 item types across 2 platforms.'),- ).toBeInTheDocument();expect(screen.getByText('Never succeeded')).toBeInTheDocument();});});diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsxindex 3a1b2acc22..7a84701d12 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx@@ -117,7 +117,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {</For></div></div>- <div class="space-y-2">+ <div class="grid grid-cols-2 gap-x-3 gap-y-2"><For each={postureSegments()}>{(segment) => (<div class="flex items-center justify-between gap-3 text-sm">@@ -137,20 +137,13 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<div class="mb-2 text-[11px] font-medium uppercase tracking-wide text-muted">Freshness</div>- <div class="space-y-2">+ <div class="flex flex-wrap gap-2"><For each={freshnessBuckets()}>{(bucket) => (- <div class="flex items-center gap-3 text-sm">- <span class="w-10 shrink-0 text-base-content">{bucket.label}</span>- <div class="h-2 flex-1 overflow-hidden rounded-full bg-surface-alt">- <div- class={`h-full rounded-full ${bucket.color}`}- style={{ width: `${Math.max(bucket.percent, bucket.count > 0 ? 8 : 0)}%` }}- />- </div>- <span class="w-7 text-right tabular-nums text-base-content">- {bucket.count}- </span>+ <div class="inline-flex items-center gap-2 rounded-md border border-border-subtle bg-surface-alt/35 px-2.5 py-1 text-xs">+ <span class={`h-2 w-2 rounded-full ${bucket.color}`} />+ <span class="text-base-content">{bucket.label}</span>+ <span class="tabular-nums text-base-content">{bucket.count}</span></div>)}</For>@@ -222,12 +215,6 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {</div></dl>- <div class="text-sm text-muted">- {itemCoverage().itemTypeCount} item type- {itemCoverage().itemTypeCount === 1 ? '' : 's'} across {platformCoverage().platformCount}{' '}- platform{platformCoverage().platformCount === 1 ? '' : 's'}.- </div>-<Show when={itemCoverage().items.length > 0}><div><div class="mb-2 text-[11px] font-medium uppercase tracking-wide text-muted">@@ -252,9 +239,9 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {Platform Mix</div><Show when={platformCoverage().multiPlatformCount > 0}>- <div class="mb-2 text-sm text-muted">- {platformCoverage().multiPlatformCount} protected item- {platformCoverage().multiPlatformCount === 1 ? '' : 's'} span multiple platforms.+ <div class="mb-2 text-xs text-muted">+ {platformCoverage().multiPlatformCount} multi-platform item+ {platformCoverage().multiPlatformCount === 1 ? '' : 's'}</div></Show><div class="flex flex-wrap gap-2">@@ -285,7 +272,7 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {><div class="flex h-full flex-col gap-3"><Show when={recentWindowLabel()}>- <div class="text-sm text-muted">{recentWindowLabel()}</div>+ <div class="text-xs text-muted">{recentWindowLabel()}</div></Show><dl class="space-y-2 text-sm"><div class="flex items-center justify-between gap-3 border-b border-border-subtle pb-2">@@ -309,17 +296,14 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {<dd class="font-semibold text-base-content">{activity().latestLabel ?? 'n/a'}</dd></div></dl>-- <div class="grid grid-cols-2 gap-3 border-t border-border-subtle pt-3">- <div>- <div class="text-[11px] uppercase tracking-wide text-muted">Peak Throughput</div>- <div class="mt-1 text-2xl font-semibold text-base-content">{activity().busiestCount}</div>- <div class="mt-1 text-sm text-muted">{activity().busiestLabel ?? 'n/a'}</div>+ <div class="flex flex-wrap gap-2 border-t border-border-subtle pt-3 text-xs">+ <div class="rounded-md border border-border-subtle bg-surface-alt/35 px-2.5 py-1">+ <span class="text-muted">Peak Throughput</span>+ <span class="ml-2 font-semibold text-base-content">{activity().busiestCount}</span></div>- <div>- <div class="text-[11px] uppercase tracking-wide text-muted">Latest Throughput</div>- <div class="mt-1 text-2xl font-semibold text-base-content">{activity().latestCount}</div>- <div class="mt-1 text-sm text-muted">{activity().latestLabel ?? 'n/a'}</div>+ <div class="rounded-md border border-border-subtle bg-surface-alt/35 px-2.5 py-1">+ <span class="text-muted">Latest Throughput</span>+ <span class="ml-2 font-semibold text-base-content">{activity().latestCount}</span></div></div></div>diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex c031c1bdc4..5f9b1c6017 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -316,11 +316,7 @@ describe('Recovery', () => {it('surfaces item-first recovery coverage in the unified summary', async () => {render(() => <Recovery />);- expect(- await screen.findByText(- (_, element) => element?.textContent === '2 item types across 2 platforms.',- ),- ).toBeInTheDocument();+ await screen.findByText('Platform Mix');expect(screen.getByText('Primary Item')).toBeInTheDocument();expect(screen.getByText('Primary Platform')).toBeInTheDocument();expect(screen.getByText('Platform Mix')).toBeInTheDocument();