View Issue Details

IDProjectCategoryView StatusLast Update
0012024Talerotherpublic2026-11-18 17:07
Reporterbot-cg [agent]  
CommunicatorCM_7  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
Target Version1.6Fixed in Version1.6 
Summary0012024: 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
DescriptionCompanion to the merchant-portal issue of the same audit, covering the other web UIs in taler-typescript-core (children of this issue; the Anastasis web UI cases are filed in the Anastasis project and related to this one).

Notable: the web-util form framework's `focus` flag has been inert since 15f551608 commented out the focus call in InputLine (it had made every field re-grab focus on each keystroke). The fix focuses the first fillable field once on mount; the AML, KYC and challenger form fixes depend on it. In the bank, the MFA dialog left focus on the 'Send transfer' button behind it, so Enter re-submitted the operation; several bank pages lost their focus when a402cc1a2 stopped passing `focus`. In the challenger, the PIN field's inline ref re-focused it every second during the resend countdown.

Why this keeps happening: Preact does not implement autoFocus. It only sets the HTML autofocus attribute, which browsers honour once per document (initial load), so in these single-page apps a field rendered later, such as a dialog, a wizard step or a new route, stays unfocused unless code calls focus() on mount. Several components accept a `focus` prop that nothing passes or nothing acts on.

Each child issue describes one dialog/screen/component, with before/after screenshots and a patch. All fixes are on branch dev/bots/autofocus (durian); the commit ids are added as a note here. Rules followed: focus the only input of a PIN/code prompt; the first empty field of a create/edit form or step; the safe choice (Cancel) of a confirmation without input, never the destructive action; keep overview/list pages and review-and-pay steps unfocused; focus once on mount or step change, never on re-render.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

The plan

IDSummaryStatusLocked byEstimated effort (hours)
0012025AML: 'Session locked' page does not focus the password field closed
0012026AML: 'Create session' (officer key creation) does not focus the password field closed
0012027AML: 'Find account' does not focus the account identifier field closed
0012028AML decision wizard: 'Case disposition' step does not focus the decision rationale closed
0012029AML decision wizard: 'Create custom measure' does not focus the Name field closed
0012030AML decision wizard: 'Add proposed rule' editor opens without focus closed
0012031Auditor: 'Suppress the row' confirmation does not move focus into the dialog closed
0012032Auditor: mobile navigation drawer opens without moving focus into it closed
0012033Auditor: 'Development settings' page does not focus the Auditor base URL field closed
0012034Bank: multi-factor authentication dialog leaves focus on the button behind the overlay closed
0012035Bank: 'Send bank transfer' page does not focus the recipient (or the reference when the recipient comes from the link) closed
0012036Bank: 'Withdraw to Taler Wallet' page does not focus the amount closed
0012037Bank: 'Cash out' page does not focus the transfer reference closed
0012038Bank (admin): 'New bank account' form does not focus the login username closed
0012039Bank: 'Update password' page does not focus the password field closed
0012040Bank: 'Delete account' confirmation does not focus the type-the-name input closed
0012041Bank (admin): 'New conversion rate class' does not focus the name, and its form would focus the description closed
0012042Bank: withdrawal confirmation dialog focuses its heading even when the user must type the cash amount or a password closed
0012043Challenger: code entry pulls focus back to the PIN field every second during the resend countdown closed
0012044Challenger: address entry form (email/phone/postal, initial and change) does not focus its first field closed
0012045Challenger: developer 'Create a verification session' form does not focus the client password (or redirect URL) closed
0012046KYC: opening a requirement's form does not focus its first field closed
0012047Wallet: Send money / Request money form does not focus the amount closed
0012048Wallet: Deposit to a bank account does not focus the amount closed
0012049Wallet: Withdraw screen's existing amount auto-focus never fires on #/withdraw closed
0012050Wallet: 'Enter a wallet link' page does not focus the link field closed
0012051Wallet: 'Create payment' (merchant payment template) form does not focus the first editable field closed
0012052Wallet: donation-receipt setup does not focus the field to fill in closed
0012053Wallet: Bank accounts 'Edit' / 'Add bank account' leave focus on the button; the opened form can be off-screen closed
0012054Wallet: shared ConfirmationDialog focuses an extra body action instead of Cancel (durability prompt) closed
0012055Wallet: '•••' overflow menu opens without moving focus into the menu closed
0012056Wallet demo: 'Scenarios' menu opens without moving focus into the menu closed
0012057web-util: Forms: `<FormUI focus>` and the per-field `focus` prop never focus anything closed1
0012058web-util: Terms of service form: 'Read terms' is not focused, and the terms reader moves focus back to its × button whenever the page re-renders closed
0012059web-util: Date fields: the calendar dialog opens with focus left behind the overlay, and closing it drops focus to the page body closed
0012060web-util: Header settings panel: closing it with × drops focus to the page body closed
This issue (hours)
Its children (hours)1
Together (hours)1
Nothing is missing: the plan can be finished.

