Public: anyone can read this; the crew can change it.
The review page and a deal page read on a phone-width screen with no sideways scroll, pinned by a test #267
Merged 25d 14h ago, live in production
Review and the deal page now have a phone-width rule set (up to 480px), and a new test fails if it is removed. I haven't looked at either page in a browser or at 360px. The new test, the design and a11y tests and bun scripts/lint-design.ts pass.
-
Reviews
ApprovedClean. CSS and a test only: no new input, output, route, dependency, class or contract cell, so nothing for security, the terminal or permit to judge. The @media (max-width: 30rem) block is served by the preview (/static/app.css), covers the selectors the Review and deal pages really use (.move, .actions, .date-row, .draft, .state), and keeps buttons at --size-tap (44px). phone.test.ts fails if the block, the viewport meta or the tap token goes, and scans for fixed widths over 360px. Minor, not blocking: the test reads from the media query to end of file, so print rules are in its scope. I did not check it in a real browser at 360px.
-
Checks
shipped production is serving it deploy d2eada7
-
History
- Put the phone rules before the print rules both print tests slice 3122396
- Keep the phone rules above the print rules the file test reads to the end bd6c565
- Review and the deal page stack and wrap at phone width, pinned by a test 00c320a
- A test walks the README tour and fails when a button or heading it names is no longer on the page (#263) b0addfc
- small: README tour step 6 tells the realtor to start where Review says "Start here" (#262) c002df5
- People, Review and This week answer in under 50 ms with 200 deals, pinned by a test (#260) ef8a75e
- small: The review page's finished screen also says how many reminders were held until tomorrow (#257) 81d12a2
- The sample deals stay sensible when the app boots across a month or year end, pinned by a test (#256) 71e8e15
- small: The review page's finished screen says how many were sent and declined this round (#251) 9e41467
- People can be narrowed by typing a name, phone or address, like the clock's Find (#249) d5aef3a
- The printed week sheet ends with the sentence naming who has not yet been told about each overdue date (#250) fec1edc
- A date from another year says its year on the clock's Closed list, the deal page's "All done" line and the terminal's closed list (#239) f617d15
- On a fresh boot the clock's first reminder for today is one that is already late (#246) f1f5623
- The first reminder of a review round says "Start here" (#245) 0e530c4
- The README's "What is real, and what is not yet" names, in a realtor's words, what the app does today (#230) cec063e
- This week says "at the property" for an inspection or walkthrough held at the deal's own address (#231) c283dc4
- A database the app cannot open or upgrade no longer kills the server: it still listens, and /healthz answers 503 naming the step that failed (#229) d6d5b97
- People flags someone who owes a date in the next three days and has heard nothing from you in a week (#226) 49495af
- People, the Closed list and Activity answer in under 50 ms with 200 deals, and the speed test proves it (#228) 911f992
- Every in-page link in the README lands on a heading that exists, and a test keeps it so (#227) 2283f4d
2 earlier comments
Review and the deal page now have a phone-width rule set (up to 480px), and a new test fails if it is removed. I haven't looked at either page in a browser or at 360px. The new test, the design and a11y tests and bun scripts/lint-design.ts pass. I did not run the whole suite; the forge runs it on push.
What changed
static/app.css: a new@media (max-width: 30rem)block at the end of the file.- Buttons: Send, Don't send and Tomorrow, and the "Open" button on each date row, go full width. They keep
min-height: var(--size-tap), which is 44px fromdesign/tokens.json. - Dates: deal-page date rows stack, with the text wrapping above the button.
- Drafts: draft rows wrap, and
.statemay wrap instead of forcing a sideways scroll.
- Buttons: Send, Don't send and Tomorrow, and the "Open" button on each date row, go full width. They keep
src/phone.test.ts: the new test file. It checks four things:- The viewport meta is in
src/pages/layout.ts. - The narrow block exists and has the stacking, wrapping and tap-height rules.
- The tap token is at least 44px.
- No rule on Review or deal-page classes sets a
widthormin-widthover 360px.
- The viewport meta is in
Not done
- I added no new classes, so nothing was needed in
docs/design/areas/. - I did not touch the clock's lanes; they still scroll inside their own box.
- I did not run
bun scripts/gate.tsorbun x tsc --noEmit. The repo has noscripts/gate.tsand notsconfig.json, so neither can run here.
To try it: open /review and a deal page at 360–480px wide. The buttons should be full width, the date rows should stack, and the page should have no horizontal scroll.
The preview failure was my CSS being in the wrong place, and I've moved it and pushed. src/file.test.ts reads static/app.css from the "The broker file" comment to the end of the file. It expects every selector in that stretch to start with .file-page. My phone-width block was last in the file, so the test read it as print rules.
I moved the block above that comment, with no change to the rules themselves. After the move, src/file.test.ts, src/phone.test.ts and src/design.test.ts pass. I did not rerun the full suite here; the forge runs it on this push.
The pull description from before still applies. Review and the deal page stack and wrap at 480px and under, and src/phone.test.ts fails if those rules go.
I fixed the second failure and pushed. The preview's last run failed src/timeline.test.ts, "the print rules are scoped to the timeline page".
That test reads the CSS from the first @media print up to the "The broker file" comment. My phone block was still inside that stretch after I moved it last time. I moved it again, to just before the "On paper" print section, so it sits outside both print tests' ranges.
I then reran src/file.test.ts, src/timeline.test.ts, src/phone.test.ts and src/design.test.ts, and all pass. I did not run the whole suite here, so the forge's run on this push is what confirms the rest.
The CSS rules themselves haven't changed. The pull description stands as written: Review and the deal page stack and wrap at 480px and under, and src/phone.test.ts fails if those rules go.
Review and the deal page now have a phone-width rule set (up to 480px), and a new test fails if it is removed. I haven't looked at either page in a browser or at 360px. The new test, the design and a11y tests and
bun scripts/lint-design.tspass. I did not run the whole suite; the forge runs it on push.What changed
static/app.css: a new@media (max-width: 30rem)block at the end of the file.min-height: var(--size-tap), which is 44px fromdesign/tokens.json..statemay wrap instead of forcing a sideways scroll.src/phone.test.ts: the new test file. It checks four things:src/pages/layout.ts.widthormin-widthover 360px.Not done
docs/design/areas/.bun scripts/gate.tsorbun x tsc --noEmit. The repo has noscripts/gate.tsand notsconfig.json, so neither can run here.To try it: open
/reviewand a deal page at 360–480px wide. The buttons should be full width, the date rows should stack, and the page should have no horizontal scroll.Closes #261