Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Generalize stale agent upgrade cues

rcourtman54749cdb596a
diff --git a/frontend-modern/src/features/docker/DockerPageSurface.tsx b/frontend-modern/src/features/docker/DockerPageSurface.tsx
index 507d678d85..9a602cbf51 100644
--- a/frontend-modern/src/features/docker/DockerPageSurface.tsx
+++ b/frontend-modern/src/features/docker/DockerPageSurface.tsx
@@ -40,6 +40,7 @@ import {
} from '@/features/platformPage/agentVersion';
import { PlatformOutdatedAgentNotice } from '@/features/platformPage/PlatformOutdatedAgentNotice';
import { updateStore } from '@/stores/updates';
+import { buildInfrastructureWorkspacePath } from '@/components/Settings/infrastructureWorkspaceModel';
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';
@@ -111,6 +112,8 @@ export function DockerPageSurface() {
hosts={outdatedAgentHosts()}
targetVersion={serverVersionDisplay()}
missingLabel="images, networks, storage, and Swarm details"
+ actionHref={buildInfrastructureWorkspacePath()}
+ actionLabel="Open agent upgrade commands"
/>
<Show when={activeTab() === 'overview'}>
<DockerOverview
diff --git a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
index 4bf554b055..822d3bb768 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
@@ -1,8 +1,15 @@
import { useLocation, useSearchParams } from '@solidjs/router';
import { Show, createMemo, createSignal, type Accessor } from 'solid-js';
+import { buildInfrastructureWorkspacePath } from '@/components/Settings/infrastructureWorkspaceModel';
import type { FilterDef } from '@/components/shared/FilterBar';
import { getPlatformIcon } from '@/features/platformPage/platformIcon';
+import { PlatformOutdatedAgentNotice } from '@/features/platformPage/PlatformOutdatedAgentNotice';
+import {
+ collectOutdatedAgentHosts,
+ formatAgentVersionDisplay,
+} from '@/features/platformPage/agentVersion';
import { useUnifiedResources } from '@/hooks/useUnifiedResources';
+import { updateStore } from '@/stores/updates';
import {
PLATFORM_HEALTH_FILTER_OPTIONS,
PlatformErrorState,
@@ -62,6 +69,12 @@ export function KubernetesPageSurface() {
tabs().some((tab) => tab.id === requestedTab()) ? requestedTab() : 'overview',
);
const controllerResources = createMemo(() => getKubernetesControllerResources(model()));
+ const outdatedAgentHosts = createMemo(() =>
+ collectOutdatedAgentHosts(model().nodes, updateStore.versionInfo()?.version),
+ );
+ const serverVersionDisplay = createMemo(() =>
+ formatAgentVersionDisplay(updateStore.versionInfo()?.version),
+ );
return (
<div data-testid="kubernetes-page" class="space-y-3">
@@ -100,6 +113,13 @@ export function KubernetesPageSurface() {
/>
}
>
+ <PlatformOutdatedAgentNotice
+ hosts={outdatedAgentHosts()}
+ targetVersion={serverVersionDisplay()}
+ missingLabel="Kubernetes nodes, workloads, services, storage, configuration, and events"
+ actionHref={buildInfrastructureWorkspacePath()}
+ actionLabel="Open agent upgrade commands"
+ />
<Show when={activeTab() === 'overview'}>
<KubernetesOverview model={model} />
</Show>
diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx
index c9787556d0..3c29a11154 100644
--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx
+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurface.contract.test.tsx
@@ -6,6 +6,7 @@ import { KubernetesPageSurface } from '../KubernetesPageSurface';
const mockUseUnifiedResources = vi.fn();
const mockPathname = vi.hoisted(() => vi.fn(() => '/'));
+const mockVersionInfo = vi.hoisted(() => vi.fn());
const makeResource = (resource: Partial<Resource> & Pick<Resource, 'id' | 'type'>): Resource => ({
name: resource.id,
@@ -39,6 +40,12 @@ vi.mock('@/hooks/useUnifiedResources', () => ({
useUnifiedResources: (...args: unknown[]) => mockUseUnifiedResources(...args),
}));
+vi.mock('@/stores/updates', () => ({
+ updateStore: {
+ versionInfo: mockVersionInfo,
+ },
+}));
+
vi.mock('@solidjs/router', async () => {
const actual = await vi.importActual<typeof import('@solidjs/router')>('@solidjs/router');
return {
@@ -146,6 +153,7 @@ vi.mock('../KubernetesStorageTable', () => ({
describe('KubernetesPageSurface contract', () => {
beforeEach(() => {
mockPathname.mockReturnValue('/');
+ mockVersionInfo.mockReturnValue(null);
});
afterEach(() => {
@@ -206,6 +214,29 @@ describe('KubernetesPageSurface contract', () => {
expect(screen.queryByTestId('services-table')).toBeNull();
});
+ it('surfaces stale agent-backed Kubernetes nodes', () => {
+ mockVersionInfo.mockReturnValue({ version: 'v6.0.0-rc.6' });
+ setResources([
+ makeResource({
+ id: 'agent:k8s-node-1',
+ name: 'k8s-node-1',
+ type: 'agent',
+ sources: ['agent', 'kubernetes'],
+ agent: { agentVersion: 'v5.1.34' },
+ }),
+ ]);
+
+ renderSurface();
+
+ const notice = screen.getByTestId('platform-outdated-agent-notice');
+ expect(notice).toHaveTextContent('k8s-node-1 is running an older Pulse agent (v5.1.34).');
+ expect(notice).toHaveTextContent('Kubernetes nodes, workloads, services, storage');
+ expect(screen.getByRole('link', { name: 'Open agent upgrade commands' })).toHaveAttribute(
+ 'href',
+ '/settings/infrastructure',
+ );
+ });
+
it('groups workload API tables under the Workloads tab', () => {
mockPathname.mockReturnValue('/kubernetes/workloads');
setResources([
diff --git a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsx b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsx
index 5ab83acba1..c8dc2e9c2c 100644
--- a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsx
+++ b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.test.tsx
@@ -20,12 +20,18 @@ describe('PlatformOutdatedAgentNotice', () => {
hosts={[{ name: 'tower', version: 'v6.0.0-rc.5' }]}
targetVersion="v6.0.0-rc.6"
missingLabel="images, networks, and storage"
+ actionHref="/settings/infrastructure"
+ actionLabel="Open agent upgrade commands"
/>
));
const notice = screen.getByTestId('platform-outdated-agent-notice');
expect(notice).toHaveTextContent(
'tower is running an older Pulse agent (v6.0.0-rc.5). Update it to v6.0.0-rc.6 to see images, networks, and storage for this host.',
);
+ expect(screen.getByRole('link', { name: 'Open agent upgrade commands' })).toHaveAttribute(
+ 'href',
+ '/settings/infrastructure',
+ );
});
it('summarises multiple outdated hosts and lists them', () => {
diff --git a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsx b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsx
index 18d7c0ced5..60bc4b9552 100644
--- a/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsx
+++ b/frontend-modern/src/features/platformPage/PlatformOutdatedAgentNotice.tsx
@@ -1,5 +1,5 @@
import { Show, createMemo } from 'solid-js';
-import { AlertTriangle } from 'lucide-solid';
+import { AlertTriangle, ArrowRight } from 'lucide-solid';
import type { OutdatedAgentHost } from './agentVersion';
type PlatformOutdatedAgentNoticeProps = {
@@ -11,6 +11,8 @@ type PlatformOutdatedAgentNoticeProps = {
// What the stale agents cannot report, e.g. "images, networks, and storage".
// Phrased to slot into "to see {missingLabel} for ...".
missingLabel: string;
+ actionHref?: string;
+ actionLabel?: string;
};
// Inline, self-explaining notice shown on a platform page when one or more of
@@ -21,6 +23,7 @@ type PlatformOutdatedAgentNoticeProps = {
export function PlatformOutdatedAgentNotice(props: PlatformOutdatedAgentNoticeProps) {
const count = createMemo(() => props.hosts.length);
const names = createMemo(() => props.hosts.map((host) => host.name).join(', '));
+ const actionLabel = createMemo(() => props.actionLabel || 'Open Infrastructure settings');
const message = createMemo(() => {
const target = props.targetVersion ? ` to ${props.targetVersion}` : '';
@@ -39,7 +42,20 @@ export function PlatformOutdatedAgentNotice(props: PlatformOutdatedAgentNoticePr
class="flex items-start gap-2 rounded-lg border border-amber-300 bg-amber-50 px-3 py-2 text-sm text-amber-800 dark:border-amber-800/60 dark:bg-amber-900/20 dark:text-amber-200"
>
<AlertTriangle class="mt-0.5 h-4 w-4 shrink-0" aria-hidden="true" />
- <span>{message()}</span>
+ <div class="min-w-0 flex-1 space-y-1">
+ <div>{message()}</div>
+ <Show when={props.actionHref}>
+ {(href) => (
+ <a
+ href={href()}
+ class="inline-flex items-center gap-1 text-xs font-semibold text-amber-900 underline-offset-2 hover:underline dark:text-amber-100"
+ >
+ <span>{actionLabel()}</span>
+ <ArrowRight class="h-3.5 w-3.5" aria-hidden="true" />
+ </a>
+ )}
+ </Show>
+ </div>
</div>
</Show>
);
diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
index 5b8e1267f3..0fd5973c5d 100644
--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
@@ -3,7 +3,15 @@ import { A, useLocation, useNavigate } from '@solidjs/router';
import ActivityIcon from 'lucide-solid/icons/activity';
import ServerIcon from 'lucide-solid/icons/server';
import SettingsIcon from 'lucide-solid/icons/settings';
-import { buildInfrastructureOnboardingPath } from '@/components/Settings/infrastructureWorkspaceModel';
+import {
+ buildInfrastructureOnboardingPath,
+ buildInfrastructureWorkspacePath,
+} from '@/components/Settings/infrastructureWorkspaceModel';
+import { PlatformOutdatedAgentNotice } from '@/features/platformPage/PlatformOutdatedAgentNotice';
+import {
+ collectOutdatedAgentHosts,
+ formatAgentVersionDisplay,
+} from '@/features/platformPage/agentVersion';
import {
PlatformErrorState,
PlatformSectionTabs,
@@ -12,6 +20,7 @@ import {
} from '@/features/platformPage/sharedPlatformPage';
import { useUnifiedResources } from '@/hooks/useUnifiedResources';
import { STANDALONE_PATH, buildStandalonePath } from '@/routing/resourceLinks';
+import { updateStore } from '@/stores/updates';
import { AvailabilityChecksTable } from './AvailabilityChecksTable';
import { AgentsMachinesTable } from './AgentsMachinesTable';
import { buildStandalonePageModel } from './standalonePageModel';
@@ -60,6 +69,12 @@ export function StandalonePageSurface() {
model().machines.length === 0 &&
model().availabilityChecks.length === 0,
);
+ const outdatedAgentHosts = createMemo(() =>
+ collectOutdatedAgentHosts(model().machines, updateStore.versionInfo()?.version),
+ );
+ const serverVersionDisplay = createMemo(() =>
+ formatAgentVersionDisplay(updateStore.versionInfo()?.version),
+ );
createEffect(() => {
if (!loading() && !initialLoadComplete()) {
@@ -138,6 +153,13 @@ export function StandalonePageSurface() {
}
>
<div class="space-y-4">
+ <PlatformOutdatedAgentNotice
+ hosts={outdatedAgentHosts()}
+ targetVersion={serverVersionDisplay()}
+ missingLabel="current machine telemetry, command status, and agent-managed platform details"
+ actionHref={buildInfrastructureWorkspacePath()}
+ actionLabel="Open agent upgrade commands"
+ />
<Show
when={model().machines.length > 0}
fallback={
diff --git a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
index 8cafd0b703..e0daf50fd5 100644
--- a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
@@ -8,6 +8,7 @@ const mocks = vi.hoisted(() => ({
pathname: '/standalone/machines',
navigate: vi.fn(),
useUnifiedResources: vi.fn(),
+ versionInfo: vi.fn(),
AgentsMachinesTable: vi.fn((props: { resources: Resource[] }) => (
<div data-testid="agents-machines-table" data-resource-count={props.resources.length} />
)),
@@ -20,6 +21,12 @@ vi.mock('@/hooks/useUnifiedResources', () => ({
useUnifiedResources: mocks.useUnifiedResources,
}));
+vi.mock('@/stores/updates', () => ({
+ updateStore: {
+ versionInfo: mocks.versionInfo,
+ },
+}));
+
vi.mock('@solidjs/router', async () => {
const actual = await vi.importActual<typeof import('@solidjs/router')>('@solidjs/router');
return {
@@ -82,6 +89,7 @@ const resource = (overrides: Partial<Resource>): Resource =>
beforeEach(() => {
mocks.pathname = '/standalone/machines';
mocks.navigate.mockClear();
+ mocks.versionInfo.mockReturnValue(null);
mocks.useUnifiedResources.mockReturnValue({
resources: () => [
resource({ id: 'linux-server', type: 'agent', platformType: 'agent', sources: ['agent'] }),
@@ -128,6 +136,35 @@ describe('StandalonePageSurface', () => {
expect(screen.queryByTestId('availability-checks-table')).not.toBeInTheDocument();
});
+ it('surfaces stale Pulse Agent binaries on the Machines page', () => {
+ mocks.versionInfo.mockReturnValue({ version: 'v6.0.0-rc.6' });
+ mocks.useUnifiedResources.mockReturnValue({
+ resources: () => [
+ resource({
+ id: 'tower',
+ name: 'tower',
+ type: 'agent',
+ platformType: 'agent',
+ sources: ['agent'],
+ agent: { agentVersion: 'v5.1.34' },
+ }),
+ ],
+ loading: () => false,
+ error: () => null,
+ refetch: vi.fn(),
+ });
+
+ render(() => <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('current machine telemetry');
+ expect(screen.getByRole('link', { name: 'Open agent upgrade commands' })).toHaveAttribute(
+ 'href',
+ '/settings/infrastructure',
+ );
+ });
+
it('redirects retired Standalone overview links to the machines tab', () => {
mocks.pathname = '/standalone/overview';
diff --git a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
index 01f172ef57..365234c0f0 100644
--- a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
@@ -1,8 +1,15 @@
import { useLocation } from '@solidjs/router';
import { Show, createMemo, type Accessor } from 'solid-js';
+import { buildInfrastructureWorkspacePath } from '@/components/Settings/infrastructureWorkspaceModel';
import { getPlatformIcon } from '@/features/platformPage/platformIcon';
+import { PlatformOutdatedAgentNotice } from '@/features/platformPage/PlatformOutdatedAgentNotice';
+import {
+ collectOutdatedAgentHosts,
+ formatAgentVersionDisplay,
+} from '@/features/platformPage/agentVersion';
import { useRecoveryPoints } from '@/hooks/useRecoveryPoints';
import { useUnifiedResources } from '@/hooks/useUnifiedResources';
+import { updateStore } from '@/stores/updates';
import {
PlatformErrorState,
PlatformSectionTabs,
@@ -70,6 +77,12 @@ export function TrueNASPageSurface() {
const activeTab = createMemo<TrueNASPageTabId>(() =>
tabs().some((tab) => tab.id === requestedTab()) ? requestedTab() : 'overview',
);
+ const outdatedAgentHosts = createMemo(() =>
+ collectOutdatedAgentHosts(model().systems, updateStore.versionInfo()?.version),
+ );
+ const serverVersionDisplay = createMemo(() =>
+ formatAgentVersionDisplay(updateStore.versionInfo()?.version),
+ );
return (
<div data-testid="truenas-page" class="space-y-3">
@@ -108,6 +121,13 @@ export function TrueNASPageSurface() {
/>
}
>
+ <PlatformOutdatedAgentNotice
+ hosts={outdatedAgentHosts()}
+ targetVersion={serverVersionDisplay()}
+ missingLabel="TrueNAS storage, services, apps, VMs, shares, and protection details"
+ actionHref={buildInfrastructureWorkspacePath()}
+ actionLabel="Open agent upgrade commands"
+ />
<Show when={activeTab() === 'overview'}>
<TrueNASOverview model={model} />
</Show>
diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASPageSurface.contract.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASPageSurface.contract.test.tsx
new file mode 100644
index 0000000000..5a846d929b
--- /dev/null
+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASPageSurface.contract.test.tsx
@@ -0,0 +1,159 @@
+import { cleanup, render, screen } from '@solidjs/testing-library';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import type { Resource } from '@/types/resource';
+import { TrueNASPageSurface } from '../TrueNASPageSurface';
+
+const mockUseUnifiedResources = vi.fn();
+const mockUseRecoveryPoints = vi.fn();
+const mockPathname = vi.hoisted(() => vi.fn(() => '/truenas/overview'));
+const mockVersionInfo = vi.hoisted(() => vi.fn());
+
+const makeResource = (resource: Partial<Resource> & Pick<Resource, 'id' | 'type'>): Resource =>
+ ({
+ name: resource.id,
+ displayName: resource.id,
+ platformId: 'truenas-1',
+ platformType: 'truenas',
+ sourceType: 'agent',
+ sources: ['agent', 'truenas'],
+ 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/useRecoveryPoints', () => ({
+ useRecoveryPoints: (...args: unknown[]) => mockUseRecoveryPoints(...args),
+}));
+
+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('@/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('../TrueNASAlertsTable', () => ({
+ TrueNASAlertsTable: (props: { incidents: unknown[] }) => (
+ <div data-testid="alerts-table" data-rows={props.incidents.length} />
+ ),
+}));
+
+vi.mock('../TrueNASAppsTable', () => ({
+ TrueNASAppsTable: (props: { apps: Resource[] }) => (
+ <div data-testid="apps-table" data-rows={props.apps.length} />
+ ),
+}));
+
+vi.mock('../TrueNASNetworkSharesTable', () => ({
+ TrueNASNetworkSharesTable: (props: { shares: Resource[] }) => (
+ <div data-testid="shares-table" data-rows={props.shares.length} />
+ ),
+}));
+
+vi.mock('../TrueNASProtectionTable', () => ({
+ TrueNASProtectionTable: (props: { points: unknown[] }) => (
+ <div data-testid="protection-table" data-rows={props.points.length} />
+ ),
+}));
+
+vi.mock('../TrueNASServicesTable', () => ({
+ TrueNASServicesTable: (props: { services: unknown[] }) => (
+ <div data-testid="services-table" data-rows={props.services.length} />
+ ),
+}));
+
+vi.mock('../TrueNASStorageTopologyTable', () => ({
+ TrueNASStorageTopologyTable: (props: { resources: Resource[] }) => (
+ <div data-testid="storage-table" data-rows={props.resources.length} />
+ ),
+}));
+
+vi.mock('../TrueNASSystemsTable', () => ({
+ TrueNASSystemsTable: (props: { systems: Resource[] }) => (
+ <div data-testid="systems-table" data-rows={props.systems.length} />
+ ),
+}));
+
+vi.mock('../TrueNASVirtualMachinesTable', () => ({
+ TrueNASVirtualMachinesTable: (props: { vms: Resource[] }) => (
+ <div data-testid="vms-table" data-rows={props.vms.length} />
+ ),
+}));
+
+describe('TrueNASPageSurface contract', () => {
+ beforeEach(() => {
+ mockPathname.mockReturnValue('/truenas/overview');
+ mockVersionInfo.mockReturnValue(null);
+ mockUseRecoveryPoints.mockReturnValue({
+ meta: () => ({ total: 0 }),
+ points: () => [],
+ response: { loading: false, error: null },
+ refetch: vi.fn(),
+ });
+ });
+
+ afterEach(() => {
+ cleanup();
+ vi.clearAllMocks();
+ });
+
+ it('surfaces stale agent-backed TrueNAS systems', () => {
+ mockVersionInfo.mockReturnValue({ version: 'v6.0.0-rc.6' });
+ setResources([
+ makeResource({
+ id: 'agent:truenas-scale',
+ name: 'truenas-scale',
+ type: 'agent',
+ agent: { agentVersion: 'v5.1.34' },
+ }),
+ ]);
+
+ render(() => <TrueNASPageSurface />);
+
+ expect(screen.getByTestId('platform-section-tabs')).toHaveAttribute('data-active', 'overview');
+ 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(screen.getByRole('link', { name: 'Open agent upgrade commands' })).toHaveAttribute(
+ 'href',
+ '/settings/infrastructure',
+ );
+ });
+});