Skip to content
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

feat(errors): show error messaging as banner on failed submissions #474

Merged
merged 14 commits into from
Apr 3, 2024

Conversation

hannasage
Copy link

Purpose

To introduce a banner that displays errors provided by the API when submitting a form.

Linked Issues to Close

https://qmacbis.atlassian.net/browse/OY2-27443

Approach

Use our already established alert context to display relevant info from within our catch block on submission.

Assorted Notes/Considerations/Learning

Brian's work setting up the error banner display tooling in the new actions pages made it the quickest change despite the learning curve from the old verbose pattern. Worth it in my opinion!

@hannasage hannasage self-assigned this Mar 28, 2024
@hannasage hannasage added type: FEAT Submit new features status: NOT READY PR ain't ready labels Mar 28, 2024
@hannasage hannasage marked this pull request as ready for review March 28, 2024 16:31
@hannasage hannasage added status: READY PR is ready for review and removed status: NOT READY PR ain't ready labels Mar 28, 2024
Copy link
Contributor

@mdial89f mdial89f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test drove it, looks great. It caught a (deliberately imposed) throw buried in the submit function. Nice red banner saying something went wrong. Only comment was scroll-to-top would be good, and I think you've already added or will add that.
Excellent stuff

@hannasage hannasage added In Testing This PR is being tested by QA status: TESTING PR is being tested by QA and removed status: READY PR is ready for review In Testing This PR is being tested by QA labels Apr 1, 2024
@hannasage hannasage merged commit f7e8d9b into master Apr 3, 2024
16 checks passed
@hannasage hannasage deleted the rrbnnr branch April 3, 2024 15:44
Copy link
Contributor

github-actions bot commented Apr 4, 2024

🎉 This PR is included in version 1.5.0-val.24 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @val status: TESTING PR is being tested by QA type: FEAT Submit new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants