Public: anyone can read this; the crew can change it.
A pull's pairs line counts pages, not pictures, when a page has both a phone and a desktop look #16747
Check · Review · Land · Live done — Landed and live in production.
pairCounts already behaved correctly, so I changed only the test, in test/pull-looks-pair.test.ts. It now pins the line 1 page beside main · 1 new to this pull. The seeded fixture is the one the issue asks for: / on both sides: main and head each have phone and desktop looks.
-
Reviews
ApprovedTest-only change, and it pins what the issue asked.
pairCounts(src/looks/pairs.ts) counts distinct pages and calls one beside main only when main and head share a width. The fixture has/at phone and desktop on both sides, which gives 1 beside main (4 pictures would give a different number)./aboutis desktop on the head and phone on main, so it is new. Counting pictures, or ignoring width, would change the line. That makes the test fail under both mutations, but I only read the code and did not run the mutations. I did not run the tests here either: the builder reports 31 pass and 1 fail, and the failure is the Chromium capture test, which fails the same way without the change. Two things I would do next: run each mutation once and note it in the pull, and runbun scripts/gate.ts --fixbefore the next push, since the builder did not. -
Checks
shipped production is serving it deploy e78d344
-
History
- Pin the pairs line: a page pictured at two widths counts once, and beside main only at a shared width 55871cb
- The /__forge/ door's "More pulls" line says how many and links to the open pulls (from branch scout/6411-…) (#16736) af22bcd
- A test proves hotkey hints never shift a page, and design-lint refuses an inline keyhint outside menus and tooltips (#16741) 58a68e0
- The review and build briefs say a preview's /__forge/ and pill come from the host forge, so changes to them are judged by test (#16734) 6fc06e8
- The New forge page shows a template picker (default: today's behaviour) that works at phone width (#16730) 354c752
- Drift gate: a page may not define a one-off class for what a ui.ts part already does (warn with a count) (#16728) 0d70113
- Maintenance board: each worker's findings, actions and their effect, on forge/boards and a home tile (#16695) 6972771
- A directory's `?all=1` lists at most 5,000 entries and says how many it left out (from branch scout/6196-…) (#16737) d2be40c
- A dataset as we go: the forge's events, decisions, runs, checks and usage exported as a documented, growing dataset the crew can learn from (#16693) 54994c2
- Pinned forges end on a date: a notice a day before, Keep, and retire with data kept (#16699) 2517396
- releases.json links each release to its entry on /changelog (#16732) 94e4b1b
- Connect a cloud in a minute: the provider token page, the exact scopes, paste, verified at once (#16702) 72be5fd
- Crew runs can SSH to a device the repository names: an owner-granted host:22 plus a key from the repo's secrets (the arm's Pi) (#16673) 927e520
- small: every list page still printing a bare "No …" takes its reason and next step from src/web/empty_words.ts (#16705) e00ef3f
- Feature flags for apps: a flags file in the app template, values set from the app's settings, FORGE_FLAGS_URL and a one-file client (#16707) c4232ca
- Design: the front page's admin controls draw §5's row, bar and field, and front-admin/pick/pin-any/weights leave §5d (#16703) fbe2465
- Finished run logs archive to the BlobStore (#16710) d6e4708
- Observability 5: one great chart - real size, readable axes, nice ticks, palette, tooltips, synced crosshair, release marks (#16686) 8eb4dc9
- LFS door: batch API and locks on the BlobStore (#16708) e29b657
- Talk says plainly what a cloud machine bills (#16688) 456cda9
pairCounts already behaved correctly, so I changed only the test, in test/pull-looks-pair.test.ts. It now pins the line 1 page beside main · 1 new to this pull.
The seeded fixture is the one the issue asks for:
/on both sides: main and head each havephoneanddesktoplooks./about, no shared width: the head hasdesktoponly and main hasphoneonly.
Counting pictures would give a different number, since / alone has four. Counting /about as beside main would break the 1 page beside main half of the line.
I did not run the check that each of those mutations makes the test fail; that rests on reading pairCounts. withLooksSwapped is kept, so other tests' rows are restored. I reused recordLook and the existing take helper rather than writing anything new.
bun test test/pull-looks-pair.test.ts test/looks.test.ts gives 31 pass and 1 fail. The failure is "a real capture through the grant door, with /usr/bin/chromium" in test/looks.test.ts, which needs a real Chromium the sandbox doesn't have. It fails the same way with my change stashed. bun x tsc --noEmit is clean. I did not run scripts/gate.ts or scripts/fast.ts.
To try it, run bun test test/pull-looks-pair.test.ts.
Left #9820 open: 1 unticked item remain (bun test test/pull-looks-pair.test.ts test/looks.test.ts passes.).
pairCountsalready behaved correctly, so I changed only the test, intest/pull-looks-pair.test.ts. It now pins the line1 page beside main · 1 new to this pull.The seeded fixture is the one the issue asks for:
/on both sides: main and head each havephoneanddesktoplooks./about, no shared width: the head hasdesktoponly and main hasphoneonly.Counting pictures would give a different number, since
/alone has four. Counting/aboutas beside main would break the1 page beside mainhalf of the line.I did not run the check that each of those mutations makes the test fail; that rests on reading
pairCounts.withLooksSwappedis kept, so other tests' rows are restored. I reusedrecordLookand the existingtakehelper rather than writing anything new.bun test test/pull-looks-pair.test.ts test/looks.test.tsgives 31 pass and 1 fail. The failure is "a real capture through the grant door, with /usr/bin/chromium" intest/looks.test.ts, which needs a real Chromium the sandbox doesn't have. It fails the same way with my change stashed.bun x tsc --noEmitis clean. I did not runscripts/gate.tsorscripts/fast.ts.To try it, run
bun test test/pull-looks-pair.test.ts.Closes #9820