The application review dashboard at components/bounty/application-review-dashboard.tsx lets a creator Select an applicant or compare two side by side. The Decline button was removed in an earlier PR because it had no handler. We still need a way to formally decline applicants so they receive a notification and the application leaves the review queue.
What to do
Add a useDeclineApplicant mutation in hooks/use-bounty-application.ts accepting bountyId and applicantAddress. Optimistically remove the applicant from the dashboard's applications list and roll back on error.
In application-review-dashboard.tsx:
- Add a Decline button next to Select on each application card, using the same red-outline styling as the previous version
- Open a confirmation AlertDialog with a small textarea for an optional reason
- Submit through the new mutation
- Show a success toast and remove the card from the list on success
The applicant should see a "Declined" notification on their side via the existing notification system once that wiring is in place (out of scope for this issue).
Acceptance criteria
- Each application card shows a Decline button next to Select
- Clicking opens a confirmation AlertDialog with an optional reason field
- Confirming removes the application from the list with an optimistic update
- Reason text is recorded against the application in the cache
- Comparison mode handles the case where one of the two selected applicants is declined (drop them out of comparison)
Files
components/bounty/application-review-dashboard.tsx
hooks/use-bounty-application.ts
The application review dashboard at
components/bounty/application-review-dashboard.tsxlets a creator Select an applicant or compare two side by side. The Decline button was removed in an earlier PR because it had no handler. We still need a way to formally decline applicants so they receive a notification and the application leaves the review queue.What to do
Add a
useDeclineApplicantmutation inhooks/use-bounty-application.tsacceptingbountyIdandapplicantAddress. Optimistically remove the applicant from the dashboard's applications list and roll back on error.In
application-review-dashboard.tsx:The applicant should see a "Declined" notification on their side via the existing notification system once that wiring is in place (out of scope for this issue).
Acceptance criteria
Files
components/bounty/application-review-dashboard.tsxhooks/use-bounty-application.ts