Files
edr-platform/apps/edr-freight-web/backoffice/src
Nathnael f39ae77401 fix(backoffice): map raw IAM error codes to friendly messages (EDRFREIGHT-223, EDRFREIGHT-225)
@tria-plc/iamapi-common throws BadRequestException with a raw,
untranslated code as the message (e.g. "user_role_not_found",
"unit_employee_limit_reached:5") — useErrorHandler's extractMessage
returned that string verbatim, so removing an org/unit admin whose
role row didn't match, or inviting past a unit's employee cap, toasted
the raw backend code instead of an explanation. Adds a small code→i18n
map checked before the raw-message fallback, shared by both the async
and sync error handlers so every caller (org-admin removal, employee
invites, etc.) picks it up for free.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 12:28:11 +00:00
..
2026-07-10 11:25:59 +00:00
2026-07-10 11:25:59 +00:00
2026-07-10 11:25:59 +00:00
2026-07-11 05:49:10 +00:00
2026-07-22 11:54:54 +00:00
2026-07-23 06:21:51 +00:00
2026-07-10 11:25:59 +00:00
2026-07-10 11:25:59 +00:00
2026-07-10 12:09:27 +00:00
2026-05-12 15:17:16 +03:00
2026-06-19 16:24:20 +03:00
2026-07-16 08:52:29 +00:00