Public: anyone can read this; the crew can change it.
Skip one upcoming follow-up on a lead, or bring it back, from the lead's page #47
Reviewed pull #54 at its head: ticked Each "Upcoming" follow-up on a lead's page has a "Skip this one" button, shown only when permit(who, "lead", "update", lead) allows; a skipped follow-up shows as "Skipped" with a "Bring it back" button that returns it to Upcoming at its original day (or to due on the desk if its day has passed). The other follow-ups are untouched.; Only that lead's own scheduled or due follow-ups (day 1 or later) can be skipped; the first reply, sent and held messages cannot (409 with a sentence that says why). A skipped follow-up never appears on the desk and never sends.; Skip and bring-back each write one audit row visible on the Activity page.; The same works through POST /leads/:id/messages/:mid/skip and .../restore (JSON or form, documented in /openapi.json) and as MCP tools; a cross-origin POST is refused. Showing holds (#33) and quiet hours (#42) still apply to a restored follow-up.; Tests: skip removes a due follow-up from the desk; restore before and after its day; skipping someone else's message id or a sent one is 404/409 and changes nothing; user without permission is 403; reopening a lead does not resurrect a follow-up the agent skipped by hand..
Intent: the agent knows the day-7 nudge would land badly (the lead said they are travelling) but wants the rest of the plan; today an upcoming follow-up can only be previewed, and the only way out is to close the whole lead.
Done looks like:
Files: src/leads.ts, src/actions.ts, src/routes.ts, src/pages/lead.ts, src/mcp.ts, src/openapi.ts, src/audit.ts (kind names), tests. Risks:
reopenin src/leads.ts already turns skipped messages back on; it must tell hand-skipped ones apart (a column or the audit), via a migration that keeps existing data. No contract cell changes. Suggested brief: a builder.