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.

Collapse infrastructure settings to ledger-first workspace

rcourtman8883e36f0bf2
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 9eed37dc4e..ad895fcb25 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -35,29 +35,31 @@ management, and fleet control surfaces.
11. `frontend-modern/src/components/Settings/useAgentProfilesPanelState.ts`
12. `frontend-modern/src/components/Settings/InfrastructureOperationsController.tsx`
13. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`
-14. `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`
-15. `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts`
-16. `frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx`
-17. `frontend-modern/src/components/Settings/proxmoxSettingsModel.ts`
-18. `frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx`
-19. `frontend-modern/src/components/Settings/ProxmoxConfiguredNodesTable.tsx`
-20. `frontend-modern/src/components/Settings/ProxmoxDirectConnectionsCard.tsx`
-21. `frontend-modern/src/components/Settings/ProxmoxDiscoveryResultsCard.tsx`
-22. `frontend-modern/src/components/Settings/ProxmoxDeleteNodeDialog.tsx`
-23. `frontend-modern/src/components/Settings/ProxmoxNodeModalStack.tsx`
-24. `frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx`
-25. `frontend-modern/src/components/Settings/SettingsSectionNav.tsx`
-26. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx`
-27. `frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts`
-28. `frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts`
-29. `frontend-modern/src/components/Settings/NodeModal.tsx`
-30. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx`
-31. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx`
-32. `frontend-modern/src/components/Settings/nodeModalModel.ts`
-33. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx`
-34. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx`
-35. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx`
-36. `frontend-modern/src/components/Settings/useNodeModalState.ts`
+14. `frontend-modern/src/components/Settings/ConnectionsTable.tsx`
+15. `frontend-modern/src/components/Settings/connectionsTableModel.ts`
+16. `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`
+17. `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts`
+18. `frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx`
+19. `frontend-modern/src/components/Settings/proxmoxSettingsModel.ts`
+20. `frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx`
+21. `frontend-modern/src/components/Settings/ProxmoxConfiguredNodesTable.tsx`
+22. `frontend-modern/src/components/Settings/ProxmoxDirectConnectionsCard.tsx`
+23. `frontend-modern/src/components/Settings/ProxmoxDiscoveryResultsCard.tsx`
+24. `frontend-modern/src/components/Settings/ProxmoxDeleteNodeDialog.tsx`
+25. `frontend-modern/src/components/Settings/ProxmoxNodeModalStack.tsx`
+26. `frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx`
+27. `frontend-modern/src/components/Settings/SettingsSectionNav.tsx`
+28. `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx`
+29. `frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts`
+30. `frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts`
+31. `frontend-modern/src/components/Settings/NodeModal.tsx`
+32. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx`
+33. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx`
+34. `frontend-modern/src/components/Settings/nodeModalModel.ts`
+35. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx`
+36. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx`
+37. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx`
+38. `frontend-modern/src/components/Settings/useNodeModalState.ts`
37. `frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx`
38. `frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx`
39. `frontend-modern/src/utils/agentProfilesPresentation.ts`
@@ -202,7 +204,7 @@ an add-only capacity posture.
4. Keep legacy Unified Agent compatibility names explicitly secondary when touching shared `internal/api/` runtime helpers: the legacy host-route family and `host-agent:*` scope names may remain as ingress or migration aliases, but they must not retake primary ownership in router state, live runtime scope checks, handler commentary, or operator-facing guidance.
5. Add or change the unified agent CLI entrypoint, version/help exit semantics, or startup argument/error routing through `cmd/pulse-agent/main.go`.
6. Add or change installer flags, persisted service arguments, or upgrade-safe re-entry behavior through `scripts/install.sh` and `scripts/install.ps1`.
-7. Add or change profile management, the extracted agent profiles runtime owner, the pure unified-agent inventory/install model, the connections-ledger workspace shell, route model, shared install/inventory/dialog section owners, 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 admission 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/useAgentProfilesPanelState.ts`, `frontend-modern/src/components/Settings/InfrastructureOperationsController.tsx`, `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`, `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`, `frontend-modern/src/components/Settings/InfrastructureInventorySection.tsx`, `frontend-modern/src/components/Settings/InfrastructureActiveRowDetails.tsx`, `frontend-modern/src/components/Settings/InfrastructureIgnoredRowDetails.tsx`, `frontend-modern/src/components/Settings/InfrastructureStopMonitoringDialog.tsx`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts`, `frontend-modern/src/components/Settings/MonitoredSystemAdmissionPreview.tsx`, `frontend-modern/src/components/Settings/PlatformConnectionsWorkspace.tsx`, `frontend-modern/src/components/Settings/platformConnectionsModel.ts`, `frontend-modern/src/components/Settings/TrueNASSettingsPanel.tsx`, `frontend-modern/src/components/Settings/useTrueNASSettingsPanelState.ts`, `frontend-modern/src/components/Settings/VMwareSettingsPanel.tsx`, `frontend-modern/src/components/Settings/useVMwareSettingsPanelState.ts`, `frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx`, `frontend-modern/src/components/Settings/proxmoxSettingsModel.ts`, `frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx`, `frontend-modern/src/components/Settings/ProxmoxConfiguredNodesTable.tsx`, `frontend-modern/src/components/Settings/ProxmoxDirectConnectionsCard.tsx`, `frontend-modern/src/components/Settings/ProxmoxDiscoveryResultsCard.tsx`, `frontend-modern/src/components/Settings/ProxmoxDeleteNodeDialog.tsx`, `frontend-modern/src/components/Settings/ProxmoxNodeModalStack.tsx`, `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/useInfrastructureReportingState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts`, `frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts`, `frontend-modern/src/components/Settings/NodeModal.tsx`, `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`.
+7. Add or change profile management, the extracted agent profiles runtime owner, the top-level infrastructure ledger, the pure unified-agent inventory/install model, the connections-ledger workspace shell, route model, shared install/inventory/dialog section owners, 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 admission 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/useAgentProfilesPanelState.ts`, `frontend-modern/src/components/Settings/ConnectionsTable.tsx`, `frontend-modern/src/components/Settings/connectionsTableModel.ts`, `frontend-modern/src/components/Settings/InfrastructureOperationsController.tsx`, `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`, `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`, `frontend-modern/src/components/Settings/InfrastructureInventorySection.tsx`, `frontend-modern/src/components/Settings/InfrastructureActiveRowDetails.tsx`, `frontend-modern/src/components/Settings/InfrastructureIgnoredRowDetails.tsx`, `frontend-modern/src/components/Settings/InfrastructureStopMonitoringDialog.tsx`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts`, `frontend-modern/src/components/Settings/MonitoredSystemAdmissionPreview.tsx`, `frontend-modern/src/components/Settings/PlatformConnectionsWorkspace.tsx`, `frontend-modern/src/components/Settings/platformConnectionsModel.ts`, `frontend-modern/src/components/Settings/TrueNASSettingsPanel.tsx`, `frontend-modern/src/components/Settings/useTrueNASSettingsPanelState.ts`, `frontend-modern/src/components/Settings/VMwareSettingsPanel.tsx`, `frontend-modern/src/components/Settings/useVMwareSettingsPanelState.ts`, `frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx`, `frontend-modern/src/components/Settings/proxmoxSettingsModel.ts`, `frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx`, `frontend-modern/src/components/Settings/ProxmoxConfiguredNodesTable.tsx`, `frontend-modern/src/components/Settings/ProxmoxDirectConnectionsCard.tsx`, `frontend-modern/src/components/Settings/ProxmoxDiscoveryResultsCard.tsx`, `frontend-modern/src/components/Settings/ProxmoxDeleteNodeDialog.tsx`, `frontend-modern/src/components/Settings/ProxmoxNodeModalStack.tsx`, `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/useInfrastructureReportingState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts`, `frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts`, `frontend-modern/src/components/Settings/NodeModal.tsx`, `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`.
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.
Public demo and other read-only settings posture must stay reporting-first
on that same lifecycle-owned workspace boundary: infrastructure workspace
@@ -821,7 +823,8 @@ 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 connections workspace now also lives explicitly inside
-this lifecycle boundary: `InfrastructureWorkspace.tsx`,
+this lifecycle boundary: `ConnectionsTable.tsx`,
+`connectionsTableModel.ts`, `InfrastructureWorkspace.tsx`,
`infrastructureWorkspaceModel.ts`,
`InfrastructureInstallerSection.tsx`, `InfrastructureInventorySection.tsx`,
`InfrastructureActiveRowDetails.tsx`,
@@ -838,7 +841,9 @@ this lifecycle boundary: `InfrastructureWorkspace.tsx`,
`useInfrastructureConfiguredNodesState.ts`,
`useInfrastructureDiscoveryRuntimeState.ts`, `useInfrastructureSettingsState.ts`,
and `useProxmoxDirectWorkspaceState.ts` own the fallback install/direct/reporting
-operator flow, with `PlatformConnectionsWorkspace.tsx` as the canonical
+operator flow, with `ConnectionsTable.tsx` plus
+`connectionsTableModel.ts` as the canonical top-level infrastructure ledger,
+`PlatformConnectionsWorkspace.tsx` as the canonical
API-backed platform shell, `ProxmoxSettingsPanel.tsx` and
`TrueNASSettingsPanel.tsx` as provider-specific workspaces,
`useInfrastructureSettingsState.ts` as the shared platform-connections
@@ -846,6 +851,11 @@ composition boundary, and
the direct-node/discovery runtime hooks plus `useTrueNASSettingsPanelState.ts`
as the canonical provider state owners, instead of leaving those panels
ungoverned beside the canonical unified-agent install path.
+That ledger-first default route must stay focused on top-level monitored
+systems and configured platform connections only. Inline detail drawers may
+surface reporting-item and ignored-item controls, but installer setup,
+platform-specific configuration, and profile management must remain secondary
+flows rather than being dumped underneath the default ledger.
That same lifecycle-owned platform-connections workspace must keep API-backed
provider state operationally useful, not CRUD-only. `TrueNASSettingsPanel.tsx`
and `useTrueNASSettingsPanelState.ts` must surface the shared runtime health,
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index acdb6ebfb8..e65d93169c 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -214,6 +214,12 @@ work extends shared components instead of creating new local variants.
reconstructing raw `current / limit` slash math or `0 remaining` copy in
the banner shell, state owner, or shared model.
5. Keep shared platform-connections shell state on the reusable settings boundary: `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, and `frontend-modern/src/components/Settings/PlatformConnectionsWorkspace.tsx` must continue to derive provider counts, availability, and shared subtab copy from one infrastructure-settings source instead of creating provider-local summary fetches or VMware-only shell vocabulary.
+ That same shared shell boundary now owns the default posture for
+ `/settings/infrastructure`: the landing route should read as one ledger-first
+ workspace for top-level systems and configured platform connections, while
+ installer tooling, provider setup workspaces, and profile management remain
+ secondary flows opened by explicit deep links or drawers instead of being
+ dumped inline underneath the default table.
6. Keep Proxmox deep-link route selection on the shared settings-navigation boundary. `frontend-modern/src/components/Settings/settingsNavigationModel.ts` and `frontend-modern/src/components/Settings/useSettingsNavigation.ts` must treat the canonical PBS and PMG Proxmox deep links as agent-selection authority even though those URLs resolve to the shared `infrastructure-operations` tab. Reloading or remounting on a PBS or PMG deep link must not silently fall back to the PVE selector state.
7. Keep shared storage feature presenters on canonical platform truth. When reusable storage presenters under `frontend-modern/src/features/storageBackups/` classify canonical resources for the shared storage route, API-backed virtualization datastores such as VMware must stay inventory-only datastores instead of inheriting PBS-specific backup-repository or protected-target copy from older fallback branches.
8. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, setup/onboarding path allowlists, or presentation-only guesses, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest.
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index e8d9b7a3ff..562843d605 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -602,6 +602,8 @@
"frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx",
"frontend-modern/src/components/Settings/AgentProfilesPanel.tsx",
"frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx",
+ "frontend-modern/src/components/Settings/ConnectionsTable.tsx",
+ "frontend-modern/src/components/Settings/connectionsTableModel.ts",
"frontend-modern/src/components/Settings/InfrastructureActiveRowDetails.tsx",
"frontend-modern/src/components/Settings/InfrastructureIgnoredRowDetails.tsx",
"frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx",
@@ -892,6 +894,23 @@
"frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsModel.test.tsx"
]
},
+ {
+ "id": "connections-ledger-workspace-surface",
+ "label": "connections 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__/connectionsTableModel.test.ts",
+ "frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx",
+ "frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts"
+ ]
+ },
{
"id": "platform-connections-workspace-surface",
"label": "platform connections workspace lifecycle proof",
diff --git a/frontend-modern/src/components/Settings/ConnectionsTable.tsx b/frontend-modern/src/components/Settings/ConnectionsTable.tsx
index 372daf1ccc..9e2897e61a 100644
--- a/frontend-modern/src/components/Settings/ConnectionsTable.tsx
+++ b/frontend-modern/src/components/Settings/ConnectionsTable.tsx
@@ -10,9 +10,15 @@ import {
} from '@/components/shared/Table';
import type { ConnectionRow } from './connectionsTableModel';
+export interface ConnectionsTableHeaderAction {
+ label: string;
+ onSelect: () => void;
+ tone?: 'primary' | 'secondary';
+}
+
interface ConnectionsTableProps {
rows: Accessor<readonly ConnectionRow[]>;
- onAddSystem?: () => void;
+ headerActions?: readonly ConnectionsTableHeaderAction[];
onManageRow?: (row: ConnectionRow) => void;
}
@@ -22,19 +28,26 @@ export const ConnectionsTable: Component<ConnectionsTableProps> = (props) => {
<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">Connections and inventory</h3>
- <p class="text-xs text-muted">
- Configured platform connections, active reporting items, and ignored systems in one
- ledger.
- </p>
+ <p class="text-xs text-muted">Top-level systems and platform connections.</p>
</div>
- <Show when={props.onAddSystem}>
- <button
- type="button"
- onClick={props.onAddSystem}
- class="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"
- >
- + Add a system
- </button>
+ <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>
@@ -42,9 +55,7 @@ export const ConnectionsTable: Component<ConnectionsTableProps> = (props) => {
when={props.rows().length > 0}
fallback={
<div class="px-4 py-10 text-center text-sm text-muted">
- Nothing is configured or reporting yet. Use
- <span class="mx-1 font-medium text-base-content">+ Add a system</span>
- to connect the first one.
+ Nothing is configured or reporting yet.
</div>
}
>
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 9597f3edbc..a20985c770 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -1,16 +1,19 @@
import { Component, Show, createEffect, createMemo, createSignal } from 'solid-js';
import { useLocation, useNavigate } from '@solidjs/router';
+import { Dialog } from '@/components/shared/Dialog';
import { presentationPolicyIsReadOnly } from '@/stores/sessionPresentationPolicy';
import { AgentProfilesPanel } from './AgentProfilesPanel';
import { AddSystemPicker, type AddSystemChoice } from './AddSystemPicker';
-import { ConnectionsTable } from './ConnectionsTable';
+import { ConnectionsTable, type ConnectionsTableHeaderAction } from './ConnectionsTable';
import {
buildConnectionRows,
type ConnectionRow,
type ConnectionManageAction,
} from './connectionsTableModel';
+import { InfrastructureActiveRowDetails } from './InfrastructureActiveRowDetails';
import { InfrastructureInstallerSection } from './InfrastructureInstallerSection';
import { InfrastructureInventorySection } from './InfrastructureInventorySection';
+import { InfrastructureIgnoredRowDetails } from './InfrastructureIgnoredRowDetails';
import { InfrastructureStopMonitoringDialog } from './InfrastructureStopMonitoringDialog';
import { PlatformConnectionsWorkspace } from './PlatformConnectionsWorkspace';
import {
@@ -50,6 +53,7 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
const activeView = createMemo(() => getInfrastructureWorkspaceViewFromPath(location.pathname));
const readOnlyWorkspace = createMemo(() => presentationPolicyIsReadOnly());
const [pickerOpen, setPickerOpen] = createSignal(false);
+ const [profilesOpen, setProfilesOpen] = createSignal(false);
let inventorySectionRef: HTMLDivElement | undefined;
let platformSectionRef: HTMLDivElement | undefined;
@@ -67,6 +71,22 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
includeConfigurationRows: !readOnlyWorkspace(),
}),
);
+ const headerActions = createMemo<ConnectionsTableHeaderAction[]>(() =>
+ readOnlyWorkspace()
+ ? []
+ : [
+ {
+ label: 'Agent profiles',
+ onSelect: () => setProfilesOpen(true),
+ tone: 'secondary' as const,
+ },
+ {
+ label: '+ Add a system',
+ onSelect: () => setPickerOpen(true),
+ tone: 'primary' as const,
+ },
+ ],
+ );
const openProxmoxNode = (nodeKind: 'pve' | 'pbs' | 'pmg', nodeId: string) => {
const nodes =
@@ -116,13 +136,11 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
switch (action.kind) {
case 'inventory-active':
state.setExpandedRowKey(action.rowKey);
- navigate(buildInfrastructureWorkspacePath('operations'));
- scrollSectionIntoView(inventorySectionRef);
+ state.setSelectedIgnoredRowKey(null);
return;
case 'inventory-ignored':
+ state.setExpandedRowKey(null);
state.setSelectedIgnoredRowKey(action.rowKey);
- navigate(buildInfrastructureWorkspacePath('operations'));
- scrollSectionIntoView(inventorySectionRef);
return;
case 'proxmox-node':
openProxmoxNode(action.nodeKind, action.nodeId);
@@ -186,7 +204,7 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
<div class="space-y-8">
<ConnectionsTable
rows={rows}
- onAddSystem={readOnlyWorkspace() ? undefined : () => setPickerOpen(true)}
+ headerActions={headerActions()}
onManageRow={(row) => handleManageAction(row.manage)}
/>
@@ -198,20 +216,58 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
<InfrastructureStopMonitoringDialog />
- <div ref={inventorySectionRef}>
- <InfrastructureInventorySection />
- </div>
+ <Dialog
+ isOpen={profilesOpen()}
+ onClose={() => setProfilesOpen(false)}
+ layout="drawer-right"
+ panelClass="max-w-[960px]"
+ ariaLabel="Agent profiles"
+ >
+ <div class="h-full overflow-y-auto bg-surface p-4 sm:p-6">
+ <AgentProfilesPanel />
+ </div>
+ </Dialog>
+
+ <Dialog
+ isOpen={Boolean(state.selectedActiveRow())}
+ onClose={() => state.setExpandedRowKey(null)}
+ layout="drawer-right"
+ panelClass="max-w-[760px]"
+ ariaLabel="Reporting item details"
+ >
+ <Show when={state.selectedActiveRow()}>
+ {(rowAccessor) => <InfrastructureActiveRowDetails rowAccessor={rowAccessor} />}
+ </Show>
+ </Dialog>
- <Show when={!readOnlyWorkspace()}>
+ <Dialog
+ isOpen={Boolean(state.selectedIgnoredRow())}
+ onClose={() => state.setSelectedIgnoredRowKey(null)}
+ layout="drawer-right"
+ panelClass="max-w-[760px]"
+ ariaLabel="Ignored item details"
+ >
+ <Show when={state.selectedIgnoredRow()}>
+ {(rowAccessor) => <InfrastructureIgnoredRowDetails rowAccessor={rowAccessor} />}
+ </Show>
+ </Dialog>
+
+ <Show when={activeView() === 'operations'}>
+ <div ref={inventorySectionRef}>
+ <InfrastructureInventorySection />
+ </div>
+ </Show>
+
+ <Show when={!readOnlyWorkspace() && activeView() === 'platforms'}>
<div ref={platformSectionRef} class="space-y-6">
<PlatformConnectionsWorkspace {...props} />
</div>
+ </Show>
+ <Show when={!readOnlyWorkspace() && activeView() === 'install'}>
<div ref={installSectionRef}>
<InfrastructureInstallerSection />
</div>
-
- <AgentProfilesPanel />
</Show>
</div>
);
diff --git a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx b/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx
index c4237b6892..0181e6dc1e 100644
--- a/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ConnectionsTable.test.tsx
@@ -62,13 +62,28 @@ describe('ConnectionsTable', () => {
expect(screen.getByText('Reporting')).toBeInTheDocument();
});
- it('surfaces the add-system action only when an onAddSystem handler is provided', () => {
+ it('surfaces configured header actions when provided', () => {
const onAddSystem = vi.fn();
render(() => (
- <ConnectionsTable rows={() => []} onAddSystem={onAddSystem} />
+ <ConnectionsTable
+ rows={() => []}
+ headerActions={[
+ {
+ label: '+ Add a system',
+ onSelect: onAddSystem,
+ tone: 'primary',
+ },
+ {
+ label: 'Agent profiles',
+ onSelect: vi.fn(),
+ tone: 'secondary',
+ },
+ ]}
+ />
) as any);
- const button = screen.getByRole('button', { name: /Add a system/i });
+ expect(screen.getByRole('button', { name: 'Agent profiles' })).toBeInTheDocument();
+ const button = screen.getByRole('button', { name: /\+ Add a system/i });
fireEvent.click(button);
expect(onAddSystem).toHaveBeenCalledTimes(1);
});
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
index bd7a856f1e..22222358a6 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
@@ -1,4 +1,5 @@
import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';
+import { createSignal } from 'solid-js';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { UnifiedAgentRow } from '../infrastructureOperationsModel';
import { InfrastructureWorkspace } from '../InfrastructureWorkspace';
@@ -11,6 +12,8 @@ const setSelectedIgnoredRowKeySpy = vi.hoisted(() => vi.fn());
let mockActiveRows: UnifiedAgentRow[] = [];
let mockIgnoredRows: UnifiedAgentRow[] = [];
+const [selectedActiveRowKey, setSelectedActiveRowKey] = createSignal<string | null>(null);
+const [selectedIgnoredRowKey, setSelectedIgnoredRowKey] = createSignal<string | null>(null);
vi.mock('@solidjs/router', async () => {
const actual = await vi.importActual<typeof import('@solidjs/router')>('@solidjs/router');
@@ -30,8 +33,18 @@ vi.mock('../useInfrastructureOperationsState', () => ({
useInfrastructureOperationsContext: () => ({
activeRows: () => mockActiveRows,
monitoringStoppedRows: () => mockIgnoredRows,
- setExpandedRowKey: setExpandedRowKeySpy,
- setSelectedIgnoredRowKey: setSelectedIgnoredRowKeySpy,
+ selectedActiveRow: () =>
+ mockActiveRows.find((row) => row.rowKey === selectedActiveRowKey()) ?? null,
+ selectedIgnoredRow: () =>
+ mockIgnoredRows.find((row) => row.rowKey === selectedIgnoredRowKey()) ?? null,
+ setExpandedRowKey: (value: string | null) => {
+ setExpandedRowKeySpy(value);
+ setSelectedActiveRowKey(value);
+ },
+ setSelectedIgnoredRowKey: (value: string | null) => {
+ setSelectedIgnoredRowKeySpy(value);
+ setSelectedIgnoredRowKey(value);
+ },
}),
}));
@@ -47,6 +60,14 @@ vi.mock('../PlatformConnectionsWorkspace', () => ({
PlatformConnectionsWorkspace: () => <div data-testid="platform-section">platforms</div>,
}));
+vi.mock('../InfrastructureActiveRowDetails', () => ({
+ InfrastructureActiveRowDetails: () => <div data-testid="active-details">active details</div>,
+}));
+
+vi.mock('../InfrastructureIgnoredRowDetails', () => ({
+ InfrastructureIgnoredRowDetails: () => <div data-testid="ignored-details">ignored details</div>,
+}));
+
vi.mock('../InfrastructureStopMonitoringDialog', () => ({
InfrastructureStopMonitoringDialog: () => <div data-testid="stop-monitoring-dialog" />,
}));
@@ -136,6 +157,8 @@ describe('InfrastructureWorkspace', () => {
mockPathname = '/settings/infrastructure';
mockActiveRows = [reportingRow()];
mockIgnoredRows = [];
+ setSelectedActiveRowKey(null);
+ setSelectedIgnoredRowKey(null);
});
afterEach(() => {
@@ -145,14 +168,15 @@ describe('InfrastructureWorkspace', () => {
const renderWorkspace = (propOverrides: Record<string, unknown> = {}) =>
render(() => (<InfrastructureWorkspace {...{ ...baseProps(), ...propOverrides }} />) as any);
- it('renders the single-page workspace sections at the base infrastructure route', () => {
+ it('renders only the top-level ledger at the base infrastructure route', () => {
renderWorkspace();
expect(screen.getByText('Connections and inventory')).toBeInTheDocument();
- expect(screen.getByTestId('inventory-section')).toBeInTheDocument();
- expect(screen.getByTestId('platform-section')).toBeInTheDocument();
- expect(screen.getByTestId('install-section')).toBeInTheDocument();
- expect(screen.getByTestId('agent-profiles')).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Agent profiles' })).toBeInTheDocument();
+ expect(screen.queryByTestId('inventory-section')).toBeNull();
+ expect(screen.queryByTestId('platform-section')).toBeNull();
+ expect(screen.queryByTestId('install-section')).toBeNull();
+ expect(screen.queryByTestId('agent-profiles')).toBeNull();
});
it('merges reporting and configured connection rows into the top ledger', () => {
@@ -167,7 +191,7 @@ describe('InfrastructureWorkspace', () => {
it('opens the add-system picker when the add button is clicked', () => {
renderWorkspace();
- fireEvent.click(screen.getByRole('button', { name: /Add a system/i }));
+ fireEvent.click(screen.getByRole('button', { name: /\+ Add a system/i }));
expect(screen.getByText('Install on a host')).toBeInTheDocument();
expect(screen.getByText('Proxmox VE')).toBeInTheDocument();
@@ -176,7 +200,7 @@ describe('InfrastructureWorkspace', () => {
it('routes the agent-host choice to the install section deep link', () => {
renderWorkspace();
- fireEvent.click(screen.getByRole('button', { name: /Add a system/i }));
+ fireEvent.click(screen.getByRole('button', { name: /\+ Add a system/i }));
fireEvent.click(screen.getByText('Install on a host'));
expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/install');
@@ -184,13 +208,13 @@ describe('InfrastructureWorkspace', () => {
it('opens provider creation flows directly from the add-system picker', () => {
renderWorkspace();
- fireEvent.click(screen.getByRole('button', { name: /Add a system/i }));
+ fireEvent.click(screen.getByRole('button', { name: /\+ Add a system/i }));
fireEvent.click(screen.getByText('TrueNAS SCALE'));
expect(trueNASOpenCreateDialogSpy).toHaveBeenCalledTimes(1);
expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/platforms/truenas');
- fireEvent.click(screen.getByRole('button', { name: /Add a system/i }));
+ fireEvent.click(screen.getByRole('button', { name: /\+ Add a system/i }));
fireEvent.click(screen.getByText('VMware vSphere or ESXi'));
expect(vmwareOpenCreateDialogSpy).toHaveBeenCalledTimes(1);
@@ -199,7 +223,7 @@ describe('InfrastructureWorkspace', () => {
it('opens the proxmox node modal directly from the add-system picker', () => {
renderWorkspace();
- fireEvent.click(screen.getByRole('button', { name: /Add a system/i }));
+ fireEvent.click(screen.getByRole('button', { name: /\+ Add a system/i }));
fireEvent.click(screen.getByText('Proxmox VE'));
expect(onSelectAgentSpy).toHaveBeenCalledWith('pve');
@@ -209,13 +233,13 @@ describe('InfrastructureWorkspace', () => {
expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/platforms/proxmox/pve');
});
- it('opens reporting details from the top ledger for live items', () => {
+ it('opens reporting details from the top ledger in a drawer', () => {
renderWorkspace();
fireEvent.click(screen.getByRole('button', { name: 'View details' }));
expect(setExpandedRowKeySpy).toHaveBeenCalledWith('agent:tower');
- expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/operations');
+ expect(screen.getByTestId('active-details')).toBeInTheDocument();
});
it('opens saved VMware connections from the top ledger', () => {
@@ -229,14 +253,33 @@ describe('InfrastructureWorkspace', () => {
expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/platforms/vmware');
});
- it('keeps the same single-page surface on platform deep links', () => {
+ it('shows only platform setup below the ledger on platform deep links', () => {
mockPathname = '/settings/infrastructure/platforms/truenas';
renderWorkspace();
expect(screen.getByText('Connections and inventory')).toBeInTheDocument();
- expect(screen.getByTestId('inventory-section')).toBeInTheDocument();
expect(screen.getByTestId('platform-section')).toBeInTheDocument();
+ expect(screen.queryByTestId('inventory-section')).toBeNull();
+ expect(screen.queryByTestId('install-section')).toBeNull();
+ expect(screen.queryByTestId('agent-profiles')).toBeNull();
+ });
+
+ it('shows only install tools below the ledger on install deep links', () => {
+ mockPathname = '/settings/infrastructure/install';
+ renderWorkspace();
+
+ expect(screen.getByText('Connections and inventory')).toBeInTheDocument();
expect(screen.getByTestId('install-section')).toBeInTheDocument();
+ expect(screen.queryByTestId('inventory-section')).toBeNull();
+ expect(screen.queryByTestId('platform-section')).toBeNull();
+ });
+
+ it('opens agent profiles in a dedicated drawer instead of inline', () => {
+ renderWorkspace();
+
+ fireEvent.click(screen.getByRole('button', { name: 'Agent profiles' }));
+
+ expect(screen.getByTestId('agent-profiles')).toBeInTheDocument();
});
it('collapses read-only sessions back to inventory and hides setup sections', () => {
@@ -245,10 +288,11 @@ describe('InfrastructureWorkspace', () => {
renderWorkspace();
expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure', { replace: true });
- expect(screen.queryByRole('button', { name: /Add a system/i })).toBeNull();
+ expect(screen.queryByRole('button', { name: /\+ Add a system/i })).toBeNull();
+ expect(screen.queryByRole('button', { name: 'Agent profiles' })).toBeNull();
expect(screen.queryByTestId('platform-section')).toBeNull();
expect(screen.queryByTestId('install-section')).toBeNull();
expect(screen.queryByTestId('agent-profiles')).toBeNull();
- expect(screen.getByTestId('inventory-section')).toBeInTheDocument();
+ expect(screen.queryByTestId('inventory-section')).toBeNull();
});
});
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 7bd2332108..3380cba5f2 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -5,6 +5,8 @@ import settingsSource from '../Settings.tsx?raw';
import settingsDialogsSource from '../SettingsDialogs.tsx?raw';
import settingsShellSource from '../SettingsPageShell.tsx?raw';
import settingsHeaderMetaSource from '../settingsHeaderMeta.ts?raw';
+import connectionsTableSource from '../ConnectionsTable.tsx?raw';
+import connectionsTableModelSource from '../connectionsTableModel.ts?raw';
import infrastructureWorkspaceSource from '../InfrastructureWorkspace.tsx?raw';
import infrastructureWorkspaceModelSource from '../infrastructureWorkspaceModel.ts?raw';
import platformConnectionsWorkspaceSource from '../PlatformConnectionsWorkspace.tsx?raw';
@@ -198,6 +200,8 @@ const extractedModules = [
'../nodeModalModel.ts',
'../useNodeModalState.ts',
'../InfrastructureWorkspace.tsx',
+ '../ConnectionsTable.tsx',
+ '../connectionsTableModel.ts',
'../infrastructureWorkspaceModel.ts',
'../InfrastructureInstallerSection.tsx',
'../InfrastructureInventorySection.tsx',
@@ -884,12 +888,20 @@ describe('Settings architecture guardrails', () => {
expect(infrastructureWorkspaceSource).toContain(
"if (readOnlyWorkspace() && activeView() !== 'inventory')",
);
+ expect(infrastructureWorkspaceSource).toContain('./ConnectionsTable');
+ expect(infrastructureWorkspaceSource).toContain('./InfrastructureActiveRowDetails');
+ expect(infrastructureWorkspaceSource).toContain('./InfrastructureIgnoredRowDetails');
expect(infrastructureWorkspaceSource).toContain('InfrastructureOperationsStateProvider');
expect(infrastructureWorkspaceSource).toContain('InfrastructureInventorySection');
expect(infrastructureWorkspaceSource).toContain('InfrastructureInstallerSection');
expect(infrastructureWorkspaceSource).toContain('InfrastructureStopMonitoringDialog');
expect(infrastructureWorkspaceSource).toContain('AgentProfilesPanel');
expect(infrastructureWorkspaceSource).toContain('PlatformConnectionsWorkspace');
+ expect(infrastructureWorkspaceSource).toContain("activeView() === 'operations'");
+ expect(infrastructureWorkspaceSource).toContain("activeView() === 'platforms'");
+ expect(infrastructureWorkspaceSource).toContain("activeView() === 'install'");
+ expect(connectionsTableSource).toContain('headerActions');
+ expect(connectionsTableModelSource).toContain('export function buildConnectionRows');
expect(platformConnectionsWorkspaceSource).toContain('./platformConnectionsModel');
expect(platformConnectionsWorkspaceSource).toContain('./ProxmoxSettingsPanel');
expect(platformConnectionsWorkspaceSource).toContain('./TrueNASSettingsPanel');
diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.py
index 577a894366..645458bc43 100644
--- a/scripts/release_control/canonical_completion_guard_test.py
+++ b/scripts/release_control/canonical_completion_guard_test.py
@@ -43,6 +43,13 @@ PLATFORM_CONNECTIONS_WORKSPACE_EXACT_FILES = [
"tests/integration/tests/22-vmware-settings-platform-connections.spec.ts",
]
+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__/connectionsTableModel.test.ts",
+ "frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts",
+]
+
def _contract_reference(contract_path: str, needle: str, runtime_path: str) -> dict:
lines = (REPO_ROOT / contract_path).read_text(encoding="utf-8").splitlines()
@@ -2313,6 +2320,40 @@ class CanonicalCompletionGuardTest(unittest.TestCase):
],
)
+ def _assert_connections_ledger_change_requires_agent_lifecycle(self, touched_path: str) -> None:
+ required = infer_impacted_subsystems([touched_path])
+ self.assertEqual(set(required), {"agent-lifecycle"})
+
+ lifecycle = required["agent-lifecycle"]
+ self.assertEqual(
+ lifecycle["contract"],
+ "docs/release-control/v6/internal/subsystems/agent-lifecycle.md",
+ )
+ self.assertEqual(lifecycle["touched_runtime_files"], [touched_path])
+ self.assertEqual(
+ lifecycle["verification_requirements"],
+ [
+ {
+ "id": "connections-ledger-workspace-surface",
+ "label": "connections ledger lifecycle proof",
+ "touched_runtime_files": [touched_path],
+ "allow_same_subsystem_tests": False,
+ "test_prefixes": [],
+ "exact_files": CONNECTIONS_LEDGER_WORKSPACE_EXACT_FILES,
+ }
+ ],
+ )
+
+ def test_connections_table_change_requires_agent_lifecycle(self):
+ self._assert_connections_ledger_change_requires_agent_lifecycle(
+ "frontend-modern/src/components/Settings/ConnectionsTable.tsx"
+ )
+
+ def test_connections_table_model_change_requires_agent_lifecycle(self):
+ self._assert_connections_ledger_change_requires_agent_lifecycle(
+ "frontend-modern/src/components/Settings/connectionsTableModel.ts"
+ )
+
def test_proxmox_settings_panel_change_requires_agent_lifecycle(self):
self._assert_platform_connections_workspace_change_requires_agent_lifecycle(
"frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx"
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index f9372a65b3..44d10b073a 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -41,6 +41,13 @@ PLATFORM_CONNECTIONS_WORKSPACE_EXACT_FILES = [
"tests/integration/tests/22-vmware-settings-platform-connections.spec.ts",
]
+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__/connectionsTableModel.test.ts",
+ "frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts",
+]
+
def _contract_reference(contract_path: str, needle: str, runtime_path: str) -> dict:
lines = (REPO_ROOT / contract_path).read_text(encoding="utf-8").splitlines()
@@ -1922,6 +1929,64 @@ 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"],
+ "connections-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"]
+ )
+ 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"],
+ "connections-ledger-workspace-surface",
+ )
+ self.assertEqual(
+ match["verification_requirement"]["exact_files"],
+ CONNECTIONS_LEDGER_WORKSPACE_EXACT_FILES,
+ )
+
def test_lookup_paths_assigns_proxmox_direct_workspace_state_to_agent_lifecycle(self) -> None:
result = lookup_paths(
["frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts"]