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): move workspace counts into tabs
rcourtmane3ffcbe69c0f
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex d2208cba7e..ec02b0184c 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -697,6 +697,10 @@ 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 notreintroduce one-off padding hacks inside `RecoverySummary.tsx`.+That same scan-first rule applies to the workspace strip. Recovery should not+show tab labels and then repeat the same workspace count as standalone text in+the same strip; the workspace tabs should carry their own counts, while the+remaining strip cues focus on issues or drill-in context.That same inventory surface should also follow the established monitoring-tablescan pattern in its first column. Protected-item rows should lead with a clearstatus cue, the primary item name, and compact badge-backed item/platformdiff --git a/frontend-modern/src/components/Recovery/Recovery.tsx b/frontend-modern/src/components/Recovery/Recovery.tsxindex 9a0d70e1a8..0d5c7809fa 100644--- a/frontend-modern/src/components/Recovery/Recovery.tsx+++ b/frontend-modern/src/components/Recovery/Recovery.tsx@@ -495,8 +495,14 @@ const Recovery: Component = () => {listClass="flex flex-wrap items-center gap-1"tabClass="min-h-6 px-2 py-1 text-xs"tabs={[- { value: 'inventory', label: 'Protected items' },- { value: 'events', label: 'Recovery events' },+ {+ value: 'inventory',+ label: `Protected items ${filteredRollups().length}`,+ },+ {+ value: 'events',+ label: `Recovery events ${recoveryPoints.meta().total}`,+ },]}/><Show when={rollupId().trim().length > 0}>diff --git a/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsxindex b232770bcc..5a894d7525 100644--- a/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryHistorySection.tsx@@ -140,10 +140,6 @@ export const RecoveryHistorySection: Component<RecoveryHistorySectionProps> = (p<Show when={props.workspaceControls}><div class="shrink-0">{props.workspaceControls}</div></Show>- <span class="font-medium text-base-content">- {props.recoveryPoints.meta().total} event- {props.recoveryPoints.meta().total === 1 ? '' : 's'}- </span><Show when={props.groupedByDay().length > 0}><span>{props.groupedByDay().length} day groupdiff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsxindex 533bf836e7..d0f66f6192 100644--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx@@ -212,10 +212,6 @@ export const RecoveryProtectedInventorySection: Component<<Show when={props.workspaceControls}><div class="shrink-0">{props.workspaceControls}</div></Show>- <span class="font-medium text-base-content">- {sortedRollups().length}{' '}- {sortedRollups().length === 1 ? 'protected item' : 'protected items'}- </span><Show when={props.rollupsSummary().stale > 0}><span class={`${getRecoveryRollupStatusPillClass('stale')} px-2 py-0.5`}>{props.rollupsSummary().stale} stalediff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex 13c8be8382..93bc74f5c1 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -215,11 +215,16 @@ describe('Recovery', () => {expect(within(inventoryControls).getByRole('tab', { name: /recovery events/i }),).toBeInTheDocument();- expect(within(inventoryControls).getByText(/^2 protected items$/i)).toBeInTheDocument();+ expect(+ within(inventoryControls).getByRole('tab', { name: /protected items 2/i }),+ ).toBeInTheDocument();+ expect(+ within(inventoryControls).getByRole('tab', { name: /recovery events 0/i }),+ ).toBeInTheDocument();expect(screen.queryByText('Protected inventory')).not.toBeInTheDocument();expect(screen.queryByText('Needs Attention')).not.toBeInTheDocument();expect(screen.getAllByText(/Page 1 \/ 1/i).length).toBeGreaterThan(0);- expect(screen.getAllByText(/^2 protected items$/i)).toHaveLength(1);+ expect(screen.queryByText(/^2 protected items$/i)).not.toBeInTheDocument();expect(screen.getByRole('tab', { name: /recovery events/i })).toHaveAttribute('aria-selected','false',@@ -269,9 +274,14 @@ describe('Recovery', () => {expect(within(historyControls).getByRole('tab', { name: /recovery events/i }),).toBeInTheDocument();- expect(within(historyControls).getByText(/1 event/i)).toBeInTheDocument();+ expect(+ within(historyControls).getByRole('tab', { name: /protected items 2/i }),+ ).toBeInTheDocument();+ expect(+ within(historyControls).getByRole('tab', { name: /recovery events 1/i }),+ ).toBeInTheDocument();expect(within(historyControls).getByText(/^1 day group$/i)).toBeInTheDocument();- expect(screen.getAllByText(/1 event/i).length).toBeGreaterThan(0);+ expect(screen.getAllByText(/^1 event$/i)).toHaveLength(1);expect(screen.getAllByText(/^1 day group$/i)).toHaveLength(1);expect(within(historyTable).getByText('Item Type')).toBeInTheDocument();expect(within(historyTable).getByText('Item')).toBeInTheDocument();