Relationships

parent of 0012025 closed Taler AML: 'Session locked' page does not focus the password field 
parent of 0012026 closed Taler AML: 'Create session' (officer key creation) does not focus the password field 
parent of 0012027 closed Taler AML: 'Find account' does not focus the account identifier field 
parent of 0012028 closed Taler AML decision wizard: 'Case disposition' step does not focus the decision rationale 
parent of 0012029 closed Taler AML decision wizard: 'Create custom measure' does not focus the Name field 
parent of 0012030 closed Taler AML decision wizard: 'Add proposed rule' editor opens without focus 
parent of 0012031 closed Taler Auditor: 'Suppress the row' confirmation does not move focus into the dialog 
parent of 0012032 closed Taler Auditor: mobile navigation drawer opens without moving focus into it 
parent of 0012033 closed Taler Auditor: 'Development settings' page does not focus the Auditor base URL field 
parent of 0012034 closed Taler Bank: multi-factor authentication dialog leaves focus on the button behind the overlay 
parent of 0012035 closed Taler Bank: 'Send bank transfer' page does not focus the recipient (or the reference when the recipient comes from the link) 
parent of 0012036 closed Taler Bank: 'Withdraw to Taler Wallet' page does not focus the amount 
parent of 0012037 closed Taler Bank: 'Cash out' page does not focus the transfer reference 
parent of 0012038 closed Taler Bank (admin): 'New bank account' form does not focus the login username 
parent of 0012039 closed Taler Bank: 'Update password' page does not focus the password field 
parent of 0012040 closed Taler Bank: 'Delete account' confirmation does not focus the type-the-name input 
parent of 0012041 closed Taler Bank (admin): 'New conversion rate class' does not focus the name, and its form would focus the description 
parent of 0012042 closed Taler Bank: withdrawal confirmation dialog focuses its heading even when the user must type the cash amount or a password 
parent of 0012043 closed Taler Challenger: code entry pulls focus back to the PIN field every second during the resend countdown 
parent of 0012044 closed Taler Challenger: address entry form (email/phone/postal, initial and change) does not focus its first field 
parent of 0012045 closed Taler Challenger: developer 'Create a verification session' form does not focus the client password (or redirect URL) 
parent of 0012046 closed Taler KYC: opening a requirement's form does not focus its first field 
parent of 0012047 closed Taler Wallet: Send money / Request money form does not focus the amount 
parent of 0012048 closed Taler Wallet: Deposit to a bank account does not focus the amount 
parent of 0012049 closed Taler Wallet: Withdraw screen's existing amount auto-focus never fires on #/withdraw 
parent of 0012050 closed Taler Wallet: 'Enter a wallet link' page does not focus the link field 
parent of 0012051 closed Taler Wallet: 'Create payment' (merchant payment template) form does not focus the first editable field 
parent of 0012052 closed Taler Wallet: donation-receipt setup does not focus the field to fill in 
parent of 0012053 closed Taler Wallet: Bank accounts 'Edit' / 'Add bank account' leave focus on the button; the opened form can be off-screen 
parent of 0012054 closed Taler Wallet: shared ConfirmationDialog focuses an extra body action instead of Cancel (durability prompt) 
parent of 0012055 closed Taler Wallet: '•••' overflow menu opens without moving focus into the menu 
parent of 0012056 closed Taler Wallet demo: 'Scenarios' menu opens without moving focus into the menu 
parent of 0012057 closed Taler web-util: Forms: `<FormUI focus>` and the per-field `focus` prop never focus anything 
parent of 0012058 closed Taler web-util: Terms of service form: 'Read terms' is not focused, and the terms reader moves focus back to its × button whenever the page re-renders 
parent of 0012059 closed Taler web-util: Date fields: the calendar dialog opens with focus left behind the overlay, and closing it drops focus to the page body 
parent of 0012060 closed Taler web-util: Header settings panel: closing it with × drops focus to the page body 
related to 0012061 closed Anastasis Anastasis: "Where do you live?" step does not focus the continent selector 
related to 0012062 closed Anastasis Anastasis: "New/Edit recovery policy" form does not focus its first provider selector 
related to 0012063 closed Anastasis Anastasis: "Add email authorization" step does not focus the email address field 

Activities

bot-cg [agent]

2026-11-10 23:55

updater   ~0030390

