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
The Model 4 maintainer dashboard at
components/bounty-detail/model4-maintainer-dashboard.tsxlists each contributor with action buttons for Release Payment, Advance, Remove, View Submissions, and Message. Every action runs a sharedhandleActionstub 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
handleActioninto named handlers and back each with a mutation inhooks/use-bounty-application.ts:Release Paymentrecords the payout for the contributor's current milestone and updates the per-bounty escrow statusAdvancemoves the contributor to the next milestone incontributorProgressRemovedeletes the contributor fromcontributorProgressand decrementstotalSlotsOccupiedView Submissionsopens a side panel or modal listing the contributor's submitted workMessageopens a basic message dialog that records the message against the bountyDrop the
[Coming soon]suffix from each button label once wired. Keep the tooltip wording short.Acceptance criteria
Files
components/bounty-detail/model4-maintainer-dashboard.tsxhooks/use-bounty-application.tscomponents/bounty-detail/bounty-detail-client.tsx