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 platform landing provider-first
rcourtmane96b046fc399
diff --git a/docs/release-control/v6/internal/records/provider-first-platform-landing-surface-2026-05-23.md b/docs/release-control/v6/internal/records/provider-first-platform-landing-surface-2026-05-23.mdnew file mode 100644index 0000000000..0b72a108ff--- /dev/null+++ b/docs/release-control/v6/internal/records/provider-first-platform-landing-surface-2026-05-23.md@@ -0,0 +1,32 @@+# Provider-First Platform Landing Surface++Date: 2026-05-23+Lane: L8 frontend primitives+Assertion: `provider-first-platform-landing-surface`++## Outcome++Pulse v6 authenticated root and login handoff now resolves to the first visible+provider or runtime platform in canonical shell order: Proxmox, Containers,+Kubernetes, TrueNAS, vSphere, then Agents only when the estate is agent-only.++Agents is a standalone Pulse-agent-primary machine surface. It must not become+the primary estate landing when provider evidence exists, and legacy+Infrastructure remains route-compatible rather than the default operational+surface.++The app shell also no longer prewarms retired Infrastructure or Workloads chart+caches as a generic authenticated side effect. Platform-first startup stays+route-module warm and data-light until the selected platform page owns its+normal resource/table query.++## Proof++- `selectFirstVisiblePrimaryInfrastructureNavigationId` uses the canonical+ provider-first order and falls back to Agents only for agent-only estates.+- Root/login redirect uses that selector through `getDefaultWorkspaceRoute`.+- Desktop and mobile primary nav, command palette, keyboard shortcuts, route+ preloading, and active-tab helpers now keep provider platforms ahead of+ Agents.+- `useAppRuntimeState` does not import or prewarm Infrastructure or Workloads+ chart caches.diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex 14d93e36ac..ed5149dfd1 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -7183,7 +7183,7 @@},{"id": "infrastructure-default-landing-surface",- "summary": "Pulse v6 lands authenticated users directly on Infrastructure. The Dashboard page, route, primary-nav item, dashboard summary API, and dashboard-specific overview widgets are retired rather than preserved as a wallboard or compatibility surface; first-session and setup completion handoffs must route users into Infrastructure or Add infrastructure.",+ "summary": "Superseded by `provider-first-platform-landing-surface`: the 2026-04-29 Dashboard retirement moved authenticated users off Dashboard and onto Infrastructure/Add infrastructure, but current v6 runtime handoff now belongs to provider-first platform selection rather than legacy Infrastructure.","kind": "contract","decided_at": "2026-04-29","subsystem_ids": [@@ -7261,6 +7261,18 @@"L15","L16"]+ },+ {+ "id": "provider-first-platform-landing-surface",+ "summary": "Pulse v6 authenticated root and login handoff lands on the first visible provider or runtime platform in canonical shell order: Proxmox, Containers, Kubernetes, TrueNAS, vSphere, then Agents only for agent-only estates. Agents is the standalone Pulse-agent-primary machine surface, not the primary estate landing when provider evidence exists; legacy Infrastructure remains route-compatible rather than the default operational surface.",+ "kind": "contract",+ "decided_at": "2026-05-23",+ "subsystem_ids": [+ "frontend-primitives"+ ],+ "lane_ids": [+ "L8"+ ]}]}diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex ed31e3eda2..f5b7be88ca 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -678,6 +678,10 @@ platform routes (`/proxmox/overview`, `/proxmox/storage`, `/kubernetes/pods`,etc.) as canonical anchors rather than the retired top-level paths; adding aplatform tab through the same shell files must not fork Assistant or Patrolshell state or smuggle in AI-owned platform reads.+Post-auth `/` and `/login` resolution follows that same provider-first+platform order, with Agents only as the agent-only fallback, so the+assistant-capable shell never treats Agents or legacy Infrastructure as the+default estate surface when provider evidence exists.The route-backed Proxmox platform tab is app-shell navigation only. Adding thetab through `frontend-modern/src/App.tsx` and@@ -1043,9 +1047,9 @@ availability plus reset behavior must stay independent of that settings-navpresentation choice.Authenticated `/login` recovery belongs to that same route shell boundary:once login succeeds, `frontend-modern/src/App.tsx` must resolve `/login`-through the canonical post-auth landing route instead of leaving the-assistant-capable authenticated shell stranded on a route that only exists for-logged-out presentation.+through the canonical provider-first post-auth landing route instead of leaving+the assistant-capable authenticated shell stranded on a route that only exists+for logged-out presentation.App-shell route preloading may include the Patrol route module, but it mustremain module-only. It must not prefetch AI settings, model state, findings,chat sessions, or assistant context while the drawer is closed.diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 8bc841625d..327351fdd1 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -1493,12 +1493,12 @@ That same authenticated route shell also owns the canonical post-auth landingpath. `frontend-modern/src/App.tsx` and`frontend-modern/src/pages/RuntimeHome.tsx` must send authenticated `/`through the runtime-home landing contract first: existing operators and-self-hosted sessions land on the governed Infrastructure route, while hosted-workspaces with no connected infrastructure stay on the same Infrastructure-and Add infrastructure ownership path before the workspace normalizes back to-the single `/settings/infrastructure` shell. That same shared landing contract-must not regress into a root-only settings redirect or a dashboard-only-shortcut that strands first-time hosted tenants.+self-hosted sessions land on the first visible provider/runtime platform in+the canonical shell order, with Agents only for agent-only estates. Hosted+workspaces with no connected infrastructure may still fall through to the+single `/settings/infrastructure` ownership path, but the shell must not+regress into a root-only settings redirect, legacy Infrastructure default, or+dashboard-only shortcut that strands first-time hosted tenants.That same landing contract also owns authenticated `/login`: once the browserhas a valid session, `frontend-modern/src/App.tsx` must route `/login`through that same runtime-home landing boundary instead of leaving the@@ -1507,7 +1507,10 @@ Authenticated app-shell route and chart prewarming may run from`frontend-modern/src/App.tsx` and `frontend-modern/src/useAppRuntimeState.ts`only as auth-neutral performance work: it must not change hosted organizationbootstrap, presentation-policy loading, commercial posture loading, or upgrade-prompt visibility.+prompt visibility. The runtime bootstrap must not prewarm retired+Infrastructure or Workloads summary-chart caches as a generic authenticated+side effect; route-module warming stays in `App.tsx`, and chart payloads belong+to the route or interaction that renders them.The Pro license settings surface now follows the same rule as well. Changes to`frontend-modern/src/components/Settings/ProLicensePanel.tsx` must carry thiscontract and the dedicated Pro-license proof file instead of remaining andiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 849d9ff755..6fd00a8506 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1322,24 +1322,24 @@ not a replacement status card, CTA band, or page-local nested card.storage summary emphasis, and workloads summary emphasis must all route throughthat helper instead of maintaining page-local copies of the same hover/focusrules.- `frontend-modern/src/App.tsx` must land `/` on the Infrastructure route and- let the governed Infrastructure empty state route first-time operators into- the `Add infrastructure` source picker, instead of preserving a separate- root-only compatibility shell or an agent-only install jump that drifts from- the rest of the onboarding contract.+ `frontend-modern/src/App.tsx` must land authenticated `/` and `/login`+ handoffs on the first visible provider/runtime platform in the canonical+ shell order: Proxmox, Containers, Kubernetes, TrueNAS, vSphere, then Agents+ only for agent-only estates. Legacy Infrastructure remains route-compatible+ and may still guide first-time operators into `Add infrastructure`, but it+ is not the default operational landing surface once provider evidence is+ present.The authenticated app shell's boot-time route preloads must be owned by`frontend-modern/src/routing/routePreload.ts` so top-level cold-tabreadiness cannot drift from the route-module preloader. Workloads,Recovery, Patrol, Alerts, Storage, and Settings are part of that sharedpreload contract.- Route-module preloads and idle chart-cache prewarming are separate shell+ Route-module preloads and chart-cache fetches are separate shellresponsibilities: the shared route preload inventory must stay module-only,- while chart payload warming must route through the owning summary-cache- utilities instead of mounting hidden pages or adding page-local boot logic.- The same entry-shell contract must also canonicalize authenticated- `/login`: once auth succeeds, the shared shell must resolve that route back- onto the governed Infrastructure landing path instead of rendering a page-local- not-found state inside the authenticated chrome.+ while chart payload warming must route through the route or interaction that+ renders the chart. `frontend-modern/src/useAppRuntimeState.ts` must not+ prewarm retired Infrastructure or Workloads summary-chart caches as a+ generic authenticated-shell side effect.24. Keep relay settings shell copy on the shared presentation owner in`frontend-modern/src/utils/relayPresentation.ts`. The route metadata in`settingsHeaderMeta.ts` and the leading `SettingsPanel` indiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 0da9b90e89..ae9f713dc6 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -626,6 +626,12 @@ shell clickable behind another overlay.follows the provider-first shell order as a hot-path hint: Proxmox remainsahead of Agents when both surfaces are available, while Agents stays inthe preload set so agent-only estates still get a warm first destination.+ The authenticated app shell must not separately prewarm retired+ Infrastructure or Workloads chart caches as a generic side effect; those+ chart fetches belong to the route that renders the chart surface or to the+ scoped table metric-history interaction that requested them. Platform+ landing should stay route-module warm and data-light until the selected+ platform page owns its normal resource/table query.Platform pages that embed `WorkloadsSurface` reuse the canonicalworkloads filter toolbar through the `showFilterToolbar` +`suppressPlatformFilter` props in `WorkloadsSurfaceProps`. The pagediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 8a708f0bff..23fc6286a9 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -808,9 +808,11 @@ a separate Docker-only or TrueNAS-local inventory path.plane boundary.Authenticated `/login` must follow that same shared app-shell contract:once login succeeds, `frontend-modern/src/App.tsx` must hand the browser- back to the governed Infrastructure landing route instead of leaving+ back to the governed provider-first landing route instead of leavingstorage/recovery-adjacent authenticated shells on a page-local not-found- route.+ route. Agents may only be that landing target in agent-only estates; legacy+ Infrastructure remains route-compatible and must not be restored as the+ default storage/recovery-adjacent operational surface.Authenticated-shell demo organization suppression on `frontend-modern/src/App.tsx`may hide top-bar org chrome for public demo posture, but it must not leakinto storage/recovery preview route ownership, first-session recovery copy,@@ -826,7 +828,10 @@ a separate Docker-only or TrueNAS-local inventory path.App-shell route preloading may include Storage and Recovery modules sotop-level tabs are warm after authentication, but it must not fetch storagesummary charts, recovery history, provider state, or preview data from- `frontend-modern/src/App.tsx` itself.+ `frontend-modern/src/App.tsx` itself. The shared runtime bootstrap must+ likewise avoid prewarming retired Infrastructure or Workloads chart caches+ as a generic authenticated-shell side effect; storage/recovery chart data+ stays owned by the route or interaction that renders it.The shared app shell's authenticated landing and primary-tab routing mayuse the infrastructure navigation model that includes both owning platformpages and runtime lenses such as Containers. Storage and recovery routediff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsxindex 6c4082b32d..1e89eb9798 100644--- a/frontend-modern/src/App.tsx+++ b/frontend-modern/src/App.tsx@@ -102,11 +102,11 @@ const RecoveryPage = lazy(() =>})),);const ProxmoxPage = lazy(() => import('./pages/Proxmox'));-const AgentsPage = lazy(() => import('./pages/Agents'));const DockerPage = lazy(() => import('./pages/Docker'));const KubernetesPage = lazy(() => import('./pages/Kubernetes'));const TrueNASPage = lazy(() => import('./pages/TrueNAS'));const VmwarePage = lazy(() => import('./pages/Vmware'));+const AgentsPage = lazy(() => import('./pages/Agents'));const AIIntelligencePage = lazy(() =>import('./pages/AIIntelligence').then((module) => ({ default: module.AIIntelligence })),);@@ -122,12 +122,12 @@ const ROOT_PATROL_PATH = PATROL_PATH;const STORAGE_PATH = buildStoragePath();const PRIMARY_INFRASTRUCTURE_ROUTE_BY_ID: Record<PrimaryInfrastructureNavId, string> = {- agents: buildAgentsPath(),proxmox: buildProxmoxPath(),docker: buildDockerPath(),kubernetes: buildKubernetesPath(),truenas: buildTrueNASPath(),vmware: buildVmwarePath(),+ agents: buildAgentsPath(),};function getDefaultWorkspaceRoute(@@ -565,8 +565,6 @@ function App() {<Route path={`${RECOVERY_PATH}/*`} component={RecoveryPage} /><Route path="/ceph" component={() => <Navigate href="/proxmox/ceph" />} /><Route path="/ceph/*" component={() => <Navigate href="/proxmox/ceph" />} />- <Route path={AGENTS_PATH} component={AgentsPage} />- <Route path={`${AGENTS_PATH}/*`} component={AgentsPage} /><Route path={PROXMOX_PATH} component={ProxmoxPage} /><Route path={`${PROXMOX_PATH}/*`} component={ProxmoxPage} /><Route path={DOCKER_PATH} component={DockerPage} />@@ -577,6 +575,8 @@ function App() {<Route path={`${TRUENAS_PATH}/*`} component={TrueNASPage} /><Route path={VMWARE_PATH} component={VmwarePage} /><Route path={`${VMWARE_PATH}/*`} component={VmwarePage} />+ <Route path={AGENTS_PATH} component={AgentsPage} />+ <Route path={`${AGENTS_PATH}/*`} component={AgentsPage} /><Route path="/alerts/*" component={AlertsPage} /><Route path={`${ROOT_PATROL_PATH}/*`} component={AIIntelligencePage} />diff --git a/frontend-modern/src/AppLayout.tsx b/frontend-modern/src/AppLayout.tsxindex 6b04e1bc26..e537255e11 100644--- a/frontend-modern/src/AppLayout.tsx+++ b/frontend-modern/src/AppLayout.tsx@@ -51,12 +51,12 @@ import { presentationPolicyHidesUpgradePrompts } from '@/stores/sessionPresentatimport { AI_CHAT_LAUNCHER_ARIA_LABEL, getAIChatLauncherTitle } from '@/utils/aiChatPresentation';import type { AppConnectionStatus } from '@/useAppRuntimeState';-const ROOT_AGENTS_PATH = buildAgentsPath();const ROOT_PROXMOX_PATH = buildProxmoxPath();const ROOT_DOCKER_PATH = buildDockerPath();const ROOT_KUBERNETES_PATH = buildKubernetesPath();const ROOT_TRUENAS_PATH = buildTrueNASPath();const ROOT_VMWARE_PATH = buildVmwarePath();+const ROOT_AGENTS_PATH = buildAgentsPath();const ROOT_ALERTS_PATH = '/alerts';const NAV_TAB_ICON_CLASS = 'w-4 h-4 shrink-0';const AI_CHAT_LAUNCHER_BUTTON_CLASS =@@ -206,12 +206,12 @@ export function AppLayout(props: AppLayoutProps) {// identify the current Pulse surface instead of every page reading// as the bare app name.const tabTitleByActive: Record<NonNullable<ReturnType<typeof getActiveTabForPath>>, string> = {- agents: 'Agents',proxmox: 'Proxmox',docker: 'Containers',kubernetes: 'Kubernetes',truenas: 'TrueNAS',vmware: 'vSphere',+ agents: 'Agents',alerts: 'Alerts',ai: 'Patrol',settings: 'Settings',@@ -229,12 +229,12 @@ export function AppLayout(props: AppLayoutProps) {buildPrimaryInfrastructureNavigationVisibility(props.state().resources || []),);const primaryInfrastructureRouteById: Record<PrimaryInfrastructureNavId, string> = {- agents: ROOT_AGENTS_PATH,proxmox: ROOT_PROXMOX_PATH,docker: ROOT_DOCKER_PATH,kubernetes: ROOT_KUBERNETES_PATH,truenas: ROOT_TRUENAS_PATH,vmware: ROOT_VMWARE_PATH,+ agents: ROOT_AGENTS_PATH,};const primaryWorkspacePath = createMemo(() => {const navId = selectFirstVisiblePrimaryInfrastructureNavigationId(diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.tsindex 9d6af06d2a..a7b89a38d7 100644--- a/frontend-modern/src/__tests__/App.architecture.test.ts+++ b/frontend-modern/src/__tests__/App.architecture.test.ts@@ -65,6 +65,9 @@ describe('App architecture', () => {expect(appRuntimeStateSource).not.toContain("import('@/components/Settings/Settings')");expect(appSource).toContain('const timeoutId = window.setTimeout(() => {');expect(appSource).toContain('void preloadAppShellRoutes();');+ expect(appRuntimeStateSource).not.toContain('fetchInfrastructureSummaryAndCache');+ expect(appRuntimeStateSource).not.toContain('fetchWorkloadsSummaryAndCache');+ expect(appRuntimeStateSource).not.toContain('requestIdleCallback');expect(appSource).toContain("const AgentsPage = lazy(() => import('./pages/Agents'));");expect(appSource).toContain('<Route path={AGENTS_PATH} component={AgentsPage} />');expect(appSource).toContain('<Route path={`${AGENTS_PATH}/*`} component={AgentsPage} />');@@ -83,6 +86,9 @@ describe('App architecture', () => {expect(routePreloadSource).toContain("id: 'kubernetes',");expect(routePreloadSource).toContain("id: 'truenas',");expect(routePreloadSource).toContain("id: 'vmware',");+ expect(routePreloadSource.indexOf("id: 'proxmox',")).toBeLessThan(+ routePreloadSource.indexOf("id: 'agents',"),+ );expect(appLayoutSource).toContain("id: 'agents',");expect(appLayoutSource).toContain("id: 'docker',");expect(appLayoutSource).toContain("id: 'kubernetes',");@@ -327,9 +333,8 @@ describe('App architecture', () => {expect(appRuntimeStateSource).toContain("eventBus.on('websocket_reconnected', handleWebSocketReconnected);",);- expect(appRuntimeStateSource).toContain(- 'const ROOT_INFRASTRUCTURE_PATH = buildInfrastructurePath();',- );+ expect(appRuntimeStateSource).not.toContain('buildInfrastructurePath');+ expect(appRuntimeStateSource).not.toContain('buildWorkloadsPath');expect(appRuntimeStateSource).not.toContain("const ROOT_DASHBOARD_PATH = '/dashboard';");expect(appRuntimeStateSource).not.toContain("import { startMetricsCollector } from '@/stores/metricsCollector';",diff --git a/frontend-modern/src/__tests__/AppLayout.test.tsx b/frontend-modern/src/__tests__/AppLayout.test.tsxindex 8f2df89ac2..997c4037f5 100644--- a/frontend-modern/src/__tests__/AppLayout.test.tsx+++ b/frontend-modern/src/__tests__/AppLayout.test.tsx@@ -127,6 +127,11 @@ describe('AppLayout navigation icons', () => {const infrastructureGroup = desktopNav.querySelector('[aria-label="Infrastructure"]');expect(infrastructureGroup).toBeTruthy();+ expect(+ within(infrastructureGroup as HTMLElement)+ .getAllByRole('tab')+ .map((tab) => tab.getAttribute('aria-label')),+ ).toEqual(['Proxmox', 'Containers', 'vSphere', 'Agents']);expect(within(infrastructureGroup as HTMLElement).getByRole('tab', { name: 'Agents' }),).toBeTruthy();diff --git a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts b/frontend-modern/src/__tests__/useAppRuntimeState.test.tsindex 427581ac00..ca7171d9a4 100644--- a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts+++ b/frontend-modern/src/__tests__/useAppRuntimeState.test.ts@@ -1,6 +1,7 @@import { createRoot } from 'solid-js';import { waitFor } from '@solidjs/testing-library';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import useAppRuntimeStateSource from '@/useAppRuntimeState.ts?raw';import type { Resource } from '@/types/resource';type UseAppRuntimeStateModule = typeof import('@/useAppRuntimeState');@@ -24,10 +25,6 @@ describe('useAppRuntimeState', () => {let setOrgIDMock: ReturnType<typeof vi.fn>;let showToastMock: ReturnType<typeof vi.fn>;let aiChatSetEnabledMock: ReturnType<typeof vi.fn>;- let fetchInfrastructureSummaryAndCacheMock: ReturnType<typeof vi.fn>;- let hasFreshInfrastructureSummaryCacheMock: ReturnType<typeof vi.fn>;- let fetchWorkloadsSummaryAndCacheMock: ReturnType<typeof vi.fn>;- let hasFreshWorkloadsSummaryCacheMock: ReturnType<typeof vi.fn>;beforeEach(async () => {vi.resetModules();@@ -45,23 +42,6 @@ describe('useAppRuntimeState', () => {}),});- Object.defineProperty(window, 'requestIdleCallback', {- writable: true,- configurable: true,- value: vi.fn((cb: IdleRequestCallback) =>- window.setTimeout(- () => cb({ didTimeout: false, timeRemaining: () => 50 } as IdleDeadline),- 0,- ),- ),- });-- Object.defineProperty(window, 'cancelIdleCallback', {- writable: true,- configurable: true,- value: vi.fn((id: number) => window.clearTimeout(id)),- });-apiFetchMock = vi.fn(async (url: string) => {if (url === '/api/security/status') {return new Response(JSON.stringify({ hasAuthentication: true }), { status: 200 });@@ -84,10 +64,6 @@ describe('useAppRuntimeState', () => {setOrgIDMock = vi.fn();showToastMock = vi.fn();aiChatSetEnabledMock = vi.fn();- fetchInfrastructureSummaryAndCacheMock = vi.fn().mockResolvedValue(undefined);- hasFreshInfrastructureSummaryCacheMock = vi.fn().mockReturnValue(false);- fetchWorkloadsSummaryAndCacheMock = vi.fn().mockResolvedValue(undefined);- hasFreshWorkloadsSummaryCacheMock = vi.fn().mockReturnValue(false);vi.doMock('@/stores/websocket-global', () => ({getGlobalWebSocketStore: () => ({@@ -185,22 +161,6 @@ describe('useAppRuntimeState', () => {},}));- vi.doMock('@/utils/infrastructureSummaryCache', () => ({- fetchInfrastructureSummaryAndCache: fetchInfrastructureSummaryAndCacheMock,- hasFreshInfrastructureSummaryCache: hasFreshInfrastructureSummaryCacheMock,- }));-- vi.doMock('@/utils/workloadsSummaryCache', () => ({- WORKLOAD_CHART_DEFAULT_POINT_LIMIT: 180,- fetchWorkloadsSummaryAndCache: fetchWorkloadsSummaryAndCacheMock,- hasFreshWorkloadsSummaryCache: hasFreshWorkloadsSummaryCacheMock,- }));-- vi.doMock('@/routing/resourceLinks', () => ({- buildInfrastructurePath: () => '/infrastructure',- buildWorkloadsPath: () => '/workloads',- }));-vi.doMock('@/stores/alertsActivation', () => ({useAlertsActivation: () => ({refreshConfig: vi.fn().mockResolvedValue(undefined),@@ -460,21 +420,11 @@ describe('useAppRuntimeState', () => {dispose();});- it('prewarms authenticated app-shell chart caches without mounting target routes', async () => {- window.history.replaceState({}, '', '/settings');- const { dispose } = mountHook();-- await waitFor(() => {- expect(fetchInfrastructureSummaryAndCacheMock).toHaveBeenCalledWith('1h', {- caller: 'App prewarm',- });- expect(fetchWorkloadsSummaryAndCacheMock).toHaveBeenCalledWith('1h', {- caller: 'App workloads prewarm',- maxPoints: 180,- });- });-- dispose();+ it('keeps retired chart cache prewarm out of the authenticated app shell', () => {+ expect(useAppRuntimeStateSource).not.toContain('fetchInfrastructureSummaryAndCache');+ expect(useAppRuntimeStateSource).not.toContain('fetchWorkloadsSummaryAndCache');+ expect(useAppRuntimeStateSource).not.toContain('requestIdleCallback');+ expect(useAppRuntimeStateSource).not.toContain('App prewarm');});it('skips the protected state bootstrap probe on the login route until a local auth hint exists', async () => {diff --git a/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts b/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.tsindex 6baaf36333..c00515a62a 100644--- a/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts+++ b/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts@@ -10,12 +10,12 @@ import {import { normalizeSourcePlatformKey, resolveResourcePlatformType } from '@/utils/sourcePlatforms';export type PrimaryInfrastructureNavId =- | 'agents'| 'proxmox'| 'docker'| 'kubernetes'| 'truenas'- | 'vmware';+ | 'vmware'+ | 'agents';export type InfrastructureNavigationVisibility = Record<PrimaryInfrastructureNavId, boolean>;@@ -37,12 +37,12 @@ export const PRIMARY_INFRASTRUCTURE_NAV_SCOPE_IDS: Record<PrimaryInfrastructureNavId,readonly string[]> = {- agents: ['agent'],proxmox: ['proxmox-pve', 'proxmox-pbs', 'proxmox-pmg'],docker: ['docker'],kubernetes: ['kubernetes'],truenas: ['truenas'],vmware: ['vmware-vsphere'],+ agents: ['agent'],};const NAVIGABLE_PLATFORM_ID_SET = new Set<string>([@@ -161,7 +161,6 @@ export function buildPrimaryInfrastructureNavigationVisibility(): InfrastructureNavigationVisibility {const presentNavigableScopes = buildNavigableResourceInfrastructureScopeSet(resources);return {- agents: resources.some(isPulseAgentPlatformResource),proxmox: PRIMARY_INFRASTRUCTURE_NAV_SCOPE_IDS.proxmox.some((id) =>presentNavigableScopes.has(id),),@@ -177,6 +176,7 @@ export function buildPrimaryInfrastructureNavigationVisibility(vmware: PRIMARY_INFRASTRUCTURE_NAV_SCOPE_IDS.vmware.some((id) =>presentNavigableScopes.has(id),),+ agents: resources.some(isPulseAgentPlatformResource),};}@@ -215,12 +215,12 @@ export function filterInfrastructureNavigationShortcuts(export function createEmptyInfrastructureNavigationVisibility(): InfrastructureNavigationVisibility {return {- agents: false,proxmox: false,docker: false,kubernetes: false,truenas: false,vmware: false,+ agents: false,};}diff --git a/frontend-modern/src/hooks/useKeyboardShortcuts.ts b/frontend-modern/src/hooks/useKeyboardShortcuts.tsindex 6666b3e668..6dfa210651 100644--- a/frontend-modern/src/hooks/useKeyboardShortcuts.ts+++ b/frontend-modern/src/hooks/useKeyboardShortcuts.ts@@ -87,12 +87,12 @@ export function useKeyboardShortcuts(options: KeyboardShortcutsOptions = {}) {options.infrastructureVisibility?.() ?? createEmptyInfrastructureNavigationVisibility();const infrastructureRoutes = filterInfrastructureNavigationShortcuts({- agents: { key: 'e', route: buildAgentsPath() },proxmox: { key: 'p', route: buildProxmoxPath() },docker: { key: 'd', route: buildDockerPath() },kubernetes: { key: 'k', route: buildKubernetesPath() },truenas: { key: 'n', route: buildTrueNASPath() },vmware: { key: 'v', route: buildVmwarePath() },+ agents: { key: 'e', route: buildAgentsPath() },},infrastructureVisibility,);diff --git a/frontend-modern/src/routing/navigation.ts b/frontend-modern/src/routing/navigation.tsindex 9eace15440..6fc4166b15 100644--- a/frontend-modern/src/routing/navigation.ts+++ b/frontend-modern/src/routing/navigation.ts@@ -22,12 +22,12 @@ export type AppTabId =export type ActiveAppTabId = AppTabId | null;export function getActiveTabForPath(path: string): ActiveAppTabId {- if (path.startsWith(AGENTS_PATH)) return 'agents';if (path.startsWith(PROXMOX_PATH)) return 'proxmox';if (path.startsWith(DOCKER_PATH)) return 'docker';if (path.startsWith(KUBERNETES_PATH)) return 'kubernetes';if (path.startsWith(TRUENAS_PATH)) return 'truenas';if (path.startsWith(VMWARE_PATH)) return 'vmware';+ if (path.startsWith(AGENTS_PATH)) return 'agents';if (path.startsWith('/alerts')) return 'alerts';if (path.startsWith(PATROL_PATH) || path.startsWith('/ai')) return 'ai';if (path.startsWith('/settings')) return 'settings';diff --git a/frontend-modern/src/routing/routePreload.ts b/frontend-modern/src/routing/routePreload.tsindex bcdcf88af1..3231ab655d 100644--- a/frontend-modern/src/routing/routePreload.ts+++ b/frontend-modern/src/routing/routePreload.ts@@ -40,11 +40,6 @@ function normalizeRoute(route: string): string {}const ROUTE_PRELOADERS: readonly RoutePreloader[] = [- {- id: 'agents',- matches: (route) => route === AGENTS_PATH || route.startsWith(`${AGENTS_PATH}/`),- preload: () => import('@/pages/Agents').then(() => undefined),- },{id: 'proxmox',matches: (route) => route === PROXMOX_PATH || route.startsWith(`${PROXMOX_PATH}/`),@@ -70,6 +65,11 @@ const ROUTE_PRELOADERS: readonly RoutePreloader[] = [matches: (route) => route === VMWARE_PATH || route.startsWith(`${VMWARE_PATH}/`),preload: () => import('@/pages/Vmware').then(() => undefined),},+ {+ id: 'agents',+ matches: (route) => route === AGENTS_PATH || route.startsWith(`${AGENTS_PATH}/`),+ preload: () => import('@/pages/Agents').then(() => undefined),+ },{id: 'alerts',matches: (route) => route === ALERTS_PATH || route.startsWith(`${ALERTS_PATH}/`),diff --git a/frontend-modern/src/useAppRuntimeState.ts b/frontend-modern/src/useAppRuntimeState.tsindex 846a53e015..2ce7e94dbf 100644--- a/frontend-modern/src/useAppRuntimeState.ts+++ b/frontend-modern/src/useAppRuntimeState.ts@@ -10,7 +10,6 @@ import {import { getGlobalWebSocketStore } from '@/stores/websocket-global';import { logger } from '@/utils/logger';import { STORAGE_KEYS } from '@/utils/localStorage';-import type { TimeRange } from '@/api/charts';import type { VersionInfo } from '@/api/updates';import type { Organization } from '@/api/orgs';import { OrgsAPI } from '@/api/orgs';@@ -26,16 +25,6 @@ import {import { eventBus } from '@/stores/events';import { showToast } from '@/utils/toast';import { updateStore } from '@/stores/updates';-import {- fetchInfrastructureSummaryAndCache,- hasFreshInfrastructureSummaryCache,-} from '@/utils/infrastructureSummaryCache';-import {- WORKLOAD_CHART_DEFAULT_POINT_LIMIT,- fetchWorkloadsSummaryAndCache,- hasFreshWorkloadsSummaryCache,-} from '@/utils/workloadsSummaryCache';-import { buildInfrastructurePath, buildWorkloadsPath } from '@/routing/resourceLinks';import { useAlertsActivation } from '@/stores/alertsActivation';import {applyThemeClass,@@ -76,9 +65,6 @@ export type AppConnectionStatus = {tone: 'healthy' | 'warning' | 'offline';};-const ROOT_INFRASTRUCTURE_PATH = buildInfrastructurePath();-const ROOT_WORKLOADS_PATH = buildWorkloadsPath();-const isPreAuthLoginBootstrapPath = (pathname: string): boolean =>pathname === '/' || pathname === '/login';@@ -99,10 +85,6 @@ export const useAppRuntimeState = () => {const alertsActivation = useAlertsActivation();let hasFetchedVersionInfo = false;- let hasPrewarmedInfrastructureCharts = false;- let hasPrewarmedWorkloadsCharts = false;-- const getAppShellChartRangeForPrewarm = (): TimeRange => '1h';const hasLocalAuthBootstrapHint = (): boolean => {if (hasStoredAuthSession()) {@@ -120,74 +102,6 @@ export const useAppRuntimeState = () => {}};- const shouldPrewarmBackgroundCharts = (activeRoutePath: string): boolean => {- if (typeof window === 'undefined') return false;-- const connection = (- navigator as unknown as { connection?: { saveData?: boolean; effectiveType?: string } }- ).connection;- if (connection?.saveData) return false;- const effectiveType = connection?.effectiveType;- if (- typeof effectiveType === 'string' &&- (effectiveType === 'slow-2g' || effectiveType === '2g')- ) {- return false;- }-- const pathname = window.location.pathname;- if (!pathname) return true;- if (pathname === activeRoutePath) return false;- return true;- };-- const shouldPrewarmInfrastructure = (): boolean =>- shouldPrewarmBackgroundCharts(ROOT_INFRASTRUCTURE_PATH);-- const shouldPrewarmWorkloads = (): boolean => shouldPrewarmBackgroundCharts(ROOT_WORKLOADS_PATH);-- const prewarmInfrastructureCharts = () => {- if (hasPrewarmedInfrastructureCharts || !shouldPrewarmInfrastructure()) {- return;- }-- const range = getAppShellChartRangeForPrewarm();- if (hasFreshInfrastructureSummaryCache(range)) {- hasPrewarmedInfrastructureCharts = true;- return;- }-- hasPrewarmedInfrastructureCharts = true;- void fetchInfrastructureSummaryAndCache(range, { caller: 'App prewarm' }).catch(() => {- // Non-blocking prewarm; ignore failures.- });- };-- const prewarmWorkloadsCharts = () => {- if (hasPrewarmedWorkloadsCharts || !shouldPrewarmWorkloads()) {- return;- }-- const range = getAppShellChartRangeForPrewarm();- if (hasFreshWorkloadsSummaryCache(range)) {- hasPrewarmedWorkloadsCharts = true;- return;- }-- hasPrewarmedWorkloadsCharts = true;- void fetchWorkloadsSummaryAndCache(range, {- caller: 'App workloads prewarm',- maxPoints: WORKLOAD_CHART_DEFAULT_POINT_LIMIT,- }).catch(() => {- // Non-blocking prewarm; ignore failures.- });- };-- const prewarmAppShellCharts = () => {- prewarmInfrastructureCharts();- prewarmWorkloadsCharts();- };-const fallbackState: State = {connectedInfrastructure: [],metrics: [],@@ -527,39 +441,6 @@ export const useAppRuntimeState = () => {}});- createEffect(() => {- if (- isLoading() ||- needsAuth() ||- (hasPrewarmedInfrastructureCharts && hasPrewarmedWorkloadsCharts)- ) {- return;- }- if (typeof window === 'undefined') {- return;- }-- if (typeof window.requestIdleCallback === 'function') {- const id = window.requestIdleCallback(- () => {- prewarmAppShellCharts();- },- { timeout: 2_000 },- );- onCleanup(() => {- window.cancelIdleCallback(id);- });- return;- }-- const timeout = window.setTimeout(() => {- prewarmAppShellCharts();- }, 500);- onCleanup(() => {- window.clearTimeout(timeout);- });- });-const syncVersionInfoFromUpdateStore = async () => {const cachedVersion = updateStore.versionInfo();if (cachedVersion) {