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
Show availability checks on Agents page
rcourtmand6f60963a1d0
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 2973b3b46b..1c001875e8 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -3575,3 +3575,8 @@ and latest latency or failure result once, inline in the agentless endpoint'smetric slot, while keeping recent check timing and fuller failure context inthe tooltip or drawer so operators can understand what was measured withoutduplicated row chrome.+Operational navigation for those agentless endpoints belongs to the existing+standalone Agents surface rather than a new primary nav item. The page may+show availability checks beside standalone Pulse Agent machines and provide a+focused availability tab, but Settings remains the add/edit owner and the app+shell must not add a separate top-level Availability destination.diff --git a/docs/release-control/v6/internal/subsystems/monitoring.md b/docs/release-control/v6/internal/subsystems/monitoring.mdindex 435a3145b6..c989141a83 100644--- a/docs/release-control/v6/internal/subsystems/monitoring.md+++ b/docs/release-control/v6/internal/subsystems/monitoring.md@@ -290,6 +290,11 @@ Mock-mode availability targets must use that same provider vocabulary. Themock fixture graph may author ping/TCP/HTTP endpoint examples, but monitoringand API consumers must receive them through `SourceAvailability` supplementalrecords and probe-status projections, not through a mock-only monitoring type.+Frontend monitoring consumers should treat those supplemental records as+day-to-day availability evidence. Settings owns saved target management, while+the standalone Agents surface may read the same `network-endpoint` projection+to show current reachability, latency, check age, and failure state without+creating another monitoring provider or top-level availability route.Mock-mode Discovery context follows the same fixture-graph rule. Demo servicedetails such as detected version, config/data/log paths, Docker bind mounts,ports, and suggested web URLs may be authored in mock fixtures, but consumersdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex e3fa4e4b40..d6f91c196c 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -126,21 +126,22 @@ cross-source deduplication.102. `frontend-modern/src/features/agents/agentsPageModel.ts`103. `frontend-modern/src/features/agents/AgentsPageSurface.tsx`104. `frontend-modern/src/features/agents/AgentsMachinesTable.tsx`-105. `internal/platformsupport/manifest_generated.go`-106. `frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx`-107. `frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx`-108. `frontend-modern/src/features/kubernetes/kubernetesPageModel.ts`-109. `frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx`-110. `frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx`-111. `frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx`-112. `frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx`-113. `frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx`-114. `frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx`-115. `frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx`-116. `frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx`-117. `frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx`-118. `frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx`-119. `frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx`+105. `frontend-modern/src/features/agents/AvailabilityChecksTable.tsx`+106. `internal/platformsupport/manifest_generated.go`+107. `frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx`+108. `frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx`+109. `frontend-modern/src/features/kubernetes/kubernetesPageModel.ts`+110. `frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx`+111. `frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx`+112. `frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx`+113. `frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx`+114. `frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx`+115. `frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx`+116. `frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx`+117. `frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx`+118. `frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx`+119. `frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx`+120. `frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx`## Shared Boundaries@@ -1138,6 +1139,13 @@ or the live-state `platformData.availability` mirror: the System column usesthe probe protocol as the compact identity badge (`ICMP`, `TCP`, or `HTTP`),while the metric cell shows only the target detail and latest latency orfailure result, such as `6053: 11 ms`, `/status: 503`, `3 ms`, or `timed out`.+The standalone Agents surface is the operational home for those same+agentless checks, not a new top-level platform page. `AgentsPageSurface.tsx`+must fetch both `agent` and `network-endpoint` resources, keep standalone+machines and availability checks as separate buckets in `agentsPageModel.ts`,+and let `AvailabilityChecksTable.tsx` render saved probe method, target,+latest result, check age, failure count, and cadence from the canonical+availability payload.Recent check timing and fuller failure context may stay in tooltip or drawerdetail, but the table row must not duplicate the same probe protocol andresult text across both identity and metric cells.@@ -2783,9 +2791,11 @@ surface and is intentionally removed rather than preserved as a compatibilityredirect. Canonical infrastructure management lives under`/settings/infrastructure`, while agentless endpoint availability managementlives under `/settings/monitoring/availability`; day-to-day resource-inspection lives on the platform/runtime pages and shared resource components.-Future infrastructure work must extend those owners rather than recreating-`frontend-modern/src/features/infrastructure/` or a `/infrastructure` route.+inspection lives on the platform/runtime pages, with standalone agent machines+and agentless endpoint checks sharing the Agents surface. Future+infrastructure work must extend those owners rather than recreating+`frontend-modern/src/features/infrastructure/`, a `/infrastructure` route, or+a separate top-level availability route.Shared unified-resource consumers now also normalize org scope through`frontend-modern/src/utils/orgScope.ts` before building cache keys ormulti-tenant resource fetch state, so the canonical resource hooks do notdiff --git a/frontend-modern/src/features/agents/AgentsPageSurface.tsx b/frontend-modern/src/features/agents/AgentsPageSurface.tsxindex f5ad102e66..a1d7e8435c 100644--- a/frontend-modern/src/features/agents/AgentsPageSurface.tsx+++ b/frontend-modern/src/features/agents/AgentsPageSurface.tsx@@ -1,7 +1,10 @@import { Show, createEffect, createMemo, createSignal } from 'solid-js';-import { useNavigate } from '@solidjs/router';+import { A, useLocation, useNavigate } from '@solidjs/router';+import ActivityIcon from 'lucide-solid/icons/activity';+import PlusIcon from 'lucide-solid/icons/plus';import ServerIcon from 'lucide-solid/icons/server';import SettingsIcon from 'lucide-solid/icons/settings';+import { buildAvailabilityTargetAddPath } from '@/components/Settings/availabilitySettingsModel';import { buildInfrastructureOnboardingPath } from '@/components/Settings/infrastructureWorkspaceModel';import {PlatformErrorState,@@ -10,15 +13,25 @@ import {PlatformTableLoadingState,} from '@/features/platformPage/sharedPlatformPage';import { useUnifiedResources } from '@/hooks/useUnifiedResources';+import { AvailabilityChecksTable } from './AvailabilityChecksTable';import { AgentsMachinesTable } from './AgentsMachinesTable';import { buildAgentsPageModel } from './agentsPageModel';-const AGENTS_RESOURCE_QUERY = 'type=agent';-const AGENTS_TAB_SPECS = [{ id: 'overview', label: 'Overview', path: '/agents/overview' }] as const;+const AGENTS_RESOURCE_QUERY = 'type=agent,network-endpoint';+const AGENTS_TAB_SPECS = [+ { id: 'overview', label: 'Overview', path: '/agents/overview' },+ { id: 'availability', label: 'Availability checks', path: '/agents/availability' },+] as const;+type AgentsTabId = (typeof AGENTS_TAB_SPECS)[number]['id'];const agentsIcon = () => <ServerIcon class="h-6 w-6 text-slate-400" />;+const availabilityIcon = () => <ActivityIcon class="h-6 w-6 text-slate-400" />;++const resolveAgentsTab = (pathname: string): AgentsTabId =>+ pathname.replace(/\/+$/, '') === '/agents/availability' ? 'availability' : 'overview';export function AgentsPageSurface() {+ const location = useLocation();const navigate = useNavigate();const { resources, loading, error, refetch } = useUnifiedResources({query: AGENTS_RESOURCE_QUERY,@@ -29,11 +42,20 @@ export function AgentsPageSurface() {const [initialLoadComplete, setInitialLoadComplete] = createSignal(false);const model = createMemo(() => buildAgentsPageModel(resources()));+ const activeTab = createMemo(() => resolveAgentsTab(location.pathname));const showLoading = createMemo(- () => loading() && !initialLoadComplete() && model().resources.length === 0,+ () =>+ loading() &&+ !initialLoadComplete() &&+ model().machines.length === 0 &&+ model().availabilityChecks.length === 0,);- const showEmpty = createMemo(- () => initialLoadComplete() && !error() && model().resources.length === 0,+ const showOverviewEmpty = createMemo(+ () =>+ initialLoadComplete() &&+ !error() &&+ model().machines.length === 0 &&+ model().availabilityChecks.length === 0,);createEffect(() => {@@ -44,7 +66,7 @@ export function AgentsPageSurface() {return (<div data-testid="agents-page" class="space-y-4">- <PlatformSectionTabs tabs={AGENTS_TAB_SPECS} active="overview" ariaLabel="Agents sections" />+ <PlatformSectionTabs tabs={AGENTS_TAB_SPECS} active={activeTab()} ariaLabel="Agents sections" /><Showwhen={!showLoading()}@@ -65,33 +87,65 @@ export function AgentsPageSurface() {/>}>- <Show- when={!showEmpty()}- fallback={- <PlatformTableEmptyState- icon={agentsIcon()}- title="No standalone Pulse Agent machines"- description="Install the Pulse Agent on Linux, macOS, Windows, or Unraid systems that are not already represented by a platform integration."- actions={- <button- type="button"- onClick={() => navigate(buildInfrastructureOnboardingPath('pick'))}- class="inline-flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:bg-slate-50"- >- <SettingsIcon class="h-3.5 w-3.5" />- Add agent- </button>- }- />- }- >- <AgentsMachinesTable- resources={model().resources}- emptyIcon={agentsIcon()}- emptyTitle="No standalone Pulse Agent machines"- emptyDescription="Install the Pulse Agent on Linux, macOS, Windows, or Unraid systems that are not already represented by a platform integration."+ <Show when={activeTab() === 'availability'}>+ <AvailabilityChecksTable+ resources={model().availabilityChecks}+ emptyIcon={availabilityIcon()}+ emptyTitle="No availability checks"+ emptyDescription="Add ping, TCP, MQTT, ESPHome, or HTTP checks for devices and services that cannot run Pulse Agent."/></Show>++ <Show when={activeTab() === 'overview'}>+ <Show+ when={!showOverviewEmpty()}+ fallback={+ <PlatformTableEmptyState+ icon={agentsIcon()}+ title="No standalone monitored endpoints"+ description="Install Pulse Agent on standalone machines, or add agentless availability checks for devices and services that only need reachability monitoring."+ actions={+ <div class="flex flex-wrap items-center justify-center gap-2">+ <button+ type="button"+ onClick={() => navigate(buildInfrastructureOnboardingPath('pick'))}+ class="inline-flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:bg-slate-50"+ >+ <SettingsIcon class="h-3.5 w-3.5" />+ Add agent+ </button>+ <A+ href={buildAvailabilityTargetAddPath()}+ class="inline-flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:bg-slate-50"+ >+ <PlusIcon class="h-3.5 w-3.5" />+ Add check+ </A>+ </div>+ }+ />+ }+ >+ <div class="space-y-4">+ <Show when={model().machines.length > 0}>+ <AgentsMachinesTable+ resources={model().machines}+ emptyIcon={agentsIcon()}+ emptyTitle="No standalone Pulse Agent machines"+ emptyDescription="Install the Pulse Agent on Linux, macOS, Windows, or Unraid systems that are not already represented by a platform integration."+ />+ </Show>+ <Show when={model().availabilityChecks.length > 0}>+ <AvailabilityChecksTable+ resources={model().availabilityChecks}+ emptyIcon={availabilityIcon()}+ emptyTitle="No availability checks"+ emptyDescription="Add ping, TCP, MQTT, ESPHome, or HTTP checks for devices and services that cannot run Pulse Agent."+ />+ </Show>+ </div>+ </Show>+ </Show></Show></Show></div>diff --git a/frontend-modern/src/features/agents/AvailabilityChecksTable.tsx b/frontend-modern/src/features/agents/AvailabilityChecksTable.tsxnew file mode 100644index 0000000000..0183f8437d--- /dev/null+++ b/frontend-modern/src/features/agents/AvailabilityChecksTable.tsx@@ -0,0 +1,230 @@+import { A } from '@solidjs/router';+import { For, Show, type Component, type JSX } from 'solid-js';+import PlusIcon from 'lucide-solid/icons/plus';+import SettingsIcon from 'lucide-solid/icons/settings';+import { StatusDot } from '@/components/shared/StatusDot';+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '@/components/shared/Table';+import { TableCard } from '@/components/shared/TableCard';+import { TableCardHeader } from '@/components/shared/TableCardHeader';+import {+ PLATFORM_HEALTH_FILTER_OPTIONS,+ PLATFORM_TABLE_BODY_CLASS,+ PLATFORM_TABLE_CARD_CLASS,+ PLATFORM_TABLE_HEADER_ROW_CLASS,+ PlatformTableEmptyState,+ PlatformTableToolbar,+ createPlatformTableFilterState,+ filterPlatformResources,+ getPlatformTableCellClassForKind,+ getPlatformTableHeadClassForKind,+ type PlatformResourceStatusFilter,+} from '@/features/platformPage/sharedPlatformPage';+import type { Resource, ResourceAvailabilityMeta } from '@/types/resource';+import { formatRelativeTime } from '@/utils/format';+import { getAvailabilityProbePresentation } from '@/utils/availabilityProbePresentation';+import { getSimpleStatusIndicator } from '@/utils/status';+import {+ buildAvailabilitySettingsPath,+ buildAvailabilityTargetAddPath,+} from '@/components/Settings/availabilitySettingsModel';++const settingsLinkClass =+ 'inline-flex min-h-8 items-center justify-center gap-1.5 rounded-md border border-border bg-surface px-2.5 py-1 text-xs font-medium text-base-content transition-colors hover:bg-surface-hover';++const availabilityFor = (resource: Resource): ResourceAvailabilityMeta | undefined =>+ resource.availability ?? (resource.platformData?.availability as ResourceAvailabilityMeta | undefined);++const formatTarget = (resource: Resource): string => {+ const availability = availabilityFor(resource);+ if (!availability) return resource.name;+ const address = (availability.address ?? '').trim();+ if (!address) return resource.name;+ const protocol = (availability.protocol ?? '').trim().toLowerCase();+ if (protocol === 'tcp' && availability.port) return `${address}:${availability.port}`;+ if ((protocol === 'http' || protocol === 'https') && availability.path) {+ const path = availability.path.trim();+ if (path && !address.endsWith(path)) {+ return `${address.replace(/\/+$/, '')}${path.startsWith('/') ? path : `/${path}`}`;+ }+ }+ return address;+};++const formatChecked = (availability: ResourceAvailabilityMeta | undefined): string =>+ formatRelativeTime(availability?.lastChecked, { compact: true, emptyText: 'Not checked' });++const formatFailures = (availability: ResourceAvailabilityMeta | undefined): string => {+ const failures = availability?.consecutiveFailures;+ if (typeof failures !== 'number' || !Number.isFinite(failures) || failures <= 0) return '—';+ const threshold = availability?.failureThreshold;+ if (typeof threshold === 'number' && Number.isFinite(threshold) && threshold > 0) {+ return `${failures}/${threshold}`;+ }+ return String(failures);+};++const formatInterval = (availability: ResourceAvailabilityMeta | undefined): string => {+ const seconds = availability?.pollIntervalSeconds;+ if (typeof seconds !== 'number' || !Number.isFinite(seconds) || seconds <= 0) return '—';+ if (seconds < 60) return `${Math.round(seconds)}s`;+ const minutes = seconds / 60;+ return Number.isInteger(minutes) ? `${minutes}m` : `${minutes.toFixed(1)}m`;+};++export const AvailabilityChecksTable: Component<{+ resources: Resource[];+ emptyIcon: JSX.Element;+ emptyTitle: string;+ emptyDescription: string;+}> = (props) => {+ const tableState = createPlatformTableFilterState({+ resources: () => props.resources,+ initialStatus: 'all' as PlatformResourceStatusFilter,+ filter: filterPlatformResources,+ });++ return (+ <Show+ when={props.resources.length > 0}+ fallback={+ <PlatformTableEmptyState+ icon={props.emptyIcon}+ title={props.emptyTitle}+ description={props.emptyDescription}+ actions={+ <A href={buildAvailabilityTargetAddPath()} class={settingsLinkClass}>+ <PlusIcon class="h-3.5 w-3.5" />+ Add check+ </A>+ }+ />+ }+ >+ <div class="space-y-3">+ <PlatformTableToolbar+ search={tableState.search}+ onSearchChange={tableState.setSearch}+ searchPlaceholder="Search availability checks"+ status={tableState.status()}+ onStatusChange={tableState.setStatus}+ statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}+ visible={tableState.visible()}+ total={tableState.total()}+ rowNoun="checks"+ />++ <Show+ when={tableState.filtered().length > 0}+ fallback={+ <PlatformTableEmptyState+ icon={props.emptyIcon}+ title="No checks match current filters"+ description="Adjust the search or health filter to see more availability checks."+ />+ }+ >+ <TableCard class={PLATFORM_TABLE_CARD_CLASS}>+ <TableCardHeader+ title="Availability checks"+ actions={+ <A href={buildAvailabilitySettingsPath()} class={settingsLinkClass}>+ <SettingsIcon class="h-3.5 w-3.5" />+ Manage+ </A>+ }+ />+ <Table class="min-w-full table-fixed text-xs md:min-w-[900px]">+ <TableHeader>+ <TableRow class={PLATFORM_TABLE_HEADER_ROW_CLASS}>+ <TableHead class={`${getPlatformTableHeadClassForKind('name')} w-[42%] md:w-[22%]`}>+ Check+ </TableHead>+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[12%]`}>+ Method+ </TableHead>+ <TableHead class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[28%]`}>+ Target+ </TableHead>+ <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} w-[28%] md:w-[12%]`}>+ Result+ </TableHead>+ <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[10%]`}>+ Checked+ </TableHead>+ <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden lg:table-cell lg:w-[8%]`}>+ Failures+ </TableHead>+ <TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden lg:table-cell lg:w-[8%]`}>+ Interval+ </TableHead>+ </TableRow>+ </TableHeader>+ <TableBody class={PLATFORM_TABLE_BODY_CLASS}>+ <For each={tableState.filtered()}>+ {(check) => {+ const availability = () => availabilityFor(check);+ const probe = () => getAvailabilityProbePresentation(check);+ const indicator = () => getSimpleStatusIndicator(check.status);+ const method = () => probe()?.methodLabel ?? availability()?.protocol ?? 'Probe';+ const result = () => probe()?.resultLabel ?? indicator().label;+ const target = () => formatTarget(check);++ return (+ <TableRow data-availability-check-row={check.id} class="text-[11px] sm:text-xs">+ <TableCell class={`${getPlatformTableCellClassForKind('name')} w-[42%] md:w-auto`}>+ <div class="flex min-w-0 items-center gap-2">+ <StatusDot+ size="sm"+ variant={indicator().variant}+ title={indicator().label}+ ariaHidden+ />+ <span class="truncate font-semibold text-base-content" title={check.name}>+ {check.name}+ </span>+ </div>+ <span class="mt-0.5 block truncate pl-5 text-[9px] text-muted sm:text-[10px] md:hidden">+ {method()} · {target()}+ </span>+ </TableCell>+ <TableCell class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}>+ {method()}+ </TableCell>+ <TableCell class={`${getPlatformTableCellClassForKind('text')} hidden text-base-content md:table-cell`}>+ <span class="block truncate" title={target()}>+ {target()}+ </span>+ </TableCell>+ <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} w-[28%] text-base-content md:w-auto`}>+ <span class={probe()?.toneClassName ?? ''}>{result()}</span>+ </TableCell>+ <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content md:table-cell`}>+ {formatChecked(availability())}+ </TableCell>+ <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content lg:table-cell`}>+ {formatFailures(availability())}+ </TableCell>+ <TableCell class={`${getPlatformTableCellClassForKind('numeric-value')} hidden text-base-content lg:table-cell`}>+ {formatInterval(availability())}+ </TableCell>+ </TableRow>+ );+ }}+ </For>+ </TableBody>+ </Table>+ </TableCard>+ </Show>+ </div>+ </Show>+ );+};++export default AvailabilityChecksTable;diff --git a/frontend-modern/src/features/agents/__tests__/AgentsPageSurface.test.tsx b/frontend-modern/src/features/agents/__tests__/AgentsPageSurface.test.tsxnew file mode 100644index 0000000000..ba05f2f026--- /dev/null+++ b/frontend-modern/src/features/agents/__tests__/AgentsPageSurface.test.tsx@@ -0,0 +1,137 @@+import { cleanup, render, screen } from '@solidjs/testing-library';+import type { JSX } from 'solid-js';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import type { Resource } from '@/types/resource';+import { AgentsPageSurface } from '../AgentsPageSurface';++const mocks = vi.hoisted(() => ({+ pathname: '/agents/overview',+ useUnifiedResources: vi.fn(),+ AgentsMachinesTable: vi.fn((props: { resources: Resource[] }) => (+ <div data-testid="agents-machines-table" data-resource-count={props.resources.length} />+ )),+ AvailabilityChecksTable: vi.fn((props: { resources: Resource[] }) => (+ <div data-testid="availability-checks-table" data-resource-count={props.resources.length} />+ )),+}));++vi.mock('@/hooks/useUnifiedResources', () => ({+ useUnifiedResources: mocks.useUnifiedResources,+}));++vi.mock('@solidjs/router', async () => {+ const actual = await vi.importActual<typeof import('@solidjs/router')>('@solidjs/router');+ return {+ ...actual,+ useLocation: () => ({+ get pathname() {+ return mocks.pathname;+ },+ }),+ useNavigate: () => vi.fn(),+ A: (props: { href: string; children: JSX.Element }) => (+ <a href={props.href}>{props.children}</a>+ ),+ };+});++vi.mock('../AgentsMachinesTable', () => ({+ AgentsMachinesTable: mocks.AgentsMachinesTable,+}));++vi.mock('../AvailabilityChecksTable', () => ({+ AvailabilityChecksTable: mocks.AvailabilityChecksTable,+}));++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="agents-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" />,+}));++const resource = (overrides: Partial<Resource>): Resource =>+ ({+ id: overrides.id ?? 'resource-1',+ name: overrides.name ?? overrides.id ?? 'resource-1',+ displayName: overrides.displayName ?? overrides.name ?? overrides.id ?? 'resource-1',+ type: overrides.type ?? 'agent',+ platformId: overrides.platformId ?? 'platform-1',+ platformType: overrides.platformType ?? 'agent',+ sourceType: overrides.sourceType ?? 'agent',+ status: overrides.status ?? 'online',+ lastSeen: overrides.lastSeen ?? 1_700_000_000_000,+ ...overrides,+ }) as Resource;++beforeEach(() => {+ mocks.pathname = '/agents/overview';+ mocks.useUnifiedResources.mockReturnValue({+ resources: () => [+ resource({ id: 'mac-mini', type: 'agent', platformType: 'agent', sources: ['agent'] }),+ resource({+ id: 'mqtt-meter',+ type: 'network-endpoint',+ platformType: 'availability',+ sources: ['availability'],+ }),+ ],+ loading: () => false,+ error: () => null,+ refetch: vi.fn(),+ });+});++afterEach(() => {+ cleanup();+ vi.clearAllMocks();+});++describe('AgentsPageSurface', () => {+ it('loads standalone machines and agentless availability checks into the Agents surface', () => {+ render(() => <AgentsPageSurface />);++ expect(mocks.useUnifiedResources).toHaveBeenCalledWith(+ expect.objectContaining({+ query: 'type=agent,network-endpoint',+ }),+ );+ expect(screen.getByTestId('agents-section-tabs')).toHaveAttribute(+ 'data-tabs',+ 'overview,availability',+ );+ expect(screen.getByTestId('agents-machines-table')).toHaveAttribute(+ 'data-resource-count',+ '1',+ );+ expect(screen.getByTestId('availability-checks-table')).toHaveAttribute(+ 'data-resource-count',+ '1',+ );+ });++ it('uses the availability tab as a focused check monitor', () => {+ mocks.pathname = '/agents/availability';++ render(() => <AgentsPageSurface />);++ expect(screen.getByTestId('agents-section-tabs')).toHaveAttribute(+ 'data-active',+ 'availability',+ );+ expect(screen.queryByTestId('agents-machines-table')).not.toBeInTheDocument();+ expect(screen.getByTestId('availability-checks-table')).toHaveAttribute(+ 'data-resource-count',+ '1',+ );+ });+});diff --git a/frontend-modern/src/features/agents/__tests__/AvailabilityChecksTable.test.tsx b/frontend-modern/src/features/agents/__tests__/AvailabilityChecksTable.test.tsxnew file mode 100644index 0000000000..3a05f17550--- /dev/null+++ b/frontend-modern/src/features/agents/__tests__/AvailabilityChecksTable.test.tsx@@ -0,0 +1,71 @@+import { Route, Router } from '@solidjs/router';+import { cleanup, render, screen } from '@solidjs/testing-library';+import { afterEach, describe, expect, it } from 'vitest';+import type { Resource } from '@/types/resource';+import { AvailabilityChecksTable } from '../AvailabilityChecksTable';++const availabilityResource = (overrides: Partial<Resource> = {}): Resource =>+ ({+ id: 'availability:mock-availability-mqtt-meter',+ name: 'MQTT power meter',+ displayName: 'MQTT power meter',+ type: 'network-endpoint',+ platformId: 'mock-availability-mqtt-meter',+ platformType: 'availability',+ sourceType: 'api',+ sources: ['availability'],+ status: 'online',+ lastSeen: 1_700_000_000_000,+ availability: {+ targetId: 'mock-availability-mqtt-meter',+ protocol: 'tcp',+ address: 'power-meter-01.lab.local',+ port: 1883,+ enabled: true,+ available: true,+ latencyMillis: 7,+ pollIntervalSeconds: 30,+ failureThreshold: 2,+ },+ ...overrides,+ }) as Resource;++const renderTable = (resources: Resource[]) =>+ render(() => (+ <Router>+ <Route+ path="/"+ component={() => (+ <AvailabilityChecksTable+ resources={resources}+ emptyIcon={<span />}+ emptyTitle="No checks"+ emptyDescription="Add checks"+ />+ )}+ />+ </Router>+ ));++afterEach(() => cleanup());++describe('AvailabilityChecksTable', () => {+ it('renders agentless check status from unified network endpoint resources', () => {+ renderTable([availabilityResource()]);++ expect(screen.getByText('Availability checks')).toBeInTheDocument();+ expect(screen.getByText('MQTT power meter')).toBeInTheDocument();+ expect(screen.getByText('TCP 1883')).toBeInTheDocument();+ expect(screen.getByText('power-meter-01.lab.local:1883')).toBeInTheDocument();+ expect(screen.getByText('7 ms')).toBeInTheDocument();+ });++ it('links the empty state back to the availability check add flow', () => {+ renderTable([]);++ expect(screen.getByRole('link', { name: 'Add check' })).toHaveAttribute(+ 'href',+ '/settings/monitoring/availability?add=target',+ );+ });+});diff --git a/frontend-modern/src/features/agents/__tests__/agentsPageModel.test.ts b/frontend-modern/src/features/agents/__tests__/agentsPageModel.test.tsindex d402fdf842..1d7803f288 100644--- a/frontend-modern/src/features/agents/__tests__/agentsPageModel.test.ts+++ b/frontend-modern/src/features/agents/__tests__/agentsPageModel.test.ts@@ -62,5 +62,23 @@ describe('agentsPageModel', () => {]);expect(model.resources.map((item) => item.id)).toEqual(['legacy-agent']);+ expect(model.machines.map((item) => item.id)).toEqual(['legacy-agent']);+ expect(model.availabilityChecks).toEqual([]);+ });++ it('keeps agentless availability checks beside standalone machines', () => {+ const model = buildAgentsPageModel([+ resource({ id: 'mac-mini', platformType: 'agent', type: 'agent', sources: ['agent'] }),+ resource({+ id: 'endpoint-1',+ platformType: 'availability',+ type: 'network-endpoint',+ sources: ['availability'],+ }),+ ]);++ expect(model.machines.map((item) => item.id)).toEqual(['mac-mini']);+ expect(model.availabilityChecks.map((item) => item.id)).toEqual(['endpoint-1']);+ expect(model.resources.map((item) => item.id)).toEqual(['mac-mini']);});});diff --git a/frontend-modern/src/features/agents/agentsPageModel.ts b/frontend-modern/src/features/agents/agentsPageModel.tsindex 068bbfffbb..7daf589c9e 100644--- a/frontend-modern/src/features/agents/agentsPageModel.ts+++ b/frontend-modern/src/features/agents/agentsPageModel.ts@@ -2,14 +2,25 @@ import type { Resource } from '@/types/resource';import { isPulseAgentPlatformResource } from '@/utils/agentResources';export interface AgentsPageModel {+ machines: Resource[];+ availabilityChecks: Resource[];resources: Resource[];}export const isAgentsPageResource = (resource: Resource): boolean =>isPulseAgentPlatformResource(resource);+export const isAgentlessAvailabilityResource = (resource: Resource): boolean =>+ resource.type === 'network-endpoint' ||+ resource.platformType === 'availability' ||+ resource.sources?.includes('availability') === true;+export function buildAgentsPageModel(resources: readonly Resource[]): AgentsPageModel {+ const machines = resources.filter(isAgentsPageResource);+ const availabilityChecks = resources.filter(isAgentlessAvailabilityResource);return {- resources: resources.filter(isAgentsPageResource),+ machines,+ availabilityChecks,+ resources: machines,};}diff --git a/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.ts b/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.tsindex 84ddc293de..5cc5e512ea 100644--- a/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.ts+++ b/frontend-modern/src/features/infrastructureNavigation/__tests__/infrastructureNavigationModel.test.ts@@ -146,6 +146,20 @@ describe('infrastructureNavigationModel', () => {).toBe(true);});+ it('shows Agents for agentless availability endpoints', () => {+ expect(+ buildPrimaryInfrastructureNavigationVisibility([+ resource({+ id: 'mqtt-meter',+ type: 'network-endpoint',+ platformType: 'availability',+ sourceType: 'api',+ sources: ['availability'],+ }),+ ]).agents,+ ).toBe(true);+ });+it('does not show Agents for provider-owned host rows even when the agent source is present', () => {expect(buildPrimaryInfrastructureNavigationVisibility([diff --git a/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts b/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.tsindex c00515a62a..e8b479c0bf 100644--- a/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts+++ b/frontend-modern/src/features/infrastructureNavigation/infrastructureNavigationModel.ts@@ -160,6 +160,12 @@ export function buildPrimaryInfrastructureNavigationVisibility(resources: readonly Resource[],): InfrastructureNavigationVisibility {const presentNavigableScopes = buildNavigableResourceInfrastructureScopeSet(resources);+ const hasAvailabilityEndpoints = resources.some(+ (resource) =>+ resource.type === 'network-endpoint' ||+ resource.platformType === 'availability' ||+ resource.sources?.includes('availability'),+ );return {proxmox: PRIMARY_INFRASTRUCTURE_NAV_SCOPE_IDS.proxmox.some((id) =>presentNavigableScopes.has(id),@@ -176,7 +182,7 @@ export function buildPrimaryInfrastructureNavigationVisibility(vmware: PRIMARY_INFRASTRUCTURE_NAV_SCOPE_IDS.vmware.some((id) =>presentNavigableScopes.has(id),),- agents: resources.some(isPulseAgentPlatformResource),+ agents: resources.some(isPulseAgentPlatformResource) || hasAvailabilityEndpoints,};}