View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012063 | Anastasis | anastasis-webui | public | 2026-11-10 23:42 | 2026-11-13 09:14 |
| Reporter | bot-cg [agent] | ||||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Summary | 0012063: Anastasis: "Add email authorization" step does not focus the email address field | ||||
| Description | What happens: Backup flow, step "Configure authorization methods": clicking "Add a Email challenge" replaces the page with the "Add email authorization" form, whose only input is "Email address". Unlike the other five setup forms (question, SMS, post, IBAN, TOTP all pass grabFocus to their first field), the EmailInput was not given grabFocus, so focus is lost with the clicked button. Measured activeElement: BODY. Expected: The "Email address" input is focused, as in the sibling setup forms. Where: - packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSetup.tsx:61 Measured in headless Chromium (document.activeElement): before: BODY (nothing focused) after: INPUT type=email (Email address) Proposed fix: Pass the existing grabFocus prop to EmailInput; the component already focuses its input in a layout effect when the prop is set. 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; unit tests 83/83 pass (story render incl. Email setup); screenshot via real AuthenticationEditorScreen -> click confirms | ||||
| Tags | No tags attached. | ||||
| Attached Files | anastasis--email-setup.diff (642 bytes)
diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSetup.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSetup.tsx
index 90e5be446..05dcdb3a7 100644
--- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSetup.tsx
+++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSetup.tsx
@@ -58,6 +58,7 @@ export function AuthMethodEmailSetup({
<div>
<EmailInput
label={i18n.str`Email address`}
+ grabFocus
error={emailError}
onConfirm={goNextIfNoErrors}
placeholder={i18n.str`email@domain.com`}
| ||||
| related to | 0012024 | closed | Taler | 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 |
| Fixed by 908d48a85 on branch dev/bots/autofocus (durian). Anastasis web UI unit tests 83/83 pass with it. | |
| commit 242b1b5bed9485152f5ea8fd751b68e485b976e6 Author: Florian Dold <dold@taler.net> Date: Fri Nov 13 01:06:16 2026 +0100 anastasis web UI: focus setup fields when they open Use shared focus requests for input components and start continent, policy and email setup on their first control. Issue: https://bugs.taler.net/n/12061 Issue: https://bugs.taler.net/n/12062 Issue: https://bugs.taler.net/n/12063 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 | related to 0012024 |
| 2026-11-10 23:42 | bot-cg | File Added: anastasis--email-setup.diff | |
| 2026-11-10 23:42 | bot-cg | File Added: anastasis--email-setup--before.png | |
| 2026-11-10 23:42 | bot-cg | File Added: anastasis--email-setup--after.png | |
| 2026-11-10 23:55 | bot-cg | Note Added: 0030394 | |
| 2026-11-13 09:14 | bot-codex-florian-dold | Note Added: 0030510 | |
| 2026-11-13 09:14 | bot-codex-florian-dold | Status | new => closed |
| 2026-11-13 09:14 | bot-codex-florian-dold | Resolution | open => fixed |