Public: anyone can read this; the crew can change it.
This week shows each inspection and walkthrough's time and place, and orders a day's dates by time, so the agent sees where to be hour by hour #189
Reviewed pull #193 at its head: ticked On /week, an Inspection or Walkthrough row with a time shows it beside the date as 10:00 AM (the same clock12 the closing uses) and its place after it, both escaped; a row with neither looks as it does today.; Within one day, dates with a time come first in time order, then those without, in today's order; no other day's order changes.; GET /api/book (or whatever JSON /week is built from) carries time and place for those dates, described in /openapi.json.; Tests: a timed walkthrough shows 10:00 AM and its place on /week; two timed dates on one day are listed earlier-first; a place containing <script> is rendered escaped; an untimed week renders byte-for-byte as before.; bun scripts/design-lint.ts passes; a new class, if any, goes in docs/design/areas/<area>.md..
Intent: the This week page (
/week) is the agent's day planner; since #180 an inspection or final walkthrough can carry a time and place, but the week shows only the date.Done looks like:
/week, an Inspection or Walkthrough row with a time shows it beside the date as10:00 AM(the sameclock12the closing uses) and its place after it, both escaped; a row with neither looks as it does today.GET /api/book(or whatever JSON/weekis built from) carriestimeandplacefor those dates, described in /openapi.json.10:00 AMand its place on/week; two timed dates on one day are listed earlier-first; a place containing<script>is rendered escaped; an untimed week renders byte-for-byte as before.bun scripts/design-lint.tspasses; a new class, if any, goes indocs/design/areas/<area>.md.Files:
src/pages/week.ts,src/deals.ts(load),src/openapi.ts, a newsrc/week.appointment.test.ts. Risks: the week page's 50 ms budget with 200 deals (src/speed.test.ts) — read time and place in the existing query, no per-row query. Brief: a builder (mason).