Fixes for this issue and all its children are on branch dev/bots/autofocus (durian), rebased on master bf2e571a2:

  e4cfe1bd2 web-util: honour the focus flag in forms and dialogs
  c0c3962de merchant web UI: keep tutorial previews from taking focus
  4693f4f1d merchant web UI: focus the code field in verification steps
  8a4eb4219 merchant web UI: start dialogs and create forms on their first field
  b48f5dd89 bank web UI: focus the field each page and dialog asks for
  216b033fe wallet web UI: focus the amount or field each form asks for first
  908d48a85 anastasis web UI: focus the first field of three setup steps
  dbbabcf82 exchange AML web UI: focus the password, search and decision fields
  21293f654 exchange KYC web UI: focus the first fillable field of a requirement form
  eaec0bcf6 challenger web UI: focus the address form and stop re-focusing the PIN
  150044e2b auditor web UI: move focus into the suppress dialog and the menu drawer

Unit tests with the branch: web-util 64/64, bank 107/107, anastasis 83/83, AML 69/69, KYC 1/1, challenger 12/12, auditor 23/23, wallet 322/322 (wallet run before the rebase onto bf2e571a2: on current master wallet-webui does not compile, 29 errors in its observation code, identical without this branch; the branch touches none of those files). tsc clean in all other packages.

The AML (0012025-0012030), KYC (0012046) and challenger address-form (0012044) fixes depend on the web-util form fix (0012057, commit e4cfe1bd2).

bot-codex-florian-dold

2026-11-13 09:14

manager   ~0030512

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 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 fb42fd4355e0f9dc8380fcdee369a640fce00ee8
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:16 2026 +0100

    challenger web UI: focus address and code steps once
    
    Focus the first editable setup or address field. Key code focus by the
    challenge session so resend countdowns do not move the cursor.
    
    Issue: https://bugs.taler.net/n/12043
    Issue: https://bugs.taler.net/n/12044
    Issue: https://bugs.taler.net/n/12045
    Assisted-by: LLM

commit 66a3f3f16c0dde2feda831e29101ee60ba8ad656
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:16 2026 +0100

    exchange web UIs: focus AML and KYC form fields
    
    Enable form focus for session unlock, account search, decision fields
    and KYC requirements. Focus new measure forms without changing edit
    mode.
    
    Issue: https://bugs.taler.net/n/12024
    Assisted-by: LLM

commit 77059d755ede815e5d14a5f0c77d8e487023b864
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:16 2026 +0100

    wallet web UI: focus active forms, menus and confirmations
    
    Focus amount and account fields when their forms are ready. Restore menu
    and dialog openers, and leave focus alone during background updates.
    
    Confirmations start on an editable field, including acknowledgement
    checkboxes and selects, or Cancel when there is no field to fill in.
    
    Issue: https://bugs.taler.net/n/12024
    Issue: https://bugs.taler.net/n/12054
    Assisted-by: LLM

commit 88ab3b1df4d96da97cccecc935c5f25047db414f
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:16 2026 +0100

    bank web UI: focus forms and authentication dialogs
    
    Focus the first field that still needs input, including linked transfers
    and password changes. Use dialog focus handling for MFA and native
    withdrawal confirmations.
    
    Choose the withdrawal field after showModal(), so loading account
    details does not determine when the field receives focus.
    
    Issue: https://bugs.taler.net/n/12024
    Issue: https://bugs.taler.net/n/12034
    Issue: https://bugs.taler.net/n/12042
    Assisted-by: LLM

commit be277f9e6cb0db916464e05020eb757b74ea3e23
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:16 2026 +0100

    web-util: manage focus in the calendar, terms and settings dialogs
    
    Use dialog focus handling for entry, Escape and opener restoration.
    Start the calendar on the selected day and the terms reader on Close.
    
    Issue: https://bugs.taler.net/n/12058
    Issue: https://bugs.taler.net/n/12059
    Issue: https://bugs.taler.net/n/12060
    Assisted-by: LLM

commit bee154f5ddb07d01986a5ddf830a5105fbf0ae1f
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:16 2026 +0100

    web-util: honour form focus on one editable control
    
    FormUI chooses one field across all visible sections. Each field exposes
    its primary control to the form; standalone fields keep their focus
    flag.
    
    Issue: https://bugs.taler.net/n/12057
    Assisted-by: LLM

commit d8eedea1529d070bd176c70e365ac963615a5d56
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:16 2026 +0100

    web UIs: keep previews from taking keyboard focus
    
    FocusPolicy blocks automatic focus until the reader interacts with a
    preview. The policy follows components through portals.
    
    Issue: https://bugs.taler.net/n/12002
    Issue: https://bugs.taler.net/n/12024
    Assisted-by: LLM

