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.

Retire dead infrastructure connections table

rcourtman6bdc10d74f7e
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index eb116a91b4..4057ef5484 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -2393,7 +2393,6 @@
"src/utils/__tests__/resourceStateAdapters.test.ts",
"src/stores/__tests__/websocket-unified.test.ts",
"src/stores/__tests__/websocket-resilience.test.ts",
- "src/components/Settings/__tests__/ConnectionsTable.test.tsx",
"src/components/Settings/__tests__/connectionsTableModel.test.ts",
"src/components/Settings/__tests__/InfrastructureSourceManager.test.tsx",
"src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx",
@@ -2419,11 +2418,6 @@
"path": "docs/release-control/v6/internal/status.json",
"kind": "file"
},
- {
- "repo": "pulse",
- "path": "frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx",
- "kind": "file"
- },
{
"repo": "pulse",
"path": "frontend-modern/src/components/Settings/__tests__/connectionsTableModel.test.ts",
@@ -4498,11 +4492,6 @@
"path": "frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx",
"kind": "file"
},
- {
- "repo": "pulse",
- "path": "frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx",
- "kind": "file"
- },
{
"repo": "pulse",
"path": "frontend-modern/src/components/Settings/__tests__/connectionsTableModel.test.ts",
@@ -5334,11 +5323,6 @@
"path": "frontend-modern/src/api/connections.ts",
"kind": "file"
},
- {
- "repo": "pulse",
- "path": "frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx",
- "kind": "file"
- },
{
"repo": "pulse",
"path": "frontend-modern/src/components/Settings/__tests__/connectionsTableModel.test.ts",
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index d5c1033106..ebc75d72d4 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -33,7 +33,6 @@ management, and fleet control surfaces.
11. `frontend-modern/src/components/Settings/agentProfileSettings.ts`
12. `frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts`
13. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`
-13. `frontend-modern/src/components/Settings/ConnectionsTable.tsx`
14. `frontend-modern/src/components/Settings/connectionsTableModel.ts`
15. `frontend-modern/src/components/Settings/useConnectionsLedger.ts`
16. `frontend-modern/src/components/Settings/useConnectionRowActions.ts`
@@ -551,7 +550,7 @@ profile and assignment columns, but embedded table framing must route through
Approval-gated command execution must expose stable rejection reasons for
invalid approval grants so fleet operators can distinguish missing, expired,
mismatched, and signature-invalid grants through agent metrics.
-9. Add or change profile management, the extracted agent profiles runtime owner, the agent profile settings catalog, the infrastructure source-manager landing, the pure unified-agent inventory/install model, the connections-ledger workspace shell, the unified ConnectionEditor and its per-type credential slots, route model, shared install section owner, the shared direct-node/discovery infrastructure settings owners plus their model, shared frontend install-command assembly, Proxmox setup/install API transport, TrueNAS platform-connection management, VMware platform-connection management, the shared monitored-system impact preview shell for those platform connections, setup-completion install handoff transport, deploy-fallback manual install transport, and fleet-control presentation through `frontend-modern/src/api/agentProfiles.ts`, `frontend-modern/src/api/nodes.ts`, `frontend-modern/src/components/Settings/AgentProfilesPanel.tsx`, `frontend-modern/src/components/Settings/agentProfileSettings.ts`, `frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts`, `frontend-modern/src/components/Settings/ConnectionsTable.tsx`, `frontend-modern/src/components/Settings/connectionsTableModel.ts`, `frontend-modern/src/components/Settings/useConnectionsLedger.ts`, `frontend-modern/src/components/Settings/useConnectionRowActions.ts`, `frontend-modern/src/components/Settings/ConnectionEditor/ConnectionEditor.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/AddressProbeStep.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/useConnectionEditor.ts`, `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/TrueNASCredentialSlot.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/VMwareCredentialSlot.tsx`, `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`, `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx`, `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts`, `frontend-modern/src/components/Settings/MonitoredSystemImpactPreview.tsx`, `frontend-modern/src/components/Settings/platformConnectionsModel.ts`, `frontend-modern/src/components/Settings/useTrueNASSettingsPanelState.ts`, `frontend-modern/src/components/Settings/useVMwareSettingsPanelState.ts`, `frontend-modern/src/components/Settings/proxmoxSettingsModel.ts`, `frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx`, `frontend-modern/src/components/Settings/SettingsSectionNav.tsx`, `frontend-modern/src/components/Settings/infrastructureSettingsModel.ts`, `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts`, `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts`, `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts`, `frontend-modern/src/components/Settings/nodeModalModel.ts`, `frontend-modern/src/components/Settings/useNodeModalState.ts`, `frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx`, and `frontend-modern/src/utils/agentInstallCommand.ts`. Phase 9 retired the legacy reporting/inventory surface (InfrastructureOperationsController, InfrastructureInventorySection, InfrastructureActiveRowDetails, InfrastructureIgnoredRowDetails, InfrastructureStopMonitoringDialog, useInfrastructureReportingState) and the per-type shells (PlatformConnectionsWorkspace, ProxmoxSettingsPanel, ProxmoxDirectWorkspace, ProxmoxConfiguredNodesTable, ProxmoxDirectConnectionsCard, ProxmoxDiscoveryResultsCard, ProxmoxDeleteNodeDialog, ProxmoxNodeModalStack, NodeModal shell, TrueNASSettingsPanel, VMwareSettingsPanel, useProxmoxDirectWorkspaceState); lifecycle extensions must route through the unified aggregator ledger, source-manager cards, and ConnectionEditor credential slots rather than reintroducing those retired surfaces.
+9. Add or change profile management, the extracted agent profiles runtime owner, the agent profile settings catalog, the infrastructure source-manager landing, the pure unified-agent inventory/install model, the connections-ledger workspace shell, the unified ConnectionEditor and its per-type credential slots, route model, shared install section owner, the shared direct-node/discovery infrastructure settings owners plus their model, shared frontend install-command assembly, Proxmox setup/install API transport, TrueNAS platform-connection management, VMware platform-connection management, the shared monitored-system impact preview shell for those platform connections, setup-completion install handoff transport, deploy-fallback manual install transport, and fleet-control presentation through `frontend-modern/src/api/agentProfiles.ts`, `frontend-modern/src/api/nodes.ts`, `frontend-modern/src/components/Settings/AgentProfilesPanel.tsx`, `frontend-modern/src/components/Settings/agentProfileSettings.ts`, `frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts`, `frontend-modern/src/components/Settings/connectionsTableModel.ts`, `frontend-modern/src/components/Settings/useConnectionsLedger.ts`, `frontend-modern/src/components/Settings/useConnectionRowActions.ts`, `frontend-modern/src/components/Settings/ConnectionEditor/ConnectionEditor.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/AddressProbeStep.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/useConnectionEditor.ts`, `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/TrueNASCredentialSlot.tsx`, `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/VMwareCredentialSlot.tsx`, `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`, `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx`, `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts`, `frontend-modern/src/components/Settings/MonitoredSystemImpactPreview.tsx`, `frontend-modern/src/components/Settings/platformConnectionsModel.ts`, `frontend-modern/src/components/Settings/useTrueNASSettingsPanelState.ts`, `frontend-modern/src/components/Settings/useVMwareSettingsPanelState.ts`, `frontend-modern/src/components/Settings/proxmoxSettingsModel.ts`, `frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx`, `frontend-modern/src/components/Settings/SettingsSectionNav.tsx`, `frontend-modern/src/components/Settings/infrastructureSettingsModel.ts`, `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts`, `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts`, `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts`, `frontend-modern/src/components/Settings/nodeModalModel.ts`, `frontend-modern/src/components/Settings/useNodeModalState.ts`, `frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx`, and `frontend-modern/src/utils/agentInstallCommand.ts`. Phase 9 retired the legacy reporting/inventory surface (InfrastructureOperationsController, InfrastructureInventorySection, InfrastructureActiveRowDetails, InfrastructureIgnoredRowDetails, InfrastructureStopMonitoringDialog, useInfrastructureReportingState) and the per-type shells (PlatformConnectionsWorkspace, ProxmoxSettingsPanel, ProxmoxDirectWorkspace, ProxmoxConfiguredNodesTable, ProxmoxDirectConnectionsCard, ProxmoxDiscoveryResultsCard, ProxmoxDeleteNodeDialog, ProxmoxNodeModalStack, NodeModal shell, TrueNASSettingsPanel, VMwareSettingsPanel, useProxmoxDirectWorkspaceState); lifecycle extensions must route through the unified aggregator ledger, source-manager cards, and ConnectionEditor credential slots rather than reintroducing those retired surfaces.
Those lifecycle-owned settings hooks may consume websocket state only through `frontend-modern/src/contexts/appRuntime.ts`; they must not import `frontend-modern/src/App.tsx` or recreate root-shell providers.
Discovery configuration is part of that same lifecycle-owned workspace boundary. `InfrastructureSourceManager.tsx` must open one canonical discovery editor through `InfrastructureDiscoverySettingsDialog.tsx`, `DiscoverySettingsForm.tsx`, and `discoverySettingsModel.ts`, while the System/Network shell stays limited to network-boundary controls instead of reintroducing a second editable discovery surface. That same workspace boundary now owns the infrastructure source-management toolbar too: the landing page exposes `Add infrastructure`, `Run discovery`, and `Discovery settings` as first-viewport toolbar actions inside the source manager, while governed source rows expose per-source add actions such as `Install Pulse Agent` from the shared catalog. `Run discovery` must remain a visible text command for manual scans rather than an icon-only affordance. `Detect address` remains inside the single add-flow source picker/probe path rather than a duplicate toolbar action. The same landing boundary may surface setup confidence from the unified rows and discovered candidates, including connected-system count, API coverage, agent coverage, sources that still need an agent, and discovery review state, without creating a second inventory model or provider-specific summary fetch. Source groups must stay in the governed source catalog order instead of re-sorting by current row count, row-level lifecycle entry points must use `Manage` language, and locked agent-install states must show a compact command inventory without raw token placeholders or disabled copy commands until a token exists. Network discovery settings remain safety-critical: automatic scanning must surface the shared-network/subnet warning before operators save scan mode changes. The AI settings manual workload refresh at `/api/discovery/run` is a discovery/API refresh sweep, not an enrollment or source-admission path; lifecycle surfaces may observe the refreshed candidates but must not reinterpret it as agent install authority. Agent command-execution handoff copy belongs to that same install surface: `InfrastructureInstallerSection.tsx` may expose the Pulse command-execution toggle for Patrol, but the label must describe Patrol remediation rather than reviving `Patrol auto-fix` or implying a paid monitoring-volume gate.
Setup-completion handoff belongs to that same single add-flow boundary. The first-run completion screen must keep credentials as the first surfaced object, then present one compact next-step surface that sends operators to Add infrastructure or directly to the Agent handoff; source-choice explanation may live inside that surface, but lifecycle work must not reintroduce a separate setup-wizard tour, duplicate CTA section, or inline install-command owner before the canonical infrastructure workspace.
@@ -756,12 +755,12 @@ profile and assignment columns, but embedded table framing must route through
connection list with headers and row actions) into the credential
slot, because that previously showed the ledger-of-other-systems in
the middle of entering one system's credentials. The configured
- connections table reads exclusively from the unified aggregator: the
- `ConnectionsTable` rows are produced by
+ systems ledger reads exclusively from the unified aggregator: the
+ `InfrastructureSourceManager` rows are produced by
`frontend-modern/src/components/Settings/useConnectionsLedger.ts`,
which polls `GET /api/connections` and maps the aggregator-derived
state (active/paused/unauthorized/unreachable/stale/pending) and
- active scope keys into the table's display. `InfrastructureWorkspace`
+ active scope keys into the source-manager display. `InfrastructureWorkspace`
must not reconstruct per-type health, scope, or last-seen columns
from any retired reporting-local state for configured connection
rows; the aggregator is the only configured-connections source of
@@ -771,16 +770,15 @@ profile and assignment columns, but embedded table framing must route through
carries canonical host aliases, the settings shell must suppress any
duplicate discovery candidate for that same platform instead of asking the
operator to review the same machine twice under a hostname row and an
- IP-only candidate row. Per-row Edit, Pause/Resume, and Remove actions live directly
- on the `ConnectionsTable` row — wired through
+ IP-only candidate row. Per-row Manage actions live directly on the
+ `InfrastructureSourceManager` row and open the governed edit/detail flow;
`frontend-modern/src/components/Settings/useConnectionRowActions.ts`
- which owns pause/remove API dispatch, two-click remove confirm, and
- per-id action error presentation. Last-error detail is rendered
+ owns the pause/remove API dispatch, two-click remove confirm, and
+ per-id action error presentation inside that flow. Last-error detail is rendered
inline on the row when `connection.lastError` is non-null, not
- hidden behind a click-through. Remove-confirm on an agent row
- reveals the Linux + Windows uninstall commands as an inline
- expansion so the operator can copy and run them before the final
- confirm; that expansion replaces the legacy
+ hidden behind a click-through. Remove-confirm on an agent detail flow
+ reveals the Linux + Windows uninstall commands so the operator can copy
+ and run them before the final confirm; that expansion replaces the legacy
`InfrastructureActiveRowDetails` surface-breakdown drawer. The
ledger must never reintroduce a separate detail page or `Dialog`
drawer for viewing a connection's aggregator fields — everything is
@@ -890,13 +888,11 @@ profile and assignment columns, but embedded table framing must route through
`/settings/infrastructure`, suppress the add-system entry point, and hide
configuration-only sections so presentation-policy restrictions still
hold. That top ledger must also stay readable inside the governed settings
- shell at ordinary desktop widths: when the settings rail leaves the table
- without room for the full six-column ledger, `ConnectionsTable.tsx` must
- collapse collection and last-activity into row metadata instead of forcing
- horizontal scrolling just to reach primary controls. The dedicated
- collection and last-activity columns may return only once the workspace has
- enough width to show the full ledger without clipping headers or row
- actions.
+ shell at ordinary desktop widths: `InfrastructureSourceManager.tsx` must
+ keep the compact row/card presentation readable without forcing horizontal
+ scrolling just to reach primary controls. Dedicated collection and
+ last-activity columns may return only once the workspace has enough width
+ to show the full ledger without clipping headers or row actions.
10. Keep post-install lifecycle completion explicit inside
`frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`
and `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`.
@@ -1478,7 +1474,7 @@ platform surfaces as platform-connection-managed capabilities, not host-managed
agent extensions. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`,
`frontend-modern/src/components/Settings/useConnectionsLedger.ts`,
`frontend-modern/src/components/Settings/useConnectionRowActions.ts`, and
-`frontend-modern/src/components/Settings/ConnectionsTable.tsx` must keep
+`frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx` must keep
Proxmox, PBS, PMG, and TrueNAS on the shared Infrastructure API-backed path,
while only machine-installed agent, Docker, and Kubernetes surfaces
participate in host stop-monitoring scope, uninstall commands, and upgrade
@@ -1673,16 +1669,16 @@ When those lifecycle-adjacent calls fail validation, adjacent automation should
rely on the API-owned error codes rather than message-text heuristics, because
the backend contract owns the reporting validation classification.
The API-backed platform onboarding surface now lives inside the shared
-Infrastructure workspace. `ConnectionsTable.tsx`,
+Infrastructure workspace. `InfrastructureSourceManager.tsx`,
`connectionsTableModel.ts`, `InfrastructureWorkspace.tsx`,
`infrastructureWorkspaceModel.ts`, `InfrastructureInstallerSection.tsx`,
`platformConnectionsModel.ts`, `useInfrastructureSettingsState.ts`,
`useTrueNASSettingsPanelState.ts`, `useVMwareSettingsPanelState.ts`,
`proxmoxSettingsModel.ts`, `useInfrastructureConfiguredNodesState.ts`, and
`useInfrastructureDiscoveryRuntimeState.ts` own the fallback
-install/direct/reporting operator flow, with `ConnectionsTable.tsx` plus
-`connectionsTableModel.ts` as the canonical top-level infrastructure ledger
-and the governed add/edit modals as the API-backed add/edit surface.
+install/direct/reporting operator flow, with `InfrastructureSourceManager.tsx`
+plus `connectionsTableModel.ts` as the canonical top-level infrastructure
+ledger and the governed add/edit modals as the API-backed add/edit surface.
Operator-facing setup copy should use `Add infrastructure` and source-strategy
language for the shared Infrastructure onboarding path
(`/settings/infrastructure?add=pick`) rather than reviving the standalone
@@ -1708,9 +1704,8 @@ between landing, picker, detect flow, add form, and edit form belongs to
explicit actions inside `InfrastructureWorkspace.tsx`, not extra sidebar
entries or body-replacing workspace subtabs.
That same landing/table contract now also owns collection-method phrasing.
-`connectionsTableModel.ts`, `useConnectionsLedger.ts`,
-`InfrastructureSourceManager.tsx`, and `ConnectionsTable.tsx` must present the
-same plain-language subtitle (`via platform API`, `via Pulse Agent`, or `via
+`connectionsTableModel.ts`, `useConnectionsLedger.ts`, and
+`InfrastructureSourceManager.tsx` must present the same plain-language subtitle (`via platform API`, `via Pulse Agent`, or `via
platform API and Pulse Agent`) from the shared ledger contract instead of
shipping badge-only heuristics that operators have to decode visually.
That same lifecycle-owned platform onboarding boundary must keep API-backed
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 345260b949..1ac944eb42 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -1355,7 +1355,7 @@ the canonical monitored-system blocked payload.
`frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`
together with
`frontend-modern/src/components/Settings/useConnectionsLedger.ts` and
- `frontend-modern/src/components/Settings/ConnectionsTable.tsx`
+ `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx`
must preserve the transport distinction between machine-managed surfaces
(`agent`, `docker`, `kubernetes`) and platform-connections-managed
surfaces (`proxmox`, `pbs`, `pmg`, `truenas`) instead of collapsing them
@@ -4468,7 +4468,7 @@ connected-infrastructure distinction between machine-managed and
platform-connections-managed reporting. `frontend-modern/src/types/api.ts`,
`frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`,
`frontend-modern/src/components/Settings/useConnectionsLedger.ts`, and
-`frontend-modern/src/components/Settings/ConnectionsTable.tsx`
+`frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx`
must treat `truenas` as a canonical connected-infrastructure surface kind
alongside `proxmox`, `pbs`, and `pmg`, and the settings reporting/install
surfaces must keep those platform-managed rows navigable back to platform
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index c6da9382de..290078221c 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -520,7 +520,7 @@ AI runtime.
The shared navigation guide owns route-aware first focus: when it opens
from a top-level product route such as `/recovery`, 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.
+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.
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
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index 734248d1cb..aad21196c6 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -701,7 +701,6 @@
"frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/TrueNASCredentialSlot.tsx",
"frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/VMwareCredentialSlot.tsx",
"frontend-modern/src/components/Settings/ConnectionEditor/useConnectionEditor.ts",
- "frontend-modern/src/components/Settings/ConnectionsTable.tsx",
"frontend-modern/src/components/Settings/connectionsTableModel.ts",
"frontend-modern/src/components/Settings/DiscoverySettingsForm.tsx",
"frontend-modern/src/components/Settings/discoverySettingsModel.ts",
@@ -1026,13 +1025,11 @@
"label": "systems ledger lifecycle proof",
"match_prefixes": [],
"match_files": [
- "frontend-modern/src/components/Settings/ConnectionsTable.tsx",
"frontend-modern/src/components/Settings/connectionsTableModel.ts"
],
"allow_same_subsystem_tests": false,
"test_prefixes": [],
"exact_files": [
- "frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx",
"frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx",
"frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts"
]
diff --git a/frontend-modern/src/components/Settings/ConnectionsTable.tsx b/frontend-modern/src/components/Settings/ConnectionsTable.tsx
deleted file mode 100644
index 99065d92c0..0000000000
--- a/frontend-modern/src/components/Settings/ConnectionsTable.tsx
+++ /dev/null
@@ -1,401 +0,0 @@
-import {
- Component,
- createEffect,
- createMemo,
- createSignal,
- For,
- Show,
- type Accessor,
-} from 'solid-js';
-import { Card } from '@/components/shared/Card';
-import {
- Table,
- TableBody,
- TableCell,
- TableHead,
- TableHeader,
- TableRow,
-} from '@/components/shared/Table';
-import type { Connection } from '@/api/connections';
-import {
- CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS,
- connectionsTableVisibilityState,
- fleetSignalClassName,
- type InfrastructureSystemRow,
- visibleConnectionsTableRows,
-} from './connectionsTableModel';
-import type { ConnectionRowActions } from './useConnectionRowActions';
-import { getInfrastructureEmptyStateSummary } from '@/utils/infrastructureOnboardingPresentation';
-
-export interface ConnectionsTableHeaderAction {
- label: string;
- onSelect: () => void;
- tone?: 'primary' | 'secondary';
-}
-
-export interface AgentUninstallCommands {
- linux: string;
- windows: string;
-}
-
-interface ConnectionsTableProps {
- rows: Accessor<readonly InfrastructureSystemRow[]>;
- headerActions?: readonly ConnectionsTableHeaderAction[];
- actions?: ConnectionRowActions;
- onEdit?: (connection: Connection) => void;
- agentUninstallCommands?: AgentUninstallCommands;
- onCopyText?: (text: string) => void;
-}
-
-const actionColumnClass =
- 'w-[12%] px-4 py-2 text-right text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[14%]';
-
-const inlineButtonClass =
- 'inline-flex items-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 removeButtonClass =
- 'inline-flex items-center rounded-md border border-rose-300 px-2.5 py-1 text-xs font-medium text-rose-700 transition-colors hover:bg-rose-50 disabled:cursor-not-allowed disabled:opacity-60 dark:border-rose-900 dark:text-rose-300 dark:hover:bg-rose-950';
-
-const removeConfirmClass =
- 'inline-flex items-center rounded-md bg-rose-600 px-2.5 py-1 text-xs font-medium text-white transition-colors hover:bg-rose-700 disabled:cursor-not-allowed disabled:opacity-60';
-
-export const ConnectionsTable: Component<ConnectionsTableProps> = (props) => {
- const [visibleLimit, setVisibleLimit] = createSignal(CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS);
- const hasActions = () => Boolean(props.actions) || Boolean(props.onEdit);
-
- const colSpan = () => (hasActions() ? 6 : 5);
- const rows = createMemo(() => props.rows());
- const visibility = createMemo(() =>
- connectionsTableVisibilityState(rows().length, visibleLimit()),
- );
- const visibleRows = createMemo(() =>
- visibleConnectionsTableRows(rows(), visibility().visibleLimit),
- );
- const shouldShowVisibilityStatus = () =>
- visibility().totalRows > CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS;
- const showMoreRows = () => {
- setVisibleLimit(visibility().nextVisibleLimit);
- };
-
- createEffect(() => {
- const totalRows = rows().length;
- setVisibleLimit((current) => {
- if (totalRows <= CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS) {
- return CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS;
- }
- return Math.min(Math.max(current, CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS), totalRows);
- });
- });
-
- return (
- <Card padding="none" tone="card" class="rounded-md">
- <div class="flex flex-col gap-3 border-b border-border px-4 py-3 sm:flex-row sm:items-center sm:justify-between">
- <div>
- <h3 class="text-base font-semibold text-base-content">Monitored systems</h3>
- <p class="text-xs text-muted">{getInfrastructureEmptyStateSummary()}</p>
- </div>
- <Show when={(props.headerActions?.length ?? 0) > 0}>
- <div class="flex flex-wrap items-center gap-2">
- <For each={props.headerActions ?? []}>
- {(action) => (
- <button
- type="button"
- onClick={action.onSelect}
- class={
- action.tone === 'primary'
- ? 'inline-flex items-center gap-1.5 rounded-md bg-blue-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-blue-700'
- : 'inline-flex items-center rounded-md border border-border px-3 py-1.5 text-sm font-medium text-base-content transition-colors hover:bg-surface-hover'
- }
- >
- {action.label}
- </button>
- )}
- </For>
- </div>
- </Show>
- </div>
-
- <Show
- when={rows().length > 0}
- fallback={
- <div class="space-y-3 px-4 py-10 text-center">
- <div class="text-base font-semibold text-base-content">
- Start monitoring infrastructure
- </div>
- <div class="mx-auto max-w-3xl text-sm text-muted">
- Add your first server, cluster, or appliance to begin. Supported sources include
- Proxmox VE, TrueNAS SCALE, Unraid, network endpoints, and any host running Pulse
- Agent.
- </div>
- <Show when={(props.headerActions ?? []).find((action) => action.tone === 'primary')}>
- {(primary) => (
- <div class="pt-2">
- <button
- type="button"
- onClick={primary().onSelect}
- class="inline-flex items-center gap-1.5 rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white hover:bg-blue-700"
- >
- {primary().label}
- </button>
- </div>
- )}
- </Show>
- </div>
- }
- >
- <Show when={shouldShowVisibilityStatus()}>
- <div
- id="connections-table-visibility-status"
- class="border-b border-border px-4 py-2 text-xs text-muted"
- aria-live="polite"
- >
- {visibility().statusText}
- </div>
- </Show>
- <Table
- aria-describedby={
- shouldShowVisibilityStatus() ? 'connections-table-visibility-status' : undefined
- }
- class="w-full table-fixed divide-y divide-border text-sm !whitespace-normal"
- >
- <TableHeader class="bg-surface-alt">
- <TableRow>
- <TableHead class="w-[22%] py-2 pl-4 pr-3 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[18%]">
- System
- </TableHead>
- <TableHead class="w-[26%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[22%]">
- Coverage
- </TableHead>
- <TableHead class="w-[26%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[24%]">
- Posture
- </TableHead>
- <TableHead class="w-[14%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:w-[12%]">
- Status
- </TableHead>
- <TableHead class="hidden w-[10%] px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-muted whitespace-nowrap 2xl:table-cell">
- Last activity
- </TableHead>
- <Show when={hasActions()}>
- <TableHead class={actionColumnClass}>Actions</TableHead>
- </Show>
- </TableRow>
- </TableHeader>
- <TableBody class="divide-y divide-border bg-surface">
- <For each={visibleRows()}>
- {(row) => {
- const pauseLabel = () => (row.enabled ? 'Pause' : 'Resume');
- const isPauseBusy = () => props.actions?.pendingAction(row.id) === 'pause';
- const isRemoveBusy = () => props.actions?.pendingAction(row.id) === 'remove';
- const anyBusy = () => props.actions?.pendingAction(row.id) !== null;
- const isConfirmingRemove = () => Boolean(props.actions?.confirmingRemove(row.id));
- const rowError = () => props.actions?.actionError(row.id) ?? null;
-
- return (
- <>
- <TableRow class="even:bg-surface-alt">
- <TableCell class="py-3 pl-4 pr-3 align-top">
- <div class="min-w-0 space-y-1">
- <div class="break-words font-medium text-base-content">{row.name}</div>
- <Show when={row.host}>
- <div class="break-words text-xs text-muted">{row.host}</div>
- </Show>
- <Show when={row.subtitle}>
- <div class="break-words text-xs text-muted">{row.subtitle}</div>
- </Show>
- <Show when={row.lastErrorMessage}>
- <div class="break-words text-xs text-rose-700 dark:text-rose-300">
- {row.lastErrorMessage}
- </div>
- </Show>
- </div>
- </TableCell>
-
- <TableCell class="px-3 py-3 align-top">
- <div class="flex flex-wrap gap-1.5">
- <For each={row.coverageLabels}>
- {(label) => (
- <span class="inline-flex items-center rounded-full border border-border bg-surface px-2 py-0.5 text-xs font-medium text-base-content whitespace-nowrap">
- {label}
- </span>
- )}
- </For>
- </div>
- </TableCell>
-
- <TableCell class="px-3 py-3 align-top">
- <div class="flex flex-wrap gap-1.5">
- <For each={row.fleetHighlights}>
- {(signal) => (
- <span class={fleetSignalClassName(signal.tone)} title={signal.detail}>
- {signal.label}
- </span>
- )}
- </For>
- </div>
- </TableCell>
-
- <TableCell class="px-3 py-3 align-top">
- <div class="space-y-1">
- <span
- class={`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap ${row.statusClassName}`}
- >
- {row.statusLabel}
- </span>
- <div class="text-xs text-muted 2xl:hidden">{row.lastActivityText}</div>
- </div>
- </TableCell>
-
- <TableCell class="hidden px-3 py-3 align-top whitespace-nowrap text-muted 2xl:table-cell">
- {row.lastActivityText}
- </TableCell>
-
- <Show when={hasActions()}>
- <TableCell class="px-4 py-3 align-top text-right">
- <div class="flex flex-wrap items-center justify-end gap-1.5">
- <Show when={row.canEdit && props.onEdit}>
- <button
- type="button"
- disabled={anyBusy()}
- onClick={() => props.onEdit?.(row.connection)}
- class={inlineButtonClass}
- >
- Edit
- </button>
- </Show>
- <Show when={row.canPause && props.actions}>
- <button
- type="button"
- disabled={anyBusy()}
- onClick={() => void props.actions?.togglePause(row.connection)}
- class={inlineButtonClass}
- >
- {isPauseBusy() ? 'Working…' : pauseLabel()}
- </button>
- </Show>
- <Show when={row.canRemove && props.actions}>
- <button
- type="button"
- disabled={anyBusy()}
- onClick={() => void props.actions?.requestRemove(row.connection)}
- class={
- isConfirmingRemove() ? removeConfirmClass : removeButtonClass
- }
- >
- {isRemoveBusy()
- ? 'Removing…'
- : isConfirmingRemove()
- ? 'Click again to confirm'
- : 'Remove'}
- </button>
- </Show>
- </div>
- </TableCell>
- </Show>
- </TableRow>
-
- <Show when={rowError()}>
- <TableRow>
- <TableCell colspan={colSpan()} class="bg-surface px-4 pb-3 pt-0">
- <div
- role="alert"
- class="rounded-md border border-rose-300 bg-rose-50 px-3 py-2 text-xs text-rose-800 dark:border-rose-900 dark:bg-rose-950 dark:text-rose-200"
- >
- {rowError()}
- </div>
- </TableCell>
- </TableRow>
- </Show>
-
- <Show when={!row.isAgent && isConfirmingRemove()}>
- <TableRow>
- <TableCell colspan={colSpan()} class="bg-surface-alt px-4 pb-3 pt-1">
- <p class="text-xs text-muted">
- Removing forgets this connection from Pulse; history is retained.
- Credentials on the platform itself are untouched — revoke them there
- separately if you want to invalidate access.
- </p>
- </TableCell>
- </TableRow>
- </Show>
-
- <Show
- when={row.isAgent && isConfirmingRemove() && props.agentUninstallCommands}
- >
- <TableRow>
- <TableCell colspan={colSpan()} class="bg-surface-alt px-4 pb-4 pt-1">
- <div class="space-y-3">
- <p class="text-xs text-muted">
- Removing forgets this agent from the ledger; history is retained. To
- fully detach, run the uninstall command on the host:
- </p>
- <div class="space-y-1">
- <span class="text-xs font-medium text-muted">
- Linux / macOS / FreeBSD
- </span>
- <div class="relative">
- <Show when={props.onCopyText}>
- <button
- type="button"
- onClick={() =>
- props.onCopyText?.(props.agentUninstallCommands!.linux)
- }
- class="absolute right-2 top-2 inline-flex items-center justify-center rounded-md bg-surface-hover px-2 py-1 text-xs font-medium text-slate-400 transition-colors hover:bg-slate-700 hover:text-slate-200"
- title="Copy command"
- >
- Copy
- </button>
- </Show>
- <pre class="overflow-x-auto rounded-md bg-slate-950 p-3 pr-16 font-mono text-xs text-red-400">
- <code>{props.agentUninstallCommands!.linux}</code>
- </pre>
- </div>
- </div>
- <div class="space-y-1">
- <span class="text-xs font-medium text-muted">
- Windows (PowerShell as Administrator)
- </span>
- <div class="relative">
- <Show when={props.onCopyText}>
- <button
- type="button"
- onClick={() =>
- props.onCopyText?.(props.agentUninstallCommands!.windows)
- }
- class="absolute right-2 top-2 inline-flex items-center justify-center rounded-md bg-surface-hover px-2 py-1 text-xs font-medium text-slate-400 transition-colors hover:bg-slate-700 hover:text-slate-200"
- title="Copy command"
- >
- Copy
- </button>
- </Show>
- <pre class="overflow-x-auto rounded-md bg-slate-950 p-3 pr-16 font-mono text-xs text-red-400">
- <code>{props.agentUninstallCommands!.windows}</code>
- </pre>
- </div>
- </div>
- </div>
- </TableCell>
- </TableRow>
- </Show>
- </>
- );
- }}
- </For>
- </TableBody>
- </Table>
- <Show when={visibility().isBounded}>
- <div class="flex flex-col gap-2 border-t border-border px-4 py-3 text-xs text-muted sm:flex-row sm:items-center sm:justify-between">
- <span>{visibility().statusText}</span>
- <button
- type="button"
- onClick={showMoreRows}
- aria-label={visibility().showMoreAriaLabel}
- class={inlineButtonClass}
- >
- {visibility().showMoreLabel}
- </button>
- </div>
- </Show>
- </Show>
- </Card>
- );
-};
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 745e05fb2a..ac6c27899e 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -7,7 +7,6 @@ import { copyToClipboard } from '@/utils/clipboard';
import { notificationStore } from '@/stores/notifications';
import { Dialog } from '@/components/shared/Dialog';
import { AgentProfilesPanel } from './AgentProfilesPanel';
-import type { AgentUninstallCommands } from './ConnectionsTable';
import { ConnectionEditor } from './ConnectionEditor/ConnectionEditor';
import { NodeCredentialSlot } from './ConnectionEditor/CredentialSlots/NodeCredentialSlot';
import { AvailabilityTargetSlot } from './ConnectionEditor/CredentialSlots/AvailabilityTargetSlot';
@@ -60,6 +59,11 @@ export type InfrastructureWorkspaceProps = InfrastructurePlatformSettingsProps;
type ManagedAddTypeStep = Exclude<InfrastructureAddStep, 'detect'>;
+interface AgentUninstallCommands {
+ linux: string;
+ windows: string;
+}
+
const ADD_STEP_TO_TYPE: Record<ManagedAddTypeStep, ConnectionType> = {
agent: 'agent',
'linux-host': 'agent',
diff --git a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx b/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx
deleted file mode 100644
index 36de210a2d..0000000000
--- a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx
+++ /dev/null
@@ -1,486 +0,0 @@
-import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';
-import { afterEach, describe, expect, it, vi } from 'vitest';
-import { ConnectionsTable } from '../ConnectionsTable';
-import {
- CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS,
- connectionAgentIdentitySummary,
- type InfrastructureSystemRow,
-} from '../connectionsTableModel';
-import type { Connection, ConnectionAgentIdentity } from '@/api/connections';
-import type { ConnectionRowActions } from '../useConnectionRowActions';
-
-const connectionFixture = (overrides: Partial<Connection> = {}): Connection => ({
- id: 'pve:tower',
- type: 'pve',
- name: 'tower',
- address: 'https://tower.local:8006',
- state: 'active',
- stateReason: '',
- enabled: true,
- surfaces: ['vms'],
- scope: { vms: true },
- lastSeen: null,
- lastError: null,
- source: 'manual',
- capabilities: { supportsPause: true, supportsScope: true, supportsTest: true },
- ...overrides,
-});
-
-const row = (overrides: Partial<InfrastructureSystemRow> = {}): InfrastructureSystemRow => {
- const connection = overrides.connection ?? connectionFixture();
- return {
- id: overrides.id ?? connection.id,
- ownerType: overrides.ownerType ?? connection.type,
- name: overrides.name ?? 'tower',
- subtitle: undefined,
- source: 'api',
- host: '10.0.0.1',
- coverageLabels: ['Host telemetry'],
- statusLabel: 'online',
- statusClassName: 'bg-green-100 text-green-800',
- agentUpdateCount: 0,
- lastActivityText: '5s ago',
- lastErrorMessage: undefined,
- fleetSignals: [],
- fleetHighlights: [],
- enabled: connection.enabled,
- canEdit: true,
- canPause: connection.capabilities.supportsPause,
- canRemove: connection.type !== 'docker' && connection.type !== 'kubernetes',
- isAgent: connection.type === 'agent',
- isCluster: false,
- attachedConnections: [],
- members: [],
- connection,
- ...overrides,
- };
-};
-
-const makeActions = (overrides: Partial<ConnectionRowActions> = {}): ConnectionRowActions => ({
- pendingAction: () => null,
- actionError: () => null,
- confirmingRemove: () => false,
- togglePause: vi.fn(),
- requestRemove: vi.fn(),
- cancelRemove: vi.fn(),
- ...overrides,
-});
-
-describe('ConnectionsTable', () => {
- afterEach(() => cleanup());
-
- it('renders an empty-state hint when no rows exist', () => {
- render(() => <ConnectionsTable rows={() => []} />);
-
- expect(screen.getByText('Start monitoring infrastructure')).toBeInTheDocument();
- // Empty-state copy now leads with the action ('Add your first server,
- // cluster, or appliance to begin') and lists a curated short set of
- // supported sources rather than the full enumeration.
- expect(
- screen.getByText(/Add your first server, cluster, or appliance to begin/i),
- ).toBeInTheDocument();
- expect(screen.queryByRole('table')).toBeNull();
- });
-
- it('surfaces the primary action inline in the empty state when one is provided', () => {
- const onSelect = vi.fn();
- render(() => (
- <ConnectionsTable
- rows={() => []}
- headerActions={[{ label: 'Add infrastructure', tone: 'primary', onSelect }]}
- />
- ));
-
- const button = screen.getAllByRole('button', { name: 'Add infrastructure' });
- expect(button.length).toBeGreaterThan(0);
- fireEvent.click(button[button.length - 1]);
- expect(onSelect).toHaveBeenCalled();
- });
-
- it('renders one row per monitored system with coverage and status labels', () => {
- render(() => (
- <ConnectionsTable
- rows={() => [
- row(),
- row({
- id: 'truenas:nas',
- name: 'nas',
- subtitle: 'via platform API',
- host: undefined,
- coverageLabels: ['Datasets'],
- statusLabel: 'Paused',
- connection: connectionFixture({ id: 'truenas:nas', type: 'truenas', name: 'nas' }),
- }),
- ]}
- />
- ));
-
- expect(screen.getByRole('table')).toBeInTheDocument();
- expect(screen.getByText('tower')).toBeInTheDocument();
- expect(screen.getByText('nas')).toBeInTheDocument();
- expect(screen.getByText('via platform API')).toBeInTheDocument();
- expect(screen.getByText('Datasets')).toBeInTheDocument();
- expect(screen.getByText('Paused')).toBeInTheDocument();
- expect(screen.getByText('online')).toBeInTheDocument();
- });
-
- it('surfaces configured header actions', () => {
- const onAdd = vi.fn();
- render(() => (
- <ConnectionsTable
- rows={() => []}
- headerActions={[{ label: 'Add connection', onSelect: onAdd, tone: 'primary' }]}
- />
- ));
-
- // Empty state now also surfaces the primary action inline so the
- // button appears in both the header and the empty-state body. Click
- // either; both wire to the same callback.
- const buttons = screen.getAllByRole('button', { name: /Add connection/i });
- expect(buttons.length).toBeGreaterThan(0);
- fireEvent.click(buttons[0]);
- expect(onAdd).toHaveBeenCalledTimes(1);
- });
-
- it('shows lastErrorMessage inline on the row when present', () => {
- render(() => (
- <ConnectionsTable rows={() => [row({ lastErrorMessage: 'certificate expired' })]} />
- ));
-
- expect(screen.getByText('certificate expired')).toBeInTheDocument();
- });
-
- it('renders compact fleet posture chips for operator attention states', () => {
- render(() => (
- <ConnectionsTable
- rows={() => [
- row({
- fleetHighlights: [
- {
- key: 'config-drift',
- label: 'Config drift',
- detail: 'Desired and applied fingerprints differ.',
- tone: 'warning',
- },
- {
- key: 'command-policy',
- label: 'Remote control disabled',
- detail: 'Commands are disabled by policy.',
- tone: 'info',
- },
- {
- key: 'command-policy',
- label: 'Command policy mismatch',
- detail: 'Desired disabled but the agent still reports commands enabled.',
- tone: 'critical',
- },
- {
- key: 'config-drift',
- label: 'Config pending',
- detail: 'Waiting for applied configuration confirmation.',
- tone: 'warning',
- },
- {
- key: 'config-drift',
- label: 'Config unknown',
- detail: 'No desired/applied config fingerprint has been reported yet.',
- tone: 'warning',
- },
- ],
- }),
- ]}
- />
- ));
-
- expect(screen.getByText('Posture')).toBeInTheDocument();
- expect(screen.getByText('Config drift')).toHaveAttribute(
- 'title',
- 'Desired and applied fingerprints differ.',
- );
- expect(screen.getByText('Remote control disabled')).toHaveAttribute(
- 'title',
- 'Commands are disabled by policy.',
- );
- expect(screen.getByText('Command policy mismatch')).toHaveAttribute(
- 'title',
- 'Desired disabled but the agent still reports commands enabled.',
- );
- expect(screen.getByText('Config pending')).toHaveAttribute(
- 'title',
- 'Waiting for applied configuration confirmation.',
- );
- expect(screen.getByText('Config unknown')).toHaveAttribute(
- 'title',
- 'No desired/applied config fingerprint has been reported yet.',
- );
- });
-
- it('renders only visible fleet posture highlights, not raw passive handshakes', () => {
- render(() => (
- <ConnectionsTable
- rows={() => [
- row({
- fleetSignals: [
- {
- key: 'config-drift',
- label: 'Config pending',
- detail:
- 'Pulse has not received a comparable applied agent configuration fingerprint yet.',
- tone: 'warning',
- },
- {
- key: 'rollout',
- label: 'Rollout pending',
- detail: 'Waiting for the agent to report an applied configuration fingerprint.',
- tone: 'warning',
- },
- ],
- fleetHighlights: [
- {
- key: 'liveness',
- label: 'Fleet OK',
- detail: 'Visible fleet posture is healthy.',
- tone: 'ok',
- },
- ],
- }),
- ]}
- />
- ));
-
- expect(screen.getByText('Fleet OK')).toHaveAttribute(
- 'title',
- 'Visible fleet posture is healthy.',
- );
- expect(screen.queryByText('Config pending')).toBeNull();
- expect(screen.queryByText('Rollout pending')).toBeNull();
- expect(
- screen.queryByText(/applied agent configuration fingerprint/i),
- ).not.toBeInTheDocument();
- });
-
- it('keeps large row sets bounded behind an explicit show-more path', () => {
- const rows = Array.from({ length: CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS + 5 }, (_, index) =>
- row({
- id: `system-${index}`,
- name: `system-${index}`,
- host: undefined,
- connection: connectionFixture({
- id: `system-${index}`,
- name: `system-${index}`,
- }),
- }),
- );
-
- render(() => <ConnectionsTable rows={() => rows} />);
-
- expect(screen.getByText('system-0')).toBeInTheDocument();
- expect(
- screen.getByText(`system-${CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS - 1}`),
- ).toBeInTheDocument();
- expect(screen.queryByText(`system-${CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS}`)).toBeNull();
- expect(
- screen.getAllByText(
- `Showing ${CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS} of ${rows.length} monitored systems. 5 more systems available.`,
- ),
- ).toHaveLength(2);
-
- fireEvent.click(screen.getByRole('button', { name: 'Show remaining 5 monitored systems.' }));
-
- expect(
- screen.getByText(`system-${CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS}`),
- ).toBeInTheDocument();
- expect(screen.getByText(`Showing all ${rows.length} monitored systems.`)).toBeInTheDocument();
- expect(screen.queryByRole('button', { name: /Show remaining/i })).toBeNull();
- });
-
- it('renders Edit / Pause / Remove buttons when actions and onEdit are provided', () => {
- const onEdit = vi.fn();
- const actions = makeActions();
- render(() => <ConnectionsTable rows={() => [row()]} actions={actions} onEdit={onEdit} />);
-
- expect(screen.getByRole('button', { name: 'Edit' })).toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'Pause' })).toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'Remove' })).toBeInTheDocument();
- });
-
- it('invokes onEdit with the underlying Connection', () => {
- const onEdit = vi.fn();
- const connection = connectionFixture({ id: 'pve:zeus', name: 'zeus' });
- render(() => (
- <ConnectionsTable
- rows={() => [row({ connection })]}
- actions={makeActions()}
- onEdit={onEdit}
- />
- ));
-
- fireEvent.click(screen.getByRole('button', { name: 'Edit' }));
- expect(onEdit).toHaveBeenCalledTimes(1);
- expect(onEdit).toHaveBeenCalledWith(connection);
- });
-
- it('invokes togglePause with the Connection when Pause is clicked', () => {
- const togglePause = vi.fn();
- const actions = makeActions({ togglePause });
- const connection = connectionFixture();
- render(() => (
- <ConnectionsTable rows={() => [row({ connection })]} actions={actions} onEdit={vi.fn()} />
- ));
-
- fireEvent.click(screen.getByRole('button', { name: 'Pause' }));
- expect(togglePause).toHaveBeenCalledWith(connection);
- });
-
- it('labels the pause button Resume when the connection is already paused', () => {
- const connection = connectionFixture({ enabled: false });
- render(() => (
- <ConnectionsTable
- rows={() => [row({ connection, enabled: false })]}
- actions={makeActions()}
- />
- ));
-
- expect(screen.getByRole('button', { name: 'Resume' })).toBeInTheDocument();
- expect(screen.queryByRole('button', { name: 'Pause' })).toBeNull();
- });
-
- it('surfaces the row-specific actionError inside an alert', () => {
- const actions = makeActions({ actionError: () => 'permission denied' });
- render(() => <ConnectionsTable rows={() => [row()]} actions={actions} onEdit={vi.fn()} />);
-
- expect(screen.getByRole('alert')).toHaveTextContent('permission denied');
- });
-
- it('swaps the remove button into a confirming state when confirmingRemove is true', () => {
- const actions = makeActions({ confirmingRemove: () => true });
- render(() => <ConnectionsTable rows={() => [row()]} actions={actions} onEdit={vi.fn()} />);
-
- expect(screen.getByRole('button', { name: /Click again to confirm/i })).toBeInTheDocument();
- expect(screen.queryByRole('button', { name: 'Remove' })).toBeNull();
- });
-
- it('tells the truth on Platform API remove confirm: history retained, platform untouched', () => {
- const actions = makeActions({ confirmingRemove: () => true });
- const pveConnection = connectionFixture({
- id: 'pve:zeus',
- type: 'pve',
- name: 'zeus',
- });
- render(() => (
- <ConnectionsTable
- rows={() => [row({ connection: pveConnection, isAgent: false })]}
- actions={actions}
- onEdit={vi.fn()}
- />
- ));
-
- expect(screen.getByText(/history is retained/i)).toBeInTheDocument();
- expect(
- screen.getByText(/Credentials on the platform itself are untouched/i),
- ).toBeInTheDocument();
- // No uninstall block for Platform API rows — only agents get that courtesy.
- expect(screen.queryByText(/--uninstall/)).toBeNull();
- });
-
- it('reveals the agent uninstall commands while confirming removal of an agent row', () => {
- const actions = makeActions({ confirmingRemove: () => true });
- const agentConnection = connectionFixture({
- id: 'agent:host-1',
- type: 'agent',
- name: 'host-1',
- capabilities: { supportsPause: false, supportsScope: false, supportsTest: false },
- });
- render(() => (
- <ConnectionsTable
- rows={() => [
- row({
- connection: agentConnection,
- isAgent: true,
- canPause: false,
- }),
- ]}
- actions={actions}
- onEdit={vi.fn()}
- agentUninstallCommands={{
- linux: 'curl -fsSL http://pulse/install.sh | bash -s -- --uninstall',
- windows:
- '$env:PULSE_URL="http://pulse"; $env:PULSE_UNINSTALL="true"; iwr /install.ps1 | iex',
- }}
- />
- ));
-
- expect(screen.getByText(/Removing forgets this agent/i)).toBeInTheDocument();
- expect(
- screen.getByText(/curl -fsSL http:\/\/pulse\/install\.sh \| bash -s -- --uninstall/),
- ).toBeInTheDocument();
- expect(screen.getByText(/\$env:PULSE_UNINSTALL="true"/)).toBeInTheDocument();
- });
-
- it('does not render action buttons when the row model forbids them', () => {
- render(() => (
- <ConnectionsTable
- rows={() => [
- row({
- canEdit: false,
- canPause: false,
- canRemove: false,
- }),
- ]}
- actions={makeActions()}
- onEdit={vi.fn()}
- />
- ));
-
- expect(screen.queryByRole('button', { name: 'Edit' })).toBeNull();
- expect(screen.queryByRole('button', { name: 'Pause' })).toBeNull();
- expect(screen.queryByRole('button', { name: 'Remove' })).toBeNull();
- });
-});
-
-describe('connectionAgentIdentitySummary', () => {
- const withAgentIdentity = (
- agentIdentity: Partial<ConnectionAgentIdentity> | undefined,
- ): Connection =>
- connectionFixture({ agentIdentity: agentIdentity as ConnectionAgentIdentity | undefined });
-
- it('uses osName platform identity over the broader agent platform family', () => {
- // Pi/delly/minipc shape: agent reports platform="debian"/"raspbian" because
- // Proxmox VE is Debian-based, but osName carries the canonical identity.
- // Display must surface the platform identity, not the OS family.
- const summary = connectionAgentIdentitySummary(
- withAgentIdentity({
- platform: 'debian',
- osName: 'Proxmox VE',
- osVersion: '9.1.9',
- }),
- );
- expect(summary).toBe('Proxmox VE 9.1.9');
- });
-
- it('uses Unraid osName over Linux platform family', () => {
- const summary = connectionAgentIdentitySummary(
- withAgentIdentity({
- platform: 'linux',
- osName: 'Unraid',
- osVersion: '7.2.2',
- }),
- );
- expect(summary).toBe('Unraid 7.2.2');
- });
-
- it('falls back to prettified platform when osName is missing', () => {
- const summary = connectionAgentIdentitySummary(
- withAgentIdentity({
- platform: 'linux',
- osVersion: '6.1.0',
- }),
- );
- expect(summary).toBe('Linux 6.1.0');
- });
-
- it('returns null when no agent identity is present', () => {
- const summary = connectionAgentIdentitySummary(withAgentIdentity(undefined));
- expect(summary).toBeNull();
- });
-});
diff --git a/frontend-modern/src/components/Settings/__tests__/connectionsTableModel.test.ts b/frontend-modern/src/components/Settings/__tests__/connectionsTableModel.test.ts
index 06e7b022c4..e6965dfebf 100644
--- a/frontend-modern/src/components/Settings/__tests__/connectionsTableModel.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/connectionsTableModel.test.ts
@@ -1,6 +1,7 @@
import { describe, expect, it } from 'vitest';
-import type { Connection } from '@/api/connections';
+import type { Connection, ConnectionAgentIdentity } from '@/api/connections';
import {
+ connectionAgentIdentitySummary,
fleetGovernanceSignalsForConnection,
visibleFleetGovernanceSignals,
type FleetGovernanceSignal,
@@ -211,3 +212,47 @@ describe('visibleFleetGovernanceSignals', () => {
expect(visibleFleetGovernanceSignals(rawSignals).map((signal) => signal.label)).toEqual([]);
});
});
+
+describe('connectionAgentIdentitySummary', () => {
+ const withAgentIdentity = (
+ agentIdentity: Partial<ConnectionAgentIdentity> | undefined,
+ ): Connection =>
+ connectionFixture({ agentIdentity: agentIdentity as ConnectionAgentIdentity | undefined });
+
+ it('uses osName platform identity over the broader agent platform family', () => {
+ const summary = connectionAgentIdentitySummary(
+ withAgentIdentity({
+ platform: 'debian',
+ osName: 'Proxmox VE',
+ osVersion: '9.1.9',
+ }),
+ );
+ expect(summary).toBe('Proxmox VE 9.1.9');
+ });
+
+ it('uses Unraid osName over Linux platform family', () => {
+ const summary = connectionAgentIdentitySummary(
+ withAgentIdentity({
+ platform: 'linux',
+ osName: 'Unraid',
+ osVersion: '7.2.2',
+ }),
+ );
+ expect(summary).toBe('Unraid 7.2.2');
+ });
+
+ it('falls back to prettified platform when osName is missing', () => {
+ const summary = connectionAgentIdentitySummary(
+ withAgentIdentity({
+ platform: 'linux',
+ osVersion: '6.1.0',
+ }),
+ );
+ expect(summary).toBe('Linux 6.1.0');
+ });
+
+ it('returns null when no agent identity is present', () => {
+ const summary = connectionAgentIdentitySummary(withAgentIdentity(undefined));
+ expect(summary).toBeNull();
+ });
+});
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 2098840969..6eae35aa69 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -35,7 +35,6 @@ import infrastructureSourcePickerSource from '../InfrastructureSourcePicker.tsx?
import infrastructureWorkspaceModelSource from '../infrastructureWorkspaceModel.ts?raw';
import useConnectionsLedgerSource from '../useConnectionsLedger.ts?raw';
import agentProfileSettingsSource from '../agentProfileSettings.ts?raw';
-import connectionsTableSource from '../ConnectionsTable.tsx?raw';
import monitoredSystemImpactPreviewSource from '../MonitoredSystemImpactPreview.tsx?raw';
import connectionEditorSource from '../ConnectionEditor/ConnectionEditor.tsx?raw';
import addressProbeStepSource from '../ConnectionEditor/AddressProbeStep.tsx?raw';
@@ -537,6 +536,7 @@ describe('settings architecture guardrails', () => {
expect(infrastructureWorkspaceSource).toContain('<InfrastructureSourceManager');
expect(infrastructureWorkspaceSource).toContain('<InfrastructureSourcePicker');
expect(infrastructureWorkspaceSource).not.toContain('<ConnectionsTable rows={rows} />');
+ expect(infrastructureWorkspaceSource).not.toContain("from './ConnectionsTable'");
expect(infrastructureWorkspaceSource).toContain('flex h-full min-h-0 flex-col');
expect(infrastructureWorkspaceSource).toContain('showSlotHeader={false}');
expect(infrastructureWorkspaceSource).toContain(
@@ -619,7 +619,7 @@ describe('settings architecture guardrails', () => {
expect(connectionEditorSource).toContain(
"from '@/utils/infrastructureOnboardingPresentation';",
);
- expect(connectionsTableSource).toContain(
+ expect(infrastructureSourceManagerSource).toContain(
"from '@/utils/infrastructureOnboardingPresentation';",
);
expect(connectionEditorSource).toContain('<AddressProbeStep');
diff --git a/frontend-modern/src/components/Settings/connectionsTableModel.ts b/frontend-modern/src/components/Settings/connectionsTableModel.ts
index 3c2f003485..ae0ab58525 100644
--- a/frontend-modern/src/components/Settings/connectionsTableModel.ts
+++ b/frontend-modern/src/components/Settings/connectionsTableModel.ts
@@ -257,71 +257,6 @@ export interface FleetGovernanceSignal {
tone: FleetGovernanceSignalTone;
}
-export const CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS = 80;
-export const CONNECTIONS_TABLE_VISIBLE_ROWS_INCREMENT = 80;
-
-export interface ConnectionsTableVisibilityState {
- totalRows: number;
- visibleLimit: number;
- visibleRows: number;
- hiddenRows: number;
- isBounded: boolean;
- statusText: string;
- showMoreLabel: string;
- showMoreAriaLabel: string;
- nextVisibleLimit: number;
-}
-
-export const connectionsTableVisibilityState = (
- totalRows: number,
- visibleLimit: number,
-): ConnectionsTableVisibilityState => {
- const normalizedTotal = Math.max(0, Math.floor(totalRows));
- const normalizedLimit = Math.max(
- CONNECTIONS_TABLE_INITIAL_VISIBLE_ROWS,
- Math.floor(visibleLimit),
- );
- const visibleRows = Math.min(normalizedTotal, normalizedLimit);
- const hiddenRows = Math.max(0, normalizedTotal - visibleRows);
- const nextBatch = Math.min(CONNECTIONS_TABLE_VISIBLE_ROWS_INCREMENT, hiddenRows);
- const nextVisibleLimit = Math.min(
- normalizedTotal,
- visibleRows + CONNECTIONS_TABLE_VISIBLE_ROWS_INCREMENT,
- );
- const systemLabel = normalizedTotal === 1 ? 'system' : 'systems';
- const remainingLabel = hiddenRows === 1 ? 'system' : 'systems';
- const statusText =
- hiddenRows > 0
- ? `Showing ${visibleRows} of ${normalizedTotal} monitored ${systemLabel}. ${hiddenRows} more ${remainingLabel} available.`
- : `Showing all ${normalizedTotal} monitored ${systemLabel}.`;
-
- return {
- totalRows: normalizedTotal,
- visibleLimit: normalizedLimit,
- visibleRows,
- hiddenRows,
- isBounded: hiddenRows > 0,
- statusText,
- showMoreLabel:
- hiddenRows > CONNECTIONS_TABLE_VISIBLE_ROWS_INCREMENT
- ? `Show next ${CONNECTIONS_TABLE_VISIBLE_ROWS_INCREMENT}`
- : `Show remaining ${hiddenRows}`,
- showMoreAriaLabel:
- hiddenRows > CONNECTIONS_TABLE_VISIBLE_ROWS_INCREMENT
- ? `Show next ${nextBatch} monitored systems. ${hiddenRows} currently hidden.`
- : `Show remaining ${hiddenRows} monitored ${remainingLabel}.`,
- nextVisibleLimit,
- };
-};
-
-export const visibleConnectionsTableRows = <TRow>(
- rows: readonly TRow[],
- visibleLimit: number,
-): readonly TRow[] => {
- if (rows.length <= visibleLimit) return rows;
- return rows.slice(0, visibleLimit);
-};
-
const DEFAULT_FLEET_GOVERNANCE: ConnectionFleetGovernance = {
enrollmentState: 'pending',
livenessState: 'pending',
diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.py
index e90b139f52..5dd5c309c2 100644
--- a/scripts/release_control/canonical_completion_guard_test.py
+++ b/scripts/release_control/canonical_completion_guard_test.py
@@ -40,7 +40,6 @@ PLATFORM_CONNECTIONS_WORKSPACE_EXACT_FILES = [
]
CONNECTIONS_LEDGER_WORKSPACE_EXACT_FILES = [
- "frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx",
"frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx",
"frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts",
]
@@ -2039,11 +2038,6 @@ class CanonicalCompletionGuardTest(unittest.TestCase):
],
)
- def test_connections_table_change_requires_agent_lifecycle(self):
- self._assert_systems_ledger_change_requires_agent_lifecycle(
- "frontend-modern/src/components/Settings/ConnectionsTable.tsx"
- )
-
def test_connections_table_model_change_requires_agent_lifecycle(self):
self._assert_systems_ledger_change_requires_agent_lifecycle(
"frontend-modern/src/components/Settings/connectionsTableModel.ts"
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index d3b264c538..827d56030a 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -36,7 +36,6 @@ PLATFORM_CONNECTIONS_WORKSPACE_EXACT_FILES = [
]
CONNECTIONS_LEDGER_WORKSPACE_EXACT_FILES = [
- "frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx",
"frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx",
"frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts",
]
@@ -1744,34 +1743,6 @@ class SubsystemLookupTest(unittest.TestCase):
PLATFORM_CONNECTIONS_WORKSPACE_EXACT_FILES,
)
- def test_lookup_paths_assigns_connections_table_to_agent_lifecycle(self) -> None:
- result = lookup_paths(["frontend-modern/src/components/Settings/ConnectionsTable.tsx"])
- self.assertEqual(result["unowned_runtime_files"], [])
- self.assertEqual(
- {item["subsystem"] for item in result["impacted_subsystems"]},
- {"agent-lifecycle"},
- )
- file_entry = result["files"][0]
- self.assertEqual(file_entry["classification"], "runtime")
- self.assertEqual(
- {match["subsystem"] for match in file_entry["matches"]},
- {"agent-lifecycle"},
- )
- match = file_entry["matches"][0]
- self.assertEqual(
- match["contract"],
- "docs/release-control/v6/internal/subsystems/agent-lifecycle.md",
- )
- self.assertEqual(match["lane_context"]["lane_id"], "L16")
- self.assertEqual(
- match["verification_requirement"]["id"],
- "systems-ledger-workspace-surface",
- )
- self.assertEqual(
- match["verification_requirement"]["exact_files"],
- CONNECTIONS_LEDGER_WORKSPACE_EXACT_FILES,
- )
-
def test_lookup_paths_assigns_connections_table_model_to_agent_lifecycle(self) -> None:
result = lookup_paths(
["frontend-modern/src/components/Settings/connectionsTableModel.ts"]