Skip to content

fix(decline-applicant): remove runtime crash and clean up state#269

Merged
Benjtalkshow merged 1 commit into
boundlessfi:mainfrom
Benjtalkshow:fix/decline-applicant-cleanup
Jun 1, 2026
Merged

fix(decline-applicant): remove runtime crash and clean up state#269
Benjtalkshow merged 1 commit into
boundlessfi:mainfrom
Benjtalkshow:fix/decline-applicant-cleanup

Conversation

@Benjtalkshow

Copy link
Copy Markdown
Contributor

Cleanup for the three issues from PR #253 that landed unaddressed despite multiple review rounds.

Changes

components/bounty/application-review-dashboard.tsx

  • Removed the fake useEffect stub at the bottom of the file that threw Error: Function not implemented. whenever the parent re-rendered with new applications. The hook was used at line 67 but never imported; an AI-generated placeholder satisfied the type checker while crashing at runtime.
  • Removed the local reviewApplications mirror state. The useDeclineApplicant hook already updates the React Query cache optimistically, so the parent re-render delivers the filtered list automatically. Single source of truth.
  • Removed the unused useMemo import.

hooks/use-bounty-application.ts

  • Dropped the duplicate declinedReason field that was being set alongside declineReason with the same value. Kept declineReason since it matches the mutation input name.

Verified

  • pnpm tsc --noEmit clean
  • pnpm lint clean (only the pre-existing server-graphql.ts warning)

Three issues from PR boundlessfi#253 that landed unaddressed:

1. components/bounty/application-review-dashboard.tsx had a fake
   useEffect stub at the bottom of the file (function useEffect(arg0,
   arg1) { throw new Error('Function not implemented.'); }) because
   useEffect was used at line 67 but not imported. The dashboard
   crashed at runtime whenever the parent re-rendered with new
   applications.

2. The same file mirrored the applications prop into a reviewApplications
   local state and synced via the broken effect. The useDeclineApplicant
   hook already optimistically updates the React Query cache, so the
   parent re-render delivers the filtered list automatically. Dropped
   the local mirror, drive directly from the prop.

3. hooks/use-bounty-application.ts wrote both declineReason and
   declinedReason with the same value on the optimistic update. One was
   a typo. Kept declineReason since it matches the mutation input name.

Removed the unused useMemo import along the way.
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@Benjtalkshow is attempting to deploy a commit to the Threadflow Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Benjtalkshow, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 42 minutes and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 825e25d7-0983-45be-a87c-399272afde5e

📥 Commits

Reviewing files that changed from the base of the PR and between b12927c and 7fb7931.

📒 Files selected for processing (2)
  • components/bounty/application-review-dashboard.tsx
  • hooks/use-bounty-application.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Benjtalkshow Benjtalkshow merged commit 9e5dc91 into boundlessfi:main Jun 1, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant