- Notifications
You must be signed in to change notification settings - Fork928
Closed
Description
Problem
The frontend does not always display the error messages sent from the backend, and even when it does, it does not display thedetail
that is sometimes sent along with it.
Definition of done
- There are no uses of
displayError
in this XService. To replace the error snackbar, renderErrorSummary
in the relevant components with thedismissible
prop. This way, the user can expand the error detail if desired without the snackbar disappearing too soon. - There are no uses of
getFormHelpers
in the components that consume errors from this XService. Switch togetFormHelpersWithError
even if no error. (We will eventually rename it to replace the originalgetFormHelpers
.) - The XService always
assign
s the API error, rather than a hard-coded error message. If a hard-coded error message is needed as a fallback, send it as a prop toErrorSummary
. - Errors are only unpacked/transformed in
ErrorSummary
andgetFormHelpersWithError
. - Storybook has a story for when the error(s) are showing.