View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012033 | Taler | auditor-webui | public | 2026-11-10 23:42 | 2026-11-18 17:07 |
| Reporter | bot-cg [agent] | ||||
| Communicator | CM_7 | ||||
| Priority | normal | Severity | trivial | ||
| Status | closed | Resolution | fixed | ||
| Target Version | 1.6 | Fixed in Version | 1.6 | ||
| Summary | 0012033: Auditor: 'Development settings' page does not focus the Auditor base URL field | ||||
| Description | What happens: #/dev (linked from the sidebar) is a page whose only purpose is editing one field, the auditor base URL override. Nothing is focused when it opens. Measured with the real Application at #/dev: BODY. Expected: The 'Auditor base URL' input is focused. Where: - packages/taler-auditor-webui/src/paths/developer/index.tsx:39 Measured in headless Chromium (document.activeElement): before: BODY after: INPUT#auditor-base-url Proposed fix: DeveloperSettings focuses the input from a mount-only effect (useRef + useEffect([])). Patch against taler-typescript-core master attached; the same change is committed on branch dev/bots/autofocus (durian). Screenshots attached (focused element outlined in red): 'before' is master, 'after' is with the patch. Verified: tsc --noEmit ok; eslint + prettier clean; real Application rendered in Chromium at #/dev, before and after | ||||
| Tags | No tags attached. | ||||
| Attached Files | auditor--developer-settings.diff (1,510 bytes)
diff --git a/packages/taler-auditor-webui/src/paths/developer/index.tsx b/packages/taler-auditor-webui/src/paths/developer/index.tsx
index b014380c7..b2dc4c64a 100644
--- a/packages/taler-auditor-webui/src/paths/developer/index.tsx
+++ b/packages/taler-auditor-webui/src/paths/developer/index.tsx
@@ -9,7 +9,7 @@
import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, h, VNode } from "preact";
-import { useState } from "preact/hooks";
+import { useEffect, useRef, useState } from "preact/hooks";
import { NotConnectedAppMenu } from "../../components/menu/index.js";
import { useBackendContext } from "../../context/backend.js";
import {
@@ -36,6 +36,11 @@ export function DeveloperSettings({
const { i18n } = useTranslationContext();
const [baseUrl, setBaseUrl] = useState(initialOverride ?? "");
const [error, setError] = useState<string>();
+ const baseUrlInput = useRef<HTMLInputElement>(null);
+ useEffect(() => {
+ // Editing this one field is the only purpose of the page.
+ baseUrlInput.current?.focus();
+ }, []);
function apply(): void {
const requestedUrl = baseUrl.trim();
@@ -83,6 +88,7 @@ export function DeveloperSettings({
<i18n.Translate>Auditor base URL</i18n.Translate>
</label>
<input
+ ref={baseUrlInput}
id="auditor-base-url"
name="auditor-base-url"
class={`auditor-input ${error ? "border-red-500" : ""}`}
| ||||
| child of | 0012024 | closed | Web UIs (bank, wallet, exchange AML/KYC, challenger, auditor, web-util forms): dialogs and single-purpose forms open without keyboard focus on the obvious field |
| commit 2f657b0baa918a3cd31d735b2b2eae5a2d149282 Author: Florian Dold <dold@taler.net> Date: Fri Nov 13 01:06:16 2026 +0100 auditor web UI: focus dialogs, navigation and server settings Start confirmations on Cancel and move focus into the mobile drawer. Restore the opener on close and focus the developer server URL field. Issue: https://bugs.taler.net/n/12031 Issue: https://bugs.taler.net/n/12032 Issue: https://bugs.taler.net/n/12033 Assisted-by: LLM commit c1ee0c1022645200e605a3f36ab4910a3750c180 Author: Florian Dold <dold@taler.net> Date: Fri Nov 13 01:06:11 2026 +0100 web-util: focus pages and form steps when their controls are ready FocusScope queues one initial focus request when a page, form or step opens. It waits for loading and cancels the request if the user moves focus. useFocusTarget retries pending focus when a control mounts. Explicit requestFocus calls run immediately and return success or failure. Issue: https://bugs.taler.net/n/12002 Issue: https://bugs.taler.net/n/12024 Assisted-by: LLM | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-10 23:42 | bot-cg | New Issue | |
| 2026-11-10 23:42 | bot-cg | Relationship added | child of 0012024 |
| 2026-11-10 23:42 | bot-cg | File Added: auditor--developer-settings.diff | |
| 2026-11-10 23:42 | bot-cg | File Added: auditor--developer-settings--before.png | |
| 2026-11-10 23:42 | bot-cg | File Added: auditor--developer-settings--after.png | |
| 2026-11-11 16:28 | Christian Grothoff | Severity | tweak => trivial |
| 2026-11-13 09:12 | bot-codex-florian-dold | Note Added: 0030481 | |
| 2026-11-13 09:12 | bot-codex-florian-dold | Status | new => closed |
| 2026-11-13 09:12 | bot-codex-florian-dold | Resolution | open => fixed |
| 2026-11-18 17:02 | Christian Grothoff | Target Version | => 1.6 |
| 2026-11-18 17:07 | Christian Grothoff | Fixed in Version | => 1.6 |