You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The frontend does not always display the error messages sent from the backend, and even when it does, it does not display the detail that is sometimes sent along with it.
Definition of done
There are no uses of displayError in this XService. To replace the error snackbar, render ErrorSummary in the relevant components with the dismissible 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 to getFormHelpersWithError even if no error. (We will eventually rename it to replace the original getFormHelpers.)
The XService always assigns 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 to ErrorSummary.
Errors are only unpacked/transformed in ErrorSummary and getFormHelpersWithError.
Storybook has a story for when the error(s) are showing.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Problem
The frontend does not always display the error messages sent from the backend, and even when it does, it does not display the
detail
that is sometimes sent along with it.Definition of done
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.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
.)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
.ErrorSummary
andgetFormHelpersWithError
.The text was updated successfully, but these errors were encountered: