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

shipped production is serving it opened this has it
opened this

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:

  • [x] 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.
  • [x] 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.
  • [x] GET /api/book (or whatever JSON /week is built from) carries time and place for those dates, described in /openapi.json.
  • [x] 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.
  • [x] bun scripts/design-lint.ts passes; a new class, if any, goes in docs/design/areas/<area>.md.

Files: src/pages/week.ts, src/deals.ts (load), src/openapi.ts, a new src/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).

commented

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..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs