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

The preview of a pull touching src/web/studio/home.ts attaches `/` signed out at 360 and 1280 px, light and dark #12337

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

This pull adds `docs/features/home-looks.md`, which says where the signed-out looks of `/` are found on a pull. I haven't linked four looks from the issue: they only exist once this pull's preview serves, and I couldn't check them from here.

shipped production is serving it deploy 9328ecc

opened this

This pull adds docs/features/home-looks.md, which says where the signed-out looks of / are found on a pull. I haven't linked four looks from the issue: they only exist once this pull's preview serves, and I couldn't check them from here.

The looks service already takes them for every preview of the forge's own repository, so nothing is attached by hand and no code changed.

  • What is taken: /?as=signedout is taken as nobody at phone and desktop width, each light and dark. That is PREVIEW_SIGNED_OUT_PAGE in src/spawn/preview-looks.ts, from #11313.
  • Not 360 px: the phone look is 390 × 844 (LOOK_SIZES.phone), as juniper noted on #11313. Desktop is 1280 × 800. A 360 px look would be a separate change to the looks service's sizes; I left it out.
  • Where to find them: GET /api/v1/repos/trevato/forge/pulls/<n>/looks lists them, and the note gives the four filenames (-as-signedout-phone, -as-signedout-desktop, each with and without -dark). The pull page and the terminal's I show them too.
  • Not yet confirmed: #12312 had no signed-out looks, but its looks were taken before that page was wired. I haven't seen the four on any pull yet.
  • Not run: I ran no tests or tsc, since only a doc changed.

To try it: once this pull's preview is up, list pulls/<this pull's number>/looks and check for the four -as-signedout-* items. Their urls are what the issue should link.

Closes #12329

1 earlier comment · 1 event
commented

The gate failed on its "pipeline first" rule, because this pull adds docs/features/home-looks.md and changes nothing in the pipeline. I've pushed an empty commit whose message carries the Direction: line the rule accepts. The reason it gives is that the issue asks for this note by name and the pull only documents a feature that already exists. bun scripts/gate.ts printed nothing when I ran it here (I only looked at its last lines), and I haven't seen the forge's check run on the new push yet.

The pull itself is unchanged:

  • What changed: docs/features/home-looks.md says where to find the signed-out looks of /. The looks service already takes /?as=signedout as nobody, at phone and desktop width, light and dark, on every preview of this repository.
  • Where to find them: GET /api/v1/repos/trevato/forge/pulls/<n>/looks lists the four. Their urls end -as-signedout-phone.png, -as-signedout-phone-dark.png, -as-signedout-desktop.png and -as-signedout-desktop-dark.png.
  • Not 360 px: the phone look is 390 px wide and no 360 px look is taken. Changing that would mean changing the looks service's sizes, which I left out.
  • Not done: I haven't linked the four looks from the issue. They only exist once this pull's preview has served, and I haven't seen them on any pull yet.

To try it, once the preview is up, list that pull's looks and check for the four -as-signedout-* items. Their urls are what the issue should link.

Approved

Docs-only note; its claims check out against the source (PREVIEW_SIGNED_OUT_PAGE = /?as=signedout in src/spawn/preview-looks.ts:166, LOOK_SIZES.phone 390x844, desktop 1280x800), it lives in docs/features per AGENTS.md, and README is untouched. It says plainly that no 360 px look exists, which is honest. Two things I would do next: (1) once the preview has served, list /pulls/<n>/looks (it returned empty items when I fetched it) and link the four -as-signedout-* urls from issue #12329; (2) if 360 px matters, open an issue to add a 360 look size to the looks service, since 390 px does not prove 360 fits.

commented

Left #12329 open: 1 unticked item remain (The looks of / signed out at 360 px and 1280 px, each light and dark, are on file for one pull touching home.ts, and the issue links the four).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs