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): add canonical protected filter reset
rcourtman87a77c4e59ea
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex dbb9c76d04..6e7cb49de8 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -779,7 +779,10 @@ That same shared page-controls contract applies to recovery search width too.The protected-items and recovery-events workspaces should keep the search fieldon the standard full-width shared search row, and any counts or utility cuesshould live in the toolbar actions instead of narrowing the search row through-recovery-local grid overrides or width hacks.+recovery-local grid overrides or width hacks. Protected-items controls should+also use the same shared `Reset all` page-controls action pattern as storage+and workloads when visible filters are active, instead of forcing operators to+clear each inventory filter manually.That same handoff should keep recovery on the standard Pulse summary density.`RecoverySummary.tsx` should use the shared default `SummaryPanel` /`SummaryMetricCard` rhythm that infrastructure and workloads use, instead ofdiff --git a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsxindex c9d99e646d..5226720797 100644--- a/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx+++ b/frontend-modern/src/components/Recovery/RecoveryProtectedInventorySection.tsx@@ -195,6 +195,15 @@ export const RecoveryProtectedInventorySection: Component<}});+ const resetProtectedFilters = () => {+ props.setQueryFilter('');+ props.setPlatformFilter('all');+ props.setItemTypeFilter('all');+ props.setHistoryOutcomeFilter('all');+ props.setVerificationFilter('all');+ props.setProtectedStaleOnly(false);+ };+return (<div class="flex flex-col gap-3"><Show when={!props.kioskMode}>@@ -220,6 +229,12 @@ export const RecoveryProtectedInventorySection: Component<onToggle: () => setProtectedFiltersOpen((open) => !open),count: protectedActiveFilterCount(),}}+ resetAction={{+ show: protectedActiveFilterCount() > 0,+ onClick: resetProtectedFilters,+ label: 'Reset all',+ title: 'Reset protected item filters',+ }}showFilters={!props.isMobile || protectedFiltersOpen()}toolbarClass="gap-3 lg:flex-nowrap">diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsxindex c9289876c9..1b9b5091dc 100644--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx@@ -682,6 +682,24 @@ describe('Recovery', () => {});});+ it('uses the shared reset action for protected item filters', async () => {+ render(() => <Recovery />);++ expect(await screen.findByText('VM 123')).toBeInTheDocument();+ expect(screen.queryByRole('button', { name: 'Reset all' })).not.toBeInTheDocument();++ fireEvent.change(screen.getByLabelText('Platform'), { target: { value: 'truenas' } });++ const resetButton = await screen.findByRole('button', { name: 'Reset all' });+ fireEvent.click(resetButton);++ await waitFor(() => {+ expect(screen.getByLabelText('Platform')).toHaveValue('all');+ expect(screen.getByText('VM 123')).toBeInTheDocument();+ expect(screen.queryByRole('button', { name: 'Reset all' })).not.toBeInTheDocument();+ });+ });+it('keeps recovery filter surfaces on canonical platform vocabulary', async () => {render(() => <Recovery />);