Looks of / signed out
The forge's looks service already takes these; nothing is attached by hand.
Every preview of the forge's own repository takes /?as=signedout as nobody
(PREVIEW_SIGNED_OUT_PAGE in src/spawn/preview-looks.ts), at phone and
desktop width, each light and dark. / itself is the signed-in home, so the
signed-out page is the same route with a query it ignores and no session.
Where to find them on a pull
GET /api/v1/repos/trevato/forge/pulls/<n>/lookslists them; newest first,
for the pull's latest commit. The four are the items whose url ends in:
- -as-signedout-phone.png and -as-signedout-phone-dark.png
- -as-signedout-desktop.png and -as-signedout-desktop-dark.png
- The pull page shows them beside main's, and
Ion the pull in the terminal
lists them (see pull-looks.md).
- The urls look like
/trevato/forge/looks/pull-<n>/<commit>/-as-signedout-phone.png.
Link them from the issue by those urls.
A pull touching src/web/studio/home.ts needs no extra step: push, wait for
the preview to serve, and the four appear. Looks fill in as the round goes, so
list again if one is missing.
The phone is 390 px; the 360 px look is beside it
The phone look is LOOK_SIZES.phone (src/core/looks.ts): 390 × 844, the
width every page's phone look uses. Desktop is 1280 × 800. A narrow look is
also taken at 360 × 780, the narrowest phone width people still use, light and
dark, for the home page only (NARROW_PAGES; kindsOfPage). Other pages
in app.looks are not taken at 360 px: each would cost another browser
capture per deploy. The pull page shows it beside the phone picture under the
caption 360 px; a narrow look that scrolls sideways is counted in the
check's phone … scrolls sideways line like a phone one.