commit 0db14837db18a79a4bee3ca81c0137bc20c01f92
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:14 2026 +0100

    web-util: restore dialog openers and coordinate nested dialogs
    
    DialogFocusScope adds Escape handling and opener restoration to a focus
    scope. Hooks provide the same behavior for existing wrappers. Menus
    restore focus without trapping it; native dialogs retain browser Tab
    handling.
    
    After an initial request succeeds, discard the other eligible requests,
    including ones tried earlier while their controls were unavailable. Keep
    requests blocked by a modal and requests waiting after fallback focus.
    
    Issue: https://bugs.taler.net/n/12002
    Issue: https://bugs.taler.net/n/12024
    Issue: https://bugs.taler.net/n/12034
    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

commit fdb0b892c5ea5e4869edcc8b83fb43a707be2126
Author: Florian Dold <dold@taler.net>
Date: Fri Nov 13 01:06:08 2026 +0100

    web-util: add helpers for initial focus and modal keyboard handling
    
    Find controls that can receive focus, skipping hidden, disabled and
    inert elements. Choose a dialog's initial focus from an explicit target,
    an editable field, or its first control.
    
    Handle Escape on the active dialog. For custom modals, keep Tab inside
    and make the rest of the page inert so it cannot receive clicks or
    focus. Restore the previous inert state on close. Let the browser handle
    Tab in native dialogs, and allow focus to leave menus.
    
    Issue: https://bugs.taler.net/n/12002
    Issue: https://bugs.taler.net/n/12024
    Assisted-by: LLM

Issue History

Date ModifiedUsernameFieldChange
2026-11-10 23:42bot-cgNew Issue
2026-11-10 23:42bot-cgRelationship addedparent of 0012025
2026-11-10 23:42bot-cgRelationship addedparent of 0012059
2026-11-10 23:42bot-cgRelationship addedparent of 0012058
2026-11-10 23:42bot-cgRelationship addedparent of 0012057
2026-11-10 23:42bot-cgRelationship addedparent of 0012056
2026-11-10 23:42bot-cgRelationship addedparent of 0012055
2026-11-10 23:42bot-cgRelationship addedparent of 0012054
2026-11-10 23:42bot-cgRelationship addedparent of 0012053
2026-11-10 23:42bot-cgRelationship addedparent of 0012052
2026-11-10 23:42bot-cgRelationship addedparent of 0012051
2026-11-10 23:42bot-cgRelationship addedparent of 0012050
2026-11-10 23:42bot-cgRelationship addedparent of 0012049
2026-11-10 23:42bot-cgRelationship addedparent of 0012048
2026-11-10 23:42bot-cgRelationship addedparent of 0012047
2026-11-10 23:42bot-cgRelationship addedparent of 0012046
2026-11-10 23:42bot-cgRelationship addedparent of 0012045
2026-11-10 23:42bot-cgRelationship addedparent of 0012044
2026-11-10 23:42bot-cgRelationship addedparent of 0012043
2026-11-10 23:42bot-cgRelationship addedparent of 0012042
2026-11-10 23:42bot-cgRelationship addedparent of 0012041
2026-11-10 23:42bot-cgRelationship addedparent of 0012040
2026-11-10 23:42bot-cgRelationship addedparent of 0012039
2026-11-10 23:42bot-cgRelationship addedparent of 0012038
2026-11-10 23:42bot-cgRelationship addedparent of 0012037
2026-11-10 23:42bot-cgRelationship addedparent of 0012036
2026-11-10 23:42bot-cgRelationship addedparent of 0012035
2026-11-10 23:42bot-cgRelationship addedparent of 0012034
2026-11-10 23:42bot-cgRelationship addedparent of 0012033
2026-11-10 23:42bot-cgRelationship addedparent of 0012032
2026-11-10 23:42bot-cgRelationship addedparent of 0012031
2026-11-10 23:42bot-cgRelationship addedparent of 0012030
2026-11-10 23:42bot-cgRelationship addedparent of 0012029
2026-11-10 23:42bot-cgRelationship addedparent of 0012028
2026-11-10 23:42bot-cgRelationship addedparent of 0012027
2026-11-10 23:42bot-cgRelationship addedparent of 0012026
2026-11-10 23:42bot-cgRelationship addedparent of 0012060
2026-11-10 23:55bot-cgNote Added: 0030390
2026-11-11 16:24Christian GrothoffSeverityminor => trivial
2026-11-13 09:14bot-codex-florian-doldNote Added: 0030512
2026-11-13 09:14bot-codex-florian-doldStatusnew => closed
2026-11-13 09:14bot-codex-florian-doldResolutionopen => fixed
2026-11-18 17:02Christian GrothoffTarget Version => 1.6
2026-11-18 17:07Christian GrothoffFixed in Version => 1.6