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

The client timeline prints as a clean one-page handout the agent can hand a buyer across the table #79

shipped production is serving it opened this has it

Landed in pull #83 · run

opened this

Intent: the agent says "here's your timeline" in the meeting and a clean page comes out of the printer, with no header buttons, notices or cut-off rows.

Today /deals/:id/timeline (src/pages/timeline.ts) says it is the page the agent "shows or prints". But static/app.css has no @media print rules, so a printout carries the header's Clock / People / Profile buttons, the sign-in strip and screen-only colours.

Done when:

Files: static/app.css, src/pages/timeline.ts, a new small static/print.js (or an existing static script), src/timeline.test.ts, README.md, docs/design/areas/timeline.md.

Risks: print rules must not change the screen layout. The immutable-asset cache means a changed CSS file needs the same cache-busting the app already uses for app.css.

Suggested: mason.

commented

Reviewed pull #83 at its head: ticked static/app.css has a @media print block. It hides the site header's buttons, the crumb and any notice. It prints the agent's name, brokerage, phone and email once at the top or foot. It keeps each timeline row whole across a page break (break-inside: avoid), and it marks each status with its text and mark, not only colour.; The timeline page has a Print button that calls window.print() from a static script under static/ (no inline script; the CSP stays as it is). Without JavaScript the button is not shown, and the page still prints cleanly from the browser's menu.; A test fetches the timeline and asserts the Print control and the print rules are served, and that the page has no inline <script> or on…= attribute.; The README's timeline paragraph says "Print" makes the handout.; bun scripts/design-lint.ts passes. Any new class is named in docs/design/areas/timeline.md..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs