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 withdrawn Settings navigation hidden during access retry
pulse-triage[bot]9445fbc14bb9
diff --git a/docs/release-control/v6/internal/subsystems/organization-settings.md b/docs/release-control/v6/internal/subsystems/organization-settings.mdindex b00a2aa30f..a755548a80 100644--- a/docs/release-control/v6/internal/subsystems/organization-settings.md+++ b/docs/release-control/v6/internal/subsystems/organization-settings.md@@ -74,6 +74,7 @@ unmounts capability-gated panels and withdraws shared Settings capability links.It keeps the existing safe General fallback and explains that access is unknown,not that permission was denied or authentication disabled. Explicit Retry onlychecks status again; it does not change permissions or repeat a mutation.+Pending Retry keeps withdrawn navigation hidden until the new check succeeds.Status reads are deduplicated, cancellable and not automatically retried. Paneldisposal cancels the read and prevents late status from restoring local or shareddiff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 13e1121837..92ae06b1b4 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -447,7 +447,9 @@ describe('settings architecture guardrails', () => {expect(settingsSource).toContain('canMountSettingsPanel(currentTab, securityStatus()?.settingsCapabilities)',);- expect(settingsAccessSource).toContain('securityStatus() !== null || !securityStatusLoading()');+ expect(settingsAccessSource).toMatch(+ /securityStatus\(\) !== null \|\| !securityStatusLoading\(\) \|\| securityStatusError\(\)/,+ );expect(settingsAccessSource).toContain("DEFAULT_SETTINGS_TAB,\n 'system-general'");});diff --git a/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsx b/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsxindex d32a1c2677..fb85d67b74 100644--- a/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.refresh.test.tsx@@ -155,8 +155,19 @@ describe('Settings capability refresh withdrawal', () => {await first;expect(view.queryByText('Privileged panel')).toBeNull();expect(access.securityStatusError()).toBe(true);- apiFetchMock.mockResolvedValue(response());- await access.loadSecurityStatus();+ const recovery = deferred<ReturnType<typeof response>>();+ apiFetchMock.mockReturnValue(recovery.promise);+ const retry = access.loadSecurityStatus();+ expect(access.flatTabs().some((tab) => tab.id === 'security-auth')).toBe(false);+ expect(+ access+ .filteredTabGroups()+ .flatMap((group) => group.items)+ .some((tab) => tab.id === 'security-auth'),+ ).toBe(false);+ recovery.resolve(response());+ await retry;+ expect(access.flatTabs().some((tab) => tab.id === 'security-auth')).toBe(true);expect(access.securityStatusError()).toBe(false);expect(view.queryByText('Privileged panel')).not.toBeNull();expect(sessionCanReadInfrastructureSettings()).toBe(true);diff --git a/frontend-modern/src/components/Settings/useSettingsAccess.ts b/frontend-modern/src/components/Settings/useSettingsAccess.tsindex e369491d31..797d91c578 100644--- a/frontend-modern/src/components/Settings/useSettingsAccess.ts+++ b/frontend-modern/src/components/Settings/useSettingsAccess.ts@@ -108,7 +108,10 @@ export function useSettingsAccess({// A failed status request is a resolved denial, not permission to expose// capability-gated routes. Keep an existing successful status usable while// it refreshes, but withdraw it if that refresh cannot verify access.- const settingsCapabilitiesResolved = securityStatus() !== null || !securityStatusLoading();+ // A failed check stays resolved while Retry is pending: it must not make+ // previously withdrawn navigation look available again.+ const settingsCapabilitiesResolved =+ securityStatus() !== null || !securityStatusLoading() || securityStatusError();return {hasFeature,