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.

Clear the edit flow focus-return timer on disposal

rcourtmanfa27530a9b5b
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index bd57ed759f..6dd79f70a6 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,13 +1,13 @@
{
"version": 1,
- "base_sha": "020bfb111b6eed776f532012cba7e1f5a86f93ad",
- "verified_at": "2026-08-25T06:11:01Z",
+ "base_sha": "d3bfb3bb7bef7e67ea62b41940ac240082c74532",
+ "verified_at": "2026-08-25T07:11:13Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx"
+ "frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx": "9534ba8387f7a0fbce47b80faaf5df2e203f35f1869f54ea1de862c92f375c93"
+ "frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx": "cf2a0e35fc4f412a2dec9dad378630e747539ea7e38849cc77a2b66b8d61c162"
},
"routes": [
"/settings/infrastructure"
@@ -23,15 +23,13 @@
}
],
"states": [
- "Add Pulse Agent modal opened from Pulse Agent hosts Add",
- "install token generated so the commands section unlocked",
- "advanced connection and install options expanded",
- "Enable Pulse command execution checked showing the Pulse commands enabled panel",
- "checkbox unchecked returning to the default state"
+ "Infrastructure connected systems list with 57 manage targets",
+ "Manage Lab vCenter connection editor open",
+ "editor closed via Cancel returning to the list"
],
"interactions": [
- "clicked Show advanced connection and install options",
- "verified Skip TLS and Enable Pulse command execution labels render as stacked block rows (computed display flex, separate line boxes) at 1280px and 375px",
- "toggled Enable Pulse command execution on and confirmed the info panel appears, then toggled it off"
+ "opened the Manage editor for vmware:vc-mock-1 and closed it with Cancel at 1280px and 375px",
+ "confirmed focus returns to the row's manage control after the 250ms focus-return timer at both widths",
+ "checked the console for errors, only the pre-existing dev websocket proxy reconnect noise present"
]
}
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 4f60ed7b58..e6c3bfc898 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -1,4 +1,13 @@
-import { Component, Match, Show, Switch, createEffect, createMemo, createSignal } from 'solid-js';
+import {
+ Component,
+ Match,
+ Show,
+ Switch,
+ createEffect,
+ createMemo,
+ createSignal,
+ onCleanup,
+} from 'solid-js';
import { useLocation, useNavigate } from '@solidjs/router';
import X from 'lucide-solid/icons/x';
import { presentationPolicyIsReadOnly } from '@/stores/sessionPresentationPolicy';
@@ -280,6 +289,11 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
navigateToWorkspace(Boolean(routeStep()));
};
+ // The focus-return timeout can outlive this component (and, in tests, the
+ // DOM environment), so it must be cleared on disposal.
+ let focusReturnTimer: number | undefined;
+ onCleanup(() => window.clearTimeout(focusReturnTimer));
+
const closeEditFlow = () => {
const focusReturnConnectionId = editFocusReturnConnectionId();
const connection = editingConnection();
@@ -293,7 +307,8 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
setEditingRowSource(null);
setEditFocusReturnConnectionId(null);
if (focusReturnConnectionId && typeof document !== 'undefined') {
- window.setTimeout(() => {
+ window.clearTimeout(focusReturnTimer);
+ focusReturnTimer = window.setTimeout(() => {
const focusTarget = Array.from(
document.querySelectorAll<HTMLElement>('[data-infrastructure-manage-id]'),
).find(