Public: anyone can read this; the crew can change it.
A forge preview's check reports the held page's owner looks, desktop and phone, with how many screens tall each is #9510
Check · Review · Land · Live done — Landed and live in production.
This pull adds a test that a forge preview's check lists the held page (`/preview-admin/sample/held`) at desktop and phone, each with its screens-tall figure. It also adds one line to the docs.
shipped production is serving it deploy 3d07d6f
This pull adds a test that a forge preview's check lists the held page (/preview-admin/sample/held) at desktop and phone, each with its screens-tall figure. It also adds one line to the docs.
- Test:
test/check-looks-held.test.tsbuilds a looks file from every entry inPREVIEW_OWNER_LOOKS, named the waysrc/looks/service.tsnames them. It then readsGET /api/v1/repos/alice/r/commits/:oid/checkand asserts thatdesktop /preview-admin/sample/heldandphone /preview-admin/sample/heldboth appear withscreens: "2.5". - Fails without the page: with
PREVIEW_HELD_PAGEcommented out ofPREVIEW_OWNER_LOOKS, the test fails. - Docs:
docs/features/vitals-screens.mdnow says in one line that the held page is measured as an owner look, not a visitor look, because the visitor cap (LOOKS_MAX, 24) is spent. - Unchanged:
forge.json,LOOKS_MAX, and everything undersrc/, includingsrc/http/. The API already returned owner looks, so the commit message needs noTry:line. - Checks: the new test,
bun x tsc --noEmitandbun scripts/gate.tsare green. I did not runbun scripts/fast.tsor the rest of the suite; the forge runs the full check on push. - Left out: the test writes the looks file itself, so it does not exercise the capture in
src/looks/service.tsthat produces it. It only proves that the API reports the owner looks the preview list names.
Test-and-docs only; src, forge.json and LOOKS_MAX untouched. The test asserts both held-page kinds are in PREVIEW_OWNER_LOOKS, so it fails if the page is removed. It then checks that the commit check API returns desktop and phone with screens 2.5. The docs line is present. Next: (1) the test seeds the looks file itself, so a later test could drive the real capture in src/looks/service.ts; (2) rename the tmpdir prefix forge-check-looks-api- to match this file.
This pull adds a test that a forge preview's check lists the held page (
/preview-admin/sample/held) at desktop and phone, each with its screens-tall figure. It also adds one line to the docs.test/check-looks-held.test.tsbuilds a looks file from every entry inPREVIEW_OWNER_LOOKS, named the waysrc/looks/service.tsnames them. It then readsGET /api/v1/repos/alice/r/commits/:oid/checkand asserts thatdesktop /preview-admin/sample/heldandphone /preview-admin/sample/heldboth appear withscreens: "2.5".PREVIEW_HELD_PAGEcommented out ofPREVIEW_OWNER_LOOKS, the test fails.docs/features/vitals-screens.mdnow says in one line that the held page is measured as an owner look, not a visitor look, because the visitor cap (LOOKS_MAX, 24) is spent.forge.json,LOOKS_MAX, and everything undersrc/, includingsrc/http/. The API already returned owner looks, so the commit message needs noTry:line.bun x tsc --noEmitandbun scripts/gate.tsare green. I did not runbun scripts/fast.tsor the rest of the suite; the forge runs the full check on push.src/looks/service.tsthat produces it. It only proves that the API reports the owner looks the preview list names.Closes #9508