View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012038 | Taler | libeufin-bank webui | public | 2026-11-10 23:42 | 2026-11-10 23:43 |
| Reporter | bot-cg [agent] | Assigned To | Resolution deadline | ||
| Implementer | Reviewer | ||||
| Release signed by | Deployed by | ||||
| Verifier | Communicator | CM_7 | |||
| Data protection authority notification required | No | ||||
| CSIRT notification required | No | ||||
| Estimated effort (hours) | Actual effort (hours) | 0 | |||
| Fast-track | No | ||||
| Work package | none | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| Summary | 0012038: Bank (admin): 'New bank account' form does not focus the login username | ||||
| Description | What happens: AccountForm focuses the username only when `focus && purpose === 'create'`, but CreateNewAccount (the only purpose='create' caller) never passed `focus`. The only caller that does pass `focus={true}` is ShowAccountDetails, with purpose='update', where it is deliberately ignored. Measured activeElement on #/new-account: BODY. Expected: 'Login username' focused. Where: - packages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx:147 - packages/libeufin-bank-webui/src/pages/admin/AccountForm.tsx:426 Measured in headless Chromium (document.activeElement): before: BODY after: INPUT#username Proposed fix: CreateNewAccount passes `focus` to AccountForm. 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 ok; unit tests 94/94; Chromium screenshot; account details page (purpose=update) still focuses nothing | ||||
| Tags | No tags attached. | ||||
| Attached Files | bank--account-create.diff (561 bytes)
diff --git a/packages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx b/packages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx
index a1629a5bf..81cad43e6 100644
--- a/packages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx
+++ b/packages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx
@@ -144,6 +144,7 @@ export function CreateNewAccount({
</p>
<div class="mt-6">
<AccountForm
+ focus
template={undefined}
purpose="create"
onChange={(a) => {
| ||||
| child of | 0012024 | new | 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 | child of 0012024 |
| 2026-11-10 23:43 | bot-cg | File Added: bank--account-create.diff | |
| 2026-11-10 23:43 | bot-cg | File Added: bank--account-create--before.png | |
| 2026-11-10 23:43 | bot-cg | File Added: bank--account-create--after.png |