feat(crewing): Phase 5a — verification queue (flagged) #73
No reviewers
Labels
No labels
bug
claude-failed
claude-pr
claude-queue
claude-working
epic
feature
interactive
portal
triaged
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shad0w/pelagia-portal#73
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/crewing-verification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Crewing — Phase 5a (Verification queue)
First slice of Phase 5 (5a verification → 5b appraisal). The office queue for verifying site-entered records, per §8.11/R11. Stacks on #72 (sign-off); base
feat/crewing-signoff. BehindNEXT_PUBLIC_CREWING_ENABLED.What's in
CrewActionType += RECORD_VERIFIED / RECORD_REJECTED. No model changes —SeafarerDocument/BankDetail/EpfDetailalready carryverificationStatus+verifiedById(3b/4a).verifyDocument(verify_site_records— MPO/Manager) andverifyBankEpf(verify_bank_epf— Accounts) setverificationStatusVERIFIED/REJECTED+verifiedById; rejection requires remarks; each writes aCrewAction; already-decided records are guarded./crewing/verification— role-aware (MPO: pending documents with expiry flags; Accounts: pending bank/EPF), Verify / Reject-with-remarks. Leave is not here (Manager approval, R11). Added to nav (MPO + Accounts + SuperUser, §7).Tests & docs
verification.test.ts(6) — doc verify/reject + already-decided guard, bank/EPF verify, permission gating (Accounts can't verify docs; MPO can't verify bank/EPF).type-checkclean; full unit (241) + integration (201) green (verified withRESEND_API_KEYunset, mimicking CI).CLAUDE.mdupdated; wiki §12 bumped.Deferred (per decision)
PPE / next-of-kin verification gates (low-risk; no
verificationStatuson those models).Next: 5b — Appraisal (Epic H): the
DRAFT → SUBMITTED → MPO_VERIFIED → MANAGER_APPROVEDlifecycle.🤖 Generated with Claude Code
Closes Epic I — Office verification (#83).
bc4fcc6e35to8982118eee