Repository navigation
feat(milestones): add success notice and aria-live polite feedback (#422) - #427
Open
PINYOPATTANAWASANPORN wants to merge 1 commit into
Conversation
… MilestoneFundButton and PoolDepositButton (MergeFi#422) - Set descriptive success notice on successful milestone funding and pool deposit - Render announced live region with role="status" and aria-live="polite" - Add unit test suite in MilestoneActions.test.tsx verifying notice rendering and API integration
|
@PINYOPATTANAWASANPORN is attempting to deploy a commit to the chonilius' projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
notice) toMilestoneFundButtonandPoolDepositButtoninsrc/app/milestones/MilestoneActions.tsx.<p role="status" aria-live="polite">) mirroring the pattern inIssueActions.tsx.src/app/milestones/MilestoneActions.test.tsxverifying notice rendering and API call sequences.Root Cause / Technical Context
IssueActions.tsx, actions render<p role="status" aria-live="polite">after successful transactions.MilestoneActions.tsx,MilestoneFundButtonandPoolDepositButtonpreviously triggeredrouter.refresh()upon API completion without any in-component feedback, leaving screen readers and users without immediate confirmation of a successful transaction.Verification & Testing
src/app/milestones/MilestoneActions.test.tsx:MilestoneFundButton: verifiesrole="status"andaria-live="polite"noticeMilestone "<name>" funded on-chain successfully.renders on completion.PoolDepositButton: verifiesrole="status"andaria-live="polite"noticeDeposited <amount> <asset> to maintenance pool successfully.renders on completion.Closes #422