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.

Move availability checks to monitoring settings

rcourtman322457c03b74
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index a2ac6a57c7..935bdd83ed 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -220,13 +220,16 @@ platform-connection lifecycle state. Once a TrueNAS or VMware setup form marks
the connection disabled, lifecycle surfaces must treat a canonical zero-delta
or removal-only preview as a valid save path instead of holding the dialog in
an add-only posture.
-Agentless availability targets belong to the infrastructure source-management
-surface but are not host-agent lifecycle. The lifecycle UI may expose them from
-Add infrastructure, Manage, and the connections ledger, but it must keep their
-credential slot on the availability target API and must not ask for SSH, setup
-tokens, auto-registration, agent profiles, or install commands. Their managed
-rows are platform-connection-style rows whose lifecycle actions are pause,
-test, edit, and remove only.
+Agentless availability targets no longer belong to the infrastructure
+source-management surface. MQTT, HTTP/S, ping, and TCP checks are monitoring
+availability resources owned by the Settings Monitoring availability panel and
+its model, while infrastructure remains limited to platform API connections,
+agent-backed systems, discovery, and install lifecycle. Lifecycle UI may
+observe availability rows only through shared API/resource facts; it must not
+offer them from Add infrastructure, Manage, or the host connections ledger, and
+must not ask them for SSH, setup tokens, auto-registration, agent profiles, or
+install commands. Their managed actions remain availability-resource actions:
+pause, test, edit, and remove.
The lifecycle-owned onboarding presentation helper must consume the governed
platform support manifest for readiness stage, primary mode, canonical
projections, and support-floor posture.
@@ -245,16 +248,18 @@ Unraid is presented as an agent install/profile path sourced from the manifest
`agent_host_profiles` section, not as `PLATFORM_TYPE_KEYS` membership or a
peer API-backed platform.
The add-infrastructure picker must preserve that boundary while presenting a
-plain operator-facing system finder: users choose recognizable systems such as
-Unraid, TrueNAS, Proxmox, Docker, Kubernetes, or standalone hosts, and the
-helper maps those choices into API-backed, agent-backed, or availability-probe
-routes only after selection. The first picker surface must support aliases for
-common operator terms and must not make API/agent/probe taxonomy the primary
-choice model. Agent-backed typed routes must keep that context in the
-installer: Unraid, Docker, Kubernetes, and generic host choices may share the
-same unified agent installer, but their visible title, recommendation copy,
-preferred install profile, and first command section must match the selected
-system instead of falling back to an all-platform generic agent screen.
+plain operator-facing system finder: users choose recognizable infrastructure
+systems such as Unraid, TrueNAS, Proxmox, Docker, Kubernetes, or standalone
+hosts, and the helper maps those choices into API-backed or agent-backed routes
+only after selection. The first picker surface must support aliases for common
+operator terms and must not make API/agent taxonomy the primary choice model.
+Agentless MQTT, HTTP/S, ping, and TCP probes are not infrastructure choices;
+their add flow belongs to the Settings Monitoring availability owner.
+Agent-backed typed routes must keep that context in the installer: Unraid,
+Docker, Kubernetes, and generic host choices may share the same unified agent
+installer, but their visible title, recommendation copy, preferred install
+profile, and first command section must match the selected system instead of
+falling back to an all-platform generic agent screen.
The generic host installer route is `?add=linux-host`: setup completion,
Proxmox "Install agent" shortcuts, detect-flow agent handoffs, and first-run
test helpers must target that typed route so the operator sees the standalone
@@ -364,10 +369,13 @@ profile and assignment columns, but embedded table framing must route through
auth boundary, but they must not reinterpret SSO or Stripe email as the
canonical user identifier for setup, install, or fleet-management actions.
Availability-target API changes are adjacent but not lifecycle-owned:
- agentless ping/TCP/HTTP targets may appear in shared `internal/api/`
- handlers and connection ledgers, but they must remain settings/API
- availability resources and must not create install commands, agent tokens, or
- host uninstall/stop-monitoring lifecycle actions.
+ agentless MQTT, HTTP/S, ping, and TCP targets may appear in shared
+ `internal/api/` handlers and resource projections, but their settings owner
+ is `frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx`
+ with `frontend-modern/src/components/Settings/availabilitySettingsModel.ts`.
+ They must remain settings/API availability resources and must not create
+ install commands, agent tokens, host uninstall actions, stop-monitoring
+ lifecycle actions, or infrastructure add-flow states.
Global resource timeline API changes are likewise adjacent when they touch
shared `internal/api/` route wiring: `/api/resources/timeline` may expose
monitoring-read provider activity for platform pages, but it must not create
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index d164058b5c..5db381c3e3 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -99,6 +99,8 @@ product API routes free of maintainer commercial analytics.
63. `internal/api/availability_handlers.go`
64. `frontend-modern/src/api/availabilityTargets.ts`
65. `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/AvailabilityTargetSlot.tsx`
+65a. `frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx`
+65b. `frontend-modern/src/components/Settings/availabilitySettingsModel.ts`
66. `pkg/aicontracts/investigation.go`
67. `internal/api/ai_intelligence_handlers.go`
68. `frontend-modern/src/api/ai.ts`
@@ -200,14 +202,17 @@ output or bypass the normal non-admin redaction path.
`upgradeMetrics`, `conversionEvents`, or infrastructure onboarding metrics
wrappers.
Agentless availability targets and structured `/api/connections` fleet posture share this same settings/API boundary as
- platform-managed infrastructure, not host-install lifecycle or prose-derived row labels.
+ monitoring-managed endpoint configuration, not host-install lifecycle or prose-derived row labels.
`internal/api/availability_handlers.go` owns CRUD and test payloads for
`/api/availability-targets`, while
`frontend-modern/src/api/availabilityTargets.ts` and
- `AvailabilityTargetSlot.tsx` own the browser transport shape. Connections
- ledger rows with type `availability` must route pause, remove, and test
+ `frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx`,
+ `frontend-modern/src/components/Settings/availabilitySettingsModel.ts`,
+ and `AvailabilityTargetSlot.tsx` own the browser transport shape.
+ Connections ledger rows with type
+ `availability` must route management handoffs, pause, remove, and test
actions to those availability-target endpoints and must not reuse node,
- SSH, or Pulse Agent setup payloads.
+ SSH, platform API, or Pulse Agent setup payloads.
Mock mode must expose authored availability targets through those same
list, saved-test, and connections-ledger payloads so demo endpoints exercise
the canonical API contract rather than a frontend-only fixture.
@@ -4585,12 +4590,14 @@ alongside `proxmox`, `pbs`, and `pmg`, and the settings reporting/install
surfaces must keep those platform-managed rows navigable back to platform
connections instead of presenting host uninstall or stop-monitoring actions
that only apply to `agent`, `docker`, and `kubernetes`.
-Agentless availability targets extend that platform-managed distinction. The
+Agentless availability targets extend the managed-source distinction without
+living in the platform-source settings home. The
API contract for `availability` rows is an address/protocol probe target plus
runtime status, projected through the connections ledger and unified resources
as a `network-endpoint`. Browser callers may test unsaved or saved targets, but
the persisted target list remains owned by `/api/availability-targets` and
-must not be reconstructed from resource snapshots or monitored-system counts.
+must be managed from `/settings/monitoring/availability`, not reconstructed
+from resource snapshots or monitored-system counts.
Mock availability fixtures must still behave like saved targets: `/api/connections`
reports them as availability rows, `/api/availability-targets` lists them with
probe status, and saved-test calls return the synthetic probe result instead of
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 254cfac313..2973b3b46b 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -116,50 +116,52 @@ work extends shared components instead of creating new local variants.
86. `frontend-modern/src/components/Settings/networkSettingsModel.ts`
87. `frontend-modern/src/components/Settings/useDiscoverySettingsState.ts`
88. `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts`
-89. `frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx`
-91. `frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts`
-92. `frontend-modern/src/components/Settings/settingsNavigationModel.ts`
-93. `frontend-modern/src/components/Settings/settingsNavCatalog.ts`
-94. `frontend-modern/src/components/Settings/settingsNavVisibility.ts`
-95. `frontend-modern/src/components/Settings/settingsRouting.ts`
-96. `frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts`
-97. `frontend-modern/src/components/Settings/settingsTypes.ts`
-98. `frontend-modern/src/components/Settings/useSettingsNavigation.ts`
-99. `frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx`
-100. `frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx`
-101. `frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx`
-102. `frontend-modern/src/components/shared/EnvironmentLockBadge.tsx`
-103. `frontend-modern/src/utils/environmentLockPresentation.ts`
-104. `frontend-modern/src/utils/docsLinks.ts`
-105. `tests/integration/tests/20-local-doc-links.spec.ts`
-106. `frontend-modern/src/index.css`
-107. `frontend-modern/src/components/shared/summaryInteractionA11y.ts`
-108. `frontend-modern/src/components/shared/SummaryRowActionButton.tsx`
-109. `frontend-modern/src/hooks/createNonSuspendingQuery.ts`
-110. `frontend-modern/src/components/shared/TableCardHeader.tsx`
-111. `frontend-modern/src/components/shared/SummaryTableCardHeader.tsx`
-112. `frontend-modern/src/components/shared/UpgradeLink.tsx`
-113. `frontend-modern/src/components/shared/useUpgradeNavigation.ts`
-114. `frontend-modern/src/utils/upgradeNavigation.ts`
-115. `frontend-modern/src/components/DemoBanner.tsx`
-116. `frontend-modern/src/components/Login.tsx`
-117. `frontend-modern/src/stores/demoMode.ts`
-118. `frontend-modern/src/stores/sessionCapabilities.ts`
-119. `frontend-modern/src/stores/sessionPresentationPolicy.ts`
-120. `frontend-modern/src/stores/licenseCommercial.ts`
-121. `frontend-modern/src/useAppRuntimeState.ts`
-122. `frontend-modern/src/routing/routePreload.ts`
-123. `frontend-modern/src/stores/aiChat.ts`
-124. `frontend-modern/scripts/header-audit.mjs`
-125. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx`
-126. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts`
-127. `frontend-modern/scripts/canonical-platform-audit.mjs`
-128. `frontend-modern/scripts/settings-diagnostics-boundary-audit.mjs`
-129. `frontend-modern/src/utils/platformSupportManifest.generated.ts`
-130. `frontend-modern/src/utils/platformSupportManifest.ts`
-131. `frontend-modern/src/utils/sourcePlatformOptions.ts`
-132. `frontend-modern/src/utils/sourcePlatforms.ts`
-133. `frontend-modern/src/utils/infrastructureOnboardingPresentation.ts`
+89. `frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx`
+90. `frontend-modern/src/components/Settings/availabilitySettingsModel.ts`
+91. `frontend-modern/src/components/Settings/settingsPanelRegistryContext.tsx`
+92. `frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts`
+93. `frontend-modern/src/components/Settings/settingsNavigationModel.ts`
+94. `frontend-modern/src/components/Settings/settingsNavCatalog.ts`
+95. `frontend-modern/src/components/Settings/settingsNavVisibility.ts`
+96. `frontend-modern/src/components/Settings/settingsRouting.ts`
+97. `frontend-modern/src/components/Settings/settingsTabSaveBehavior.ts`
+98. `frontend-modern/src/components/Settings/settingsTypes.ts`
+99. `frontend-modern/src/components/Settings/useSettingsNavigation.ts`
+100. `frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx`
+101. `frontend-modern/src/components/Settings/useSettingsSystemPanels.tsx`
+102. `frontend-modern/src/components/Settings/DockerRuntimeSettingsCard.tsx`
+103. `frontend-modern/src/components/shared/EnvironmentLockBadge.tsx`
+104. `frontend-modern/src/utils/environmentLockPresentation.ts`
+105. `frontend-modern/src/utils/docsLinks.ts`
+106. `tests/integration/tests/20-local-doc-links.spec.ts`
+107. `frontend-modern/src/index.css`
+108. `frontend-modern/src/components/shared/summaryInteractionA11y.ts`
+109. `frontend-modern/src/components/shared/SummaryRowActionButton.tsx`
+110. `frontend-modern/src/hooks/createNonSuspendingQuery.ts`
+111. `frontend-modern/src/components/shared/TableCardHeader.tsx`
+112. `frontend-modern/src/components/shared/SummaryTableCardHeader.tsx`
+113. `frontend-modern/src/components/shared/UpgradeLink.tsx`
+114. `frontend-modern/src/components/shared/useUpgradeNavigation.ts`
+115. `frontend-modern/src/utils/upgradeNavigation.ts`
+116. `frontend-modern/src/components/DemoBanner.tsx`
+117. `frontend-modern/src/components/Login.tsx`
+118. `frontend-modern/src/stores/demoMode.ts`
+119. `frontend-modern/src/stores/sessionCapabilities.ts`
+120. `frontend-modern/src/stores/sessionPresentationPolicy.ts`
+121. `frontend-modern/src/stores/licenseCommercial.ts`
+122. `frontend-modern/src/useAppRuntimeState.ts`
+123. `frontend-modern/src/routing/routePreload.ts`
+124. `frontend-modern/src/stores/aiChat.ts`
+125. `frontend-modern/scripts/header-audit.mjs`
+126. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx`
+127. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts`
+128. `frontend-modern/scripts/canonical-platform-audit.mjs`
+129. `frontend-modern/scripts/settings-diagnostics-boundary-audit.mjs`
+130. `frontend-modern/src/utils/platformSupportManifest.generated.ts`
+131. `frontend-modern/src/utils/platformSupportManifest.ts`
+132. `frontend-modern/src/utils/sourcePlatformOptions.ts`
+133. `frontend-modern/src/utils/sourcePlatforms.ts`
+134. `frontend-modern/src/utils/infrastructureOnboardingPresentation.ts`
## Shared Boundaries
@@ -289,10 +291,10 @@ columns.
filters, reportable-resource pickers, and type unions.
10. `frontend-modern/src/utils/sourcePlatforms.ts` shared with `unified-resources`: the source platform normalizer is both a canonical unified-resource source adapter boundary and a shared frontend source/platform vocabulary boundary.
That shared boundary must preserve `availability` as the agentless
- infrastructure source for `network-endpoint` resources and settings
- presets, so source badges and platform/source type resolution do not fall
- back to `generic` when an endpoint is represented by ping, TCP, or HTTP
- probe data rather than an installed agent or provider API.
+ monitoring source for `network-endpoint` resources and settings presets,
+ so source badges and platform/source type resolution do not fall back to
+ `generic` when an endpoint is represented by ping, TCP, or HTTP probe data
+ rather than an installed agent or provider API.
## Extension Points
@@ -632,7 +634,7 @@ not a replacement status card, CTA band, or page-local nested card.
from a platform-owned product surface such as a recovery tab, the first
highlighted step should match that route instead of always restarting at
Dashboard.
-5. Keep shared infrastructure shell state on the reusable settings boundary: `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts` and `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx` must continue to derive provider counts, availability, and shared subtab copy from one infrastructure-settings source — via the unified aggregator through `frontend-modern/src/components/Settings/useConnectionsLedger.ts` — instead of creating provider-local summary fetches or VMware-only shell vocabulary. Phase 9 retired the old `PlatformConnectionsWorkspace` per-type shell; setup guidance should now use `Add infrastructure` plus source-strategy language for API-backed onboarding. The standalone connections-table presenter is retired; `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx` is the only landing-ledger presenter for configured infrastructure rows.
+5. Keep shared infrastructure shell state on the reusable settings boundary: `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts` and `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx` must continue to derive provider counts and shared subtab copy from one infrastructure-settings source — via the unified aggregator through `frontend-modern/src/components/Settings/useConnectionsLedger.ts` — instead of creating provider-local summary fetches or VMware-only shell vocabulary. Phase 9 retired the old `PlatformConnectionsWorkspace` per-type shell; setup guidance should now use `Add infrastructure` plus source-strategy language for API-backed onboarding. The standalone connections-table presenter is retired; `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx` is the only landing-ledger presenter for configured infrastructure rows, and it must exclude agentless availability probes because those belong to `frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx`.
The first-run setup wizard inherits that same source-strategy vocabulary:
step labels and completion copy must frame the final setup step as choosing
the first infrastructure source, not installing a host. Successful token
@@ -649,7 +651,7 @@ not a replacement status card, CTA band, or page-local nested card.
infrastructure`, `Run discovery`, and `Discovery settings` inside the
source manager. Per-source add actions, including `Install Pulse Agent`,
belong on the governed source rows, and `Detect address` stays inside the
- single add-flow probe path instead of a duplicate toolbar action. It may
+ single API-platform probe path instead of a duplicate toolbar action. It may
also show a compact coverage strip derived from the same unified connection
rows and discovered candidates so operators can confirm connected-system
count, API coverage,
@@ -2818,8 +2820,11 @@ including the route-owned billing focus contract where
base/hash links are compatibility inputs rather than primary runtime routes.
Infrastructure settings no longer has route-level platform-selection state:
`/settings/infrastructure` and `/settings/infrastructure?add=<step>` are the
-only routeable Infrastructure settings entry points. Former nested aliases such
-as `/settings/infrastructure/install`,
+only routeable Infrastructure settings entry points for platform/API and
+agent-backed source setup. Agentless ping/TCP/HTTP checks are monitoring
+availability settings at `/settings/monitoring/availability`, with
+`/settings/monitoring/availability?add=target` as the route-owned add dialog.
+Former nested aliases such as `/settings/infrastructure/install`,
`/settings/infrastructure/platforms/proxmox/pbs`,
`/settings/infrastructure/api/pve`, and `/settings/workloads/docker` must fail
route eligibility instead of being normalized back into the Infrastructure
@@ -3552,12 +3557,12 @@ redirect `/settings` and still canonicalize current settings destinations, but
it must not translate removed infrastructure subpaths into onboarding queries or
derive Proxmox platform state from those paths.
The shared frontend source/platform vocabulary now also includes
-`availability` as an agentless infrastructure source and `network-endpoint` as
-the canonical resource projection. Picker cards, source labels, badges, and
-settings add-flow copy must use the shared onboarding and source-platform
-helpers instead of feature-local wording, so availability probes stay visually
-aligned with the single Infrastructure settings surface without pretending to
-be a host agent install.
+`availability` as an agentless monitoring source and `network-endpoint` as the
+canonical resource projection. Source labels, badges, settings add-flow copy,
+and availability management copy must use shared presentation helpers instead
+of feature-local wording, so availability probes stay visually aligned with
+the Monitoring availability settings surface without pretending to be a host
+agent install or a platform API connection.
Availability setup presets for pingable devices, MQTT, ESPHome, or similar
agentless endpoints must also stay on the shared settings form vocabulary:
presets may fill protocol, port, and path defaults, but display badges and
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 74822a3a0c..e3fa4e4b40 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -725,10 +725,13 @@ AI-only summary payloads, or page-local heuristics.
and `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx`
must send operators directly to `/settings/infrastructure?add=pick`, name
source strategy selection as the default next step, and present platform
- API inventory, endpoint probes, and Pulse Agent telemetry as peer source
- options instead of regressing to generic settings-root CTAs, an agent-only
- install jump, the retired `Platform connections` split, provider-specific
- one-off routes, or the removed top-level `/infrastructure` page.
+ API inventory and Pulse Agent telemetry as peer source options instead of
+ regressing to generic settings-root CTAs, an agent-only install jump, the
+ retired `Platform connections` split, provider-specific one-off routes, or
+ the removed top-level `/infrastructure` page. Agentless availability
+ endpoints are the separate monitoring source home at
+ `/settings/monitoring/availability`, and the add flow for MQTT, ping, TCP,
+ and HTTP checks is `/settings/monitoring/availability?add=target`.
6. Keep infrastructure source visibility on canonical unified-resource truth.
Settings infrastructure source filters and summaries must preserve known
sources such as `truenas` and `availability` through the shared source
@@ -2778,9 +2781,10 @@ table or drive the primary system sort.
The former top-level infrastructure feature route never shipped as a stable v6
surface and is intentionally removed rather than preserved as a compatibility
redirect. Canonical infrastructure management lives under
-`/settings/infrastructure`; 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
+`/settings/infrastructure`, while agentless endpoint availability management
+lives 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.
Shared unified-resource consumers now also normalize org scope through
`frontend-modern/src/utils/orgScope.ts` before building cache keys or
diff --git a/frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx b/frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx
new file mode 100644
index 0000000000..19da3ac2b6
--- /dev/null
+++ b/frontend-modern/src/components/Settings/AvailabilitySettingsPanel.tsx
@@ -0,0 +1,349 @@
+import {
+ For,
+ Show,
+ createEffect,
+ createMemo,
+ createSignal,
+ onMount,
+ type Component,
+} from 'solid-js';
+import { useLocation, useNavigate } from '@solidjs/router';
+import Plus from 'lucide-solid/icons/plus';
+import RotateCw from 'lucide-solid/icons/rotate-cw';
+import Activity from 'lucide-solid/icons/activity';
+import X from 'lucide-solid/icons/x';
+import SettingsPanel from '@/components/shared/SettingsPanel';
+import { Dialog } from '@/components/shared/Dialog';
+import { AvailabilityTargetsAPI, type AvailabilityTarget } from '@/api/availabilityTargets';
+import { AvailabilityTargetSlot } from './ConnectionEditor/CredentialSlots/AvailabilityTargetSlot';
+import {
+ buildAvailabilitySettingsPath,
+ buildAvailabilityTargetAddPath,
+ getAvailabilityTargetAddressLabel,
+ getAvailabilityTargetMethodLabel,
+ getAvailabilityTargetStatusClass,
+ getAvailabilityTargetStatusLabel,
+ getAvailabilityTargetsSummary,
+ shouldOpenAvailabilityTargetAddDialog,
+} from './availabilitySettingsModel';
+
+const primaryButtonClass =
+ 'inline-flex min-h-9 items-center justify-center gap-2 rounded-md bg-blue-600 px-3 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700 disabled:cursor-not-allowed disabled:opacity-60';
+const secondaryButtonClass =
+ 'inline-flex min-h-9 items-center justify-center gap-2 rounded-md border border-border bg-surface px-3 py-2 text-sm font-medium text-base-content transition-colors hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-60';
+const rowActionButtonClass =
+ 'inline-flex min-h-8 items-center justify-center rounded-md border border-border px-2.5 py-1 text-xs font-medium text-base-content transition-colors hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-60';
+const closeButtonClass =
+ 'inline-flex h-9 w-9 items-center justify-center rounded-md border border-border text-base-content transition-colors hover:bg-surface-hover';
+
+type AvailabilityDialogState =
+ | { mode: 'add' }
+ | { mode: 'edit'; target: AvailabilityTarget }
+ | null;
+
+const sortTargets = (targets: readonly AvailabilityTarget[]): AvailabilityTarget[] =>
+ [...targets].sort((left, right) => left.name.localeCompare(right.name));
+
+export const AvailabilitySettingsPanel: Component = () => {
+ const location = useLocation();
+ const navigate = useNavigate();
+ const [targets, setTargets] = createSignal<AvailabilityTarget[]>([]);
+ const [loading, setLoading] = createSignal(false);
+ const [error, setError] = createSignal<string | null>(null);
+ const [dialog, setDialog] = createSignal<AvailabilityDialogState>(null);
+ const [pendingActionId, setPendingActionId] = createSignal<string | null>(null);
+ const [deleteConfirmingId, setDeleteConfirmingId] = createSignal<string | null>(null);
+ const sortedTargets = createMemo(() => sortTargets(targets()));
+
+ const loadTargets = async () => {
+ setLoading(true);
+ setError(null);
+ try {
+ setTargets(await AvailabilityTargetsAPI.list());
+ } catch (err) {
+ setError(err instanceof Error ? err.message : 'Failed to load availability checks.');
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const openAddDialog = () => {
+ setDeleteConfirmingId(null);
+ navigate(buildAvailabilityTargetAddPath(), { scroll: false });
+ };
+
+ const closeDialog = (replace = false) => {
+ setDialog(null);
+ setDeleteConfirmingId(null);
+ if (location.pathname === buildAvailabilitySettingsPath() && location.search) {
+ navigate(buildAvailabilitySettingsPath(), { replace, scroll: false });
+ }
+ };
+
+ const handleSaved = () => {
+ void loadTargets();
+ closeDialog(true);
+ };
+
+ const toggleTarget = async (target: AvailabilityTarget) => {
+ setPendingActionId(target.id);
+ setError(null);
+ try {
+ await AvailabilityTargetsAPI.update(target.id, { enabled: !target.enabled });
+ await loadTargets();
+ const currentDialog = dialog();
+ if (currentDialog?.mode === 'edit' && currentDialog.target.id === target.id) {
+ const updated = targets().find((item) => item.id === target.id);
+ if (updated) setDialog({ mode: 'edit', target: updated });
+ }
+ } catch (err) {
+ setError(err instanceof Error ? err.message : 'Failed to update availability check.');
+ } finally {
+ setPendingActionId(null);
+ }
+ };
+
+ const testTarget = async (target: AvailabilityTarget) => {
+ setPendingActionId(target.id);
+ setError(null);
+ try {
+ await AvailabilityTargetsAPI.testSaved(target.id);
+ await loadTargets();
+ } catch (err) {
+ setError(err instanceof Error ? err.message : 'Availability test failed.');
+ } finally {
+ setPendingActionId(null);
+ }
+ };
+
+ const requestRemoveTarget = async (target: AvailabilityTarget) => {
+ if (deleteConfirmingId() !== target.id) {
+ setDeleteConfirmingId(target.id);
+ return;
+ }
+
+ setPendingActionId(target.id);
+ setError(null);
+ try {
+ await AvailabilityTargetsAPI.remove(target.id);
+ await loadTargets();
+ closeDialog(true);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : 'Failed to remove availability check.');
+ } finally {
+ setPendingActionId(null);
+ }
+ };
+
+ createEffect(() => {
+ if (shouldOpenAvailabilityTargetAddDialog(location.pathname, location.search)) {
+ setDialog({ mode: 'add' });
+ return;
+ }
+
+ const current = dialog();
+ if (current?.mode === 'add') {
+ setDialog(null);
+ }
+ });
+
+ onMount(() => {
+ void loadTargets();
+ });
+
+ const dialogTitle = createMemo(() => {
+ const current = dialog();
+ if (current?.mode === 'edit') return `Manage ${current.target.name}`;
+ return 'Add availability check';
+ });
+
+ const dialogDescription = createMemo(() => {
+ const current = dialog();
+ if (current?.mode === 'edit') {
+ return `${getAvailabilityTargetMethodLabel(current.target)} · ${getAvailabilityTargetAddressLabel(current.target)}`;
+ }
+ return 'Use ICMP ping, TCP port, or HTTP checks for devices and services that cannot run Pulse Agent.';
+ });
+
+ return (
+ <div class="space-y-6">
+ <SettingsPanel title="Availability checks" noPadding>
+ <div class="border-b border-border bg-surface px-4 py-3">
+ <div class="flex flex-wrap items-center justify-between gap-3">
+ <div class="min-w-0">
+ <div class="text-sm font-semibold text-base-content">
+ {getAvailabilityTargetsSummary(targets())}
+ </div>
+ <p class="mt-1 text-xs leading-5 text-muted">
+ Monitor endpoint-only devices and services with ICMP, TCP, and HTTP probes.
+ </p>
+ </div>
+ <div class="flex flex-wrap items-center gap-2">
+ <button
+ type="button"
+ onClick={() => void loadTargets()}
+ disabled={loading()}
+ class={secondaryButtonClass}
+ >
+ <RotateCw class={`h-4 w-4 ${loading() ? 'animate-spin' : ''}`} />
+ Refresh
+ </button>
+ <button type="button" onClick={openAddDialog} class={primaryButtonClass}>
+ <Plus class="h-4 w-4" />
+ Add check
+ </button>
+ </div>
+ </div>
+ </div>
+
+ <div class="divide-y divide-border">
+ <Show when={loading() && targets().length === 0}>
+ <div class="p-4 text-sm text-muted">Loading availability checks...</div>
+ </Show>
+
+ <Show when={error()}>
+ {(message) => (
+ <div
+ role="alert"
+ class="border-b border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-800 dark:border-rose-900 dark:bg-rose-950 dark:text-rose-200"
+ >
+ {message()}
+ </div>
+ )}
+ </Show>
+
+ <Show
+ when={sortedTargets().length > 0}
+ fallback={
+ <div class="flex flex-col items-center justify-center gap-3 px-4 py-12 text-center">
+ <div class="flex h-11 w-11 items-center justify-center rounded-md border border-border bg-surface-alt text-muted">
+ <Activity class="h-5 w-5" />
+ </div>
+ <div class="space-y-1">
+ <div class="text-sm font-semibold text-base-content">
+ No availability checks yet
+ </div>
+ <p class="max-w-xl text-sm leading-6 text-muted">
+ Add a ping, TCP port, MQTT broker, ESPHome device, HTTP health check, or another
+ endpoint that only needs reachability monitoring.
+ </p>
+ </div>
+ <button type="button" onClick={openAddDialog} class={primaryButtonClass}>
+ <Plus class="h-4 w-4" />
+ Add check
+ </button>
+ </div>
+ }
+ >
+ <For each={sortedTargets()}>
+ {(target) => {
+ const pending = () => pendingActionId() === target.id;
+ return (
+ <div class="grid gap-3 px-4 py-4 md:grid-cols-[minmax(0,1fr)_auto] md:items-center">
+ <div class="min-w-0 space-y-2">
+ <div class="flex flex-wrap items-center gap-2">
+ <div class="truncate text-sm font-semibold text-base-content">
+ {target.name}
+ </div>
+ <span
+ class={`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium ${getAvailabilityTargetStatusClass(target)}`}
+ >
+ {getAvailabilityTargetStatusLabel(target)}
+ </span>
+ </div>
+ <div class="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted">
+ <span>{getAvailabilityTargetMethodLabel(target)}</span>
+ <span aria-hidden="true">·</span>
+ <span class="break-all">{getAvailabilityTargetAddressLabel(target)}</span>
+ </div>
+ </div>
+ <div class="flex flex-wrap items-center gap-2 md:justify-end">
+ <button
+ type="button"
+ onClick={() => void testTarget(target)}
+ disabled={pending()}
+ class={rowActionButtonClass}
+ >
+ {pending() ? 'Testing...' : 'Test'}
+ </button>
+ <button
+ type="button"
+ onClick={() => void toggleTarget(target)}
+ disabled={pending()}
+ class={rowActionButtonClass}
+ >
+ {target.enabled ? 'Pause' : 'Resume'}
+ </button>
+ <button
+ type="button"
+ onClick={() => {
+ setDeleteConfirmingId(null);
+ setDialog({ mode: 'edit', target });
+ }}
+ class={rowActionButtonClass}
+ >
+ Manage
+ </button>
+ </div>
+ </div>
+ );
+ }}
+ </For>
+ </Show>
+ </div>
+ </SettingsPanel>
+
+ <Show when={dialog()}>
+ {(dialogAccessor) => {
+ const current = dialogAccessor();
+ const editingTarget = current.mode === 'edit' ? current.target : null;
+ return (
+ <Dialog
+ isOpen={true}
+ onClose={() => closeDialog(true)}
+ ariaLabel={dialogTitle()}
+ panelClass="max-w-4xl"
+ >
+ <div class="flex h-full min-h-0 flex-col">
+ <div class="flex items-start justify-between gap-4 border-b border-border bg-surface-alt px-4 py-4 sm:px-6">
+ <div class="space-y-1">
+ <h2 class="text-base font-semibold text-base-content">{dialogTitle()}</h2>
+ <p class="text-sm text-muted">{dialogDescription()}</p>
+ </div>
+ <button
+ type="button"
+ onClick={() => closeDialog(true)}
+ class={closeButtonClass}
+ aria-label="Close availability check dialog"
+ >
+ <X class="h-4 w-4" />
+ </button>
+ </div>
+ <div class="min-h-0 flex-1 overflow-y-auto p-4">
+ <AvailabilityTargetSlot
+ editingTargetId={editingTarget?.id}
+ onCancel={() => closeDialog(true)}
+ onSaved={handleSaved}
+ onToggleEnabled={
+ editingTarget ? () => void toggleTarget(editingTarget) : undefined
+ }
+ togglePending={editingTarget ? pendingActionId() === editingTarget.id : false}
+ connectionEnabled={editingTarget?.enabled}
+ onDelete={
+ editingTarget ? () => void requestRemoveTarget(editingTarget) : undefined
+ }
+ deletePending={editingTarget ? pendingActionId() === editingTarget.id : false}
+ deleteConfirming={
+ editingTarget ? deleteConfirmingId() === editingTarget.id : false
+ }
+ deleteError={null}
+ />
+ </div>
+ </div>
+ </Dialog>
+ );
+ }}
+ </Show>
+ </div>
+ );
+};
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
index 71a275e64f..21c359ff7b 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx
@@ -8,7 +8,7 @@ import {
type Accessor,
type Component,
} from 'solid-js';
-import { Activity, Cpu, Plus, RotateCw, Search, SlidersHorizontal } from 'lucide-solid';
+import { Cpu, Plus, RotateCw, Search, SlidersHorizontal } from 'lucide-solid';
import SettingsPanel from '@/components/shared/SettingsPanel';
import {
Table,
@@ -201,6 +201,9 @@ const agentHostProfileGroupLabel = (row: InfrastructureSystemRow): string | null
export const InfrastructureSourceManager: Component<InfrastructureSourceManagerProps> = (props) => {
let layoutContainerRef: HTMLDivElement | undefined;
const products = createMemo(() => getInfrastructureSourceManagerProducts());
+ const infrastructureRows = createMemo(() =>
+ props.rows().filter((row) => row.ownerType !== 'availability'),
+ );
const groupedConfiguredRows = createMemo(() => {
const next = new Map<InfrastructureOnboardingConnectionType, InfrastructureSystemRow[]>();
@@ -208,7 +211,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
next.set(product.type, []);
}
- for (const row of props.rows()) {
+ for (const row of infrastructureRows()) {
const productRows = next.get(row.ownerType as InfrastructureOnboardingConnectionType);
if (!productRows) continue;
productRows.push(row);
@@ -348,7 +351,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
props.onAddSource?.('agent');
};
- const hasAnyConfigured = createMemo(() => props.rows().length > 0);
+ const hasAnyConfigured = createMemo(() => infrastructureRows().length > 0);
const hasAnyDiscovered = createMemo(() => props.discoveredNodes().length > 0);
const rowInteractive = (row: InfrastructureSystemRow): boolean =>
@@ -358,28 +361,25 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
const lastDiscoveryResultText = createMemo(() =>
formatRelativeTimestamp(props.discoveryScanStatus().lastResultAt),
);
- const connectedSystemCount = createMemo(() => props.rows().length);
+ const connectedSystemCount = createMemo(() => infrastructureRows().length);
const discoveredCandidateCount = createMemo(() => props.discoveredNodes().length);
- const availabilityEndpointCount = createMemo(
- () => props.rows().filter((row) => row.ownerType === 'availability').length,
- );
// Scoped to Proxmox VE: PBS/PMG/TrueNAS/etc. are fully covered by their
// own API and don't benefit from a paired agent in the way PVE hosts do
// (where the agent adds temps, SMART, host identity). Counting them here
// would create "Needs agent" pressure for systems that need nothing.
const apiOnlySystems = createMemo(() =>
- props
- .rows()
- .filter(
- (row) => row.ownerType === 'pve' && rowHasApiCoverage(row) && !rowHasAgentCoverage(row),
- ),
+ infrastructureRows().filter(
+ (row) => row.ownerType === 'pve' && rowHasApiCoverage(row) && !rowHasAgentCoverage(row),
+ ),
);
const apiOnlySystemCount = createMemo(() => apiOnlySystems().length);
// Names list keeps the descriptive 'Install agents' hint actionable: when
// there are 1 or 2 systems missing an agent, surface their names directly
// so the user knows exactly which boxes the install applies to.
const apiOnlySystemNamesText = createMemo(() => {
- const names = apiOnlySystems().map((row) => row.name).filter(Boolean);
+ const names = apiOnlySystems()
+ .map((row) => row.name)
+ .filter(Boolean);
if (names.length === 0) return null;
if (names.length === 1) return names[0];
if (names.length === 2) return `${names[0]} and ${names[1]}`;
@@ -390,14 +390,13 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
// problem (or any member's) is non-empty. Going via signal predicates
// duplicated the rollup logic and could disagree with what was rendered.
const liveFleetSystemCount = createMemo(
- () => props.rows().filter((row) => row.statusLabel === 'Active').length,
+ () => infrastructureRows().filter((row) => row.statusLabel === 'Active').length,
);
const fleetAttentionSystemCount = createMemo(
() =>
- props
- .rows()
- .filter((row) => Boolean(row.problem) || row.members.some((member) => member.problem))
- .length,
+ infrastructureRows().filter(
+ (row) => Boolean(row.problem) || row.members.some((member) => member.problem),
+ ).length,
);
const discoveryReadinessLabel = createMemo(() => {
if (props.discoveryScanStatus().scanning) return 'Scanning now';
@@ -421,7 +420,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
return {
kind: 'add',
label: 'Add infrastructure',
- detail: 'Add a platform, host, NAS, cluster, or endpoint to start monitoring.',
+ detail: 'Add a platform, host, NAS, or cluster to start monitoring.',
onClick: props.onAddInfrastructure,
};
}
@@ -460,14 +459,6 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
label: 'Systems',
value: formatCount(connectedSystemCount(), 'system'),
},
- ...(availabilityEndpointCount() > 0
- ? [
- {
- label: 'Endpoints',
- value: formatCount(availabilityEndpointCount(), 'endpoint'),
- },
- ]
- : []),
{
label: 'Live',
value: formatCount(liveFleetSystemCount(), 'system'),
@@ -525,14 +516,6 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
});
const useCardLayout = createMemo(() => layoutWidth() <= CARD_LAYOUT_MAX_WIDTH_PX);
- const handleMonitorEndpointShortcut = () => {
- if (props.onAddSourceStep) {
- props.onAddSourceStep('availability');
- return;
- }
- props.onAddSource?.('availability');
- };
-
const headerActions = () => (
<Show when={!props.readOnly}>
<div class="border-b border-border bg-surface px-4 py-3">
@@ -547,18 +530,6 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
Add infrastructure
</button>
</Show>
- <Show when={props.onAddSourceStep || props.onAddSource}>
- <button
- type="button"
- onClick={handleMonitorEndpointShortcut}
- class={workspaceSecondaryButtonClass}
- title="Monitor a device or service with ICMP, TCP, or HTTP availability checks."
- >
- <Activity class="h-4 w-4" />
- Monitor endpoint
- </button>
- </Show>
-
{/* Discovery actions stay utility-tier but must remain explicit:
manual scans are an operator command, not an icon-hunt. */}
<div class="ml-auto flex flex-wrap items-center gap-1">
@@ -630,7 +601,9 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
{(metric, index) => (
<div class="flex items-baseline gap-1.5">
<Show when={index() > 0}>
- <span aria-hidden="true" class="text-muted">·</span>
+ <span aria-hidden="true" class="text-muted">
+ ·
+ </span>
</Show>
<dt class="text-[11px] font-medium uppercase tracking-[0.06em] text-muted">
{metric.label}
@@ -679,10 +652,7 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
return (
<div ref={layoutContainerRef} class="min-w-0">
- <SettingsPanel
- title="Connected systems"
- noPadding
- >
+ <SettingsPanel title="Connected systems" noPadding>
{headerActions()}
{setupSummaryBand()}
@@ -826,7 +796,11 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
<TableCell class="px-3 py-1 align-top">
<Show
when={row.coverageLabels.length > 0}
- fallback={<span class="text-xs text-muted" aria-hidden="true">—</span>}
+ fallback={
+ <span class="text-xs text-muted" aria-hidden="true">
+ —
+ </span>
+ }
>
<div
class="whitespace-normal break-words text-[12px] leading-4 text-muted"
@@ -899,7 +873,9 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
row.ownerType === 'pve' &&
rowHasApiCoverage(row) &&
!rowHasAgentCoverage(row) &&
- Boolean(props.onAddSourceStep || props.onAddSource)
+ Boolean(
+ props.onAddSourceStep || props.onAddSource,
+ )
}
>
<button
@@ -988,7 +964,12 @@ export const InfrastructureSourceManager: Component<InfrastructureSourceManagerP
<Show
when={member.coverageLabels.length > 0}
fallback={
- <span class="text-xs text-muted" aria-hidden="true">—</span>
+ <span
+ class="text-xs text-muted"
+ aria-hidden="true"
+ >
+ —
+ </span>
}
>
<div
diff --git a/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx b/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx
index 26a72ef7fd..dec2ede8de 100644
--- a/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx
@@ -1,15 +1,5 @@
import { Component, For, Show, createMemo, createSignal } from 'solid-js';
-import {
- Activity,
- Archive,
- Cpu,
- Database,
- Download,
- Mail,
- Search,
- Server,
- ServerCog,
-} from 'lucide-solid';
+import { Archive, Cpu, Database, Download, Mail, Search, Server, ServerCog } from 'lucide-solid';
import type {
InfrastructureSourcePickerItemId,
InfrastructureSourcePickerItemPresentation,
@@ -47,12 +37,9 @@ const CARD_ICON: Record<InfrastructureSourcePickerItemId, Component<{ class?: st
'linux-host': Cpu,
docker: Server,
kubernetes: ServerCog,
- availability: Activity,
};
-const PRIMARY_PATH_PICKER_ITEM_IDS: ReadonlySet<InfrastructureSourcePickerItemId> = new Set([
- 'availability',
-]);
+const PRIMARY_PATH_PICKER_ITEM_IDS: ReadonlySet<InfrastructureSourcePickerItemId> = new Set();
// Popular sources shown by default. The rest are hidden behind 'Show more
// sources' to keep the picker scannable at a glance and let users scroll to
@@ -139,25 +126,6 @@ export const InfrastructureSourcePicker: Component<InfrastructureSourcePickerPro
</div>
</button>
</Show>
- <button
- type="button"
- onClick={() => props.onSelectStep('availability')}
- class={primaryPathCardClass}
- >
- <div
- aria-hidden="true"
- class="flex h-10 w-10 flex-none items-center justify-center rounded-md border border-blue-200 bg-blue-100 text-blue-700 dark:border-blue-800 dark:bg-blue-900 dark:text-blue-200"
- >
- <Activity class="h-5 w-5" />
- </div>
- <div class="min-w-0 flex-1 space-y-1">
- <div class="text-sm font-semibold text-base-content">Monitor network endpoint</div>
- <p class="text-xs leading-5 text-muted">
- Use ICMP ping, TCP port, or HTTP checks for devices and services that cannot run
- the agent.
- </p>
- </div>
- </button>
<button
type="button"
onClick={() => props.onSelectStep('linux-host')}
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 9b91af6f33..ed437f94dc 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -9,7 +9,6 @@ import { Dialog } from '@/components/shared/Dialog';
import { AgentProfilesPanel } from './AgentProfilesPanel';
import { ConnectionEditor } from './ConnectionEditor/ConnectionEditor';
import { NodeCredentialSlot } from './ConnectionEditor/CredentialSlots/NodeCredentialSlot';
-import { AvailabilityTargetSlot } from './ConnectionEditor/CredentialSlots/AvailabilityTargetSlot';
import { TrueNASCredentialSlot } from './ConnectionEditor/CredentialSlots/TrueNASCredentialSlot';
import { VMwareCredentialSlot } from './ConnectionEditor/CredentialSlots/VMwareCredentialSlot';
import type { Connection, ConnectionType, ProbeCandidate } from '@/api/connections';
@@ -73,7 +72,6 @@ const ADD_STEP_TO_TYPE: Record<ManagedAddTypeStep, ConnectionType> = {
pve: 'pve',
pbs: 'pbs',
pmg: 'pmg',
- availability: 'availability',
truenas: 'truenas',
vmware: 'vmware',
};
@@ -101,7 +99,6 @@ const describeManagedSourceType = (type: ConnectionType | null): string => {
type === 'agent' ||
type === 'vmware' ||
type === 'truenas' ||
- type === 'availability' ||
type === 'pve' ||
type === 'pbs' ||
type === 'pmg'
@@ -735,23 +732,6 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
/>
);
}
- case 'availability': {
- const targetId = aggregatorSuffix(connection.id);
- return (
- <AvailabilityTargetSlot
- editingTargetId={targetId}
- onCancel={context.onCancel}
- onSaved={context.onSaved}
- onToggleEnabled={() => void rowActions.togglePause(connection)}
- togglePending={rowActions.pendingAction(connection.id) === 'pause'}
- connectionEnabled={connection.enabled}
- onDelete={() => void rowActions.requestRemove(connection)}
- deletePending={rowActions.pendingAction(connection.id) === 'remove'}
- deleteConfirming={rowActions.confirmingRemove(connection.id)}
- deleteError={rowActions.actionError(connection.id)}
- />
- );
- }
default:
return (
<div class="text-sm text-muted">
@@ -812,8 +792,6 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
onSaved={context.onSaved}
/>
);
- case 'availability':
- return <AvailabilityTargetSlot onCancel={context.onCancel} onSaved={context.onSaved} />;
case 'agent':
return renderAgentAddSlot();
default:
diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx
index 609d82f77c..30d680bd71 100644
--- a/frontend-modern/src/components/Settings/Settings.tsx
+++ b/frontend-modern/src/components/Settings/Settings.tsx
@@ -17,7 +17,7 @@ import { useSettingsSystemPanels } from './useSettingsSystemPanels';
import { useSystemSettingsState } from './useSystemSettingsState';
import { useSettingsNavigation } from './useSettingsNavigation';
import { getSettingsLoadingState } from '@/utils/settingsShellPresentation';
-import { isRouteableSettingsPath } from './settingsNavigationModel';
+import { isRouteableSettingsLocation } from './settingsNavigationModel';
import NotFound from '@/pages/NotFound';
import { getRuntimeLimit, loadRuntimeCapabilities } from '@/stores/license';
@@ -223,7 +223,9 @@ const SettingsWorkspace: Component<SettingsProps> = (props) => {
const Settings: Component<SettingsProps> = (props) => {
const location = useLocation();
- const isRouteableSettingsRoute = createMemo(() => isRouteableSettingsPath(location.pathname));
+ const isRouteableSettingsRoute = createMemo(() =>
+ isRouteableSettingsLocation(location.pathname, location.search),
+ );
return (
<Show when={isRouteableSettingsRoute()} fallback={<NotFound />}>
diff --git a/frontend-modern/src/components/Settings/__tests__/AvailabilitySettingsPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/AvailabilitySettingsPanel.test.tsx
new file mode 100644
index 0000000000..1550047677
--- /dev/null
+++ b/frontend-modern/src/components/Settings/__tests__/AvailabilitySettingsPanel.test.tsx
@@ -0,0 +1,123 @@
+import { cleanup, fireEvent, render, screen, waitFor } from '@solidjs/testing-library';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import { AvailabilityTargetsAPI, type AvailabilityTarget } from '@/api/availabilityTargets';
+import { AvailabilitySettingsPanel } from '../AvailabilitySettingsPanel';
+
+const routeState = vi.hoisted(() => ({
+ pathname: '/settings/monitoring/availability',
+ search: '',
+}));
+const navigateSpy = vi.hoisted(() => vi.fn());
+
+vi.mock('@solidjs/router', async () => {
+ const actual = await vi.importActual<typeof import('@solidjs/router')>('@solidjs/router');
+ return {
+ ...actual,
+ useLocation: () => routeState,
+ useNavigate: () => navigateSpy,
+ };
+});
+
+vi.mock('@/api/availabilityTargets', () => ({
+ AvailabilityTargetsAPI: {
+ create: vi.fn(),
+ list: vi.fn(),
+ remove: vi.fn(),
+ test: vi.fn(),
+ testSaved: vi.fn(),
+ update: vi.fn(),
+ },
+}));
+
+vi.mock('../ConnectionEditor/CredentialSlots/AvailabilityTargetSlot', () => ({
+ AvailabilityTargetSlot: (props: { editingTargetId?: string | null; onSaved: () => void }) => (
+ <div
+ data-testid="availability-target-slot"
+ data-editing-target-id={props.editingTargetId ?? ''}
+ >
+ availability target slot
+ <button type="button" onClick={props.onSaved}>
+ Mock save
+ </button>
+ </div>
+ ),
+}));
+
+const targets: AvailabilityTarget[] = [
+ {
+ id: 'mqtt-broker',
+ name: 'MQTT broker',
+ address: 'mqtt.local',
+ protocol: 'tcp',
+ port: 1883,
+ enabled: true,
+ status: {
+ targetId: 'mqtt-broker',
+ name: 'MQTT broker',
+ address: 'mqtt.local',
+ protocol: 'tcp',
+ enabled: true,
+ available: true,
+ latencyMillis: 8,
+ },
+ },
+ {
+ id: 'http-health',
+ name: 'HTTP health',
+ address: 'http://service.local',
+ protocol: 'http',
+ path: '/health',
+ enabled: false,
+ },
+];
+
+describe('AvailabilitySettingsPanel', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ routeState.pathname = '/settings/monitoring/availability';
+ routeState.search = '';
+ vi.mocked(AvailabilityTargetsAPI.list).mockResolvedValue(targets);
+ vi.mocked(AvailabilityTargetsAPI.update).mockResolvedValue(targets[0]);
+ vi.mocked(AvailabilityTargetsAPI.testSaved).mockResolvedValue({
+ success: true,
+ latencyMillis: 8,
+ });
+ });
+
+ afterEach(() => cleanup());
+
+ it('lists monitor-only MQTT and HTTP endpoint checks in the monitoring home', async () => {
+ render(() => <AvailabilitySettingsPanel />);
+
+ await waitFor(() => expect(screen.getByText('MQTT broker')).toBeInTheDocument());
+ expect(screen.getByText('HTTP health')).toBeInTheDocument();
+ expect(screen.getByText('TCP 1883')).toBeInTheDocument();
+ expect(screen.getByText('http://service.local/health')).toBeInTheDocument();
+ expect(screen.getByText('Online · 8 ms')).toBeInTheDocument();
+ });
+
+ it('opens add and edit dialogs from the canonical availability route', async () => {
+ render(() => <AvailabilitySettingsPanel />);
+
+ await waitFor(() => expect(screen.getByText('MQTT broker')).toBeInTheDocument());
+ fireEvent.click(screen.getByRole('button', { name: /^Add check$/i }));
+ expect(navigateSpy).toHaveBeenLastCalledWith('/settings/monitoring/availability?add=target', {
+ scroll: false,
+ });
+
+ routeState.search = '?add=target';
+ cleanup();
+ render(() => <AvailabilitySettingsPanel />);
+ await waitFor(() => expect(screen.getByTestId('availability-target-slot')).toBeInTheDocument());
+
+ cleanup();
+ routeState.search = '';
+ render(() => <AvailabilitySettingsPanel />);
+ await waitFor(() => expect(screen.getByText('MQTT broker')).toBeInTheDocument());
+ fireEvent.click(screen.getAllByRole('button', { name: /^Manage$/i })[1]);
+ expect(screen.getByTestId('availability-target-slot')).toHaveAttribute(
+ 'data-editing-target-id',
+ 'mqtt-broker',
+ );
+ });
+});
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsModel.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsModel.test.tsx
index 371cceb302..9e5645fcd3 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsModel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsModel.test.tsx
@@ -165,7 +165,7 @@ describe('infrastructure operations model', () => {
expect(row.installFlags).toEqual([]);
expect(hasMachineInstallActions(row)).toBe(false);
expect(getCapabilitySurfaceLabel('availability')).toBe('Availability data');
- expect(getCapabilityManagementPath('availability')).toBe('/settings/infrastructure');
+ expect(getCapabilityManagementPath('availability')).toBe('/settings/monitoring/availability');
expect(getCapabilityManagementPath('proxmox')).toBe('/settings/infrastructure');
expect(getCapabilityManagementPath('pbs')).toBe('/settings/infrastructure');
expect(getCapabilityManagementPath('pmg')).toBe('/settings/infrastructure');
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx
index ed610bd0bb..59eb87db43 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx
@@ -111,8 +111,8 @@ describe('InfrastructureSourceManager setup summary', () => {
/>
));
- fireEvent.click(screen.getByRole('button', { name: /^Monitor endpoint$/i }));
- expect(onAddSourceStep).toHaveBeenCalledWith('availability');
+ expect(screen.queryByRole('button', { name: /^Monitor endpoint$/i })).toBeNull();
+ expect(onAddSourceStep).not.toHaveBeenCalled();
fireEvent.click(screen.getByRole('button', { name: /^Run discovery$/i }));
expect(onRunDiscovery).toHaveBeenCalledTimes(1);
@@ -184,8 +184,8 @@ describe('InfrastructureSourceManager setup summary', () => {
expect(screen.getByText('Setup status')).toBeInTheDocument();
expect(screen.getByText('Systems')).toBeInTheDocument();
- expect(screen.getByText('Endpoints')).toBeInTheDocument();
- expect(screen.getByText('1 endpoint')).toBeInTheDocument();
+ expect(screen.queryByText('Endpoints')).toBeNull();
+ expect(screen.queryByText('MQTT power meter')).toBeNull();
expect(screen.getByText('Live')).toBeInTheDocument();
expect(screen.getByText('Needs attention')).toBeInTheDocument();
expect(screen.getByText('Needs agent')).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx
index 23e9675e7e..8145c0c8ec 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx
@@ -11,11 +11,10 @@ describe('InfrastructureSourcePicker', () => {
render(() => <InfrastructureSourcePicker onSelectStep={vi.fn()} />);
expect(screen.getByPlaceholderText('Search sources, devices, services...')).toBeInTheDocument();
- // Picker now leads with the primary paths (API detect / endpoint probe /
- // agent install); the per-source card grid below is framed as the
- // alternative.
+ // Picker now leads with API detection and agent installation; endpoint
+ // probes live under Settings -> Monitoring -> Availability checks.
expect(screen.getByText('Choose how Pulse should connect')).toBeInTheDocument();
- expect(screen.getByRole('button', { name: /Monitor network endpoint/i })).toBeInTheDocument();
+ expect(screen.queryByRole('button', { name: /Monitor network endpoint/i })).toBeNull();
expect(screen.getByText('Or pick a specific source')).toBeInTheDocument();
// VMware lives behind 'Show more sources' since it is a less common
// homelab choice; expand the long tail to verify the Preview badge still
@@ -42,9 +41,6 @@ describe('InfrastructureSourcePicker', () => {
expect(trueNasButton).not.toBeNull();
fireEvent.click(trueNasButton!);
expect(onSelectStep).toHaveBeenLastCalledWith('truenas');
-
- fireEvent.click(screen.getByRole('button', { name: /Monitor network endpoint/i }));
- expect(onSelectStep).toHaveBeenLastCalledWith('availability');
});
it('filters the catalog by user-recognizable names and aliases', () => {
@@ -63,6 +59,6 @@ describe('InfrastructureSourcePicker', () => {
target: { value: 'mqtt' },
});
- expect(screen.getByText('Network endpoint')).toBeInTheDocument();
+ expect(screen.queryByText('Network endpoint')).toBeNull();
});
});
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
index ad77d11793..35a6a2a8c5 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
@@ -148,10 +148,6 @@ vi.mock('../ConnectionEditor/CredentialSlots/NodeCredentialSlot', () => ({
),
}));
-vi.mock('../ConnectionEditor/CredentialSlots/AvailabilityTargetSlot', () => ({
- AvailabilityTargetSlot: () => <div data-testid="availability-section">availability</div>,
-}));
-
vi.mock('../ConnectionEditor/CredentialSlots/TrueNASCredentialSlot', () => ({
TrueNASCredentialSlot: () => <div data-testid="truenas-section">truenas</div>,
}));
@@ -343,10 +339,7 @@ describe('InfrastructureWorkspace', () => {
scroll: false,
});
- fireEvent.click(screen.getByRole('button', { name: /^Monitor endpoint$/i }));
- expect(navigateSpy).toHaveBeenLastCalledWith('/settings/infrastructure?add=availability', {
- scroll: false,
- });
+ expect(screen.queryByRole('button', { name: /^Monitor endpoint$/i })).toBeNull();
});
it('keeps source groups in the catalog order instead of count order', async () => {
@@ -642,9 +635,7 @@ describe('InfrastructureWorkspace', () => {
expect(
within(dialog).getByRole('button', { name: /Detect API platform/i }),
).toBeInTheDocument();
- expect(
- within(dialog).getByRole('button', { name: /Monitor network endpoint/i }),
- ).toBeInTheDocument();
+ expect(within(dialog).queryByRole('button', { name: /Monitor network endpoint/i })).toBeNull();
expect(within(dialog).getByText('Choose how Pulse should connect')).toBeInTheDocument();
expect(within(dialog).getByText('Or pick a specific source')).toBeInTheDocument();
expect(within(dialog).queryByText('Agent telemetry')).toBeNull();
@@ -729,12 +720,12 @@ describe('InfrastructureWorkspace', () => {
expect(screen.getByTestId('truenas-section')).toBeInTheDocument();
});
- it('renders the agentless availability target route from the shared workspace', async () => {
+ it('does not render the agentless availability target route from the infrastructure workspace', async () => {
routeState.search = '?add=availability';
renderWorkspace();
- await waitFor(() => expect(screen.getByRole('dialog')).toBeInTheDocument());
- expect(screen.getByTestId('availability-section')).toBeInTheDocument();
+ await waitFor(() => expect(screen.getByText('Connected systems')).toBeInTheDocument());
+ expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
});
it('opens the manage dialog directly from an existing source card', async () => {
diff --git a/frontend-modern/src/components/Settings/__tests__/availabilitySettingsModel.test.ts b/frontend-modern/src/components/Settings/__tests__/availabilitySettingsModel.test.ts
new file mode 100644
index 0000000000..6b22588ab8
--- /dev/null
+++ b/frontend-modern/src/components/Settings/__tests__/availabilitySettingsModel.test.ts
@@ -0,0 +1,74 @@
+import { describe, expect, it } from 'vitest';
+import {
+ buildAvailabilitySettingsPath,
+ buildAvailabilityTargetAddPath,
+ getAvailabilityTargetAddressLabel,
+ getAvailabilityTargetMethodLabel,
+ getAvailabilityTargetStatusLabel,
+ getAvailabilityTargetsSummary,
+ shouldOpenAvailabilityTargetAddDialog,
+} from '../availabilitySettingsModel';
+import type { AvailabilityTarget } from '@/api/availabilityTargets';
+
+const target = (overrides: Partial<AvailabilityTarget> = {}): AvailabilityTarget => ({
+ id: 'mqtt-broker',
+ name: 'MQTT broker',
+ address: 'mqtt.local',
+ protocol: 'tcp',
+ port: 1883,
+ enabled: true,
+ ...overrides,
+});
+
+describe('availabilitySettingsModel', () => {
+ it('owns the canonical monitoring availability settings path', () => {
+ expect(buildAvailabilitySettingsPath()).toBe('/settings/monitoring/availability');
+ expect(buildAvailabilityTargetAddPath()).toBe('/settings/monitoring/availability?add=target');
+ expect(
+ shouldOpenAvailabilityTargetAddDialog('/settings/monitoring/availability', '?add=target'),
+ ).toBe(true);
+ expect(
+ shouldOpenAvailabilityTargetAddDialog('/settings/infrastructure', '?add=availability'),
+ ).toBe(false);
+ });
+
+ it('formats endpoint methods and addresses without infrastructure copy', () => {
+ expect(getAvailabilityTargetMethodLabel(target())).toBe('TCP 1883');
+ expect(getAvailabilityTargetAddressLabel(target())).toBe('mqtt.local:1883');
+ expect(
+ getAvailabilityTargetAddressLabel(
+ target({ protocol: 'http', address: 'http://sensor.local', path: '/health' }),
+ ),
+ ).toBe('http://sensor.local/health');
+ expect(
+ getAvailabilityTargetAddressLabel(
+ target({ protocol: 'http', address: 'http://sensor.local/', path: '/health' }),
+ ),
+ ).toBe('http://sensor.local/health');
+ expect(getAvailabilityTargetMethodLabel(target({ protocol: 'icmp', port: undefined }))).toBe(
+ 'ICMP ping',
+ );
+ });
+
+ it('summarizes saved availability targets from their probe state', () => {
+ expect(
+ getAvailabilityTargetStatusLabel(
+ target({
+ status: { ...target(), targetId: 'mqtt-broker', available: true, latencyMillis: 12 },
+ }),
+ ),
+ ).toBe('Online · 12 ms');
+ expect(
+ getAvailabilityTargetsSummary([
+ target(),
+ target({
+ id: 'http-health',
+ name: 'HTTP health',
+ protocol: 'http',
+ address: 'http://service.local',
+ status: { ...target(), targetId: 'http-health', available: false },
+ }),
+ ]),
+ ).toBe('1 down · 2 enabled');
+ });
+});
diff --git a/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.ts b/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.ts
index b58aea3b8f..d99f62bb74 100644
--- a/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.ts
@@ -32,6 +32,7 @@ describe('infrastructureWorkspaceModel', () => {
expect(deriveAddStepFromLocation('/settings/infrastructure', '?add=kubernetes')).toBe(
'kubernetes',
);
+ expect(deriveAddStepFromLocation('/settings/infrastructure', '?add=availability')).toBeNull();
expect(deriveAddStepFromLocation('/settings/infrastructure/install', '')).toBeNull();
expect(deriveAddStepFromLocation('/settings/infrastructure/platforms', '?add=pick')).toBeNull();
});
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 4d28de8d66..65d18ff8c1 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -35,6 +35,8 @@ import infrastructureInstallerSectionSource from '../InfrastructureInstallerSect
import infrastructureOperationsModelSource from '../infrastructureOperationsModel.tsx?raw';
import infrastructureSourceManagerSource from '../InfrastructureSourceManager.tsx?raw';
import infrastructureSourcePickerSource from '../InfrastructureSourcePicker.tsx?raw';
+import availabilitySettingsPanelSource from '../AvailabilitySettingsPanel.tsx?raw';
+import availabilitySettingsModelSource from '../availabilitySettingsModel.ts?raw';
import infrastructureWorkspaceModelSource from '../infrastructureWorkspaceModel.ts?raw';
import useConnectionsLedgerSource from '../useConnectionsLedger.ts?raw';
import agentProfileSettingsSource from '../agentProfileSettings.ts?raw';
@@ -100,13 +102,19 @@ describe('settings architecture guardrails', () => {
expect(settingsHeaderMetaSource).toContain(
'Add, discover, and verify the infrastructure Pulse monitors.',
);
+ expect(settingsHeaderMetaSource).toContain("'monitoring-availability': {");
+ expect(settingsHeaderMetaSource).toContain(
+ 'Monitor endpoint-only devices and services with ping, TCP, and HTTP probes.',
+ );
expect(settingsHeaderMetaSource).toContain("'organization-access': {");
expect(settingsHeaderMetaSource).toContain(
'Manage organization invitations, member roles, and ownership transfers.',
);
expect(settingsSource).toContain("import NotFound from '@/pages/NotFound';");
- expect(settingsSource).toContain('isRouteableSettingsPath(location.pathname)');
+ expect(settingsSource).toContain(
+ 'isRouteableSettingsLocation(location.pathname, location.search)',
+ );
expect(settingsNavigationHookSource).not.toContain('deriveAddStepFromLegacyPath');
expect(settingsNavigationHookSource).not.toContain('buildInfrastructureOnboardingPath');
expect(settingsNavigationHookSource).toContain(
@@ -120,10 +128,17 @@ describe('settings architecture guardrails', () => {
expect(infrastructureWorkspaceModelSource).toContain(
'export function buildInfrastructureOnboardingPath(',
);
+ expect(infrastructureWorkspaceModelSource).not.toContain("| 'availability'");
expect(infrastructureWorkspaceModelSource).not.toContain('deriveAddStepFromLegacyPath');
expect(infrastructureWorkspaceModelSource).toContain(
'export function deriveAddStepFromSearch(',
);
+ expect(availabilitySettingsModelSource).toContain(
+ "export const AVAILABILITY_SETTINGS_PATH = '/settings/monitoring/availability';",
+ );
+ expect(availabilitySettingsModelSource).toContain(
+ 'export function buildAvailabilityTargetAddPath()',
+ );
});
it('keeps retired operations paths out of the settings routing model', () => {
@@ -562,6 +577,7 @@ describe('settings architecture guardrails', () => {
expect(infrastructureWorkspaceSource).toContain('NodeCredentialSlot');
expect(infrastructureWorkspaceSource).toContain('TrueNASCredentialSlot');
expect(infrastructureWorkspaceSource).toContain('VMwareCredentialSlot');
+ expect(infrastructureWorkspaceSource).not.toContain('AvailabilityTargetSlot');
expect(infrastructureWorkspaceSource).toContain(
": (type) => openAddFlow(type === 'agent' ? 'agent' : (type as ManagedAddTypeStep))",
);
@@ -630,6 +646,7 @@ describe('settings architecture guardrails', () => {
expect(infrastructureSourceManagerSource).not.toContain('Detect address');
expect(infrastructureSourceManagerSource).not.toContain("'Install agent'");
expect(infrastructureSourceManagerSource).toContain('Add infrastructure');
+ expect(infrastructureSourceManagerSource).not.toContain('Monitor endpoint');
expect(infrastructureSourceManagerSource).toContain('getInfrastructureEmptyStateSummary');
expect(infrastructureSourceManagerSource).toContain('Setup status');
expect(infrastructureSourceManagerSource).toContain('Systems');
@@ -644,9 +661,14 @@ describe('settings architecture guardrails', () => {
expect(infrastructureSourcePickerSource).toContain('getInfrastructureSourcePickerItems');
expect(infrastructureSourcePickerSource).toContain('itemMatchesQuery');
expect(infrastructureSourcePickerSource).toContain('catalogDescription');
+ expect(infrastructureSourcePickerSource).not.toContain('Monitor network endpoint');
expect(infrastructureSourcePickerSource).not.toContain(
'getInfrastructureSourceStrategyPresentation',
);
+ expect(availabilitySettingsPanelSource).toContain('AvailabilityTargetSlot');
+ expect(availabilitySettingsPanelSource).toContain('buildAvailabilityTargetAddPath');
+ expect(availabilitySettingsPanelSource).toContain('Availability checks');
+ expect(availabilitySettingsPanelSource).toContain('MQTT broker');
expect(settingsHeaderMetaSource).toContain(
"description: 'Configure the public URL, CORS, embedding, and webhook network boundaries.'",
);
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx b/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
index cf30e7c18c..349635a13d 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/settingsNavigation.integration.test.tsx
@@ -2,14 +2,12 @@ import { describe, expect, it } from 'vitest';
import { deriveTabFromPath, settingsTabPath, type SettingsTab } from '../settingsNavigationModel';
import { getTabLockReason, isTabLocked } from '../settingsFeatureGates';
import { getSettingsNavItem } from '../settingsNavCatalog';
-import {
- shouldBlockSettingsRouteItem,
- shouldHideSettingsNavItem,
-} from '../settingsNavVisibility';
+import { shouldBlockSettingsRouteItem, shouldHideSettingsNavItem } from '../settingsNavVisibility';
import { getSettingsTabSaveBehavior } from '../settingsTabSaveBehavior';
const canonicalTabPaths = {
'infrastructure-systems': '/settings/infrastructure',
+ 'monitoring-availability': '/settings/monitoring/availability',
'system-general': '/settings/system-general',
'system-network': '/settings/system-network',
'system-updates': '/settings/system-updates',
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts
index 9bae5b7928..6ebfd4745a 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsRouting.test.ts
@@ -5,6 +5,7 @@ import {
deriveTabFromPath,
deriveTabFromQuery,
isRetiredSettingsCompatibilityPath,
+ isRouteableSettingsLocation,
isRouteableSettingsPath,
resolveCanonicalSettingsPath,
settingsAgentLabel,
@@ -17,6 +18,7 @@ import { isFeatureLocked, isTabLocked } from '../settingsFeatureGates';
const canonicalTabPaths = {
'infrastructure-systems': '/settings/infrastructure',
+ 'monitoring-availability': '/settings/monitoring/availability',
'system-general': '/settings/system-general',
'system-network': '/settings/system-network',
'system-updates': '/settings/system-updates',
@@ -74,6 +76,12 @@ describe('settingsNavigationModel', () => {
expect(resolveCanonicalSettingsPath('/settings/infrastructure')).toBe(
'/settings/infrastructure',
);
+ expect(resolveCanonicalSettingsPath('/settings/monitoring')).toBe(
+ '/settings/monitoring/availability',
+ );
+ expect(resolveCanonicalSettingsPath('/settings/monitoring/availability')).toBe(
+ '/settings/monitoring/availability',
+ );
expect(resolveCanonicalSettingsPath('/settings/infrastructure/install')).toBeNull();
expect(resolveCanonicalSettingsPath('/settings/infrastructure/platforms')).toBeNull();
expect(resolveCanonicalSettingsPath('/settings/infrastructure/platforms/truenas')).toBeNull();
@@ -118,10 +126,24 @@ describe('settingsNavigationModel', () => {
expect(isRouteableSettingsPath('/settings')).toBe(true);
expect(isRouteableSettingsPath('/settings/infrastructure')).toBe(true);
+ expect(isRouteableSettingsPath('/settings/monitoring/availability')).toBe(true);
expect(isRouteableSettingsPath('/settings/security/api')).toBe(true);
expect(isRouteableSettingsPath('/settings/unknown')).toBe(false);
});
+ it('rejects invalid route-owned add query states instead of mounting the wrong panel', () => {
+ expect(isRouteableSettingsLocation('/settings/infrastructure', '?add=agent')).toBe(true);
+ expect(isRouteableSettingsLocation('/settings/infrastructure', '?add=availability')).toBe(
+ false,
+ );
+ expect(isRouteableSettingsLocation('/settings/monitoring/availability', '?add=target')).toBe(
+ true,
+ );
+ expect(
+ isRouteableSettingsLocation('/settings/monitoring/availability', '?add=availability'),
+ ).toBe(false);
+ });
+
it('maps organization routing contracts', () => {
const organizationCases: Array<[string, SettingsTab]> = [
['/settings/organization', 'organization-overview'],
@@ -142,6 +164,8 @@ describe('settingsNavigationModel', () => {
it('maps query deep-links contract values', () => {
const queryCases: Array<[string, SettingsTab | null]> = [
['?tab=infrastructure', 'infrastructure-systems'],
+ ['?tab=availability', 'monitoring-availability'],
+ ['?tab=monitoring-availability', 'monitoring-availability'],
['?tab=system-ai', 'system-ai'],
['?tab=system-relay', 'system-relay'],
['?tab=system-billing', 'system-billing'],
diff --git a/frontend-modern/src/components/Settings/availabilitySettingsModel.ts b/frontend-modern/src/components/Settings/availabilitySettingsModel.ts
new file mode 100644
index 0000000000..e799524f4b
--- /dev/null
+++ b/frontend-modern/src/components/Settings/availabilitySettingsModel.ts
@@ -0,0 +1,83 @@
+import type { AvailabilityTarget } from '@/api/availabilityTargets';
+
+export const AVAILABILITY_SETTINGS_PATH = '/settings/monitoring/availability';
+export const AVAILABILITY_ADD_QUERY_PARAM = 'add';
+export const AVAILABILITY_ADD_TARGET_VALUE = 'target';
+
+export function buildAvailabilitySettingsPath(): string {
+ return AVAILABILITY_SETTINGS_PATH;
+}
+
+export function buildAvailabilityTargetAddPath(): string {
+ const params = new URLSearchParams();
+ params.set(AVAILABILITY_ADD_QUERY_PARAM, AVAILABILITY_ADD_TARGET_VALUE);
+ return `${AVAILABILITY_SETTINGS_PATH}?${params.toString()}`;
+}
+
+export function shouldOpenAvailabilityTargetAddDialog(pathname: string, search: string): boolean {
+ if (pathname !== AVAILABILITY_SETTINGS_PATH && pathname !== `${AVAILABILITY_SETTINGS_PATH}/`) {
+ return false;
+ }
+ const params = new URLSearchParams(search);
+ return params.get(AVAILABILITY_ADD_QUERY_PARAM)?.trim() === AVAILABILITY_ADD_TARGET_VALUE;
+}
+
+export function getAvailabilityTargetMethodLabel(target: AvailabilityTarget): string {
+ switch (target.protocol) {
+ case 'icmp':
+ return 'ICMP ping';
+ case 'tcp':
+ return target.port ? `TCP ${target.port}` : 'TCP port';
+ case 'http':
+ return 'HTTP check';
+ default:
+ return String(target.protocol).toUpperCase();
+ }
+}
+
+export function getAvailabilityTargetAddressLabel(target: AvailabilityTarget): string {
+ if (target.protocol === 'http') {
+ const path = target.path?.trim();
+ if (path && !target.address.endsWith(path)) {
+ const normalizedAddress = target.address.replace(/\/+$/, '');
+ const normalizedPath = path.startsWith('/') ? path : `/${path}`;
+ return `${normalizedAddress}${normalizedPath}`;
+ }
+ return target.address;
+ }
+ if (target.protocol === 'tcp' && target.port) {
+ return `${target.address}:${target.port}`;
+ }
+ return target.address;
+}
+
+export function getAvailabilityTargetStatusLabel(target: AvailabilityTarget): string {
+ if (!target.enabled) return 'Paused';
+ const status = target.status;
+ if (!status) return 'Not checked yet';
+ if (status.available) {
+ return typeof status.latencyMillis === 'number'
+ ? `Online · ${status.latencyMillis} ms`
+ : 'Online';
+ }
+ return status.lastError?.trim() || 'Offline';
+}
+
+export function getAvailabilityTargetStatusClass(target: AvailabilityTarget): string {
+ if (!target.enabled) return 'bg-slate-100 text-slate-700 dark:bg-slate-900 dark:text-slate-300';
+ if (!target.status) return 'bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-300';
+ if (target.status.available) {
+ return 'bg-emerald-100 text-emerald-700 dark:bg-emerald-900 dark:text-emerald-300';
+ }
+ return 'bg-rose-100 text-rose-700 dark:bg-rose-900 dark:text-rose-300';
+}
+
+export function getAvailabilityTargetsSummary(targets: readonly AvailabilityTarget[]): string {
+ const enabled = targets.filter((target) => target.enabled).length;
+ const down = targets.filter(
+ (target) => target.enabled && target.status?.available === false,
+ ).length;
+ if (targets.length === 0) return 'No availability checks configured';
+ if (down > 0) return `${down} down · ${enabled} enabled`;
+ return `${enabled} enabled · ${targets.length} total`;
+}
diff --git a/frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx b/frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx
index 637c79c00c..25fe246b5e 100644
--- a/frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx
+++ b/frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx
@@ -2,6 +2,7 @@ import type { JSX } from 'solid-js';
import type { ConnectedInfrastructureItem, ConnectedInfrastructureSurface } from '@/types/api';
import { getAgentCapabilityLabel, type AgentCapability } from '@/utils/agentCapabilityPresentation';
import { getSourcePlatformLabel } from '@/utils/sourcePlatforms';
+import { buildAvailabilitySettingsPath } from './availabilitySettingsModel';
import { buildInfrastructureWorkspacePath } from './infrastructureWorkspaceModel';
export const TOKEN_PLACEHOLDER = '<api-token>';
@@ -182,7 +183,7 @@ export const getStopMonitoringSurfaces = (row: UnifiedAgentRow) => {
};
export const isPlatformConnectionsCapability = (capability: AgentCapability) =>
- ['proxmox', 'pbs', 'pmg', 'truenas', 'availability'].includes(capability);
+ ['proxmox', 'pbs', 'pmg', 'truenas'].includes(capability);
export const getPlatformConnectionsViewForCapability = (
capability: AgentCapability,
@@ -201,8 +202,10 @@ export const getPlatformConnectionsViewForCapability = (
}
};
-export const getCapabilityManagementPath = (capability: AgentCapability) =>
- isPlatformConnectionsCapability(capability) ? buildInfrastructureWorkspacePath() : null;
+export const getCapabilityManagementPath = (capability: AgentCapability) => {
+ if (capability === 'availability') return buildAvailabilitySettingsPath();
+ return isPlatformConnectionsCapability(capability) ? buildInfrastructureWorkspacePath() : null;
+};
export const hasMachineInstallActions = (row: UnifiedAgentRow) =>
Boolean(row.agentActionId?.trim() || row.agentId?.trim());
diff --git a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts
index 42f343fa91..e74c7d3616 100644
--- a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts
+++ b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts
@@ -8,7 +8,6 @@ export type InfrastructureAddStep =
| 'pve'
| 'pbs'
| 'pmg'
- | 'availability'
| 'truenas'
| 'vmware';
export type InfrastructurePanelStep = 'pick' | InfrastructureAddStep;
@@ -30,7 +29,6 @@ export function normalizeInfrastructurePanelStep(
case 'pve':
case 'pbs':
case 'pmg':
- case 'availability':
case 'truenas':
case 'vmware':
return value!.trim() as InfrastructurePanelStep;
diff --git a/frontend-modern/src/components/Settings/settingsHeaderMeta.ts b/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
index 018ae45ced..3545490b25 100644
--- a/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
+++ b/frontend-modern/src/components/Settings/settingsHeaderMeta.ts
@@ -11,6 +11,10 @@ export const SETTINGS_HEADER_META: SettingsHeaderMetaMap = {
title: 'Infrastructure',
description: 'Add, discover, and verify the infrastructure Pulse monitors.',
},
+ 'monitoring-availability': {
+ title: 'Availability checks',
+ description: 'Monitor endpoint-only devices and services with ping, TCP, and HTTP probes.',
+ },
'system-general': {
title: 'General',
description: 'Manage appearance, layout, and default monitoring cadence.',
diff --git a/frontend-modern/src/components/Settings/settingsNavCatalog.ts b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
index ddcd057c3e..3f2c20cb83 100644
--- a/frontend-modern/src/components/Settings/settingsNavCatalog.ts
+++ b/frontend-modern/src/components/Settings/settingsNavCatalog.ts
@@ -35,6 +35,18 @@ export const SETTINGS_NAV_GROUPS: SettingsNavGroup[] = [
},
],
},
+ {
+ id: 'monitoring',
+ label: 'Monitoring',
+ items: [
+ {
+ id: 'monitoring-availability',
+ label: 'Availability checks',
+ icon: Activity,
+ iconProps: { strokeWidth: 2 },
+ },
+ ],
+ },
{
id: 'organization',
label: 'Organization',
diff --git a/frontend-modern/src/components/Settings/settingsNavigationModel.ts b/frontend-modern/src/components/Settings/settingsNavigationModel.ts
index 4a7ab72230..f99aa0d678 100644
--- a/frontend-modern/src/components/Settings/settingsNavigationModel.ts
+++ b/frontend-modern/src/components/Settings/settingsNavigationModel.ts
@@ -2,6 +2,14 @@ import type { Component } from 'solid-js';
import type { SecurityStatusSettingsCapabilities } from '@/types/config';
import { normalizeSourcePlatformKey } from '@/utils/sourcePlatforms';
import type { PlatformType } from '@/types/resource';
+import {
+ deriveAddStepFromSearch,
+ INFRASTRUCTURE_ADD_QUERY_PARAM,
+} from './infrastructureWorkspaceModel';
+import {
+ AVAILABILITY_ADD_QUERY_PARAM,
+ shouldOpenAvailabilityTargetAddDialog,
+} from './availabilitySettingsModel';
import {
SELF_HOSTED_PRO_BILLING_PLAN_ROUTE,
SELF_HOSTED_PRO_BILLING_ROUTE,
@@ -9,6 +17,7 @@ import {
export type SettingsTab =
| 'infrastructure-systems'
+ | 'monitoring-availability'
| 'system-general'
| 'system-network'
| 'system-updates'
@@ -44,6 +53,7 @@ export type ProxmoxPlatformType = Extract<
export type SettingsNavGroupId =
| 'infrastructure'
+ | 'monitoring'
| 'organization'
| 'system'
| 'support'
@@ -86,6 +96,8 @@ export type SettingsHeaderMetaMap = Record<SettingsTab, SettingsHeaderMeta>;
// Default landing tab for /settings when no deep-link tab is provided.
export const DEFAULT_SETTINGS_TAB: SettingsTab = 'infrastructure-systems';
const INFRASTRUCTURE_SYSTEMS_PREFIX = '/settings/infrastructure';
+const MONITORING_PREFIX = '/settings/monitoring';
+const MONITORING_AVAILABILITY_PREFIX = `${MONITORING_PREFIX}/availability`;
const RETIRED_SETTINGS_WORKLOADS_PREFIX = '/settings/workloads';
const RETIRED_SETTINGS_OPERATIONS_PREFIX = '/settings/operations';
const RETIRED_SETTINGS_INTEGRATIONS_API_PREFIX = '/settings/integrations/api';
@@ -156,6 +168,9 @@ export function resolveCanonicalSettingsPath(path: string): string | null {
if (normalizedPath === INFRASTRUCTURE_SYSTEMS_PREFIX) {
return settingsTabPath(DEFAULT_SETTINGS_TAB);
}
+ if (normalizedPath === MONITORING_PREFIX) {
+ return MONITORING_AVAILABILITY_PREFIX;
+ }
if (normalizedPath === SUPPORT_PREFIX) {
return SUPPORT_DIAGNOSTICS_PREFIX;
}
@@ -172,6 +187,9 @@ export function deriveTabFromPath(path: string): SettingsTab {
if (canonicalPath === INFRASTRUCTURE_SYSTEMS_PREFIX) {
return 'infrastructure-systems';
}
+ if (canonicalPath.startsWith(MONITORING_AVAILABILITY_PREFIX)) {
+ return 'monitoring-availability';
+ }
if (canonicalPath.includes('/settings/system-general')) return 'system-general';
if (canonicalPath.includes('/settings/system-network')) return 'system-network';
@@ -239,6 +257,9 @@ export function deriveTabFromQuery(search: string): SettingsTab | null {
switch (tab) {
case 'infrastructure':
return 'infrastructure-systems';
+ case 'availability':
+ case 'monitoring-availability':
+ return 'monitoring-availability';
case 'system-recovery':
return 'system-recovery';
case 'system-updates':
@@ -301,6 +322,8 @@ export function settingsTabPath(tab: SettingsTab): string {
switch (tab) {
case 'infrastructure-systems':
return INFRASTRUCTURE_SYSTEMS_PREFIX;
+ case 'monitoring-availability':
+ return MONITORING_AVAILABILITY_PREFIX;
case 'system-recovery':
return '/settings/system-recovery';
case 'organization-overview':
@@ -332,6 +355,7 @@ export function settingsTabPath(tab: SettingsTab): string {
const ROUTEABLE_SETTINGS_PATHS = new Set<string>([
settingsTabPath('infrastructure-systems'),
+ settingsTabPath('monitoring-availability'),
settingsTabPath('system-general'),
settingsTabPath('system-network'),
settingsTabPath('system-updates'),
@@ -368,6 +392,30 @@ export function isRouteableSettingsPath(path: string): boolean {
return canonicalPath ? ROUTEABLE_SETTINGS_PATHS.has(canonicalPath) : false;
}
+export function isRouteableSettingsLocation(path: string, search = ''): boolean {
+ if (!isRouteableSettingsPath(path)) return false;
+
+ const normalizedPath = normalizeSettingsPath(path);
+ const params = new URLSearchParams(search);
+ if (
+ normalizedPath === INFRASTRUCTURE_SYSTEMS_PREFIX &&
+ params.has(INFRASTRUCTURE_ADD_QUERY_PARAM) &&
+ deriveAddStepFromSearch(search) === null
+ ) {
+ return false;
+ }
+
+ if (
+ normalizedPath === MONITORING_AVAILABILITY_PREFIX &&
+ params.has(AVAILABILITY_ADD_QUERY_PARAM) &&
+ !shouldOpenAvailabilityTargetAddDialog(normalizedPath, search)
+ ) {
+ return false;
+ }
+
+ return true;
+}
+
export function isInfrastructureSettingsTab(tab: SettingsTab): tab is InfrastructureSettingsTab {
return tab === 'infrastructure-systems';
}
diff --git a/frontend-modern/src/components/Settings/settingsPanelRegistry.ts b/frontend-modern/src/components/Settings/settingsPanelRegistry.ts
index fe51bc9fab..4582f863c2 100644
--- a/frontend-modern/src/components/Settings/settingsPanelRegistry.ts
+++ b/frontend-modern/src/components/Settings/settingsPanelRegistry.ts
@@ -51,6 +51,9 @@ export const createSettingsPanelRegistry = (
component: SETTINGS_PANEL_REGISTRY_LOADERS.InfrastructureWorkspace,
getProps: context.getInfrastructurePanelProps,
},
+ 'monitoring-availability': {
+ component: SETTINGS_PANEL_REGISTRY_LOADERS.AvailabilitySettingsPanel,
+ },
'system-general': {
component: context.systemGeneralPanel,
},
diff --git a/frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts b/frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts
index 6d736c1453..f032ca4f84 100644
--- a/frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts
+++ b/frontend-modern/src/components/Settings/settingsPanelRegistryLoaders.ts
@@ -1,6 +1,9 @@
import { lazy } from 'solid-js';
export const SETTINGS_PANEL_REGISTRY_LOADERS = {
+ AvailabilitySettingsPanel: lazy(() =>
+ import('./AvailabilitySettingsPanel').then((m) => ({ default: m.AvailabilitySettingsPanel })),
+ ),
APIAccessPanel: lazy(() =>
import('./APIAccessPanel').then((m) => ({ default: m.APIAccessPanel })),
),
diff --git a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
index 2196ff9b70..9ee3afd49a 100644
--- a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts
@@ -90,13 +90,7 @@ describe('infrastructureOnboardingPresentation', () => {
it('separates supported API products from admitted preview products', () => {
expect(
getInfrastructureApiProductsByGovernanceState('supported').map((product) => product.label),
- ).toEqual([
- 'TrueNAS SCALE',
- 'Proxmox VE',
- 'Proxmox Backup Server',
- 'Proxmox Mail Gateway',
- 'Network endpoint',
- ]);
+ ).toEqual(['TrueNAS SCALE', 'Proxmox VE', 'Proxmox Backup Server', 'Proxmox Mail Gateway']);
expect(
getInfrastructureApiProductsByGovernanceState('admitted').map((product) => product.label),
).toEqual(['VMware vCenter']);
@@ -132,11 +126,6 @@ describe('infrastructureOnboardingPresentation', () => {
label: 'Proxmox Mail Gateway',
actionLabel: 'Add Proxmox Mail Gateway',
}),
- expect.objectContaining({
- type: 'availability',
- label: 'Network endpoint',
- actionLabel: 'Add Network endpoint',
- }),
expect.objectContaining({
type: 'agent',
label: 'Standalone hosts',
@@ -146,8 +135,7 @@ describe('infrastructureOnboardingPresentation', () => {
// Picker order pins the canonical card layout. Proxmox suite is grouped
// first so PVE/PBS/PMG are scannable together, then other API platforms,
- // then agent-install paths (named platforms before the generic host
- // card), then the network probe fallback.
+ // then agent-install paths (named platforms before the generic host card).
expect(getInfrastructureSourcePickerItems()).toEqual([
expect.objectContaining({ id: 'pve', connectionType: 'pve', label: 'Proxmox VE' }),
expect.objectContaining({
@@ -187,11 +175,6 @@ describe('infrastructureOnboardingPresentation', () => {
connectionType: 'agent',
label: 'Linux, macOS, Windows host',
}),
- expect.objectContaining({
- id: 'availability',
- connectionType: 'availability',
- label: 'Network endpoint',
- }),
]);
expect(getInfrastructureAutoDetectLabels()).toEqual([
@@ -208,7 +191,6 @@ describe('infrastructureOnboardingPresentation', () => {
'Proxmox VE',
'Proxmox Backup Server',
'Proxmox Mail Gateway',
- 'Network endpoint',
'Pulse Agent hosts',
'Docker',
'Kubernetes',
@@ -235,6 +217,7 @@ describe('infrastructureOnboardingPresentation', () => {
);
expect(getInfrastructureEmptyStateDetail()).toContain('standalone hosts through Pulse Agent');
expect(getInfrastructureEmptyStateDetail()).toContain('Docker and Kubernetes are discovered');
+ expect(getInfrastructureEmptyStateDetail()).not.toContain('network endpoints');
});
it('keeps user-facing agent-backed catalog choices on the agent setup route', () => {
diff --git a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts b/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
index 4087e60f73..4e74988f47 100644
--- a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
+++ b/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts
@@ -43,8 +43,7 @@ export type InfrastructureSourcePickerItemId =
| 'pmg'
| 'linux-host'
| 'docker'
- | 'kubernetes'
- | 'availability';
+ | 'kubernetes';
export type InfrastructureSourcePickerRouteStep = InfrastructureSourcePickerItemId;
@@ -343,7 +342,6 @@ const SOURCE_PICKER_PRODUCT_ITEMS: Partial<
truenas: 'truenas',
pbs: 'pbs',
pmg: 'pmg',
- availability: 'availability',
};
const governanceStateForType = (
@@ -365,7 +363,6 @@ const API_PRODUCT_ORDER: InfrastructureOnboardingConnectionType[] = [
'pve',
'pbs',
'pmg',
- 'availability',
];
const SOURCE_MANAGER_PRODUCT_ORDER: InfrastructureOnboardingConnectionType[] = [
@@ -430,9 +427,6 @@ const SOURCE_PICKER_ITEM_ORDER: InfrastructureSourcePickerItemId[] = [
'docker',
'kubernetes',
'linux-host',
- // Endpoint probe last; it is a fallback for hosts that expose neither an
- // API nor an agent.
- 'availability',
];
export const getInfrastructureOnboardingProductPresentation = (
@@ -558,7 +552,7 @@ export const getInfrastructureEmptyStateSummary = (): string =>
'Choose an infrastructure source to start monitoring your environment.';
export const getInfrastructureEmptyStateDetail = (): string =>
- 'Supported source types include TrueNAS SCALE, Proxmox VE, Proxmox Backup Server, Proxmox Mail Gateway, network endpoints, and standalone hosts through Pulse Agent. VMware vCenter is available as a preview platform pending live support proof. Docker and Kubernetes are discovered from supported agent hosts.';
+ 'Supported source types include TrueNAS SCALE, Proxmox VE, Proxmox Backup Server, Proxmox Mail Gateway, and standalone hosts through Pulse Agent. VMware vCenter is available as a preview platform pending live support proof. Docker and Kubernetes are discovered from supported agent hosts.';
export const getInfrastructureCoverageCompleteActionPresentation =
(): InfrastructureCoverageCompleteActionPresentation => ({
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index e2f01113b5..ed24bb9af0 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -3529,8 +3529,8 @@ class SubsystemLookupTest(unittest.TestCase):
{
"heading": "## Shared Boundaries",
"path": "internal/api/access_control_handlers.go",
- "line": 253,
- "heading_line": 109,
+ "line": 258,
+ "heading_line": 111,
}
],
)