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
Keep availability view choices stable
pulse-triage[bot]3be0ceacc1b9
diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsxindex 6cde6f7ace..32acabab08 100644--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx@@ -180,11 +180,7 @@ export function StandalonePageSurface() {),);const setAvailabilityView = (view: AvailabilityChecksView) => {- const defaultView = resolveAvailabilityChecksView(undefined, model().availabilityChecks.length);- setSearchParams(- { [STANDALONE_QUERY_PARAMS.view]: view === defaultView ? null : view },- { replace: true },- );+ setSearchParams({ [STANDALONE_QUERY_PARAMS.view]: view }, { replace: true });};const availabilityPosture = createMemo(() =>buildStandalonePostureSummary(model().availabilityChecks),diff --git a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsxindex 34532b89b1..326d253609 100644--- a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx+++ b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx@@ -321,7 +321,7 @@ describe('StandalonePageSurface', () => {expect(screen.getByTestId('availability-checks-table')).toHaveAttribute('data-view', 'fleet');});- it('keeps an explicit table choice stable for an estate-sized inventory', () => {+ it('keeps every explicit presentation choice stable for an estate-sized inventory', () => {mocks.pathname = '/standalone/availability';mocks.searchParams = { view: 'table' };mocks.useUnifiedResources.mockReturnValue({@@ -347,7 +347,7 @@ describe('StandalonePageSurface', () => {const props = mocks.AvailabilityChecksTable.mock.calls.at(-1)?.[0];props?.onViewChange?.('fleet');- expect(mocks.setSearchParams).toHaveBeenCalledWith({ view: null }, { replace: true });+ expect(mocks.setSearchParams).toHaveBeenCalledWith({ view: 'fleet' }, { replace: true });props?.onViewChange?.('table');expect(mocks.setSearchParams).toHaveBeenCalledWith({ view: 'table' }, { replace: true });