Skip to content

IssueDetailPage's escrow status label says "Funds locked" for paid, refunded, and expired bounties, even though funds have already left escrow in all three cases #259

Closed

Description

@chonilius

src/app/issues/[id]/page.tsx#IssueDetailPage renders the escrow status card as:

<p className="mt-2 font-medium text-slate-900 dark:text-white">
  {bounty.status === "open" ? "Awaiting funding" : "Funds locked"}
</p>

This binary ternary only distinguishes "open" (not yet funded) from every other
status, labeling all of them "Funds locked" — including "paid" (funds already released
to the contributor), "refunded" (funds already returned to the sponsor), and
"expired" (deadline passed). For all three of these terminal states, funds are
specifically not locked in escrow anymore — that's what makes them terminal — yet the
UI's dedicated "Escrow status" card tells the viewer the opposite.

A sponsor checking on a bounty they refunded weeks ago, or a contributor checking a
bounty they were already paid for, sees "Funds locked" under "Escrow status" — directly
contradicting the actual on-chain state this card exists to summarize, on the one page
in the app whose whole purpose is showing accurate escrow status for a specific bounty.

Suggested fix: expand this to a proper mapping covering all BountyStatus values —
e.g. "Awaiting funding" (open), "Funds locked" (funded/claimed/in_review/merged),
"Paid out" (paid), "Refunded to sponsor" (refunded), "Expired, unclaimed" (expired) —
instead of the current two-way open/everything-else split.

Activity

  1. added
    bug
    very hard
    help wanted
    enhancement
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. tecmalik commented on Aug 25, 2026

    @tecmalik

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

    please assign this issue to me i would love to work on it

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

  4. Meeynarh1 commented on Aug 25, 2026

    @Meeynarh1

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

    I understand the expected outcome and would love to work on this. I'll provide a solution that satisfies the acceptance criteria.

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

  5. Stealth-cloud-droid commented on Aug 25, 2026

    @Stealth-cloud-droid

    @Stealth-cloud-droid has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi Maintainer, I would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Stealth-cloud-droid to this issue.

  6. Favouromale commented on Aug 25, 2026

    @Favouromale

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

    Hello Maintainer, I would like to work on this issue

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

  7. Levi-Ojukwu commented on Aug 25, 2026

    @Levi-Ojukwu
    Contributor

    @Levi-Ojukwu has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello maintainer, I cam handle this issue.

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

  8. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @Levi-Ojukwu! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @Levi-Ojukwu: 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 🌊

  9. drips-wave commented on Aug 30, 2026

    @drips-wave

    This issue has been completed by @Levi-Ojukwu as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @Levi-Ojukwu: 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.

  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
  14. removed
    Stellar Wave
    on Oct 15, 2026
  15. 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 Wavebugenhancementhelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions