ItemModal.vue is not direction-aware: outbound leads stuck on stage "new" #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The
feat/book-donation-chorus-searchbranch adds adirectionfield (inbound/outbound) and anOUTBOUND_STAGESset to the backend (New → Reviewed → Outreach Drafted → Outreach Sent → Replied → Pickup Scheduled → Picked Up → Logged in Bookmark), validated inbackend/app/stages.pyandcrud.py.frontend/src/components/ItemModal.vuewas not touched by that branch. It computes stage options purely fromitem.type(DONATION_STAGES/OTHER_STAGES/["new"]) and has no knowledge ofitem.directionorOUTBOUND_STAGES, and never reads/sendsdirection.For a
lead_found(ormagpie_lead) item,typeis unset, sostagesForType()falls back to["new"]— a triage volunteer opening an outbound lead in the app cannot advance it pastnew, even though the backend accepts and validates the outbound stages fine. The outbound path is only usable via direct API calls today, not through the actual triage UI.Fix:
ItemModal.vueshould branch onitem.direction === "outbound"(or similar) to offerOUTBOUND_STAGESinstead of the type-based stage list, mirroring the backend logic instages.py.Found during the final whole-branch review of
feat/book-donation-chorus-search(2026-07-13). Not a blocker for that branch since it is backend/bot-scoped, but should be closed before the outbound-lead feature is considered usable end to end.