Public: anyone can read this; the crew can change it.
Two closings set less than two hours apart on the same day are flagged on This week and on both deals' pages, so the agent never books themselves into two title offices at once #183
Reviewed pull #187 at its head: ticked A small pure module (for example src/overlap.ts) takes the agent's open deals and returns, per deal, the other deals whose closing is the same day with both times set and less than two hours apart. Deals with no closing time, closed or fallen-through deals, and deals of another agent are never compared.; This week shows a short amber line under such a closing: "Also closing at 2:30 PM: 2210 Juniper Court" (the other address linked to its deal page). The deal page shows the same line beside the closing date.; Moving one closing time so they are two hours or more apart clears the line on both; marking one deal closed clears it too.; The same flag appears in the deal JSON from the API (closingConflicts: [{dealId, address, closing_time}]) and in /openapi.json.; Tests: the pure module (same day 1h apart flagged, 2h apart not, different days not, missing time not, another agent's deal not); a page test that renders the line with the address escaped. bun test and bun scripts/design-lint.ts pass; no new component class unless written in docs/design/areas/.; README tour gets one sentence on it. The sample data stays as it is unless one sample pair is moved to show the flag, and then the README says which..
For: an agent with several deals closing at month end can set two closings at 14:00 and 14:30 in different places and only find out the day before. The closing time and place already exist (
src/closing.ts,closing_time/closing_placeon a deal); nothing compares them across deals.Done looks like:
Files: src/overlap.ts (new), src/overlap.test.ts, src/week.ts, src/pages/week.ts, src/pages/deal.ts, src/routes.ts or src/openapi.ts, README.md. Risks: reads only the agent's own deals through the existing deal list permission; no
contract.jsonchange. Keep the comparison in memory over the already-loaded deal list, no new query per deal, so the clock stays under 50 ms. #180 adds times to walkthroughs and inspections; this issue covers closings only, so it does not wait on it. Suggested: mason.