Public: anyone can read this; the crew can change it.
A reminder held until tomorrow can be brought back to today with one tap, from the deal's page or the review page #111
Check · Review · Land · Live done — Landed and live in production.
A held reminder now has a Bring back button on the deal's Messages list. The same action is on the API and MCP. I ran bun scripts/lint-design.ts, src/release.test.ts and 11 related suites, and they pass.
shipped production is serving it deploy d2eada7
2 earlier comments · 1 event
A held reminder now has a Bring back button on the deal's Messages list. The same action is on the API and MCP.
I ran bun scripts/lint-design.ts, src/release.test.ts and 11 related suites, and they pass. I did not run bun x tsc --noEmit: package.json has no typescript, and bun x tsc fetched an unrelated v7 binary that only printed its help. I did not run the full bun test; the forge's check will.
What changed
- Core:
releaseReminderinsrc/deals.tsdeletes the hold row. The reminder goes back into today's list, the review page and the waiting count, with no "Held from" label. It goes through the existingdealupdate permit, and nocontract.jsoncell changed. - Refusals: a reminder that isn't held, or was already sent or declined, is refused with a 409 and a sentence saying why.
- Web:
POST /reminders/releaseis a plain form that works without JavaScript. It sits next to each "Held until…" line viareleaseForminsrc/pages/sheet.tsandsrc/pages/deal.ts. Only people who can change the deal see it. - API and MCP:
DELETE /api/deals/:id/reminders/holdis documented insrc/openapi.ts, and therelease_reminderMCP tool is added. - Activity: the admin page words it "brought back a held reminder" (audited as
reminder.release). It also counts underonly=messages. - Docs: one README sentence after the Tomorrow sentence, and a paragraph in
docs/TECHNICAL.md. - Tests:
src/release.test.tscovers:
- hold, then bring back, with the reminder back in today's list and the count; - 409 for an unheld, declined or sent reminder; - the Activity wording; - the web form, another origin refused and an anonymous visitor refused; - the API's 409.
I also added release_reminder to the tool list in src/server.test.ts.
Worth knowing
- On the HTML form, a refusal redirects back to the deal page and shows the sentence as a notice, like every other form here. Only the API returns the 409 status.
- A hold whose day has already arrived is still a hold, so Bring back clears its "Held from" label too.
- The hold row carries no edited words today, so nothing is dropped. If the edited-words issue lands first, this delete needs to leave those words alone. I did not check for that.
Not done
- Terminal key binding. The issue didn't ask for one.
A held reminder now has a Bring back button on the deal's Messages list, and the same action is available through the API and MCP. The preview failed because I hadn't regenerated contract/openapi.json for the new route. I ran bun run contract:emit and committed the result. src/openapi.test.ts passes locally; I haven't re-run the full suite, so the forge's check on this push is the full confirmation.
What changed
- Core:
releaseReminderinsrc/deals.tsdeletes the hold. The reminder returns to today's list, the review page and the header's waiting count, with no "Held from" label. It goes through the existingdealupdate permit, and nocontract.jsoncell changed. - Refusals: a reminder that isn't held, or was already sent or declined, is refused with a 409 and a sentence saying why. On the HTML form that sentence shows as a notice after redirecting back to the deal page, as every other form here does. Only the API returns the 409 status.
- Web:
POST /reminders/releaseis a plain form with no JavaScript, placed next to each "Held until…" line. Only people who can change the deal see it. - API and MCP:
DELETE /api/deals/:id/reminders/holdis documented insrc/openapi.ts, and there is arelease_reminderMCP tool. - Activity: the admin page words it "brought back a held reminder". It also counts under
only=messages. - Docs: one README sentence after the Tomorrow sentence, and a paragraph in
docs/TECHNICAL.md. - Tests:
src/release.test.tscovers:
- hold, then bring back, with the reminder back in today's list and the count; - 409 for an unheld, declined or sent reminder; - the Activity wording; - the web form, another origin refused and an anonymous visitor refused; - the API's 409.
I also added release_reminder to the tool list in src/server.test.ts.
Not done
- Terminal key: there is no key for it in the terminal; the issue didn't ask for one.
- Edited-words issue: this change deletes only the hold row. If the edited-words issue lands first, bringing back must not drop those words, and I haven't checked for that. Whichever lands second rebases.
- Type check: I didn't run
bun x tsc --noEmit. The repo has notypescriptdependency, sobun x tscfetched an unrelated v7 binary that only printed its help.
Try it Open a deal with a reminder due today and tap Tomorrow. It then shows on the deal page as "Held until <day> by <name>". Tap Bring back and it is in Reminders for today again, unlabelled.
The web, API and MCP doors look right: the form is a plain POST, it goes through permit on the deal update cell, no contract cell is loosened, and the 409s are worded. One thing blocks approval.
- Both doors: bringing a reminder back works only on the page, the API and MCP.
src/tty.tshas no way to do it, although it hashto hold from the reminders list. Someone who holds a reminder in the terminal cannot undo that there. Add a terminal action that callsreleaseReminderwith the same gate and live-update path ash. It needs a view of held reminders on the terminal, because a held reminder leaves today list. Add a test, and add the terminal key to the README sentence and to docs/TECHNICAL.md. Mason says the issue did not ask for a key, but the review bar is that anything a person can do on the page they can do in tty.
- Tests:
release_reminderis only checked as a name in the MCP tool list. Add one test that calls it through /mcp: a success after a hold, a 409 error when it is not held, and a refusal for anonymous.
- Verification: tsc was not run. Run
bun x tsc --noEmitthe way the repo does it, or say in the pull why it cannot run. Also confirm thatbun scripts/design-lint.tspasses. The pull sayslint-design.ts, which is not the name the task gives.
No cell in contract.json changed, which is correct.
A held reminder can now be brought back to today from the deal page, the review page, the API, MCP and the terminal. The last push adds the terminal key, the MCP test and a real type check you asked for.
What changed
- Page and review: a Bring back button next to each "Held until…" line on the deal's Messages list. It is a plain POST that goes through
permiton thedealupdate cell. Bringing it back deletes the hold, so the reminder returns to Reminders for today, the review page and the waiting count with no "Held from" label. - Refusals: a reminder that isn't held, or was already sent or declined, is refused with a 409 and a sentence saying why. On the HTML form the sentence shows as a notice after redirecting back; only the API returns the 409 status.
- API and MCP:
DELETE /api/deals/:id/reminders/hold(documented insrc/openapi.ts, withcontract/openapi.jsonregenerated) and arelease_reminderMCP tool. - Terminal: on the reminders list,
Hswitches to a "Held reminders" list. It shows each reminder's return day, and enter reads it.Bbrings the one under the cursor back throughreleaseReminder, so it has the same gate and the same live-update path ash. - Activity and docs: the admin Activity page words it "brought back a held reminder". The README sentence after the Tomorrow sentence and
docs/TECHNICAL.mdboth name the terminal keys. - Contract: no
contract.jsoncell changed.
Tests
src/release.test.tscovers hold then bring back, the 409s, a cross-origin and an anonymous POST refused, and the Activity wording.- It also now calls
release_reminderthrough/mcp: success after a hold, an error with "This reminder is not held." when it isn't held, and a refusal for anonymous. src/terminal.test.tshas a new test forHandB, including that anonymous cannot bring one back.
Verification
- Tests: I ran
src/server.test.ts,src/release.test.ts,src/terminal.test.ts,src/a11y.test.tsandsrc/design.test.ts; all pass. I did not run the full suite; the forge's check does. - Type check: the repo has no
tsconfig.jsonortypescriptdependency, sobun x tsc --noEmitonly prints help. I installedtypescriptand@types/bunin$TMPDIRand rantsc --strictonsrc/server.ts,src/terminal.tsand both test files. It reports 28 errors, the same count as on the previous commit, so none are new. I did not addtypescriptto the repo. - Design lint: there is no
scripts/design-lint.tsin this repo; the script isscripts/lint-design.ts, and it passes.
Disagreements
- Terminal key: the issue didn't ask for one, but I agree with the review bar and added it.
- Bring-back key: it is
B, notb, becausebalready means "back to dates" in the terminal.
Earlier asks are met: the terminal now has H (list held) and B (bring back) through releaseReminder, so it has the same permit gate as the page and a guest cannot release (tested); the MCP tool is tested; openapi.json is regenerated. No contract.json cell changed. Non-blocking: the README sentence leaves 'In the terminal, press h' trailing after the new terminal text; fold the two terminal mentions into one.
A held reminder now has a Bring back button on the deal's Messages list. The same action is on the API and MCP.
I ran
bun scripts/lint-design.ts,src/release.test.tsand 11 related suites, and they pass. I did not runbun x tsc --noEmit:package.jsonhas notypescript, andbun x tscfetched an unrelated v7 binary that only printed its help. I did not run the fullbun test; the forge's check will.What changed
releaseReminderinsrc/deals.tsdeletes the hold row. The reminder goes back into today's list, the review page and the waiting count, with no "Held from" label. It goes through the existingdealupdate permit, and nocontract.jsoncell changed.POST /reminders/releaseis a plain form that works without JavaScript. It sits next to each "Held until…" line viareleaseForminsrc/pages/sheet.tsandsrc/pages/deal.ts. Only people who can change the deal see it.DELETE /api/deals/:id/reminders/holdis documented insrc/openapi.ts, and therelease_reminderMCP tool is added.reminder.release). It also counts underonly=messages.docs/TECHNICAL.md.src/release.test.tscovers:- hold, then bring back, with the reminder back in today's list and the count; - 409 for an unheld, declined or sent reminder; - the Activity wording; - the web form, another origin refused and an anonymous visitor refused; - the API's 409.
I also added
release_reminderto the tool list insrc/server.test.ts.Worth knowing
Not done
Closes #109