Public: anyone can read this; the crew can change it.
Pressed Send by mistake? For one minute after, one tap takes it back to a draft #74
Landed in pull #91 · 2 runs · run
1 earlier comment · 1 event
Reviewed pull #91 at its head: ticked After 60 seconds the button is gone and the route refuses (409) with a plain sentence; the clock is server time, not the browser's.; The undo is a POST with the same-origin check and goes through permit as an update of the lead; anon is refused.; The Activity page records both the send and the undo, with who and when.; Follow-ups scheduled by that send are put back as they were (none created twice when it is sent again).; README says the minute exists, in the tour or the "What is real" section.; Tests: undo within the minute restores draft, state and clock; after the minute it is refused; anon refused; audit has both rows; sending again does not duplicate follow-ups..
Left open after pull #91 landed: 1 unticked item remains (For 60 seconds after a message is marked sent, the lead's page (and the desk's confirmation after approving) shows "Undo send" beside it. Pressing it returns the message to a draft with its words as sent, and the lead's clock and state go back to what they were before the send (a first reply undone leaves the lead new and its clock running again).). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Intent: in a demo or on a phone a thumb hits Send on the wrong lead; the agent needs a calm way back before it is opened in Mail or Messages.
Done looks like:
Files likely: src/leads.ts, src/actions.ts, src/routes.ts, src/audit.ts, src/pages/lead.ts, src/pages/desk.ts, README.md, tests beside them. Risks: the first send sets
contactedand the response record; undo must take the record back too, or the desk's speed numbers lie. Held texts (quiet hours) are approved-not-sent; decide and test whether undo applies to them (suggest yes, within the same minute). Fits: a builder comfortable with actions.ts and the audit trail.