-
Notifications
You must be signed in to change notification settings - Fork 245
feat: validation errors on import COMPAS-8867 #6795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Anemy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Left one UX suggestion on toast clickability/hiding.
| {err?.message} | ||
| {showErrorDetails && ( | ||
| <Link | ||
| onClick={showErrorDetails} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we close those toast when the user clicks to see the error? We currently will keep showing the toast when the modal is open, but the dismiss is not clickable as I the modal is capturing all of the clicks. I think there's a similar issue with the toast on connectivity issues, not the end of the world if it's not easily feasible, a nice to have.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
Description
Adding error details for documents import.
First case: Not aborting on errors.
Details are available in the log file. This was almost working already, but there was a misnomer -

errorInfovserrInfo.Second case: Aborting on error.
Users can view the error details in a modal window (similar to the other cases).
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes