-
Notifications
You must be signed in to change notification settings - Fork 4
feat(authz): [FC-0099] Manage action feedback using the Toast component. #26
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
|
Thanks for the pull request, @dcoa! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
56b4d17 to
2008811
Compare
2008811 to
f4ef82a
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #26 +/- ##
==========================================
+ Coverage 94.14% 94.32% +0.17%
==========================================
Files 44 44
Lines 837 881 +44
Branches 169 177 +8
==========================================
+ Hits 788 831 +43
- Misses 47 48 +1
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8ce7d07 to
8a110d6
Compare
7cc00a4 to
d70f842
Compare
|
Reviewing. |
arbrandes
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.
I tested it and it works, good work!
However, I'm going to wait to do a proper code review once #25 merges and this is rebased on it, since many of the commits here are shared with it.
| <Fragment key={`authz-header-action-${key}`}> | ||
| {content} | ||
| {(index === actions.length - 1) ? null | ||
| : (<hr className="border-right mx-5" style={{ height: '30px' }} />)} |
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.
This hard-coded height is going to be addressed by #25, right?
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.
Yes, it has been addressed there
Exposes a showToast for managing action errors and the showErrorToast for managing general server errors
371585a to
ea8ea6b
Compare
arbrandes
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.
Thanks for the rebase! As before, this is working well. I did have a change request, though. See comment below.
|
|
||
| // Loading indicator should be visible in the modal | ||
| expect(screen.getByTestId('loading-indicator')).toBeInTheDocument(); | ||
| const userInput = screen.getByTestId('users-input'); |
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 please avoid getByTestId, findByTestId, and the like, if possible? This applies here and elsewhere in this PR. Let me know if it's not possible, in any given instance, as I'd be curious to understand why. Thanks!
arbrandes
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.
Given that 1) this PR actually works well, 2) the change request does not affect a user facing feature, 3) @dcoa is on the other side of the world, and 4) the Ulmo cut is in one hour, I'm electing to merge this under the assumption that a follow-up PR be issued to fix the getByTestIds.
👍🏼
Toast Notification for Feedback
Surface errors via toasts while keeping the modal open. This ensures they can retry or correct input without losing context, improving usability and reducing frustration.
Note
This PR needs to be rebased after #25 is merged.
I'm working in the coverage but decided to open because is a quite large and complex PR.
Changes:
Error Handling:
Evidence
Screencast.from.2025-10-29.00-05-31.webm
Test Instructions