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.

Keep mounted infrastructure state current

pulse-triage[bot]8fe9f3a80865
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index 273ee87c2a..e74911e30e 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -4975,6 +4975,12 @@ surface:
`NodeModalBasicInfoSection.tsx`, `NodeModalClusterMembersSection.tsx`,
`NodeModalAuthenticationSection.tsx`, `NodeModalMonitoringSection.tsx`,
`NodeModalStatusFooter.tsx`, `nodeModalModel.ts`, and `useNodeModalState.ts`.
+Because the infrastructure ledger continues polling while that editor remains
+mounted, `NodeCredentialSlot.tsx` must pass the current configured node and
+security/temperature settings into `useNodeModalState.ts` as reactive
+accessors rather than mount-time snapshots. An untouched form adopts a newer
+server snapshot; the modal state's dirty guard remains the authority that
+prevents a refresh from replacing operator edits in progress.
The cluster members section is the canonical manual override surface for
per-member connection addresses on an existing PVE cluster: it writes only
`ClusterEndpoints[n].IPOverride` through the write-only
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 7ce8a75279..a729fcffb4 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -8352,6 +8352,13 @@ setup surface
canonical validation errors
directly rather than collapsing one node-type pane back to generic
copy-generation failure.
+That extracted consumer also remains live against the canonical configured-node
+projection while the infrastructure ledger polls: `NodeCredentialSlot.tsx`
+must expose the current node and shared security/temperature settings to
+`useNodeModalState.ts` as reactive accessors, not copied modal properties.
+Untouched API-backed fields therefore adopt a refreshed server projection,
+while the state owner's dirty guard continues to protect in-progress edits
+from polling updates.
Hosted organization-route gating now also falls under this API payload
boundary: when hosted tenants hit organization membership or billing surfaces
through `internal/api/org_handlers.go` and `internal/api/router.go`, inactive
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index a65eeefd49..2144f59eed 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,14 +1,16 @@
{
"version": 1,
- "base_sha": "74c553aae330d2b8a0bfecc22124b40ef10c95d3",
- "verified_at": "2026-09-04T02:18:06Z",
+ "base_sha": "485e19600f8bb8b9126fd4f2ab7e9fa2f525d808",
+ "verified_at": "2026-09-04T14:39:20Z",
"result": "passed",
- "changed_paths": ["frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx"],
+ "changed_paths": [
+ "frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx"
+ ],
"content_sha256": {
- "frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx": "508b628748732e42dee19775fa3e0571fee0617dad8c2d28633bf7201887f904"
+ "frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx": "24ea681203713d0ddeeb75f49509876c38bfec73fddaaabe730f9b0ad69e0cf4"
},
"routes": [
- "/settings/infrastructure (managed local backend with a two-node Proxmox cluster fixture)"
+ "/settings/infrastructure (managed local backend with a routed two-node Proxmox cluster fixture)"
],
"viewports": [
{
@@ -18,19 +20,22 @@
{
"width": 393,
"height": 727
+ },
+ {
+ "width": 390,
+ "height": 664
}
],
"states": [
- "Manage dialog open for an expanded two-node Proxmox cluster at desktop and narrow widths",
- "Unsaved node name, Host Telemetry Agent section and certificate checkbox retained after a 15-second connection-ledger poll",
- "Manage dialog closed with the settings scroll position preserved and deliberate onward focus retained beyond the delayed fallback",
- "Manage dialog reopened and a duplicate presentation label saved against the second node's immutable identity"
+ "Manage dialog with unsaved node name, Host Telemetry Agent strategy and SSL verification retained after a 15-second connection-ledger poll",
+ "Expanded two-node Proxmox cluster editor open at desktop, Pixel and iPhone widths",
+ "Manage dialog dismissed with the infrastructure workspace scroll position and deliberate onward focus retained",
+ "Manage dialog reopened with immutable cluster-member display-name save targeting"
],
"interactions": [
- "Expanded the cluster members, opened Manage, inspected the dialog pixels and native-node diagnostics",
- "Edited fields, changed the active section and advanced the polling clock while checking the mounted editor state",
- "Closed Manage, claimed Add infrastructure focus without scrolling, waited beyond the 250ms fallback and checked focus plus scroll position",
- "Reopened Manage, saved the second member's display label and verified the PUT payload retained the cluster host and immutable node identity",
- "Inspected the narrow open dialog and the closed desktop and narrow states for placement, clipping, scrolling, fixed-navigation overlap and responsive layout"
+ "Edited the node name, changed setup strategy, enabled certificate verification and advanced the production polling clock while checking retained state and refreshed dialog context",
+ "Inspected desktop, Pixel and iPhone captures for placement, clipping, wrapping, scrolling, backdrop containment and close-control reachability",
+ "Closed Manage, moved focus to Add infrastructure without scrolling and waited beyond the delayed row-focus fallback",
+ "Reopened Manage, changed the second member display label and verified the PUT remained scoped to its immutable identity"
]
}
diff --git a/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx b/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx
index 986ad8603e..b1d4e70a51 100644
--- a/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx
+++ b/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx
@@ -64,16 +64,28 @@ export const NodeCredentialSlot: Component<NodeCredentialSlotProps> = (props) =>
const modalProps: NodeModalProps = {
isOpen: true,
nodeType: props.nodeType,
- editingNode: props.editingNode ?? undefined,
+ // Infrastructure polling replaces the configured-node object while this
+ // slot deliberately remains mounted. Keep that prop reactive so an
+ // untouched form can adopt the latest server snapshot; useNodeModalState
+ // owns the complementary dirty guard that protects user edits.
+ get editingNode() {
+ return props.editingNode ?? undefined;
+ },
prefillNode: prefill,
onClose: props.onCancel,
onSave: handleSave,
- securityStatus: props.settings.securityStatus() ?? undefined,
- temperatureMonitoringEnabled: props.settings.resolveTemperatureMonitoringEnabled(
- props.editingNode ?? null,
- ),
- temperatureMonitoringLocked: props.settings.temperatureMonitoringLocked(),
- savingTemperatureSetting: props.settings.savingTemperatureSetting(),
+ get securityStatus() {
+ return props.settings.securityStatus() ?? undefined;
+ },
+ get temperatureMonitoringEnabled() {
+ return props.settings.resolveTemperatureMonitoringEnabled(props.editingNode ?? null);
+ },
+ get temperatureMonitoringLocked() {
+ return props.settings.temperatureMonitoringLocked();
+ },
+ get savingTemperatureSetting() {
+ return props.settings.savingTemperatureSetting();
+ },
setupHandoffDisabled: () => Boolean(props.importCandidate && !importApproved()),
setupHandoffDisabledReason: importApprovalRequiredMessage,
onToggleTemperatureMonitoring: async (enabled) => {
diff --git a/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/__tests__/NodeCredentialSlot.test.tsx b/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/__tests__/NodeCredentialSlot.test.tsx
index eaaa5a6b23..8f10eee58c 100644
--- a/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/__tests__/NodeCredentialSlot.test.tsx
+++ b/frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/__tests__/NodeCredentialSlot.test.tsx
@@ -1,4 +1,5 @@
-import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';
+import { cleanup, fireEvent, render, screen, waitFor } from '@solidjs/testing-library';
+import { createSignal } from 'solid-js';
import { afterEach, describe, expect, it, vi } from 'vitest';
import type { InfrastructurePlatformSettingsProps } from '@/components/Settings/proxmoxSettingsModel';
import type { NodeConfigWithStatus } from '@/types/nodes';
@@ -21,6 +22,48 @@ const createSettings = (): InfrastructurePlatformSettingsProps =>
describe('NodeCredentialSlot', () => {
afterEach(() => cleanup());
+ it('syncs an untouched mounted editor to a refreshed node snapshot', async () => {
+ const settings = createSettings();
+ const initialNode = {
+ id: 'pve-0',
+ type: 'pve',
+ name: 'homelab',
+ host: 'https://pve1.local:8006',
+ user: '',
+ tokenName: 'root@pam!pulse',
+ hasToken: true,
+ verifySSL: false,
+ status: 'connected',
+ } as unknown as NodeConfigWithStatus;
+ const [editingNode, setEditingNode] = createSignal(initialNode);
+
+ render(() => (
+ <NodeCredentialSlot
+ nodeType="pve"
+ settings={settings}
+ editingNode={editingNode()}
+ onCancel={vi.fn()}
+ onSaved={vi.fn()}
+ />
+ ));
+
+ expect(screen.getByLabelText(/^Endpoint URL/)).toHaveValue('https://pve1.local:8006');
+ expect(screen.getByRole('checkbox', { name: 'Verify SSL certificate' })).not.toBeChecked();
+
+ setEditingNode({
+ ...initialNode,
+ host: 'https://pve1-refreshed.local:8006',
+ verifySSL: true,
+ } as NodeConfigWithStatus);
+
+ await waitFor(() => {
+ expect(screen.getByLabelText(/^Endpoint URL/)).toHaveValue(
+ 'https://pve1-refreshed.local:8006',
+ );
+ expect(screen.getByRole('checkbox', { name: 'Verify SSL certificate' })).toBeChecked();
+ });
+ });
+
it('requires candidate import plan approval before guided setup handoff or manual save', () => {
render(() => (
<NodeCredentialSlot
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 50269e3e85..173c337542 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -1725,6 +1725,15 @@ describe('settings architecture guardrails', () => {
);
expect(nodeCredentialSlotSource).toContain('useNodeModalState(modalProps)');
+ // The workspace deliberately remains mounted while its connection ledger
+ // polls. Preserve reactive inputs here so untouched forms adopt a newer
+ // server projection; useNodeModalState owns the dirty-edit guard.
+ expect(nodeCredentialSlotSource).toContain('get editingNode()');
+ expect(nodeCredentialSlotSource).toContain('get securityStatus()');
+ expect(nodeCredentialSlotSource).toContain('get temperatureMonitoringEnabled()');
+ expect(nodeCredentialSlotSource).toContain('get temperatureMonitoringLocked()');
+ expect(nodeCredentialSlotSource).toContain('get savingTemperatureSetting()');
+ expect(nodeCredentialSlotSource).not.toContain('editingNode: props.editingNode');
expect(nodeCredentialSlotSource).toContain('<NodeModalBasicInfoSection');
expect(nodeCredentialSlotSource).toContain('<NodeModalAuthenticationSection');
expect(nodeCredentialSlotSource).toContain('<NodeModalMonitoringSection');
diff --git a/tests/integration/tests/91-proxmox-node-display-names.spec.ts b/tests/integration/tests/91-proxmox-node-display-names.spec.ts
index 6329b06e7e..d550fac0f9 100644
--- a/tests/integration/tests/91-proxmox-node-display-names.spec.ts
+++ b/tests/integration/tests/91-proxmox-node-display-names.spec.ts
@@ -230,6 +230,7 @@ test.describe('Proxmox cluster node display names', () => {
await expect(nodeName).toHaveValue('Unsaved cluster label');
await expect(dialog.getByText('Host telemetry agent', { exact: true })).toBeVisible();
await expect(verifyCertificate).toBeChecked();
+ await page.screenshot({ path: test.info().outputPath('manage-dialog-poll-retained.png') });
});
test('keeps native diagnostics while saving by immutable identity', async ({ page }, testInfo) => {