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
Optimize provider inventory hydration
Pulse Test471c607e389d
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 134b282c38..3e4c62d19a 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -80,6 +80,14 @@ overview must invalidate that owner snapshot and update both the host/node andguest regions from the same result, so a large estate cannot rendercontradictory counts, flash a false empty workload state, or pay duplicatetransport and reconciliation costs.+Provider workspaces must also constrain their canonical query at the source+boundary instead of downloading same-type rows from unrelated platforms and+discarding them in the page model. Docker and Kubernetes use their provider+source directly, including merged agent rows that carry that source. Proxmox+keeps separate route-family queries, but only the active route may enable its+query: inactive desktop and phone tabs must not create a background inventory+burst. The Backups route composes the existing Overview guest snapshot with a+PBS-only addition rather than issuing a second guest-estate request.The overview's bounded structural summary remains ahead of its long virtualizedinventory at desktop and narrow widths. In particular, Proxmox must show up tosix phone rows or twelve larger-layout rows before the guest list instead ofdiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex ab15ce31c4..7446237473 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -1379,6 +1379,24 @@ reduction adds no polling fallback or freshness regression. Contract tests pinthe request shape, realtime projection, snapshot injection, and refreshhandoff.+### Provider routes hydrate only the inventory they own++The Proxmox shell enables only the active tab's unified-resource query. An+Overview visit must not eagerly start Storage, Backups, Replication, Ceph, and+Mail inventory in idle callbacks: those independent page families can fan out+dozens of paged requests and compete with the visible node and guest snapshot.+Backups reuses the Overview guest owner and adds a bounded PBS-only query, so+moving between Overview and Backups never downloads the same large PVE guest+estate twice. A direct Backups visit enables both owners because both resource+families are visible there; other inactive routes remain dormant.++Docker and Kubernetes page queries include their canonical provider source as+well as their type family. Merged provider/agent rows remain eligible while+unrelated standalone or other-platform agents are rejected at the API and+local WebSocket projection boundaries. Focused page contracts must pin the+exact query ownership, and browser verification must show only the active+route's resource request before first paint at desktop and phone widths.+### Command-session liveness lookup stays bounded and in-memoryThe connections ledger's command-channel liveness checkdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex e3fe251fa8..d781108eb0 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -620,15 +620,15 @@ complete client-side result set; windowing must not become pagination, a partialcount, or a recovery-local `Next` / `Load more` control. Expanded coverageevidence remains owned by the visible workload row.The Proxmox shell hydrates Overview, Storage, Replication, Backups, Ceph, and-Mail from route-scoped resource families. Only the visible tab consumes-realtime reconciliation. Desktop background hydration may prefetch the other-route families, while phone background hydration is bounded to Storage because-the phone shell retains at most the two most-recent tab trees. Storage reuses+Mail from source-scoped route resource families. Only the visible tab enables+its query and consumes realtime reconciliation; desktop and phone shells must+not prefetch inactive resource families behind the active route. Storage reusesthe shell's bounded agent/PBS/storage/physical-disk/Ceph source instead of-opening a duplicate page query or an all-estate subscription, and is prewarmed-for the common Overview/Storage transition; hidden route-state effects remain-dormant and a forced Proxmox storage scope is not serialized as redundant URL-state.+opening a duplicate page query or an all-estate subscription; hidden route+state effects remain dormant and a forced Proxmox storage scope is not+serialized as redundant URL state. Backups reuses the source-scoped Overview+guest snapshot and adds only the PBS resource family, so it cannot repeat the+large VM/LXC enumeration under a second request owner.PBS server/datastore rows may display backup counts, but thecounts must come from the PBS backup API artifact identity, not from adatastore-capacity approximation. The table owns which PBS artifact count isdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 80f8a12800..e690386f8e 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -2053,6 +2053,14 @@ the raw `vmware` source, rather than degrading a source-scoped page to periodicREST refreshes. VMware Overview passes that same source-scoped snapshot intothe embedded Workloads state, so hosts and VMs share one inventory generationand one explicit refresh path.+Docker and Kubernetes page owners use the same source-aware projection for+their complete provider type families. Their linked agent rows remain visible+because canonical merge preserves the provider source beside the agent source;+the pages must not admit every agent merely to recover those merged rows.+Proxmox route queries likewise declare their exact PVE, PBS, PMG, or agent+source boundary. Backups extend the source-scoped Overview guest snapshot with+a PBS-only snapshot, so a route transition composes canonical resources rather+than repeating the guest enumeration under another cache key.### Agent libvirt domains use a provider-neutral VM facetdiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 992ab22c70..1c6a901e2f 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,18 +1,23 @@{"version": 1,- "base_sha": "6d4ee48000f9266d161af000f88d9d1f10042328",- "verified_at": "2026-08-29T22:35:09Z",+ "base_sha": "d607d5cf4616e52b2fc7a576846dbe7204e9a7cf",+ "verified_at": "2026-08-29T23:04:06Z","result": "passed","changed_paths": [- "frontend-modern/src/features/vmware/VmwarePageSurface.tsx",- "frontend-modern/src/hooks/useUnifiedResources.ts"+ "frontend-modern/src/features/docker/DockerPageSurface.tsx",+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx",+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx"],"content_sha256": {- "frontend-modern/src/features/vmware/VmwarePageSurface.tsx": "659851ff4111f53d15f74d7959ab9e3f21683eecf0e5c55d91e477f47ad93540",- "frontend-modern/src/hooks/useUnifiedResources.ts": "0b5cca6992ae17575e5f689268e152cbdd47f61b3169043cec314b27c11d8c97"+ "frontend-modern/src/features/docker/DockerPageSurface.tsx": "013f32dc0201ed993a68763a53e88374fe9b08892e321806fb5dbb9aa51bf77f",+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx": "c8ab6ff8abdf7c61a5c75f0d024a682c1b83a10efa46278c87b946afe654ef60",+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx": "2158aed352e98b2fc1f0d308b494d0a8d387aefc28fbf90bbc92a498e49e161a"},"routes": [- "/vmware/overview"+ "/proxmox/overview",+ "/proxmox/backups/date",+ "/docker/overview",+ "/kubernetes/overview"],"viewports": [{@@ -25,14 +30,18 @@}],"states": [- "vSphere overview with seven ESXi hosts and eighteen VMs loaded from one source-scoped canonical inventory snapshot",- "desktop host table, workload filters, grouped VM table, and live-connection status",- "narrow host and VM table projections with the responsive filter control and fixed mobile navigation"+ "Proxmox Overview with the node table and paginated guest inventory populated from only the source-scoped Overview owner",+ "Proxmox Backups with PBS servers, backup-health summary, activity chart, filters, and workload rows composed from the existing guest snapshot plus PBS rows",+ "Docker Overview with provider-owned hosts and containers populated from one source-scoped inventory request",+ "Kubernetes Overview with provider-owned clusters, deployments, and pods populated from one source-scoped inventory request",+ "all four provider states at desktop and narrow viewport widths"],"interactions": [- "reloaded the vSphere overview with browser request tracing enabled and verified the only resource-list request was the page-owned type-and-source-scoped snapshot",- "verified the embedded VM filter and table populated from the owner snapshot without a generic workload or infrastructure resource request",- "set a 390 by 844 viewport and verified the host rows, VM search, Filters action, grouped VM rows, and mobile navigation remained visible and usable",- "reset the temporary viewport override to the browser default after responsive verification"+ "reloaded Proxmox Overview with browser request tracing and verified that only its ten paginated source=proxmox Overview requests ran, with no inactive Storage, Backups, Replication, Ceph, or Mail hydration",+ "navigated from Proxmox Overview to Backups and verified that the transition added exactly one source=pbs request without repeating the paginated guest inventory",+ "reloaded Docker Overview and verified that its only inventory request included source=docker and populated the host and container surfaces",+ "reloaded Kubernetes Overview and verified that its only inventory request included source=kubernetes and populated the cluster and workload surfaces",+ "repeated the provider route and transition checks at 390 by 844 and verified the tables, navigation, filters, status summaries, and workload rows remained present",+ "reset the temporary viewport override and closed the verification tab"]}diff --git a/frontend-modern/src/features/docker/DockerPageSurface.tsx b/frontend-modern/src/features/docker/DockerPageSurface.tsxindex d363b73b9c..30198da2c6 100644--- a/frontend-modern/src/features/docker/DockerPageSurface.tsx+++ b/frontend-modern/src/features/docker/DockerPageSurface.tsx@@ -57,7 +57,7 @@ import type { Resource } from '@/types/resource';import { buildPlatformResourceSearchSuggestions } from '@/features/platformPage/platformSearchSuggestions';const DOCKER_RESOURCE_QUERY =- 'type=agent,docker-host,app-container,docker-service,docker-image,docker-volume,docker-network,docker-task,docker-swarm-node,docker-secret,docker-config';+ 'type=agent,docker-host,app-container,docker-service,docker-image,docker-volume,docker-network,docker-task,docker-swarm-node,docker-secret,docker-config&source=docker';const DockerIcon = getPlatformIcon('docker');const dockerIcon = () => <DockerIcon class="h-6 w-6 text-slate-400" />;diff --git a/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsxindex 4fa40ef572..814881a800 100644--- a/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx+++ b/frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx@@ -277,6 +277,11 @@ describe('DockerPageSurface', () => {query: expect.stringContaining('docker-config'),}),);+ expect(mocks.useUnifiedResources).toHaveBeenCalledWith(+ expect.objectContaining({+ query: expect.stringContaining('&source=docker'),+ }),+ );expect(screen.getByTestId('docker-hosts-table')).toHaveAttribute('data-resource-count', '1');expect(screen.getByTestId('docker-hosts-table')).toHaveAttribute('data-show-toolbar', 'false');expect(screen.getByRole('link', { name: 'View all machines' })).toHaveAttribute(diff --git a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsxindex 859ec609c3..ea38d7683a 100644--- a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx+++ b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx@@ -52,7 +52,7 @@ import {// Nodes section of the Overview stack; the page model filters them down to// those tagged kubernetes.const KUBERNETES_RESOURCE_QUERY =- 'type=k8s-cluster,k8s-node,pod,k8s-deployment,k8s-replicaset,k8s-namespace,k8s-service,k8s-statefulset,k8s-daemonset,k8s-job,k8s-cronjob,k8s-ingress,k8s-endpoint-slice,k8s-network-policy,k8s-persistent-volume,k8s-persistent-volume-claim,k8s-storage-class,k8s-configmap,k8s-secret,k8s-serviceaccount,k8s-role,k8s-cluster-role,k8s-role-binding,k8s-cluster-role-binding,k8s-resource-quota,k8s-limit-range,k8s-pod-disruption-budget,k8s-horizontal-pod-autoscaler,k8s-event,agent';+ 'type=k8s-cluster,k8s-node,pod,k8s-deployment,k8s-replicaset,k8s-namespace,k8s-service,k8s-statefulset,k8s-daemonset,k8s-job,k8s-cronjob,k8s-ingress,k8s-endpoint-slice,k8s-network-policy,k8s-persistent-volume,k8s-persistent-volume-claim,k8s-storage-class,k8s-configmap,k8s-secret,k8s-serviceaccount,k8s-role,k8s-cluster-role,k8s-role-binding,k8s-cluster-role-binding,k8s-resource-quota,k8s-limit-range,k8s-pod-disruption-budget,k8s-horizontal-pod-autoscaler,k8s-event,agent&source=kubernetes';const KubernetesIcon = getPlatformIcon('kubernetes');const k8sIcon = () => <KubernetesIcon class="h-6 w-6 text-slate-400" />;diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsxindex d8bb6140ea..d769a1471c 100644--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx@@ -191,6 +191,11 @@ describe('KubernetesPageSurface contract', () => {query: expect.stringContaining('k8s-statefulset'),}),);+ expect(mockUseUnifiedResources).toHaveBeenCalledWith(+ expect.objectContaining({+ query: expect.stringContaining('&source=kubernetes'),+ }),+ );expect(screen.getByTestId('platform-section-tabs')).toHaveAttribute('data-tabs','overview,workloads',diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsxindex f7f11e1a59..0be7fd0029 100644--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx@@ -5,8 +5,6 @@ import {createMemo,createResource,createSignal,- onCleanup,- onMount,type Accessor,} from 'solid-js';import StorageSurface from '@/components/Storage/Storage';@@ -66,23 +64,22 @@ import {type ProxmoxPageTabId,} from './proxmoxPageModel';-// Each workflow hydrates only the resource families it consumes. The first-// REST page also carries global type aggregations, so evidence-gated tabs do-// not require the old 1,000+ row workspace request.+// Each workflow hydrates only the source-scoped resource families it consumes.+// Backups reuse the Overview guest snapshot and add only PBS rows, so opening+// that workflow never downloads the same large guest inventory twice.const PROXMOX_RESOURCE_QUERY_BY_TAB: Record<ProxmoxPageTabId, string> = {- overview: 'type=agent,vm,system-container,oci-container',- storage: 'type=agent,pbs,storage,physical_disk,ceph',- replication: 'type=agent',- backups: 'type=agent,vm,system-container,pbs',- ceph: 'type=ceph',- mail: 'type=pmg',+ overview: 'type=agent,vm,system-container,oci-container&source=proxmox',+ storage: 'type=agent,pbs,storage,physical_disk,ceph&source=proxmox,pbs,agent',+ replication: 'type=agent&source=proxmox',+ backups: 'type=pbs&source=pbs',+ ceph: 'type=ceph&source=proxmox',+ mail: 'type=pmg&source=pmg',};const PROXMOX_PLATFORM_FILTER = 'proxmox-all';const PROXMOX_WORKLOAD_STATUS_STORAGE_SCOPE = 'proxmox';const PROXMOX_WORKLOAD_EXCLUDED_TYPES = ['app-container'] as const;const PHONE_MOUNTED_TAB_LIMIT = 2;-const PHONE_BACKGROUND_HYDRATION_INTERVAL_MS = 750;const VALID_TABS = new Set<ProxmoxPageTabId>(PROXMOX_TAB_SPECS.map((tab) => tab.id));const PROXMOX_WORKLOAD_STATUS_OPTIONS: readonly WorkloadsStatusOption[] = [{ value: 'all', label: 'All' },@@ -127,57 +124,12 @@ export function ProxmoxPageSurface() {const requested = requestedTab();return visibleTabIds().has(requested) ? requested : 'overview';});- const [backgroundHydrationTabs, setBackgroundHydrationTabs] = createSignal<Set<ProxmoxPageTabId>>(- new Set(),- );- onMount(() => {- // A phone retains only two tab trees, so downloading every route in the- // background spends memory and main-thread time on views that will be- // evicted before they are likely to be used. Storage is the common- // Overview transition and the only worthwhile phone prewarm.- const hydrationQueue: ProxmoxPageTabId[] = phoneViewport- ? ['storage']- : ['storage', 'backups', 'replication', 'ceph', 'mail', 'overview'];- const idleHandles: number[] = [];- const timeoutHandles: number[] = [];-- const hydrateNext = (index: number) => {- if (index >= hydrationQueue.length) return;- const hydrate = () => {- setBackgroundHydrationTabs((current) => {- const next = new Set(current);- next.add(hydrationQueue[index]);- return next;- });- if (phoneViewport) {- timeoutHandles.push(- window.setTimeout(() => hydrateNext(index + 1), PHONE_BACKGROUND_HYDRATION_INTERVAL_MS),- );- } else {- hydrateNext(index + 1);- }- };-- if (typeof window.requestIdleCallback === 'function') {- idleHandles.push(window.requestIdleCallback(hydrate, { timeout: 1_000 }));- } else {- timeoutHandles.push(window.setTimeout(hydrate, 250));- }- };-- hydrateNext(0);- onCleanup(() => {- idleHandles.forEach((handle) => window.cancelIdleCallback(handle));- timeoutHandles.forEach((handle) => window.clearTimeout(handle));- });- });- const shouldHydrateTab = (tab: ProxmoxPageTabId) =>- activeTab() === tab || backgroundHydrationTabs().has(tab);+ const shouldHydrateTab = (tab: ProxmoxPageTabId) => activeTab() === tab;const overviewResources = useUnifiedResources({query: PROXMOX_RESOURCE_QUERY_BY_TAB.overview,cacheKey: 'proxmox-overview',- enabled: () => shouldHydrateTab('overview'),- realtimeEnabled: () => activeTab() === 'overview',+ enabled: () => shouldHydrateTab('overview') || shouldHydrateTab('backups'),+ realtimeEnabled: () => activeTab() === 'overview' || activeTab() === 'backups',});const storageResources = useUnifiedResources({query: PROXMOX_RESOURCE_QUERY_BY_TAB.storage,@@ -232,25 +184,6 @@ export function ProxmoxPageSurface() {createEffect(() => {mountTab(activeTab());});- let storagePrewarmScheduled = false;- createEffect(() => {- if (- storagePrewarmScheduled ||- activeTab() !== 'overview' ||- !backgroundHydrationTabs().has('storage') ||- storageResources.resources().length === 0- ) {- return;- }- storagePrewarmScheduled = true;- if (typeof window.requestIdleCallback === 'function') {- const idleHandle = window.requestIdleCallback(() => mountTab('storage'), { timeout: 2_000 });- onCleanup(() => window.cancelIdleCallback(idleHandle));- return;- }- const timeoutHandle = window.setTimeout(() => mountTab('storage'), 250);- onCleanup(() => window.clearTimeout(timeoutHandle));- });const resourceState = createMemo(() => {switch (activeTab()) {case 'storage':@@ -267,18 +200,36 @@ export function ProxmoxPageSurface() {return overviewResources;}});- const loading = () => resourceState().loading();- const error = () => resourceState().error();- const refetch = () => resourceState().refetch();+ const loading = () =>+ activeTab() === 'backups'+ ? overviewResources.loading() || backupResources.loading()+ : resourceState().loading();+ const error = () =>+ activeTab() === 'backups'+ ? (overviewResources.error() ?? backupResources.error())+ : resourceState().error();+ const refetch = () =>+ activeTab() === 'backups'+ ? Promise.all([overviewResources.refetch(), backupResources.refetch()])+ : resourceState().refetch();createEffect(() => {const next = resourceState().aggregations?.();if (next) setResourceAggregations(next);});+ const normalizeSnapshot = (snapshot: Resource[] | undefined) =>+ Array.isArray(snapshot) ? snapshot : [];const buildModel = (snapshot: Resource[] | undefined) =>- buildProxmoxPageModel(Array.isArray(snapshot) ? snapshot : []);+ buildProxmoxPageModel(normalizeSnapshot(snapshot));const overviewModel = createMemo(() => buildModel(overviewResources.resources()));+ const backupModel = createMemo(() =>+ buildModel([+ ...normalizeSnapshot(overviewResources.resources()),+ ...normalizeSnapshot(backupResources.resources()),+ ]),+ );const model = createMemo(() => {if (activeTab() === 'overview') return overviewModel();+ if (activeTab() === 'backups') return backupModel();return buildModel(resourceState().resources());});const agentUpdateTargetVersion = createMemo(diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsxindex 2dd0325c56..8dfe4d46c7 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx@@ -14,6 +14,7 @@ const mockVersionInfo = vi.hoisted(() => vi.fn());const mockStorageProps = vi.hoisted(() => vi.fn());const mockTotalStats = vi.hoisted(() => vi.fn());const mockNodesTableProps = vi.hoisted(() => vi.fn());+const mockBackupsTableProps = vi.hoisted(() => vi.fn());const mockWorkloadSearch = vi.hoisted(() => vi.fn(() => ''));const makeResource = (resource: Partial<Resource> & Pick<Resource, 'id' | 'type'>): Resource =>@@ -112,7 +113,10 @@ vi.mock('@/features/platformPage/sharedPlatformPage', () => ({}));vi.mock('../ProxmoxBackupsTable', () => ({- ProxmoxBackupsTable: () => <div data-testid="backups-table" />,+ ProxmoxBackupsTable: (props: { workloads: Resource[]; servers: Resource[] }) => {+ mockBackupsTableProps(props);+ return <div data-testid="backups-table" />;+ },}));vi.mock('../ProxmoxCephTable', () => ({@@ -364,7 +368,7 @@ describe('ProxmoxPageSurface contract', () => {expect(proxmoxRecoverableTableSource).not.toContain('class="truncate text-[10px] text-muted"');});- it('hydrates route-scoped resource families instead of one broad estate request', () => {+ it('hydrates only the active source-scoped resource family', () => {setResources([makeResource({id: 'agent:pve-1',@@ -392,20 +396,62 @@ describe('ProxmoxPageSurface contract', () => {'proxmox-mail',]);expect(options.map((value) => value.query)).toEqual([- 'type=agent,vm,system-container,oci-container',- 'type=agent,pbs,storage,physical_disk,ceph',- 'type=agent',- 'type=agent,vm,system-container,pbs',- 'type=ceph',- 'type=pmg',+ 'type=agent,vm,system-container,oci-container&source=proxmox',+ 'type=agent,pbs,storage,physical_disk,ceph&source=proxmox,pbs,agent',+ 'type=agent&source=proxmox',+ 'type=pbs&source=pbs',+ 'type=ceph&source=proxmox',+ 'type=pmg&source=pmg',]);expect(options[0].enabled()).toBe(true);expect(options.slice(1).every((value) => value.enabled() === false)).toBe(true);- expect(proxmoxPageSurfaceSource).toContain('requestIdleCallback');- expect(proxmoxPageSurfaceSource).toContain("phoneViewport\n ? ['storage']");+ expect(proxmoxPageSurfaceSource).not.toContain('backgroundHydrationTabs');+ expect(proxmoxPageSurfaceSource).not.toContain('requestIdleCallback');expect(proxmoxPageSurfaceSource).toContain('resourceSource={storageResources}');});+ it('reuses the overview guest snapshot and fetches only PBS rows for Backups', () => {+ mockPathname.mockReturnValue('/proxmox/backups');+ const guest = makeResource({ id: 'vm-100', type: 'vm', proxmox: { vmid: 100 } });+ const server = makeResource({+ id: 'pbs-1',+ type: 'pbs',+ platformType: 'proxmox-pbs',+ sources: ['pbs'],+ });+ mockUseUnifiedResources.mockImplementation((options: { cacheKey: string }) => ({+ resources: () => {+ if (options.cacheKey === 'proxmox-overview') return [guest];+ if (options.cacheKey === 'proxmox-backups-shell') return [server];+ return [];+ },+ loading: () => false,+ error: () => null,+ refetch: vi.fn(),+ }));++ renderSurface();++ const options = mockUseUnifiedResources.mock.calls.map(+ ([value]) => value as { cacheKey: string; query: string; enabled: () => boolean },+ );+ expect(options.map((value) => value.enabled())).toEqual([+ true,+ false,+ false,+ true,+ false,+ false,+ ]);+ expect(options[3]).toMatchObject({+ cacheKey: 'proxmox-backups-shell',+ query: 'type=pbs&source=pbs',+ });+ expect(mockBackupsTableProps).toHaveBeenCalledWith(+ expect.objectContaining({ workloads: [guest], servers: [server] }),+ );+ });+it('places workload controls beside the workload table they affect', () => {const nodesTableIndex = proxmoxPageSurfaceSource.indexOf('<ProxmoxNodesTable');const workloadFilterIndex = proxmoxPageSurfaceSource.indexOf('<WorkloadsFilter');