Skip to content

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

Closed

Description

@abayomicornelius

Problem

src/app/issues/[id]/IssueActions.tsx sets a notice message after every successful action and renders it as an announced live region:

setNotice("Escrow funded on-chain. This bounty is now open for claims.");
...
{notice && (
  <p role="status" aria-live="polite" className="mt-3 text-sm text-emerald-600 dark:text-emerald-400">
    {notice}
  </p>
)}

src/app/milestones/MilestoneActions.tsx's MilestoneFundButton and PoolDepositButton have no equivalent state at all — only error:

const [pending, setPending] = useState(false);
const [error, setError] = useState<string | null>(null);

async function handleFund() {
  setError(null);
  ...
  try {
    ...
    await apiPost(`/milestones/${milestoneId}/fund`, {...});
    router.refresh(); // <- succeeds silently, no notice/status message set anywhere
  } catch (err) {
    setError(...);
  } finally {
    setPending(false);
  }
}

PoolDepositButton.handleDeposit follows the identical pattern — apiPost succeeds, router.refresh() runs, and nothing else happens visibly. There is no success paragraph in either component's JSX at all, aria-live or otherwise.

Impact

A sponsor who funds a milestone or deposits into a maintenance pool gets no confirmation the action actually worked beyond the button reverting from its "Confirming in wallet..." loading label back to its normal state and whatever change router.refresh()'s re-fetched data happens to make visually elsewhere on the page (e.g. the progress bar moving) — there's no explicit "Milestone funded" / "Deposit successful" message the way the equivalent bounty-funding action gets. This is worse for screen reader users specifically: nothing is ever announced on success, so the only way to know the action succeeded is to notice a numeric change elsewhere on the page after the fact.

Suggested fix

Add a notice state to both MilestoneFundButton and PoolDepositButton, set on success (e.g. "Milestone funded on-chain." / "Deposit confirmed."), and render it with the same role="status" aria-live="polite" pattern IssueActions.tsx already established.

Activity

  1. added
    accessibility
    bug
    on Sep 17, 2026
  2. ranjeet150 commented on Sep 17, 2026

    @ranjeet150

    Hey team,

    I can tackle MilestoneFundButton and PoolDepositButton have no success notice/aria-live feedback after a successful action, unlike IssueActions. Proposed implementation roadmap:

    • Analysis: Inspect current behavior and edge cases in MergeFi/frontend
    • Core Implementation: Implement MilestoneFundButton and PoolDepositButton have no success notice/aria-live feedback after a successful action, unlike IssueActions following the existing UI design system, accessibility standards, and responsive styling.
    • Quality Assurance: Verify UI performance and zero console errors.

    I can start working on this right away. Please assign!

  3. added
    Stellar Wave
    on Sep 23, 2026
  4. Muhd010 commented on Sep 23, 2026

    @Muhd010

    @Muhd010 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello Maintainer, I’ve reviewed the issue and understand the requirements. I’m confident I can handle it effectively. Kindly assign it to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Muhd010 to this issue.

  5. chinoyenmose commented on Sep 23, 2026

    @chinoyenmose
    Contributor

    @chinoyenmose has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Please can u assign this issue to me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @chinoyenmose to this issue.

  6. drips-wave commented on Sep 23, 2026

    @drips-wave

    Congratulations, @chinoyenmose! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @chinoyenmose: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. drips-wave commented on Sep 25, 2026

    @drips-wave

    This issue has been completed by @chinoyenmose as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @chinoyenmose: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  8. removed
    Stellar Wave
    on Oct 15, 2026
  9. added
    Stellar Wave
    on Oct 15, 2026
  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Waveaccessibilitybug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions