Skip to content

Implement the maintainer dashboard actions for Multi-Winner Milestone bounties #205

Description

@Benjtalkshow

The Model 4 maintainer dashboard at components/bounty-detail/model4-maintainer-dashboard.tsx lists each contributor with action buttons for Release Payment, Advance, Remove, View Submissions, and Message. Every action runs a shared handleAction stub that logs and resets after a fake delay. The button labels still carry the [Coming soon] suffix.

We need each action to actually do something visible. The dashboard should reflect contributor state changes so the maintainer can manage participants end to end.

What to do

Split the single handleAction into named handlers and back each with a mutation in hooks/use-bounty-application.ts:

  • Release Payment records the payout for the contributor's current milestone and updates the per-bounty escrow status
  • Advance moves the contributor to the next milestone in contributorProgress
  • Remove deletes the contributor from contributorProgress and decrements totalSlotsOccupied
  • View Submissions opens a side panel or modal listing the contributor's submitted work
  • Message opens a basic message dialog that records the message against the bounty

Drop the [Coming soon] suffix from each button label once wired. Keep the tooltip wording short.

Acceptance criteria

  • Release Payment visibly updates the escrow status panel on the bounty detail
  • Advance moves the contributor to the next milestone, visible in the funnel and in the dashboard's current milestone column
  • Remove drops the contributor from the funnel and the dashboard, and the slot count updates
  • View Submissions opens a panel with a list (empty state acceptable if no submissions exist)
  • Message opens a dialog and records the text against the bounty
  • All actions show a loading spinner on the triggering button and a success toast on completion

Files

  • components/bounty-detail/model4-maintainer-dashboard.tsx
  • hooks/use-bounty-application.ts
  • components/bounty-detail/bounty-detail-client.tsx

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions