Skip to content

feat(milestones): add success notice and aria-live polite feedback (#422) - #427

Open
PINYOPATTANAWASANPORN wants to merge 1 commit into
MergeFi:mainfrom
PINYOPATTANAWASANPORN:feat/milestone-actions-success-notice-422
Open

PINYOPATTANAWASANPORN wants to merge 1 commit into
MergeFi:mainfrom
PINYOPATTANAWASANPORN:feat/milestone-actions-success-notice-422

Conversation

@PINYOPATTANAWASANPORN

Copy link
Copy Markdown

Summary of Changes

  • Add success notice state (notice) to MilestoneFundButton and PoolDepositButton in src/app/milestones/MilestoneActions.tsx.
  • Render success feedback using a dedicated announced live region (<p role="status" aria-live="polite">) mirroring the pattern in IssueActions.tsx.
  • Provide assistive technology feedback after funding milestones and depositing to maintenance pools on-chain.
  • Add comprehensive unit test suite in src/app/milestones/MilestoneActions.test.tsx verifying notice rendering and API call sequences.

Root Cause / Technical Context

  • In IssueActions.tsx, actions render <p role="status" aria-live="polite"> after successful transactions.
  • In MilestoneActions.tsx, MilestoneFundButton and PoolDepositButton previously triggered router.refresh() upon API completion without any in-component feedback, leaving screen readers and users without immediate confirmation of a successful transaction.

Verification & Testing

  • Unit tests added in src/app/milestones/MilestoneActions.test.tsx:
    • MilestoneFundButton: verifies role="status" and aria-live="polite" notice Milestone "<name>" funded on-chain successfully. renders on completion.
    • PoolDepositButton: verifies role="status" and aria-live="polite" notice Deposited <amount> <asset> to maintenance pool successfully. renders on completion.

Closes #422

… 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
@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

@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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MilestoneFundButton and PoolDepositButton have no success notice/aria-live feedback after a successful action, unlike IssueActions

1 participant