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): tighten recovery surface hierarchy
rcourtman503377afb1ec
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 8b9e2cfe17..3100fa3e6d 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -448,6 +448,10 @@ first scroll window. `RecoverySummary.tsx` and the workspace shell in`Recovery.tsx` should compress posture, coverage, and mode framing into conciseoperator panels instead of stacking multiple dashboard-like slabs that push themain inventory or event table too far down the page.+That same workspace shell should stay a compact control strip rather than a+second summary card: the protected-items versus recovery-events switcher belongs+close to the active table surface, and it should not restate table counts that+are already carried by the selected tab labels or the summary frame above.That same summary contract now also includes platform- and item-coverageframing through `frontend-modern/src/utils/recoverySummaryPresentation.ts`, sothe first visible recovery overview explicitly shows which protected item@@ -469,6 +473,11 @@ protected estate into one endless slab; it should page or otherwise bound theprimary inventory table so the workspace, filters, and adjacent activity panelremain readable as one monitoring surface instead of dissolving into a raw listdump.+That same hierarchy rule also applies to the activity panel below the primary+workspace. `RecoveryActivitySection.tsx` should read as timeline analysis for+the selected history window, not as a second copy of the page-level posture+summary, so its framing should emphasize recovery-point cadence and focused+history context rather than re-announcing the full protected-estate health mix.The same owned vocabulary applies to recovery events as well:`frontend-modern/src/utils/recoveryTablePresentation.ts` must keep thehistory-table `type` column labeled as `Item Type` within recovery surfaces sodiff --git a/frontend-modern/src/components/Recovery/Recovery.tsx b/frontend-modern/src/components/Recovery/Recovery.tsxindex bd24dd84a7..2ec4a16ee2 100644--- a/frontend-modern/src/components/Recovery/Recovery.tsx+++ b/frontend-modern/src/components/Recovery/Recovery.tsx@@ -488,41 +488,33 @@ const Recovery: Component = () => {<Cardpadding="none"tone="card"- class="overflow-hidden border-border bg-surface shadow-[0_10px_24px_rgba(2,6,23,0.1)]"+ class="overflow-hidden border-border-subtle bg-surface">- <div class="border-b border-border-subtle/80 bg-surface px-4 py-4">- <div class="flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between">+ <div class="border-b border-border-subtle/80 bg-surface px-4 py-3">+ <div class="flex flex-col gap-2.5 lg:flex-row lg:items-center lg:justify-between"><div><div class="text-xs font-semibold uppercase tracking-[0.18em] text-slate-400">Recovery Workspace</div>- <div class="mt-1.5 max-w-2xl text-sm leading-6 text-muted">+ <div class="mt-1 max-w-2xl text-sm leading-6 text-muted">Protected inventory first, event drill-in second, with the same item-firstfilters and route state.</div></div>- <div class="flex flex-wrap items-center gap-2 text-xs">- <span class="rounded-full border border-border-subtle bg-surface-hover/70 px-2.5 py-1 text-base-content">- {filteredRollups().length} protected items+ <Show when={rollupId().trim().length > 0}>+ <span class="inline-flex w-fit items-center rounded-full border border-amber-500/25 bg-amber-500/10 px-2.5 py-1 text-xs text-amber-200">+ Focused drill-in</span>- <span class="rounded-full border border-border-subtle bg-surface-hover/70 px-2.5 py-1 text-base-content">- {recoveryPoints.meta().total} recovery events- </span>- <Show when={rollupId().trim().length > 0}>- <span class="rounded-full border border-amber-500/25 bg-amber-500/10 px-2.5 py-1 text-amber-200">- Focused drill-in- </span>- </Show>- </div>+ </Show></div></div>- <div class="bg-surface-alt/35 px-4 py-2.5">+ <div class="bg-surface-alt/25 px-4 py-2"><Subtabsvalue={workspaceView()}onChange={(value) => setWorkspaceView(value as RecoveryWorkspaceView)}ariaLabel="Recovery data view"listClass="flex flex-wrap items-center gap-3"- tabClass="min-h-10 px-2 py-2.5 text-sm"+ tabClass="min-h-9 px-2 py-2 text-sm"tabs={[{value: 'inventory',diff --git a/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsx b/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsxindex be2ac722b6..436b432246 100644--- a/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryActivitySection.tsx@@ -83,38 +83,34 @@ const rangeOptions: Array<7 | 30 | 90 | 365> = [7, 30, 90, 365];export const RecoveryActivitySection: Component<RecoveryActivitySectionProps> = (props) => (<Cardpadding="sm"- class="h-full border-border bg-surface-hover shadow-[0_10px_24px_rgba(2,6,23,0.1)]"+ class="h-full border-border bg-surface shadow-[0_10px_24px_rgba(2,6,23,0.1)]"><div class="mb-3 flex flex-col gap-3"><div class="flex flex-col gap-2 lg:flex-row lg:items-start lg:justify-between"><div class="flex flex-col gap-2">+ <div class="flex flex-wrap items-baseline gap-x-2 gap-y-1">+ <div class="text-[11px] font-semibold uppercase tracking-[0.18em] text-slate-400">+ Recovery Activity+ </div>+ <div class="text-sm text-muted">+ Daily recovery points across the selected history window.+ </div>+ </div><div class="flex flex-wrap items-center gap-2 text-xs">- <span class="rounded-full border border-border-subtle bg-surface/70 px-2.5 py-1 font-medium text-base-content">- {props.overallRollupsSummary().total} protected+ <span class="rounded-full border border-border-subtle bg-surface-alt/40 px-2.5 py-1 text-base-content">+ {props.activitySummary().totalPoints} recovery points+ </span>+ <span class="rounded-full border border-border-subtle bg-surface-alt/40 px-2.5 py-1 text-base-content">+ {props.activitySummary().averagePerDay.toFixed(1)} per day+ </span>+ <span class="rounded-full border border-border-subtle bg-surface-alt/40 px-2.5 py-1 text-base-content">+ {props.activitySummary().activeDays} active days</span>- <Show when={props.overallRollupsSummary().total - props.overallRollupsSummary().stale > 0}>- <span class="rounded-full border border-emerald-500/25 bg-emerald-500/8 px-2.5 py-1 text-emerald-300">- {props.overallRollupsSummary().total - props.overallRollupsSummary().stale} healthy- </span>- </Show><Show when={props.overallRollupsSummary().stale > 0}><span class="rounded-full border border-amber-500/25 bg-amber-500/8 px-2.5 py-1 text-amber-200">{props.overallRollupsSummary().stale} stale</span></Show>- <Show when={props.overallRollupsSummary().neverSucceeded > 0}>- <span class="rounded-full border border-rose-500/25 bg-rose-500/8 px-2.5 py-1 text-rose-200">- {props.overallRollupsSummary().neverSucceeded} never succeeded- </span>- </Show>- </div>- <div class="flex flex-wrap items-baseline gap-x-2 gap-y-1">- <div class="text-[11px] font-semibold uppercase tracking-[0.18em] text-slate-400">- Recovery Activity- </div>- <div class="text-sm text-slate-300">- Daily recovery points across the selected history window.- </div></div></div><div class="flex flex-wrap items-center gap-2">@@ -136,14 +132,6 @@ export const RecoveryActivitySection: Component<RecoveryActivitySectionProps> =</Show></div></div>- <div class="flex flex-wrap items-center gap-3 text-xs text-muted">- <span>{props.activitySummary().totalPoints} recovery points</span>- <span>{props.activitySummary().averagePerDay.toFixed(1)} per day</span>- <span>{props.activitySummary().activeDays} active days</span>- <Show when={props.selectedDateKey()}>- <span>{props.selectedDateLabel()}</span>- </Show>- </div></div><Show@@ -155,7 +143,7 @@ export const RecoveryActivitySection: Component<RecoveryActivitySectionProps> =props.activeNamespaceLabel()}>- <div class="mb-1 flex flex-wrap items-center gap-1.5">+ <div class="mb-2 flex flex-wrap items-center gap-1.5"><Show when={props.selectedDateKey()}>{(() => {const chip = getRecoveryFilterChipPresentation('day');@@ -247,12 +235,9 @@ export const RecoveryActivitySection: Component<RecoveryActivitySectionProps> =</div></Show>- <div class="grid gap-3 lg:grid-cols-[minmax(0,1fr)_auto]">- <div class="rounded-xl border border-border-subtle bg-surface p-3">+ <div class="rounded-xl border border-border-subtle bg-surface-alt/35 p-3"><div class={`mb-3 flex flex-wrap items-center justify-between gap-3 ${RECOVERY_TIMELINE_RANGE_GROUP_CLASS}`}>- <div class="text-xs font-semibold uppercase tracking-wide text-muted">- Selected range- </div>+ <div class="text-xs font-semibold uppercase tracking-wide text-muted">Selected range</div><div class={RECOVERY_TIMELINE_RANGE_GROUP_CLASS}><For each={rangeOptions}>{(range) => (@@ -279,18 +264,25 @@ export const RecoveryActivitySection: Component<RecoveryActivitySectionProps> =}><div class="relative">- <div class="mb-2 flex items-center justify-end gap-3 text-[10px] text-muted">+ <div class="mb-2 flex flex-wrap items-center justify-between gap-2 text-[10px] text-muted">+ <Show when={props.selectedDateKey()}>+ <span class="rounded-full border border-border-subtle bg-surface px-2 py-1">+ {props.selectedDateLabel()}+ </span>+ </Show><div class={RECOVERY_TIMELINE_LEGEND_ITEM_CLASS}><span class={`h-2.5 w-2.5 rounded ${getRecoveryArtifactModePresentation('snapshot').segmentClassName}`} />{getRecoveryArtifactModePresentation('snapshot').aggregateLabel}</div>- <div class={RECOVERY_TIMELINE_LEGEND_ITEM_CLASS}>- <span class={`h-2.5 w-2.5 rounded ${getRecoveryArtifactModePresentation('local').segmentClassName}`} />- {getRecoveryArtifactModePresentation('local').aggregateLabel}- </div>- <div class={RECOVERY_TIMELINE_LEGEND_ITEM_CLASS}>- <span class={`h-2.5 w-2.5 rounded ${getRecoveryArtifactModePresentation('remote').segmentClassName}`} />- {getRecoveryArtifactModePresentation('remote').aggregateLabel}+ <div class="flex flex-wrap items-center gap-3">+ <div class={RECOVERY_TIMELINE_LEGEND_ITEM_CLASS}>+ <span class={`h-2.5 w-2.5 rounded ${getRecoveryArtifactModePresentation('local').segmentClassName}`} />+ {getRecoveryArtifactModePresentation('local').aggregateLabel}+ </div>+ <div class={RECOVERY_TIMELINE_LEGEND_ITEM_CLASS}>+ <span class={`h-2.5 w-2.5 rounded ${getRecoveryArtifactModePresentation('remote').segmentClassName}`} />+ {getRecoveryArtifactModePresentation('remote').aggregateLabel}+ </div></div></div>@@ -436,7 +428,6 @@ export const RecoveryActivitySection: Component<RecoveryActivitySectionProps> =</div></div></Show>- </div></div></Card>);diff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsxindex c41d00b0cd..b8b52b7096 100644--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx@@ -191,7 +191,7 @@ export const RecoveryProtectedInventorySection: Component<<Cardpadding="none"tone="card"- class="overflow-hidden border-border bg-surface shadow-[0_10px_24px_rgba(2,6,23,0.1)]"+ class="overflow-hidden border-border-subtle bg-surface shadow-[0_10px_24px_rgba(2,6,23,0.1)]"><div class="border-b border-border-subtle/80 bg-surface px-4 py-4"><div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">@@ -366,7 +366,7 @@ export const RecoveryProtectedInventorySection: Component<] as const).map(([column, label]) => (<TableHead- class={`px-3 py-2.5 whitespace-nowrap text-left text-[11px] sm:text-xs font-semibold uppercase tracking-wider cursor-pointer select-none hover:text-base-content transition-colors${+ class={`sticky top-0 z-[1] bg-surface-alt/95 px-3 py-3 whitespace-nowrap text-left text-[11px] sm:text-xs font-semibold uppercase tracking-[0.18em] cursor-pointer select-none hover:text-base-content transition-colors${column === 'type'? ' hidden md:table-cell w-[96px]': column === 'platform'@@ -423,11 +423,11 @@ export const RecoveryProtectedInventorySection: Component<return (<TableRow- class="cursor-pointer border-b border-border/80 odd:bg-surface even:bg-surface-alt/20 hover:bg-surface-hover/95"+ class="cursor-pointer border-b border-border/80 odd:bg-surface even:bg-surface-alt/35 transition-colors hover:bg-surface-hover/95"onClick={() => props.onSelectRollup(rollup.rollupId)}><TableCell- class={`relative max-w-[420px] truncate whitespace-nowrap px-3 py-2.5 text-base-content ${+ class={`relative max-w-[420px] truncate whitespace-nowrap px-3 py-3 text-base-content ${issueTone === 'rose' || issueTone === 'blue' ? 'font-medium' : ''}`}title={label}@@ -450,7 +450,7 @@ export const RecoveryProtectedInventorySection: Component<</div></TableCell>- <TableCell class="hidden md:table-cell whitespace-nowrap px-3 py-2.5">+ <TableCell class="hidden md:table-cell whitespace-nowrap px-3 py-3"><Showwhen={itemTypePresentation}fallback={<span class="text-muted">—</span>}@@ -465,7 +465,7 @@ export const RecoveryProtectedInventorySection: Component<</Show></TableCell>- <TableCell class="hidden lg:table-cell whitespace-nowrap px-3 py-2.5">+ <TableCell class="hidden lg:table-cell whitespace-nowrap px-3 py-3"><div class="flex flex-wrap gap-1.5"><For each={platforms}>{(platform) => {@@ -481,7 +481,7 @@ export const RecoveryProtectedInventorySection: Component<</TableCell><TableCell- class={`whitespace-nowrap px-3 py-2.5 ${getRecoveryRollupAgeTextClass(+ class={`whitespace-nowrap px-3 py-3 ${getRecoveryRollupAgeTextClass(rollup,nowMs,)}`}@@ -502,7 +502,7 @@ export const RecoveryProtectedInventorySection: Component<)}</TableCell>- <TableCell class="whitespace-nowrap px-3 py-2.5">+ <TableCell class="whitespace-nowrap px-3 py-3"><spanclass={`inline-flex rounded px-1.5 py-0.5 text-[10px] font-medium ${getRecoveryOutcomeBadgeClass(outcome,diff --git a/frontend-modern/src/components/Recovery/RecoverySummary.tsx b/frontend-modern/src/components/Recovery/RecoverySummary.tsxindex 17aa667ac3..285cced37a 100644--- a/frontend-modern/src/components/Recovery/RecoverySummary.tsx+++ b/frontend-modern/src/components/Recovery/RecoverySummary.tsx@@ -225,46 +225,73 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {</div></section>- <div class="grid gap-3">- <section class="rounded-xl border border-border-subtle bg-surface-alt/35 p-4">- <div class="text-xs font-semibold uppercase tracking-[0.18em] text-muted">- Protected Footprint- </div>- <div class="mt-3 grid gap-3 sm:grid-cols-2">- <div class="rounded-lg border border-border-subtle bg-surface p-3">- <div class="text-[11px] uppercase tracking-wide text-muted">Item Types</div>- <div class="mt-1 text-3xl font-semibold tracking-tight text-base-content">- {itemCoverage().itemTypeCount}- </div>+ <section class="rounded-xl border border-border-subtle bg-surface-alt/35 p-4">+ <div class="space-y-4">+ <div>+ <div class="text-xs font-semibold uppercase tracking-[0.18em] text-muted">+ Protected Footprint</div>- <div class="rounded-lg border border-border-subtle bg-surface p-3">- <div class="text-[11px] uppercase tracking-wide text-muted">Primary Item</div>- <div class="mt-1 text-xl font-semibold leading-7 text-base-content">- {itemCoverage().primaryItemLabel ?? 'n/a'}+ <div class="mt-3 grid gap-3 sm:grid-cols-2">+ <div class="rounded-lg border border-border-subtle bg-surface p-3">+ <div class="text-[11px] uppercase tracking-wide text-muted">Item Types</div>+ <div class="mt-1 text-3xl font-semibold tracking-tight text-base-content">+ {itemCoverage().itemTypeCount}+ </div></div>- </div>- <div class="rounded-lg border border-border-subtle bg-surface p-3">- <div class="text-[11px] uppercase tracking-wide text-muted">Platforms</div>- <div class="mt-1 text-3xl font-semibold tracking-tight text-base-content">- {platformCoverage().platformCount}+ <div class="rounded-lg border border-border-subtle bg-surface p-3">+ <div class="text-[11px] uppercase tracking-wide text-muted">Primary Item</div>+ <div class="mt-1 text-xl font-semibold leading-7 text-base-content">+ {itemCoverage().primaryItemLabel ?? 'n/a'}+ </div></div>- </div>- <div class="rounded-lg border border-border-subtle bg-surface p-3">- <div class="text-[11px] uppercase tracking-wide text-muted">Primary Platform</div>- <div class="mt-1 text-xl font-semibold leading-7 text-base-content">- {platformCoverage().primaryPlatformLabel ?? 'n/a'}+ <div class="rounded-lg border border-border-subtle bg-surface p-3">+ <div class="text-[11px] uppercase tracking-wide text-muted">Platforms</div>+ <div class="mt-1 text-3xl font-semibold tracking-tight text-base-content">+ {platformCoverage().platformCount}+ </div>+ </div>+ <div class="rounded-lg border border-border-subtle bg-surface p-3">+ <div class="text-[11px] uppercase tracking-wide text-muted">Primary Platform</div>+ <div class="mt-1 text-xl font-semibold leading-7 text-base-content">+ {platformCoverage().primaryPlatformLabel ?? 'n/a'}+ </div></div></div>- </div>- <div class="mt-3 space-y-3">- <Show when={itemCoverage().items.length > 0}>+ <div class="mt-3 space-y-3">+ <Show when={itemCoverage().items.length > 0}>+ <div>+ <div class="mb-2 text-[11px] font-semibold uppercase tracking-wide text-muted">+ Item Types+ </div>+ <div class="flex flex-wrap gap-2">+ <For each={itemCoverage().items.slice(0, 6)}>+ {(item) => (+ <div class="inline-flex items-center gap-2 rounded-md border border-border-subtle bg-surface px-2.5 py-1.5 text-sm">+ <span class={`rounded px-1.5 py-0.5 text-[10px] font-medium ${item.toneClass}`}>+ {item.label}+ </span>+ <span class="tabular-nums text-base-content">{item.count}</span>+ <span class="text-muted">{item.percent}%</span>+ </div>+ )}+ </For>+ </div>+ </div>+ </Show><div><div class="mb-2 text-[11px] font-semibold uppercase tracking-wide text-muted">- Item Types+ 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>+ </Show><div class="flex flex-wrap gap-2">- <For each={itemCoverage().items.slice(0, 6)}>+ <For each={platformCoverage().items.slice(0, 6)}>{(item) => (<div class="inline-flex items-center gap-2 rounded-md border border-border-subtle bg-surface px-2.5 py-1.5 text-sm"><span class={`rounded px-1.5 py-0.5 text-[10px] font-medium ${item.toneClass}`}>@@ -277,100 +304,75 @@ export const RecoverySummary: Component<RecoverySummaryProps> = (props) => {</For></div></div>- </Show>- <div>- <div class="mb-2 text-[11px] font-semibold uppercase tracking-wide text-muted">- 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>- </Show>- <div class="flex flex-wrap gap-2">- <For each={platformCoverage().items.slice(0, 6)}>- {(item) => (- <div class="inline-flex items-center gap-2 rounded-md border border-border-subtle bg-surface px-2.5 py-1.5 text-sm">- <span class={`rounded px-1.5 py-0.5 text-[10px] font-medium ${item.toneClass}`}>- {item.label}- </span>- <span class="tabular-nums text-base-content">{item.count}</span>- <span class="text-muted">{item.percent}%</span>- </div>- )}- </For>- </div></div></div>- </section>- <section class="rounded-xl border border-border-subtle bg-surface-alt/35 p-4">- <div class="text-xs font-semibold uppercase tracking-[0.18em] text-muted">- Recent History- </div>- <div class="mt-3 grid gap-3">- <div class="rounded-lg border border-border-subtle bg-surface p-3">- <div class="grid gap-3 sm:grid-cols-3">- <div>- <div class="text-[11px] uppercase tracking-wide text-muted">- Recovery Points- </div>- <div class="mt-1 text-2xl font-semibold text-base-content">- {activity().totalEvents}- </div>- </div>- <div>- <div class="text-[11px] uppercase tracking-wide text-muted">Avg / Day</div>- <div class="mt-1 text-2xl font-semibold text-base-content">- {activity().averagePerDay.toFixed(1)}- </div>- </div>- <div>- <div class="text-[11px] uppercase tracking-wide text-muted">Days Active</div>- <div class="mt-1 text-2xl font-semibold text-base-content">- {activity().activeDays}- </div>- </div>- </div>+ <div class="border-t border-border-subtle/80 pt-4">+ <div class="text-xs font-semibold uppercase tracking-[0.18em] text-muted">+ Recent History</div>- <Show- when={activity().hasData}- fallback={- <div class="rounded-lg border border-dashed border-border-subtle bg-surface p-3 text-sm text-muted">- {props.seriesFailed?.() ? 'Trend data unavailable' : 'No recovery activity yet'}- </div>- }- >+ <div class="mt-3 grid gap-3"><div class="rounded-lg border border-border-subtle bg-surface p-3">- <div class="grid gap-3 sm:grid-cols-2">+ <div class="grid gap-3 sm:grid-cols-3"><div>- <div class="text-[11px] uppercase tracking-wide text-muted">Peak Day</div>- <div class="mt-1 text-base font-semibold text-base-content">- {activity().busiestLabel ?? 'n/a'}+ <div class="text-[11px] uppercase tracking-wide text-muted">+ Recovery Points</div>- <div class="mt-1 text-sm text-muted">- {activity().busiestCount} recovery point- {activity().busiestCount === 1 ? '' : 's'}+ <div class="mt-1 text-2xl font-semibold text-base-content">+ {activity().totalEvents}</div></div><div>- <div class="text-[11px] uppercase tracking-wide text-muted">Latest Activity</div>- <div class="mt-1 text-base font-semibold text-base-content">- {activity().latestLabel ?? 'n/a'}+ <div class="text-[11px] uppercase tracking-wide text-muted">Avg / Day</div>+ <div class="mt-1 text-2xl font-semibold text-base-content">+ {activity().averagePerDay.toFixed(1)}</div>- <div class="mt-1 text-sm text-muted">- {activity().latestCount} recovery point- {activity().latestCount === 1 ? '' : 's'}+ </div>+ <div>+ <div class="text-[11px] uppercase tracking-wide text-muted">Days Active</div>+ <div class="mt-1 text-2xl font-semibold text-base-content">+ {activity().activeDays}</div></div></div></div>- </Show>+ <Show+ when={activity().hasData}+ fallback={+ <div class="rounded-lg border border-dashed border-border-subtle bg-surface p-3 text-sm text-muted">+ {props.seriesFailed?.() ? 'Trend data unavailable' : 'No recovery activity yet'}+ </div>+ }+ >+ <div class="rounded-lg border border-border-subtle bg-surface p-3">+ <div class="grid gap-3 sm:grid-cols-2">+ <div>+ <div class="text-[11px] uppercase tracking-wide text-muted">Peak Day</div>+ <div class="mt-1 text-base font-semibold text-base-content">+ {activity().busiestLabel ?? 'n/a'}+ </div>+ <div class="mt-1 text-sm text-muted">+ {activity().busiestCount} recovery point+ {activity().busiestCount === 1 ? '' : 's'}+ </div>+ </div>+ <div>+ <div class="text-[11px] uppercase tracking-wide text-muted">Latest Activity</div>+ <div class="mt-1 text-base font-semibold text-base-content">+ {activity().latestLabel ?? 'n/a'}+ </div>+ <div class="mt-1 text-sm text-muted">+ {activity().latestCount} recovery point+ {activity().latestCount === 1 ? '' : 's'}+ </div>+ </div>+ </div>+ </div>+ </Show>+ </div></div>- </section>- </div>+ </div>+ </section></div></div></Card>diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex d05b060743..c7599a71c2 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -687,6 +687,71 @@ describe('Recovery', () => {});});+ it('bounds the protected inventory surface with pagination for larger estates', async () => {+ const largeRollups = Array.from({ length: 26 }, (_, index) => ({+ rollupId: `estate:item-${index + 1}`,+ itemResourceId: `estate-item-${index + 1}`,+ display: {+ itemLabel: `estate-item-${index + 1}`,+ itemType: index % 2 === 0 ? 'container' : 'vm',+ },+ lastAttemptAt: '2026-02-14T10:00:00.000Z',+ lastSuccessAt: '2026-02-14T10:00:00.000Z',+ lastOutcome: 'success',+ platforms: ['proxmox-pbs'],+ }));++ apiFetchMock.mockImplementation(async (url: string) => {+ const u = new URL(url, 'http://localhost');+ if (u.pathname === '/api/recovery/rollups') {+ return {+ data: largeRollups,+ meta: { page: 1, limit: 500, total: largeRollups.length, totalPages: 1 },+ };+ }+ if (u.pathname === '/api/recovery/points') {+ return {+ data: [],+ meta: { page: 1, limit: 500, total: 0, totalPages: 1 },+ };+ }+ if (u.pathname === '/api/recovery/facets') {+ return {+ data: {+ clusters: [],+ nodesAgents: [],+ namespaces: [],+ itemTypes: ['container', 'vm'],+ hasSize: true,+ hasVerification: false,+ hasEntityId: false,+ },+ };+ }+ if (u.pathname === '/api/recovery/series') {+ return {+ data: [+ { day: '2026-02-13', total: 1, snapshot: 1, local: 0, remote: 0 },+ { day: '2026-02-14', total: 1, snapshot: 0, local: 1, remote: 0 },+ ],+ };+ }+ throw new Error(`Unhandled apiFetch URL: ${url}`);+ });++ render(() => <Recovery />);++ expect(await screen.findByText('Showing 1 - 24 of 26 protected items')).toBeInTheDocument();+ expect(screen.getByText('Page 1 / 2')).toBeInTheDocument();++ fireEvent.click(screen.getByRole('button', { name: 'Next' }));++ await waitFor(() => {+ expect(screen.getByText('Showing 25 - 26 of 26 protected items')).toBeInTheDocument();+ expect(screen.getByText('Page 2 / 2')).toBeInTheDocument();+ });+ });+it('persists and restores the protected stale-only filter through the canonical recovery URL', async () => {mockLocationSearch = '?stale=%20TRUE%20';