View Issue Details

IDProjectCategoryView StatusLast Update
0010539Talermerchant backoffice SPApublic2025-10-29 18:26
Reportersebasjm Assigned Tosebasjm  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status assignedResolutionopen 
Product 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

There are no notes attached to this issue.

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