Skip to content

Implement the Decline applicant flow on the application review dashboard #208

Description

@Benjtalkshow

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

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions