Feature: Dispute Resolution Workflow for Bounties
Overview
To handle disagreements between sponsors and contributors, we need a formal dispute resolution workflow. This will allow a third-party reviewer to mediate conflicts and make fair decisions.
Goals
- Allow contributors or sponsors to raise disputes on bounty applications or submissions
- Track dispute status in the system
- Provide reviewers with a clear interface to see both sides and resolve disputes
- Improve trust and transparency in the platform
Implementation Details
1. Update Types for Dispute Status
Modify: types/participation.ts
- Add a new
DISPUTED status to:
- Ensure the status integrates seamlessly with existing status workflows
2. Add Raise Dispute Button
Modify: app/bounty/[bountyId]/page.tsx
- Add a "Raise Dispute" button for active participants
- On click:
- Trigger dispute creation workflow
- Optionally prompt for reason/details
- Only visible for eligible users (e.g., the contributor or sponsor involved)
3. Create Dispute Review Page
Create: app/dispute/[disputeId]/page.tsx
- Dedicated page for reviewers
- Display both sides of the dispute:
- Contributor submission / application
- Sponsor feedback / context
- Provide reviewer actions:
- Approve contributor
- Approve sponsor
- Request additional info (optional)
- Track final decision and update relevant statuses
Files Affected
Modified
types/participation.ts
app/bounty/[bountyId]/page.tsx
Created
app/dispute/[disputeId]/page.tsx
Acceptance Criteria
Testing Notes
- Test raising disputes for active bounties
- Verify reviewer page shows complete context
- Validate dispute resolution updates all affected entities
- Check permissions: only authorized users can raise disputes or review them
Additional Notes
- Consider adding notifications for both parties when a dispute is raised/resolved
- Log disputes for audit and transparency
- Keep the workflow extensible for future dispute types or mediation steps
- Ensure accessibility and responsive design for reviewer interface
Feature: Dispute Resolution Workflow for Bounties
Overview
To handle disagreements between sponsors and contributors, we need a formal dispute resolution workflow. This will allow a third-party reviewer to mediate conflicts and make fair decisions.
Goals
Implementation Details
1. Update Types for Dispute Status
Modify:
types/participation.tsDISPUTEDstatus to:ApplicationSubmission2. Add Raise Dispute Button
Modify:
app/bounty/[bountyId]/page.tsx3. Create Dispute Review Page
Create:
app/dispute/[disputeId]/page.tsxFiles Affected
Modified
types/participation.tsapp/bounty/[bountyId]/page.tsxCreated
app/dispute/[disputeId]/page.tsxAcceptance Criteria
Testing Notes
Additional Notes