fix(bounty): derive shortlist selection from live application list#672
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Declining a checked application unmounted its checkbox but left its id in the checked set, so the sticky-bar count stayed inflated and Approve shortlist submitted a DECLINED application. Filter the selection against the current SUBMITTED rows so the count and the payload only ever include actionable applications. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
b5b4423 to
e2c1bef
Compare
Summary
Follow-up fix to the applications review tab (#670, since merged into
feat/t-replace). Originally this branch superseded #670; after that merge it was rebased down to just this one fix commit.The bug
Declining a checked application unmounted its checkbox but left its id in the
checkedset, so:DECLINEDapplication's id.The fix
The selection is derived from the live list (
selectedIds= checked ids still inSUBMITTED) — the count, the button's disabled state, and the shortlist payload only ever include actionable applications.Review notes from #670 (non-blocking, not addressed here)
useInvalidateApplicationsre-derives the'org-applications'key literal instead of using abountyKeyshelper — drift risk.retry: falseon the list query deviates from the global query defaults without a comment.""instead of omitted.videoIntroUrl/portfolioLinksare applicant-supplied and rendered ashrefs without scheme validation (same pattern as the submissions panel — candidate for a shared helper).Verification
tsc --noEmit— 0 errors on this head (rebased onto currentfeat/t-replace).🤖 Generated with Claude Code