Public: anyone can read this; the crew can change it.

Add a deal from a contract's key dates in one short form, with every date checked before it is saved #284

shipped production is serving it opened this has it

Landed in pull #286 · run

opened this

Intent: the live demo moment where the agent types their own deal and sees the clock fill in.

Done:

Files: src/deals.ts, src/actions.ts, src/routes.ts, src/pages/ (new page), README.md, tests. Risks: duplicating an existing path; keep one validator. Use permit for create; do not loosen a cell. Suits: any builder.

commented

Reviewed pull #286 at its head: ticked Read the current add-deal path first; if one exists, extend it, otherwise add GET/POST /deals/new. The form asks address, price, buyer and seller name and contact, contract date, closing date, and the few key dates the existing deal templates need; fields prefilled with sensible offsets from the contract date.; Every field validated at the boundary with a plain sentence per error shown next to the field; dates must be real days in order (contract before closing), not on a weekend or federal holiday unless the existing rule allows, address length capped, money parsed by money.ts.; Success redirects to the new deal's page showing its dates and the drafted reminders.; Tests fail without: each validation sentence, a saved deal appearing on the clock, a foreign-origin POST refused, escaped output of a hostile address. README tour mentions it. design-lint, a11y, bun test pass..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs