Skip to content

feat: coordinator override to approve a borderline candidate - #41

Merged
codcreater1 merged 1 commit into
mainfrom
feat/manual-approve-override
Jul 25, 2026
Merged

codcreater1 merged 1 commit into
mainfrom
feat/manual-approve-override

Conversation

@codcreater1

Copy link
Copy Markdown
Owner

Pending/clarification candidates had no coordinator action path (no contract to sign). Adds POST /applications/by-id/{id}/approve — promotes to interview and issues the contract, still enforcing the mandatory-field gate (422 with the missing fields; 409 if already issued). Frontend adds an 'Approve & generate contract' button. 30 tests passing.

A candidate the AI scored below the interview threshold (pending) or held for
clarification sat in the dashboard with no way for the coordinator to act on
them — no contract, so nothing to sign. Coordinators need the final call.

Adds POST /applications/by-id/{id}/approve: moves the candidate to interview
and issues the contract. The mandatory-field gate still holds — approving an
application missing the host organisation or workplace supervisor is refused
(422) with the specific gaps, since the agreement names them. Refuses 409 if a
contract already exists.

Frontend: an 'Approve & generate contract' button appears on the contract panel
for a candidate the AI didn't advance, when the mandatory details are present.
After approval the normal sign flow takes over.

4 behaviours verified live + 2 hermetic regression tests (30 total, passing).
@codcreater1
codcreater1 merged commit 7715d50 into main Jul 25, 2026
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