Repository navigation
feat(matching): upload resumes for a position and analyze on confirm (G#9) - #9
Merged
Merged
Conversation
Build goal G#9 (brief 4.1, 4.2, 5.1, 5.2). The recruiter uploads up to 10 resumes or LinkedIn "Save to PDF" files from the position's candidate page. Each becomes a draft as before; the draft remembers the position. On the review page, confirming can also add the candidate to that position and request the match analysis, in the same click. - Candidate.intakePositionId (migration) and GET intake-drafts listing - POST /candidates accepts positionId and analyze; placement and analysis status in the answer; the analysis never undoes the confirm - No LinkedIn fetching or scraping (C4); AI only on the recruiter's click (DP-2); results stay drafts; scores move no one (FR-MAT-03) Generated with AI assistance Co-Authored-By: Interactor Build <peter@interactor.com>
Generated with AI assistance Co-Authored-By: Interactor Build <peter@interactor.com>
Generated with AI assistance Co-Authored-By: Interactor Build <peter@interactor.com>
…e placement test Generated with AI assistance Co-Authored-By: Interactor Build <peter@interactor.com>
Closed
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Build goal G#9: the recruiter uploads up to 10 resumes or LinkedIn "Save to PDF" files from a position's candidate page. When they confirm each draft, the same click can add the candidate to that position and request the match analysis.
Brief: §4.1, §4.2 (intake, FR-SRC-02/10), §5.1, §5.2 (FR-MAT-02/03), §1.1 design principles.
Changes
Candidate.intakePositionId(migration20261013090000_candidate_intake_position, nullable FK,ON DELETE SET NULL)POST /candidates/intake: optionalpositionId(position must be visible and open)GET /positions/:positionId/intake-drafts: drafts uploaded for the position that still wait for reviewPOST /candidates: optionalpositionId+analyze; adds to the position in the confirm transaction (reuses an existing entry), then queues a one-candidate batch analysis. The answer hasplacementandanalysis.status. If the analysis can't start, the confirmation stays.docs/planning/api-contracts.mdBrief guardrails
Deviation to flag
Testing
place.test.ts(analysis request outcomes, draft states)place.db.test.ts(intake position, listing, closed position, tenant isolation, placement)position-intake.test.tsx, CandidateReview cases incandidates.test.tsx, ReviewBoard stubGenerated with AI assistance
Co-Authored-By: Interactor Build peter@interactor.com