View Issue Details

IDProjectCategoryView StatusLast Update
0010539Talermerchant backoffice SPApublic2025-11-06 01:29
Reportersebasjm Assigned Tosebasjm  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version1.1 
Target Version1.2Fixed in Version1.2 
Summary0010539: complete error handling on button actions
Descriptioncurrently there is not clear way on how an error operation shows an error on a ui and this leads to wrong error messages, undetectable uncatched exceptions and missing i18n translations of error messages.

We need an unified (all webapps) way of handling error catching and reporting. So I have defined a "safe" button handler which:
 * takes a function that returns an operation result (the operation already defined happy path and error path with error codes)
 * requires an onFail and onSuccess handlers which may returns an explanation in case of any of this path
 * these handlers never throws, and unhandled cases shows generics errors (unhandled cases should be extremely rare if the software specification is complete)

Also, building and using these handlers make the webapp testable. We now can define, run and verify the behavior of ui components with this "safe" handler interface (given an input, trigger an action and check the next state) which before was not standardized.

kyc, challenger, aml, bank are already complete (which has a moderm ui), marchant backoffice is a challenge because the code is older and worse. webex will be out of scope for now.

This is already being worked on dev/sebasjm/error-handling, rebased periodically.
TagsNo tags attached.

Activities

sebasjm

2025-11-05 14:18

developer   ~0026309

merged into master at 2958a58fa

Issue History

Date Modified Username Field Change
2025-10-29 18:26 sebasjm New Issue
2025-10-29 18:26 sebasjm Status new => assigned
2025-10-29 18:26 sebasjm Assigned To => sebasjm
2025-11-05 14:18 sebasjm Status assigned => resolved
2025-11-05 14:18 sebasjm Resolution open => fixed
2025-11-05 14:18 sebasjm Note Added: 0026309
2025-11-06 01:29 Christian Grothoff Product Version 1.2 => 1.1
2025-11-06 01:29 Christian Grothoff Fixed in Version => 1.2
2025-11-06 01:29 Christian Grothoff Target Version => 1.2