View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012028 | Taler | exchange AML officer webui | public | 2026-11-10 23:42 | 2026-11-10 23:42 |
| 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 | tweak | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| Summary | 0012028: AML decision wizard: 'Case disposition' step does not focus the decision rationale | ||||
| Description | What happens: Step 6 of 7 of the decision wizard ('Case disposition') has one required text input, 'Decision rationale', followed by the investigation-status choice. On entering the step (via 'Next step' or the step list) nothing in the step is focused. The step component mounts with activeElement = BODY; in the live wizard focus just stays on the navigation button that was pressed. Expected: The 'Decision rationale' textarea is focused when the step is shown. Where: - packages/taler-exchange-aml-webui/src/pages/decision/Justification.tsx:58 Measured in headless Chromium (document.activeElement): before: BODY (nothing focused) after: TEXTAREA[name=justification] Depends on: "web-util: Forms: `<FormUI focus>` and the per-field `focus` prop never focus anything" (sibling issue in this tree); without it this fix has no effect. Proposed fix: Pass `focus` to the step's FormUI. The step component mounts on every step change, so focus is applied once per visit. 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; AML unit tests 69/69 (Justification.test included); screenshot (decision wizard / CaseDisposition story) | ||||
| Tags | No tags attached. | ||||
| Attached Files | aml--justification.diff (661 bytes)
diff --git a/packages/taler-exchange-aml-webui/src/pages/decision/Justification.tsx b/packages/taler-exchange-aml-webui/src/pages/decision/Justification.tsx
index f482a5f32..b0149b95d 100644
--- a/packages/taler-exchange-aml-webui/src/pages/decision/Justification.tsx
+++ b/packages/taler-exchange-aml-webui/src/pages/decision/Justification.tsx
@@ -55,7 +55,7 @@ export function Justification(): VNode {
return (
<div>
- <FormUI design={design} model={form.model} />
+ <FormUI design={design} model={form.model} focus />
<InvestigationStatusChoice
current={currentInvestigationStatus}
selected={investigationStatus}
| ||||
| 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 | Relationship added | related to 0012057 |
| 2026-11-10 23:42 | bot-cg | File Added: aml--justification.diff | |
| 2026-11-10 23:42 | bot-cg | File Added: aml--justification--before.png | |
| 2026-11-10 23:42 | bot-cg | File Added: aml--justification--after.png |