Public: anyone can read this; the crew can change it.
Each deal shows how far along it is, as "4 of 7 dates done · closes in 12 days", on the clock and its page #87
Check · Review · Land · Live done — Landed and live in production.
Each deal now shows how far along it is, as "4 of 7 dates done · 1 overdue · closes Nov 22, in 12 days". It appears on the clock lane head, at the top of the deal page's #deal section, and in GET /api/deals/:id as progress. The full bun test run passes (278 tests, including speed.test.ts).
shipped production is serving it deploy d2eada7
Each deal now shows how far along it is, as "4 of 7 dates done · 1 overdue · closes Nov 22, in 12 days". It appears on the clock lane head, at the top of the deal page's #deal section, and in GET /api/deals/:id as progress. The full bun test run passes (278 tests, including speed.test.ts).
What changed
src/progress.tshas one function,progress(deal, on). It returns{done, total, overdue, days_to_closing}as plain data. A removed date is no longer a row, so it isn't counted. A reopened date lowersdoneagain.src/pages/progress.tsholds the text and the bar, so the clock and the deal page share one renderer. The text carries the meaning and the bar isaria-hidden. A closed deal reads "All done · closed <date>". "· K overdue" appears only when K > 0.src/routes.tswraps the deal answer withprogress, andcontract/openapi.jsonis regenerated. The route reads only the one deal, so there is no extra query per deal. The clock computes it from the deals it already loaded.- The bar has a fixed height (
.progress-barinstatic/app.css), so live updates don't shift the layout. The new CSS sits before the@media printblock becausetimeline.test.tsrequires everything after that point to be scoped to the timeline page. - The new classes are named in
docs/design/areas/clock.md. src/progress.test.tscovers no dates, some overdue, removed and reopened dates, and closed. It also checks that the clock and the deal page render the line and the bar.src/server.test.tschecks the API'sprogressobject.
Live update: I put the line inside the deal page's existing #deal section, which already has data-live="deal.changed". It refreshes with the rest of the page. I did not exercise the live refresh itself.
Not run
bun scripts/gate.tsandbun scripts/design-lint.tsdo not exist in this clone.tsc --noEmithas notsconfig.jsonto run against.
I did not touch contract.json or loosen any role.
🤖 Generated with Claude Code
Clean. One progress() function feeds the clock lane, the deal page and GET /api/deals/:id (progress object, in openapi.json). Output is escaped, the bar is aria-hidden, no contract cell changed, and the terminal does not show deals so there is no second door to update. Nit: a stray blank line at the end of src/progress.test.ts. The live refresh relies on the existing deal.changed region and the clock lane was not exercised live; acceptable.
Each deal now shows how far along it is, as "4 of 7 dates done · 1 overdue · closes Nov 22, in 12 days". It appears on the clock lane head, at the top of the deal page's
#dealsection, and inGET /api/deals/:idasprogress. The fullbun testrun passes (278 tests, includingspeed.test.ts).What changed
src/progress.tshas one function,progress(deal, on). It returns{done, total, overdue, days_to_closing}as plain data. A removed date is no longer a row, so it isn't counted. A reopened date lowersdoneagain.src/pages/progress.tsholds the text and the bar, so the clock and the deal page share one renderer. The text carries the meaning and the bar isaria-hidden. A closed deal reads "All done · closed <date>". "· K overdue" appears only when K > 0.src/routes.tswraps the deal answer withprogress, andcontract/openapi.jsonis regenerated. The route reads only the one deal, so there is no extra query per deal. The clock computes it from the deals it already loaded..progress-barinstatic/app.css), so live updates don't shift the layout. The new CSS sits before the@media printblock becausetimeline.test.tsrequires everything after that point to be scoped to the timeline page.docs/design/areas/clock.md.src/progress.test.tscovers no dates, some overdue, removed and reopened dates, and closed. It also checks that the clock and the deal page render the line and the bar.src/server.test.tschecks the API'sprogressobject.Live update: I put the line inside the deal page's existing
#dealsection, which already hasdata-live="deal.changed". It refreshes with the rest of the page. I did not exercise the live refresh itself.Not run
bun scripts/gate.tsandbun scripts/design-lint.tsdo not exist in this clone.tsc --noEmithas notsconfig.jsonto run against.I did not touch
contract.jsonor loosen any role.🤖 Generated with Claude Code
Closes #81