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

Each deal says which side the agent represents (buyer, seller or both), set when it is opened, shown on the clock, and the clock can be narrowed to one side #118

shipped production is serving it opened this has it

Landed in pull #127 · run

opened this

Intent: an agent with listings and buyers sees at a glance which deals they are on which side of, and the sample book shows both.

Done looks like:

Files: src/db.ts (deal.side TEXT with CHECK, default 'buyer', appended migration), src/deals.ts, src/find.ts, src/sample.ts, src/pages/clock.ts, src/pages/deal.ts, src/pages/week.ts, src/routes.ts, src/mcp.ts, src/openapi.ts, README.

Risks: drafted reminder wording is not changed by this issue; the clock's 50 ms speed test with 200 deals must hold; contract.json is untouched.

Suggested: mason.

commented

Reviewed pull #127 at its head: ticked New deal asks which side the agent represents (Buyer's agent, Listing agent, Both), defaulting to Buyer's agent; the deal's page changes it (same-origin POST, only those three values accepted, anything else a 422).; The clock, the deal's page and the This week sheet show a small label ("Buyer side" / "Listing" / "Both sides"); the label is text, readable by a screen reader, with no layout shift.; A Side filter on the clock (All / Buyer / Listing) works without JavaScript as a GET query, combines with the Find box, and the Closed list keeps the label.; The sample deals include at least one listing-side deal; Restore the sample deals brings the sides back.; /api/deals and MCP list_deals accept side to narrow, and read/write the field; src/openapi.ts describes it.; Tests: an unknown side is refused, the filter narrows and combines with a query, the label renders, existing deals read as Buyer side after the migration. bun test and bun scripts/design-lint.ts pass; any new component class is named in docs/design/areas/, not docs/DESIGN.md..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs