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.

Extract Proxmox direct workspace owners

rcourtman8699969592d9
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 6bb0b59c37..667fb95581 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -40,35 +40,37 @@ management, and fleet control surfaces.
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/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/useProxmoxSettingsPanelState.ts`
-29. `frontend-modern/src/components/Settings/UnifiedAgents.tsx`
-30. `frontend-modern/src/components/Settings/NodeModal.tsx`
-31. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx`
-32. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx`
-33. `frontend-modern/src/components/Settings/nodeModalModel.ts`
-34. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx`
-35. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx`
-36. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx`
-37. `frontend-modern/src/components/Settings/useNodeModalState.ts`
-38. `frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx`
-39. `frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx`
-40. `frontend-modern/src/utils/agentProfilesPresentation.ts`
-41. `frontend-modern/src/utils/agentInstallCommand.ts`
-42. `frontend-modern/src/api/nodes.ts`
-43. `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`
-44. `frontend-modern/src/components/Settings/InfrastructureInventorySection.tsx`
-45. `frontend-modern/src/components/Settings/InfrastructureActiveRowDetails.tsx`
-46. `frontend-modern/src/components/Settings/InfrastructureIgnoredRowDetails.tsx`
-47. `frontend-modern/src/components/Settings/InfrastructureStopMonitoringDialog.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/UnifiedAgents.tsx`
+32. `frontend-modern/src/components/Settings/NodeModal.tsx`
+33. `frontend-modern/src/components/Settings/NodeModalAuthenticationSection.tsx`
+34. `frontend-modern/src/components/Settings/NodeModalBasicInfoSection.tsx`
+35. `frontend-modern/src/components/Settings/nodeModalModel.ts`
+36. `frontend-modern/src/components/Settings/NodeModalMonitoringSection.tsx`
+37. `frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx`
+38. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx`
+39. `frontend-modern/src/components/Settings/useNodeModalState.ts`
+40. `frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx`
+41. `frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx`
+42. `frontend-modern/src/utils/agentProfilesPresentation.ts`
+43. `frontend-modern/src/utils/agentInstallCommand.ts`
+44. `frontend-modern/src/api/nodes.ts`
+45. `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`
+46. `frontend-modern/src/components/Settings/InfrastructureInventorySection.tsx`
+47. `frontend-modern/src/components/Settings/InfrastructureActiveRowDetails.tsx`
+48. `frontend-modern/src/components/Settings/InfrastructureIgnoredRowDetails.tsx`
+49. `frontend-modern/src/components/Settings/InfrastructureStopMonitoringDialog.tsx`
## Shared Boundaries
@@ -100,7 +102,7 @@ management, and fleet control surfaces.
3. Add or change runtime-side Unified Agent startup, first-report assembly, and enroll/runtime continuity through `internal/hostagent/`.
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 installer flags, persisted service arguments, or upgrade-safe re-entry behavior through `scripts/install.sh` and `scripts/install.ps1`.
-6. Add or change profile management, the extracted agent profiles runtime owner, the pure unified-agent inventory/install model, the direct Proxmox workspace shell, route model, reporting summary owner, shared install/inventory/dialog section owners, local panel-state owner, shared frontend install-command assembly, Proxmox setup/install API transport, 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/InfrastructureInstallPanel.tsx`, `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`, `frontend-modern/src/components/Settings/InfrastructureReportingPanel.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/InfrastructureDirectConnectionsSummaryCard.tsx`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts`, `frontend-modern/src/components/Settings/ProxmoxSettingsPanel.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/useInfrastructureOperationsState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts`, `frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.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`, `frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx`, and `frontend-modern/src/utils/agentInstallCommand.ts`.
+6. Add or change profile management, the extracted agent profiles runtime owner, the pure unified-agent inventory/install model, the direct Proxmox workspace shell, route model, reporting summary owner, shared install/inventory/dialog section owners, local workspace-state owner, shared frontend install-command assembly, Proxmox setup/install API transport, 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/InfrastructureInstallPanel.tsx`, `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`, `frontend-modern/src/components/Settings/InfrastructureReportingPanel.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/InfrastructureDirectConnectionsSummaryCard.tsx`, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`, `frontend-modern/src/components/Settings/infrastructureWorkspaceModel.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/useInfrastructureOperationsState.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`, `frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx`, and `frontend-modern/src/utils/agentInstallCommand.ts`.
## Forbidden Paths
@@ -176,13 +178,16 @@ lifecycle boundary: `InfrastructureWorkspace.tsx`,
`InfrastructureIgnoredRowDetails.tsx`,
`InfrastructureStopMonitoringDialog.tsx`,
`InfrastructureDirectConnectionsSummaryCard.tsx`,
-`ProxmoxSettingsPanel.tsx`, `ProxmoxConfiguredNodesTable.tsx`,
+`ProxmoxSettingsPanel.tsx`, `proxmoxSettingsModel.ts`,
+`ProxmoxDirectWorkspace.tsx`, `ProxmoxConfiguredNodesTable.tsx`,
`ProxmoxDirectConnectionsCard.tsx`, `ProxmoxDiscoveryResultsCard.tsx`,
`ProxmoxDeleteNodeDialog.tsx`, `ProxmoxNodeModalStack.tsx`,
`ConfiguredNodeTables.tsx`, `SettingsSectionNav.tsx`,
-`useInfrastructureOperationsState.ts`, `useInfrastructureSettingsState.ts`, and
-`useProxmoxSettingsPanelState.ts` own the fallback install/direct/reporting
-operator flow instead of leaving those panels ungoverned beside the canonical
+`useInfrastructureOperationsState.ts`, `useInfrastructureSettingsState.ts`,
+and `useProxmoxDirectWorkspaceState.ts` own the fallback install/direct/reporting
+operator flow, with `ProxmoxSettingsPanel.tsx` now acting as the shell and
+`ProxmoxDirectWorkspace.tsx` as the runtime owner, instead of leaving those
+panels ungoverned beside the canonical
unified-agent install path.
That canonical /api/auto-register behavior now also includes hostname/IP continuity:
reruns that arrive through a different canonical host form must reuse the same
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 1b3e43cb8f..62d11548af 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -179,6 +179,14 @@ diagnostics run/export lifecycle, results rendering, and sanitization/model
helpers. The shell must not re-accumulate inline API calls, export-download
plumbing, or diagnostics-card composition.
+The settings shell registry now also treats extracted feature prop contracts as
+canonical shell inputs instead of reaching back into feature panels for type
+ownership. `frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx`
+must consume the direct Proxmox panel contract through
+`frontend-modern/src/components/Settings/proxmoxSettingsModel.ts`, so the
+registry stays a shell/composition owner and does not depend on
+`ProxmoxSettingsPanel.tsx` as though the panel still owned the runtime model.
+
The operations route now follows the same thin-route pattern as infrastructure,
storage, and Patrol. `frontend-modern/src/pages/Operations.tsx` stays the route
shell, `frontend-modern/src/features/operations/OperationsPageSurface.tsx` owns
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index b954eb62db..9e5a508799 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -431,8 +431,10 @@
"frontend-modern/src/components/Settings/ProxmoxConfiguredNodesTable.tsx",
"frontend-modern/src/components/Settings/ProxmoxDeleteNodeDialog.tsx",
"frontend-modern/src/components/Settings/ProxmoxDirectConnectionsCard.tsx",
+ "frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx",
"frontend-modern/src/components/Settings/ProxmoxDiscoveryResultsCard.tsx",
"frontend-modern/src/components/Settings/ProxmoxNodeModalStack.tsx",
+ "frontend-modern/src/components/Settings/proxmoxSettingsModel.ts",
"frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx",
"frontend-modern/src/components/Settings/SettingsSectionNav.tsx",
"frontend-modern/src/components/Settings/UnifiedAgents.tsx",
@@ -440,7 +442,7 @@
"frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx",
"frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts",
"frontend-modern/src/components/Settings/useNodeModalState.ts",
- "frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.ts",
+ "frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts",
"frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx",
"frontend-modern/src/utils/agentInstallCommand.ts",
"frontend-modern/src/utils/agentProfilesPresentation.ts",
@@ -677,12 +679,14 @@
"frontend-modern/src/components/Settings/ProxmoxConfiguredNodesTable.tsx",
"frontend-modern/src/components/Settings/ProxmoxDeleteNodeDialog.tsx",
"frontend-modern/src/components/Settings/ProxmoxDirectConnectionsCard.tsx",
+ "frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx",
"frontend-modern/src/components/Settings/ProxmoxDiscoveryResultsCard.tsx",
"frontend-modern/src/components/Settings/ProxmoxNodeModalStack.tsx",
+ "frontend-modern/src/components/Settings/proxmoxSettingsModel.ts",
"frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx",
"frontend-modern/src/components/Settings/SettingsSectionNav.tsx",
"frontend-modern/src/components/Settings/useInfrastructureSettingsState.ts",
- "frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.ts"
+ "frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts"
],
"allow_same_subsystem_tests": false,
"test_prefixes": [],
diff --git a/frontend-modern/src/components/Settings/InfrastructureReportingPanel.tsx b/frontend-modern/src/components/Settings/InfrastructureReportingPanel.tsx
index 393fbf07a3..59de4802b5 100644
--- a/frontend-modern/src/components/Settings/InfrastructureReportingPanel.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureReportingPanel.tsx
@@ -3,7 +3,7 @@ import { AgentProfilesPanel } from './AgentProfilesPanel';
import { InfrastructureDirectConnectionsSummaryCard } from './InfrastructureDirectConnectionsSummaryCard';
import { InfrastructureInventorySection } from './InfrastructureInventorySection';
import { InfrastructureStopMonitoringDialog } from './InfrastructureStopMonitoringDialog';
-import type { ProxmoxSettingsPanelProps } from './ProxmoxSettingsPanel';
+import type { ProxmoxSettingsPanelProps } from './proxmoxSettingsModel';
import { InfrastructureOperationsStateProvider } from './useInfrastructureOperationsState';
interface InfrastructureReportingPanelProps extends ProxmoxSettingsPanelProps {
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 83e8acfd85..ce5019b3dc 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -4,13 +4,14 @@ import { Card } from '@/components/shared/Card';
import { Subtabs } from '@/components/shared/Subtabs';
import { InfrastructureInstallPanel } from './InfrastructureInstallPanel';
import { InfrastructureReportingPanel } from './InfrastructureReportingPanel';
-import { ProxmoxSettingsPanel, type ProxmoxSettingsPanelProps } from './ProxmoxSettingsPanel';
+import { ProxmoxSettingsPanel } from './ProxmoxSettingsPanel';
import {
INFRASTRUCTURE_WORKSPACE_TABS,
buildInfrastructureWorkspacePath,
getInfrastructureWorkspaceViewFromPath,
type InfrastructureWorkspaceView,
} from './infrastructureWorkspaceModel';
+import type { ProxmoxSettingsPanelProps } from './proxmoxSettingsModel';
export type InfrastructureWorkspaceProps = ProxmoxSettingsPanelProps;
diff --git a/frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx b/frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx
new file mode 100644
index 0000000000..7d9a9ede9c
--- /dev/null
+++ b/frontend-modern/src/components/Settings/ProxmoxDirectWorkspace.tsx
@@ -0,0 +1,97 @@
+import { Component, Show } from 'solid-js';
+import type { ToggleChangeEvent } from '@/components/shared/Toggle';
+import { ProxmoxConfiguredNodesTable } from './ProxmoxConfiguredNodesTable';
+import { ProxmoxDeleteNodeDialog } from './ProxmoxDeleteNodeDialog';
+import { ProxmoxDirectConnectionsCard } from './ProxmoxDirectConnectionsCard';
+import { ProxmoxDiscoveryResultsCard } from './ProxmoxDiscoveryResultsCard';
+import { ProxmoxNodeModalStack } from './ProxmoxNodeModalStack';
+import type { ProxmoxSettingsPanelProps } from './proxmoxSettingsModel';
+import { useProxmoxDirectWorkspaceState } from './useProxmoxDirectWorkspaceState';
+
+export const ProxmoxDirectWorkspace: Component<ProxmoxSettingsPanelProps> = (props) => {
+ const state = useProxmoxDirectWorkspaceState(props);
+
+ const handleDiscoveryToggle = async (event: ToggleChangeEvent) => {
+ const nextValue = await state.handleDiscoveryToggle(event.currentTarget.checked);
+ if (nextValue !== event.currentTarget.checked) {
+ event.preventDefault();
+ event.currentTarget.checked = nextValue;
+ }
+ };
+
+ return (
+ <>
+ <div class="space-y-6 mt-6">
+ <div class="space-y-4">
+ <ProxmoxDirectConnectionsCard
+ activeAgent={state.activeAgent()}
+ activeConfig={state.activeConfig()}
+ activeConfiguredNodes={state.activeConfiguredNodes()}
+ activeDiscoveredNodes={state.activeDiscoveredNodes()}
+ configuredTable={
+ <ProxmoxConfiguredNodesTable
+ activeAgent={state.activeAgent()}
+ pveNodes={props.pveNodes()}
+ pbsNodes={props.pbsNodes()}
+ pmgNodes={props.pmgNodes()}
+ agentStateResources={props.agentStateResources()}
+ pbsInstances={props.pbsInstances()}
+ pmgInstances={props.pmgInstances()}
+ temperatureMonitoringEnabled={props.temperatureMonitoringEnabled()}
+ onTestConnection={props.testNodeConnection}
+ onEditNode={state.openEditNode}
+ onDeleteNode={props.requestDeleteNode}
+ onRefreshClusterNodes={props.refreshClusterNodes}
+ />
+ }
+ discoveryEnabled={props.discoveryEnabled()}
+ envOverrides={props.envOverrides()}
+ initialLoadComplete={props.initialLoadComplete()}
+ onDiscoveryToggle={handleDiscoveryToggle}
+ onOpenCreateNode={state.openCreateNode}
+ onRefreshDiscovery={state.handleRefreshDiscovery}
+ savingDiscoverySettings={props.savingDiscoverySettings()}
+ />
+
+ <Show when={props.discoveryEnabled()}>
+ <ProxmoxDiscoveryResultsCard
+ activeConfig={state.activeConfig()}
+ activeDiscoveredNodes={state.activeDiscoveredNodes()}
+ discoveryScanStatus={props.discoveryScanStatus()}
+ hasDiscoveryTimeouts={state.hasDiscoveryTimeouts()}
+ onOpenDiscoveredNode={state.openDiscoveredNode}
+ />
+ </Show>
+ </div>
+ </div>
+
+ <Show when={props.showDeleteNodeModal()}>
+ <ProxmoxDeleteNodeDialog
+ deleteNodeLoading={props.deleteNodeLoading()}
+ nodePendingDeleteHost={props.nodePendingDeleteHost()}
+ nodePendingDeleteLabel={props.nodePendingDeleteLabel()}
+ nodePendingDeleteType={props.nodePendingDeleteType()}
+ nodePendingDeleteTypeLabel={props.nodePendingDeleteTypeLabel()}
+ onCancel={props.cancelDeleteNode}
+ onDelete={props.deleteNode}
+ />
+ </Show>
+
+ <ProxmoxNodeModalStack
+ modalResetKey={props.modalResetKey()}
+ prefillNode={state.prefillNode()}
+ editingNodeType={props.editingNode()?.type ?? null}
+ editingNode={props.editingNode}
+ isNodeModalVisible={props.isNodeModalVisible}
+ securityStatus={props.securityStatus()}
+ resolveTemperatureMonitoringEnabled={props.resolveTemperatureMonitoringEnabled}
+ temperatureMonitoringLocked={props.temperatureMonitoringLocked()}
+ savingTemperatureSetting={props.savingTemperatureSetting()}
+ handleNodeTemperatureMonitoringChange={props.handleNodeTemperatureMonitoringChange}
+ handleTemperatureMonitoringChange={props.handleTemperatureMonitoringChange}
+ saveNode={props.saveNode}
+ onClose={state.closeNodeModal}
+ />
+ </>
+ );
+};
diff --git a/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx b/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx
index 2ef311f5a5..b2f82ff776 100644
--- a/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx
+++ b/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx
@@ -1,85 +1,12 @@
-import { Component, Accessor, Setter, Show } from 'solid-js';
+import { Component, Show } from 'solid-js';
import { useNavigate } from '@solidjs/router';
-import type { Resource } from '@/types/resource';
-import type { PBSInstance, PMGInstance } from '@/types/api';
-import type { NodeConfig, NodeConfigWithStatus } from '@/types/nodes';
-import type { SecurityStatus as SecurityStatusInfo } from '@/types/config';
import { CalloutCard } from '@/components/shared/CalloutCard';
-import type { ToggleChangeEvent } from '@/components/shared/Toggle';
-import { ProxmoxConfiguredNodesTable } from './ProxmoxConfiguredNodesTable';
-import { ProxmoxDeleteNodeDialog } from './ProxmoxDeleteNodeDialog';
-import { ProxmoxDirectConnectionsCard } from './ProxmoxDirectConnectionsCard';
-import { ProxmoxDiscoveryResultsCard } from './ProxmoxDiscoveryResultsCard';
-import { ProxmoxNodeModalStack } from './ProxmoxNodeModalStack';
+import { ProxmoxDirectWorkspace } from './ProxmoxDirectWorkspace';
import { SettingsSectionNav } from './SettingsSectionNav';
-import { useProxmoxSettingsPanelState } from './useProxmoxSettingsPanelState';
-import type {
- DiscoveredServer,
- DiscoveryScanStatus,
- NodeType,
-} from './useInfrastructureSettingsState';
-
-type DiscoveryMode = 'auto' | 'custom';
-
-export interface ProxmoxSettingsPanelProps {
- selectedAgent: Accessor<NodeType>;
- onSelectAgent: (agent: NodeType) => void;
- initialLoadComplete: Accessor<boolean>;
- discoveryEnabled: Accessor<boolean>;
- discoveryMode: Accessor<DiscoveryMode>;
- discoveryScanStatus: Accessor<DiscoveryScanStatus>;
- discoveredNodes: Accessor<DiscoveredServer[]>;
- savingDiscoverySettings: Accessor<boolean>;
- envOverrides: Accessor<Record<string, boolean>>;
- agentStateResources: Accessor<Resource[]>;
- pbsInstances: Accessor<PBSInstance[]>;
- pmgInstances: Accessor<PMGInstance[]>;
- pveNodes: Accessor<NodeConfigWithStatus[]>;
- pbsNodes: Accessor<NodeConfigWithStatus[]>;
- pmgNodes: Accessor<NodeConfigWithStatus[]>;
- temperatureMonitoringEnabled: Accessor<boolean>;
- triggerDiscoveryScan: (options?: { quiet?: boolean }) => Promise<void>;
- loadDiscoveredNodes: () => Promise<void>;
- handleDiscoveryEnabledChange: (enabled: boolean) => Promise<boolean>;
- testNodeConnection: (nodeId: string) => void;
- requestDeleteNode: (node: NodeConfigWithStatus) => void;
- refreshClusterNodes: (nodeId: string) => Promise<void>;
- setShowNodeModal: Setter<boolean>;
- editingNode: Accessor<NodeConfigWithStatus | null>;
- setEditingNode: Setter<NodeConfigWithStatus | null>;
- setCurrentNodeType: Setter<NodeType>;
- modalResetKey: Accessor<number>;
- setModalResetKey: Setter<number>;
- isNodeModalVisible: (type: NodeType) => boolean;
- securityStatus: Accessor<SecurityStatusInfo | null>;
- resolveTemperatureMonitoringEnabled: (node?: NodeConfigWithStatus | null) => boolean;
- temperatureMonitoringLocked: Accessor<boolean>;
- savingTemperatureSetting: Accessor<boolean>;
- handleTemperatureMonitoringChange: (enabled: boolean) => Promise<void>;
- handleNodeTemperatureMonitoringChange: (nodeId: string, enabled: boolean | null) => Promise<void>;
- saveNode: (nodeData: Partial<NodeConfig>) => Promise<void>;
- showDeleteNodeModal: Accessor<boolean>;
- cancelDeleteNode: () => void;
- deleteNode: () => Promise<void>;
- deleteNodeLoading: Accessor<boolean>;
- nodePendingDeleteLabel: () => string;
- nodePendingDeleteHost: () => string;
- nodePendingDeleteType: () => string;
- nodePendingDeleteTypeLabel: () => string;
- embedded?: boolean;
-}
+import type { ProxmoxSettingsPanelProps } from './proxmoxSettingsModel';
export const ProxmoxSettingsPanel: Component<ProxmoxSettingsPanelProps> = (props) => {
const navigate = useNavigate();
- const state = useProxmoxSettingsPanelState(props);
-
- const handleDiscoveryToggle = async (event: ToggleChangeEvent) => {
- const nextValue = await state.handleDiscoveryToggle(event.currentTarget.checked);
- if (nextValue !== event.currentTarget.checked) {
- event.preventDefault();
- event.currentTarget.checked = nextValue;
- }
- };
return (
<>
@@ -125,77 +52,7 @@ export const ProxmoxSettingsPanel: Component<ProxmoxSettingsPanelProps> = (props
</CalloutCard>
</Show>
- <div class="space-y-6 mt-6">
- <div class="space-y-4">
- <ProxmoxDirectConnectionsCard
- activeAgent={state.activeAgent()}
- activeConfig={state.activeConfig()}
- activeConfiguredNodes={state.activeConfiguredNodes()}
- activeDiscoveredNodes={state.activeDiscoveredNodes()}
- configuredTable={
- <ProxmoxConfiguredNodesTable
- activeAgent={state.activeAgent()}
- pveNodes={props.pveNodes()}
- pbsNodes={props.pbsNodes()}
- pmgNodes={props.pmgNodes()}
- agentStateResources={props.agentStateResources()}
- pbsInstances={props.pbsInstances()}
- pmgInstances={props.pmgInstances()}
- temperatureMonitoringEnabled={props.temperatureMonitoringEnabled()}
- onTestConnection={props.testNodeConnection}
- onEditNode={state.openEditNode}
- onDeleteNode={props.requestDeleteNode}
- onRefreshClusterNodes={props.refreshClusterNodes}
- />
- }
- discoveryEnabled={props.discoveryEnabled()}
- envOverrides={props.envOverrides()}
- initialLoadComplete={props.initialLoadComplete()}
- onDiscoveryToggle={handleDiscoveryToggle}
- onOpenCreateNode={state.openCreateNode}
- onRefreshDiscovery={state.handleRefreshDiscovery}
- savingDiscoverySettings={props.savingDiscoverySettings()}
- />
-
- <Show when={props.discoveryEnabled()}>
- <ProxmoxDiscoveryResultsCard
- activeConfig={state.activeConfig()}
- activeDiscoveredNodes={state.activeDiscoveredNodes()}
- discoveryScanStatus={props.discoveryScanStatus()}
- hasDiscoveryTimeouts={state.hasDiscoveryTimeouts()}
- onOpenDiscoveredNode={state.openDiscoveredNode}
- />
- </Show>
- </div>
- </div>
-
- <Show when={props.showDeleteNodeModal()}>
- <ProxmoxDeleteNodeDialog
- deleteNodeLoading={props.deleteNodeLoading()}
- nodePendingDeleteHost={props.nodePendingDeleteHost()}
- nodePendingDeleteLabel={props.nodePendingDeleteLabel()}
- nodePendingDeleteType={props.nodePendingDeleteType()}
- nodePendingDeleteTypeLabel={props.nodePendingDeleteTypeLabel()}
- onCancel={props.cancelDeleteNode}
- onDelete={props.deleteNode}
- />
- </Show>
-
- <ProxmoxNodeModalStack
- modalResetKey={props.modalResetKey()}
- prefillNode={state.prefillNode()}
- editingNodeType={props.editingNode()?.type ?? null}
- editingNode={props.editingNode}
- isNodeModalVisible={props.isNodeModalVisible}
- securityStatus={props.securityStatus()}
- resolveTemperatureMonitoringEnabled={props.resolveTemperatureMonitoringEnabled}
- temperatureMonitoringLocked={props.temperatureMonitoringLocked()}
- savingTemperatureSetting={props.savingTemperatureSetting()}
- handleNodeTemperatureMonitoringChange={props.handleNodeTemperatureMonitoringChange}
- handleTemperatureMonitoringChange={props.handleTemperatureMonitoringChange}
- saveNode={props.saveNode}
- onClose={state.closeNodeModal}
- />
+ <ProxmoxDirectWorkspace {...props} />
</>
);
};
diff --git a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts
index b868968498..570383664f 100644
--- a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts
@@ -151,11 +151,12 @@ import relaySettingsPanelSource from '../RelaySettingsPanel.tsx?raw';
import relaySettingsPanelStateSource from '../useRelaySettingsPanelState.ts?raw';
import proxmoxDeleteNodeDialogSource from '../ProxmoxDeleteNodeDialog.tsx?raw';
import proxmoxConfiguredNodesTableSource from '../ProxmoxConfiguredNodesTable.tsx?raw';
+import proxmoxDirectWorkspaceSource from '../ProxmoxDirectWorkspace.tsx?raw';
import proxmoxDirectConnectionsCardSource from '../ProxmoxDirectConnectionsCard.tsx?raw';
import proxmoxDiscoveryResultsCardSource from '../ProxmoxDiscoveryResultsCard.tsx?raw';
import proxmoxNodeModalStackSource from '../ProxmoxNodeModalStack.tsx?raw';
import proxmoxSettingsPanelSource from '../ProxmoxSettingsPanel.tsx?raw';
-import proxmoxSettingsPanelStateSource from '../useProxmoxSettingsPanelState.ts?raw';
+import proxmoxDirectWorkspaceStateSource from '../useProxmoxDirectWorkspaceState.ts?raw';
import relayOnboardingCardSource from '@/components/Dashboard/RelayOnboardingCard.tsx?raw';
import generalSettingsPanelSource from '../GeneralSettingsPanel.tsx?raw';
import networkBoundarySettingsSectionSource from '../NetworkBoundarySettingsSection.tsx?raw';
@@ -355,12 +356,13 @@ describe('monitored-system model guardrails', () => {
expect(relayPairingSectionSource).toContain('getRelayDiagnosticClass');
expect(proxmoxSettingsPanelSource).toContain('CalloutCard');
expect(proxmoxSettingsPanelSource).not.toContain('Loading configuration...');
- expect(proxmoxSettingsPanelSource).toContain('./useProxmoxSettingsPanelState');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxConfiguredNodesTable');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDirectConnectionsCard');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDiscoveryResultsCard');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDeleteNodeDialog');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxNodeModalStack');
+ expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDirectWorkspace');
+ expect(proxmoxDirectWorkspaceSource).toContain('./useProxmoxDirectWorkspaceState');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxConfiguredNodesTable');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxDirectConnectionsCard');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxDiscoveryResultsCard');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxDeleteNodeDialog');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxNodeModalStack');
expect(proxmoxSettingsPanelSource).not.toContain('setPrefillNode(');
expect(proxmoxSettingsPanelSource).not.toContain('const renderConfiguredTable = () =>');
expect(proxmoxSettingsPanelSource).not.toContain('const renderNodeModal = (type: NodeType)');
@@ -371,7 +373,7 @@ describe('monitored-system model guardrails', () => {
expect(proxmoxDiscoveryResultsCardSource).toContain('formatRelativeTime');
expect(proxmoxDeleteNodeDialogSource).toContain('SectionHeader');
expect(proxmoxNodeModalStackSource).toContain('<NodeModal');
- expect(proxmoxSettingsPanelStateSource).toContain('buildProxmoxDiscoveryPrefillNode');
+ expect(proxmoxDirectWorkspaceStateSource).toContain('buildProxmoxDiscoveryPrefillNode');
expect(relayOnboardingCardSource).toContain('@/utils/relayPresentation');
expect(relayOnboardingCardSource).toContain('RELAY_ONBOARDING_TITLE');
expect(relayOnboardingCardSource).toContain('RELAY_ONBOARDING_DESCRIPTION');
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 4ec9483fde..58dfbe1480 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -87,11 +87,13 @@ import organizationBillingPanelSource from '../OrganizationBillingPanel.tsx?raw'
import organizationBillingStateSource from '../useOrganizationBillingPanelState.ts?raw';
import proxmoxDeleteNodeDialogSource from '../ProxmoxDeleteNodeDialog.tsx?raw';
import proxmoxConfiguredNodesTableSource from '../ProxmoxConfiguredNodesTable.tsx?raw';
+import proxmoxDirectWorkspaceSource from '../ProxmoxDirectWorkspace.tsx?raw';
import proxmoxDirectConnectionsCardSource from '../ProxmoxDirectConnectionsCard.tsx?raw';
import proxmoxDiscoveryResultsCardSource from '../ProxmoxDiscoveryResultsCard.tsx?raw';
import proxmoxNodeModalStackSource from '../ProxmoxNodeModalStack.tsx?raw';
+import proxmoxSettingsModelSource from '../proxmoxSettingsModel.ts?raw';
import proxmoxSettingsPanelSource from '../ProxmoxSettingsPanel.tsx?raw';
-import proxmoxSettingsPanelStateSource from '../useProxmoxSettingsPanelState.ts?raw';
+import proxmoxDirectWorkspaceStateSource from '../useProxmoxDirectWorkspaceState.ts?raw';
import securityOverviewPanelSource from '../SecurityOverviewPanel.tsx?raw';
import securityAuthPanelSource from '../SecurityAuthPanel.tsx?raw';
import ssoProvidersPanelSource from '../SSOProvidersPanel.tsx?raw';
@@ -197,12 +199,14 @@ const extractedModules = [
'../useSSOProvidersState.ts',
'../ssoProvidersModel.ts',
'../ProxmoxSettingsPanel.tsx',
+ '../ProxmoxDirectWorkspace.tsx',
'../ProxmoxConfiguredNodesTable.tsx',
'../ProxmoxDeleteNodeDialog.tsx',
'../ProxmoxDirectConnectionsCard.tsx',
'../ProxmoxDiscoveryResultsCard.tsx',
'../ProxmoxNodeModalStack.tsx',
- '../useProxmoxSettingsPanelState.ts',
+ '../proxmoxSettingsModel.ts',
+ '../useProxmoxDirectWorkspaceState.ts',
'../SettingsDialogs.tsx',
'../SettingsPageShell.tsx',
'../useDiscoverySettingsState.ts',
@@ -517,12 +521,18 @@ describe('Settings architecture guardrails', () => {
});
it('keeps the direct Proxmox settings workspace split into section owners', () => {
- expect(proxmoxSettingsPanelSource).toContain('./useProxmoxSettingsPanelState');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxConfiguredNodesTable');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDirectConnectionsCard');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDiscoveryResultsCard');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDeleteNodeDialog');
- expect(proxmoxSettingsPanelSource).toContain('./ProxmoxNodeModalStack');
+ expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDirectWorkspace');
+ expect(proxmoxSettingsPanelSource).toContain('./proxmoxSettingsModel');
+ expect(proxmoxSettingsPanelSource).toContain('CalloutCard');
+ expect(proxmoxSettingsPanelSource).toContain('SettingsSectionNav');
+ expect(proxmoxSettingsPanelSource).not.toContain('./useProxmoxSettingsPanelState');
+ expect(proxmoxSettingsPanelSource).not.toContain('./useProxmoxDirectWorkspaceState');
+ expect(proxmoxDirectWorkspaceSource).toContain('./useProxmoxDirectWorkspaceState');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxConfiguredNodesTable');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxDirectConnectionsCard');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxDiscoveryResultsCard');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxDeleteNodeDialog');
+ expect(proxmoxDirectWorkspaceSource).toContain('./ProxmoxNodeModalStack');
expect(proxmoxSettingsPanelSource).not.toContain('const renderConfiguredTable = () =>');
expect(proxmoxSettingsPanelSource).not.toContain('const renderNodeModal = (type: NodeType)');
expect(proxmoxSettingsPanelSource).not.toContain('No discovery matches for this Proxmox type yet.');
@@ -538,8 +548,13 @@ describe('Settings architecture guardrails', () => {
expect(proxmoxDeleteNodeDialogSource).toContain('What happens next');
expect(proxmoxNodeModalStackSource).toContain('PROXMOX_NODE_TYPES');
expect(proxmoxNodeModalStackSource).toContain('<NodeModal');
- expect(proxmoxSettingsPanelStateSource).toContain('export function useProxmoxSettingsPanelState');
- expect(proxmoxSettingsPanelStateSource).toContain("notificationStore.info('Refreshing discovery...'");
+ expect(proxmoxSettingsModelSource).toContain('export interface ProxmoxSettingsPanelProps');
+ expect(proxmoxDirectWorkspaceStateSource).toContain(
+ 'export function useProxmoxDirectWorkspaceState',
+ );
+ expect(proxmoxDirectWorkspaceStateSource).toContain(
+ "notificationStore.info('Refreshing discovery...'",
+ );
});
it('keeps organization sharing split into shell, state, and section owners', () => {
diff --git a/frontend-modern/src/components/Settings/proxmoxSettingsModel.ts b/frontend-modern/src/components/Settings/proxmoxSettingsModel.ts
new file mode 100644
index 0000000000..993f9d9999
--- /dev/null
+++ b/frontend-modern/src/components/Settings/proxmoxSettingsModel.ts
@@ -0,0 +1,60 @@
+import type { Accessor, Setter } from 'solid-js';
+import type { PBSInstance, PMGInstance } from '@/types/api';
+import type { SecurityStatus as SecurityStatusInfo } from '@/types/config';
+import type { NodeConfig, NodeConfigWithStatus } from '@/types/nodes';
+import type { Resource } from '@/types/resource';
+import type {
+ DiscoveredServer,
+ DiscoveryScanStatus,
+ NodeType,
+} from './useInfrastructureSettingsState';
+
+export type DiscoveryMode = 'auto' | 'custom';
+
+export interface ProxmoxSettingsPanelProps {
+ selectedAgent: Accessor<NodeType>;
+ onSelectAgent: (agent: NodeType) => void;
+ initialLoadComplete: Accessor<boolean>;
+ discoveryEnabled: Accessor<boolean>;
+ discoveryMode: Accessor<DiscoveryMode>;
+ discoveryScanStatus: Accessor<DiscoveryScanStatus>;
+ discoveredNodes: Accessor<DiscoveredServer[]>;
+ savingDiscoverySettings: Accessor<boolean>;
+ envOverrides: Accessor<Record<string, boolean>>;
+ agentStateResources: Accessor<Resource[]>;
+ pbsInstances: Accessor<PBSInstance[]>;
+ pmgInstances: Accessor<PMGInstance[]>;
+ pveNodes: Accessor<NodeConfigWithStatus[]>;
+ pbsNodes: Accessor<NodeConfigWithStatus[]>;
+ pmgNodes: Accessor<NodeConfigWithStatus[]>;
+ temperatureMonitoringEnabled: Accessor<boolean>;
+ triggerDiscoveryScan: (options?: { quiet?: boolean }) => Promise<void>;
+ loadDiscoveredNodes: () => Promise<void>;
+ handleDiscoveryEnabledChange: (enabled: boolean) => Promise<boolean>;
+ testNodeConnection: (nodeId: string) => void;
+ requestDeleteNode: (node: NodeConfigWithStatus) => void;
+ refreshClusterNodes: (nodeId: string) => Promise<void>;
+ setShowNodeModal: Setter<boolean>;
+ editingNode: Accessor<NodeConfigWithStatus | null>;
+ setEditingNode: Setter<NodeConfigWithStatus | null>;
+ setCurrentNodeType: Setter<NodeType>;
+ modalResetKey: Accessor<number>;
+ setModalResetKey: Setter<number>;
+ isNodeModalVisible: (type: NodeType) => boolean;
+ securityStatus: Accessor<SecurityStatusInfo | null>;
+ resolveTemperatureMonitoringEnabled: (node?: NodeConfigWithStatus | null) => boolean;
+ temperatureMonitoringLocked: Accessor<boolean>;
+ savingTemperatureSetting: Accessor<boolean>;
+ handleTemperatureMonitoringChange: (enabled: boolean) => Promise<void>;
+ handleNodeTemperatureMonitoringChange: (nodeId: string, enabled: boolean | null) => Promise<void>;
+ saveNode: (nodeData: Partial<NodeConfig>) => Promise<void>;
+ showDeleteNodeModal: Accessor<boolean>;
+ cancelDeleteNode: () => void;
+ deleteNode: () => Promise<void>;
+ deleteNodeLoading: Accessor<boolean>;
+ nodePendingDeleteLabel: () => string;
+ nodePendingDeleteHost: () => string;
+ nodePendingDeleteType: () => string;
+ nodePendingDeleteTypeLabel: () => string;
+ embedded?: boolean;
+}
diff --git a/frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.ts b/frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts
similarity index 94%
rename from frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.ts
rename to frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts
index b8b0736211..ee84e1d1e5 100644
--- a/frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.ts
+++ b/frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts
@@ -5,10 +5,10 @@ import {
getProxmoxVariantPresentation,
} from '@/utils/proxmoxSettingsPresentation';
import type { NodeConfig, NodeConfigWithStatus } from '@/types/nodes';
+import type { ProxmoxSettingsPanelProps } from './proxmoxSettingsModel';
import type { DiscoveredServer, NodeType } from './useInfrastructureSettingsState';
-import type { ProxmoxSettingsPanelProps } from './ProxmoxSettingsPanel';
-export function useProxmoxSettingsPanelState(props: ProxmoxSettingsPanelProps) {
+export function useProxmoxDirectWorkspaceState(props: ProxmoxSettingsPanelProps) {
const [prefillNode, setPrefillNode] = createSignal<Partial<NodeConfig> | null>(null);
const activeAgent = () => props.selectedAgent();
diff --git a/frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx b/frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx
index f8a955a647..f6af19d959 100644
--- a/frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx
+++ b/frontend-modern/src/components/Settings/useSettingsPanelRegistry.tsx
@@ -6,7 +6,7 @@ import { AICostDashboard } from '@/components/AI/AICostDashboard';
import { ProLicensePanel } from './ProLicensePanel';
import { SSOProvidersPanel } from './SSOProvidersPanel';
import { createSettingsPanelRegistry } from './settingsPanelRegistry';
-import type { ProxmoxSettingsPanelProps } from './ProxmoxSettingsPanel';
+import type { ProxmoxSettingsPanelProps } from './proxmoxSettingsModel';
import type { SettingsSystemPanels } from './useSettingsSystemPanels';
interface UseSettingsPanelRegistryParams {
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index c1c7598762..d05d06158a 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -208,8 +208,10 @@ import pmgQueuePresentationSource from '@/utils/pmgQueuePresentation.ts?raw';
import pmgServiceHealthBadgeSource from '@/components/PMG/ServiceHealthBadge.tsx?raw';
import proxmoxSettingsPanelSource from '@/components/Settings/ProxmoxSettingsPanel.tsx?raw';
import proxmoxConfiguredNodesTableSource from '@/components/Settings/ProxmoxConfiguredNodesTable.tsx?raw';
+import proxmoxDirectWorkspaceSource from '@/components/Settings/ProxmoxDirectWorkspace.tsx?raw';
import proxmoxNodeModalStackSource from '@/components/Settings/ProxmoxNodeModalStack.tsx?raw';
-import proxmoxSettingsPanelStateSource from '@/components/Settings/useProxmoxSettingsPanelState.ts?raw';
+import proxmoxSettingsModelSource from '@/components/Settings/proxmoxSettingsModel.ts?raw';
+import proxmoxDirectWorkspaceStateSource from '@/components/Settings/useProxmoxDirectWorkspaceState.ts?raw';
import infrastructureWorkspaceSource from '@/components/Settings/InfrastructureWorkspace.tsx?raw';
import infrastructureWorkspaceModelSource from '@/components/Settings/infrastructureWorkspaceModel.ts?raw';
import proxmoxSettingsPresentationSource from '@/utils/proxmoxSettingsPresentation.ts?raw';
@@ -2264,19 +2266,22 @@ describe('frontend resource type boundaries', () => {
expect(pmgThreatPresentationSource).toContain('export function getPMGThreatPresentation');
expect(pmgQueuePresentationSource).toContain('export function getPMGQueueTextClass');
expect(pmgServiceHealthBadgeSource).toContain('getServiceHealthPresentation');
- expect(proxmoxSettingsPanelSource).toContain('./useProxmoxSettingsPanelState');
+ expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDirectWorkspace');
expect(proxmoxSettingsPanelSource).not.toContain('const VARIANT_CONFIG: Record<NodeType');
expect(proxmoxSettingsPanelSource).not.toContain('const buildDiscoveryPrefillNode =');
- expect(proxmoxSettingsPanelSource).toContain('./useProxmoxSettingsPanelState');
+ expect(proxmoxDirectWorkspaceSource).toContain('./useProxmoxDirectWorkspaceState');
expect(proxmoxSettingsPanelSource).not.toContain('const openCreateNode = (type: NodeType) =>');
expect(proxmoxSettingsPanelSource).not.toContain('const openDiscoveredNode = (server: DiscoveredServer) =>');
expect(proxmoxConfiguredNodesTableSource).toContain('PveNodesTable');
expect(proxmoxConfiguredNodesTableSource).toContain('PbsNodesTable');
expect(proxmoxConfiguredNodesTableSource).toContain('PmgNodesTable');
expect(proxmoxNodeModalStackSource).toContain('PROXMOX_NODE_TYPES');
- expect(proxmoxSettingsPanelStateSource).toContain('export function useProxmoxSettingsPanelState');
- expect(proxmoxSettingsPanelStateSource).toContain('getProxmoxVariantPresentation');
- expect(proxmoxSettingsPanelStateSource).toContain('buildProxmoxDiscoveryPrefillNode');
+ expect(proxmoxSettingsModelSource).toContain('export interface ProxmoxSettingsPanelProps');
+ expect(proxmoxDirectWorkspaceStateSource).toContain(
+ 'export function useProxmoxDirectWorkspaceState',
+ );
+ expect(proxmoxDirectWorkspaceStateSource).toContain('getProxmoxVariantPresentation');
+ expect(proxmoxDirectWorkspaceStateSource).toContain('buildProxmoxDiscoveryPrefillNode');
expect(proxmoxSettingsPresentationSource).toContain(
'export const PROXMOX_VARIANT_PRESENTATION',
);
diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.py
index b37a2760d4..e9e81c4b67 100644
--- a/scripts/release_control/canonical_completion_guard_test.py
+++ b/scripts/release_control/canonical_completion_guard_test.py
@@ -1890,9 +1890,9 @@ class CanonicalCompletionGuardTest(unittest.TestCase):
"frontend-modern/src/components/Settings/InfrastructureDirectConnectionsSummaryCard.tsx"
)
- def test_proxmox_settings_panel_state_change_requires_agent_lifecycle(self):
+ def test_proxmox_direct_workspace_state_change_requires_agent_lifecycle(self):
self._assert_direct_proxmox_workspace_change_requires_agent_lifecycle(
- "frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.ts"
+ "frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts"
)
def test_infrastructure_installer_section_change_requires_agent_lifecycle(self):
diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.py
index 2209b9ff7c..d150ffd33f 100644
--- a/scripts/release_control/subsystem_lookup_test.py
+++ b/scripts/release_control/subsystem_lookup_test.py
@@ -1405,9 +1405,9 @@ class SubsystemLookupTest(unittest.TestCase):
],
)
- def test_lookup_paths_assigns_proxmox_settings_panel_state_to_agent_lifecycle(self) -> None:
+ def test_lookup_paths_assigns_proxmox_direct_workspace_state_to_agent_lifecycle(self) -> None:
result = lookup_paths(
- ["frontend-modern/src/components/Settings/useProxmoxSettingsPanelState.ts"]
+ ["frontend-modern/src/components/Settings/useProxmoxDirectWorkspaceState.ts"]
)
self.assertEqual(result["unowned_runtime_files"], [])
self.assertEqual(