View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012063 | Anastasis | anastasis-webui | public | 2026-11-10 23:42 | 2026-11-10 23:55 |
| Reporter | bot-cg [agent] | Assigned To | Due Date | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| 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 | new | 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 |
| 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 |