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
Add Proxmox stale agent notice
rcourtman814e9f8a91d8
diff --git a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsx b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsxindex c8dc2e9c2c..04f98f82b3 100644--- a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsx+++ b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsx@@ -49,4 +49,19 @@ describe('PlatformOutdatedAgentNotice', () => {expect(notice).toHaveTextContent('2 hosts are running an older Pulse agent.');expect(notice).toHaveTextContent('Affected: tower, delly.');});++ it('uses latest-detail copy for hybrid platform pages', () => {+ render(() => (+ <PlatformOutdatedAgentNotice+ hosts={[{ name: 'delly', version: 'v5.1.34' }]}+ targetVersion="v6.0.0-rc.6"+ missingLabel="agent-contributed platform detail"+ copyVariant="latest-detail"+ />+ ));++ expect(screen.getByTestId('platform-outdated-agent-notice')).toHaveTextContent(+ 'delly is running an older Pulse agent (v5.1.34). Update it to v6.0.0-rc.6 for the latest agent-contributed platform detail on this host.',+ );+ });});diff --git a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsx b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsxindex 60bc4b9552..aa503a971e 100644--- a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsx+++ b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsx@@ -8,9 +8,11 @@ type PlatformOutdatedAgentNoticeProps = {// The version users should update to (the server's version). Optional: the// notice still reads sensibly without it.targetVersion?: string;- // What the stale agents cannot report, e.g. "images, networks, and storage".- // Phrased to slot into "to see {missingLabel} for ...".+ // What the update unlocks, e.g. "images, networks, and storage".+ // Default copy phrases this as missing data; latest-detail copy phrases it as+ // newer agent-contributed detail for hybrid platform pages.missingLabel: string;+ copyVariant?: 'missing-data' | 'latest-detail';actionHref?: string;actionLabel?: string;};@@ -27,10 +29,17 @@ export function PlatformOutdatedAgentNotice(props: PlatformOutdatedAgentNoticePrconst message = createMemo(() => {const target = props.targetVersion ? ` to ${props.targetVersion}` : '';+ const copyVariant = props.copyVariant || 'missing-data';if (count() === 1) {const host = props.hosts[0];+ if (copyVariant === 'latest-detail') {+ return `${host.name} is running an older Pulse agent (${host.version}). Update it${target} for the latest ${props.missingLabel} on this host.`;+ }return `${host.name} is running an older Pulse agent (${host.version}). Update it${target} to see ${props.missingLabel} for this host.`;}+ if (copyVariant === 'latest-detail') {+ return `${count()} hosts are running an older Pulse agent. Update them${target} for the latest ${props.missingLabel}. Affected: ${names()}.`;+ }return `${count()} hosts are running an older Pulse agent. Update them${target} to see ${props.missingLabel}. Affected: ${names()}.`;});diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsxindex 3d2666b9f5..8c29e10803 100644--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx@@ -14,7 +14,13 @@ import {isWorkloadTableMetricHistoryRange,type WorkloadTableMetricHistoryRange,} from '@/components/Workloads/workloadMetricHistoryModel';+import { buildInfrastructureWorkspacePath } from '@/components/Settings/infrastructureWorkspaceModel';+import {+ collectOutdatedAgentHosts,+ formatAgentVersionDisplay,+} from '@/features/platformPage/agentVersion';import { getPlatformIcon } from '@/features/platformPage/platformIcon';+import { PlatformOutdatedAgentNotice } from '@/features/platformPage/PlatformOutdatedAgentNotice';import { usePersistentSignal } from '@/hooks/usePersistentSignal';import { STORAGE_KEYS } from '@/utils/localStorage';import { resourceMatchesSearch } from '@/utils/resourceSearchMatch';@@ -30,6 +36,7 @@ import { ProxmoxMailGatewayTable } from './ProxmoxMailGatewayTable';import { ProxmoxNodesTable } from './ProxmoxNodesTable';import { ProxmoxReplicationTable } from './ProxmoxReplicationTable';import { useUnifiedResources } from '@/hooks/useUnifiedResources';+import { updateStore } from '@/stores/updates';import {PROXMOX_TAB_SPECS,buildProxmoxPageModel,@@ -78,6 +85,12 @@ export function ProxmoxPageSurface() {if (!segment || !VALID_TABS.has(segment)) return 'overview';return visibleTabIds().has(segment) ? segment : 'overview';});+ const outdatedAgentHosts = createMemo(() =>+ collectOutdatedAgentHosts(model().pveNodes, updateStore.versionInfo()?.version),+ );+ const serverVersionDisplay = createMemo(() =>+ formatAgentVersionDisplay(updateStore.versionInfo()?.version),+ );// The hosts table at the top and the embedded WorkloadsSurface below share// the bars/sparklines toggle (and the sparkline history range that ships@@ -136,6 +149,14 @@ export function ProxmoxPageSurface() {/>}>+ <PlatformOutdatedAgentNotice+ hosts={outdatedAgentHosts()}+ targetVersion={serverVersionDisplay()}+ missingLabel="agent-contributed Proxmox node detail and command support"+ copyVariant="latest-detail"+ actionHref={buildInfrastructureWorkspacePath()}+ actionLabel="Open agent upgrade commands"+ /><Show when={activeTab() === 'overview'}><ProxmoxOverviewmodel={model}diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsxnew file mode 100644index 0000000000..5dabe72487--- /dev/null+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx@@ -0,0 +1,152 @@+import { cleanup, render, screen } from '@solidjs/testing-library';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import type { Resource } from '@/types/resource';+import { ProxmoxPageSurface } from '../ProxmoxPageSurface';++const mockUseUnifiedResources = vi.fn();+const mockPathname = vi.hoisted(() => vi.fn(() => '/proxmox/overview'));+const mockVersionInfo = vi.hoisted(() => vi.fn());++const makeResource = (resource: Partial<Resource> & Pick<Resource, 'id' | 'type'>): Resource =>+ ({+ name: resource.id,+ displayName: resource.id,+ platformId: 'proxmox-1',+ platformType: 'proxmox-pve',+ sourceType: 'api',+ sources: ['agent', 'proxmox'],+ status: 'online',+ lastSeen: 1_700_000_000_000,+ ...resource,+ }) as Resource;++const setResources = (resources: Resource[]) => {+ mockUseUnifiedResources.mockReturnValue({+ resources: () => resources,+ loading: () => false,+ error: () => null,+ refetch: vi.fn(),+ });+};++vi.mock('@/hooks/useUnifiedResources', () => ({+ useUnifiedResources: (...args: unknown[]) => mockUseUnifiedResources(...args),+}));++vi.mock('@/hooks/usePersistentSignal', () => ({+ usePersistentSignal: (_key: string, initial: unknown) => [() => initial, vi.fn()],+}));++vi.mock('@/stores/updates', () => ({+ updateStore: {+ versionInfo: mockVersionInfo,+ },+}));++vi.mock('@solidjs/router', async () => {+ const actual = await vi.importActual<typeof import('@solidjs/router')>('@solidjs/router');+ return {+ ...actual,+ useLocation: () => ({ pathname: mockPathname() }),+ };+});++vi.mock('@/components/Storage/Storage', () => ({+ default: () => <div data-testid="storage-surface" />,+}));++vi.mock('@/components/Workloads/WorkloadsFilter', () => ({+ WorkloadsFilter: () => <div data-testid="workloads-filter" />,+}));++vi.mock('@/components/Workloads/WorkloadsSurface', () => ({+ WorkloadsSurface: () => <div data-testid="workloads-surface" />,+}));++vi.mock('@/components/Workloads/useWorkloadsState', () => ({+ useWorkloadsState: () => ({+ surfaceConnected: () => false,+ surfaceInitialDataReceived: () => false,+ allGuests: () => [],+ search: () => '',+ setSearch: vi.fn(),+ }),+}));++vi.mock('@/features/platformPage/sharedPlatformPage', () => ({+ PlatformErrorState: () => <div data-testid="platform-error-state" />,+ PlatformSectionTabs: (props: {+ active: string;+ tabs: Array<{ id: string; label: string; path: string }>;+ }) => (+ <div+ data-testid="platform-section-tabs"+ data-active={props.active}+ data-tabs={props.tabs.map((tab) => tab.id).join(',')}+ />+ ),+ PlatformTableEmptyState: () => <div data-testid="platform-table-empty-state" />,+ PlatformTableLoadingState: () => <div data-testid="platform-table-loading-state" />,+}));++vi.mock('../ProxmoxBackupsTable', () => ({+ ProxmoxBackupsTable: () => <div data-testid="backups-table" />,+}));++vi.mock('../ProxmoxCephTable', () => ({+ ProxmoxCephTable: () => <div data-testid="ceph-table" />,+}));++vi.mock('../ProxmoxMailGatewayTable', () => ({+ ProxmoxMailGatewayTable: () => <div data-testid="mail-table" />,+}));++vi.mock('../ProxmoxNodesTable', () => ({+ ProxmoxNodesTable: (props: { nodes: Resource[] }) => (+ <div data-testid="nodes-table" data-rows={props.nodes.length} />+ ),+}));++vi.mock('../ProxmoxReplicationTable', () => ({+ ProxmoxReplicationTable: () => <div data-testid="replication-table" />,+}));++describe('ProxmoxPageSurface contract', () => {+ beforeEach(() => {+ mockPathname.mockReturnValue('/proxmox/overview');+ mockVersionInfo.mockReturnValue(null);+ });++ afterEach(() => {+ cleanup();+ vi.clearAllMocks();+ });++ it('surfaces stale agent-backed Proxmox nodes', () => {+ mockVersionInfo.mockReturnValue({ version: 'v6.0.0-rc.6' });+ setResources([+ makeResource({+ id: 'agent:delly',+ name: 'delly',+ displayName: 'delly',+ type: 'agent',+ proxmox: { nodeName: 'delly', clusterName: 'homelab' },+ agent: { agentVersion: 'v5.1.34' },+ }),+ ]);++ render(() => <ProxmoxPageSurface />);++ expect(screen.getByTestId('platform-section-tabs')).toHaveAttribute('data-active', 'overview');+ expect(screen.getByTestId('nodes-table')).toHaveAttribute('data-rows', '1');+ const notice = screen.getByTestId('platform-outdated-agent-notice');+ expect(notice).toHaveTextContent('delly is running an older Pulse agent (v5.1.34).');+ expect(notice).toHaveTextContent(+ 'latest agent-contributed Proxmox node detail and command support',+ );+ expect(screen.getByRole('link', { name: 'Open agent upgrade commands' })).toHaveAttribute(+ 'href',+ '/settings/infrastructure',+ );+ });+});diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsxindex cb94212ed0..281167df9a 100644--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx@@ -156,7 +156,8 @@ export function StandalonePageSurface() {<PlatformOutdatedAgentNoticehosts={outdatedAgentHosts()}targetVersion={serverVersionDisplay()}- missingLabel="command support and newer agent-managed platform details"+ missingLabel="agent command support and agent-managed platform detail"+ copyVariant="latest-detail"actionHref={buildInfrastructureWorkspacePath()}actionLabel="Open agent upgrade commands"/>diff --git a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsxindex 9854f3d010..8612c5e16c 100644--- a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx+++ b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx@@ -158,7 +158,9 @@ describe('StandalonePageSurface', () => {const notice = screen.getByTestId('platform-outdated-agent-notice');expect(notice).toHaveTextContent('tower is running an older Pulse agent (v5.1.34).');- expect(notice).toHaveTextContent('command support and newer agent-managed platform details');+ expect(notice).toHaveTextContent(+ 'latest agent command support and agent-managed platform detail',+ );expect(screen.getByRole('link', { name: 'Open agent upgrade commands' })).toHaveAttribute('href','/settings/infrastructure',diff --git a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsxindex 365234c0f0..b3efa2f3bb 100644--- a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx+++ b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx@@ -124,7 +124,8 @@ export function TrueNASPageSurface() {<PlatformOutdatedAgentNoticehosts={outdatedAgentHosts()}targetVersion={serverVersionDisplay()}- missingLabel="TrueNAS storage, services, apps, VMs, shares, and protection details"+ missingLabel="agent-contributed TrueNAS system detail and command support"+ copyVariant="latest-detail"actionHref={buildInfrastructureWorkspacePath()}actionLabel="Open agent upgrade commands"/>diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASPageSurface.contract.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASPageSurface.contract.test.tsxindex 5a846d929b..266c555e8d 100644--- a/frontend-modern/src/features/truenas/__tests__/TrueNASPageSurface.contract.test.tsx+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASPageSurface.contract.test.tsx@@ -150,7 +150,9 @@ describe('TrueNASPageSurface contract', () => {expect(screen.getByTestId('systems-table')).toHaveAttribute('data-rows', '1');const notice = screen.getByTestId('platform-outdated-agent-notice');expect(notice).toHaveTextContent('truenas-scale is running an older Pulse agent (v5.1.34).');- expect(notice).toHaveTextContent('TrueNAS storage, services, apps, VMs, shares');+ expect(notice).toHaveTextContent(+ 'latest agent-contributed TrueNAS system detail and command support',+ );expect(screen.getByRole('link', { name: 'Open agent upgrade commands' })).toHaveAttribute('href','/settings/infrastructure',