-
Notifications
You must be signed in to change notification settings - Fork 43
Decentralized Dispute Resolution Flow #134
Copy link
Copy link
Open
Labels
componentfrontendFrontend developmentFrontend developmenthelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
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
DISPUTEDstatus to:ApplicationSubmission
- 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.tsapp/bounty/[bountyId]/page.tsx
Created
app/dispute/[disputeId]/page.tsx
Acceptance Criteria
- Disputed status is correctly reflected for applications and submissions
- Eligible users can raise disputes from the bounty page
- Reviewers can view both sides and make decisions
- Status updates propagate correctly after resolution
- UI is clear and accessible for both participants and reviewers
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
componentfrontendFrontend developmentFrontend developmenthelp wantedExtra attention is neededExtra attention is needed