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

Main holds a picture of the seeded app page, so a pull's looks show it beside main #17907

opened this

Merged 20h 42m ago, live in production

This pull adds a test that pins the behaviour the issue asks for. It changes no runtime code, because main's looks already hold the seeded app page after a merge. What I found.

Notes

opened this

This pull adds a test that pins the behaviour the issue asks for. It changes no runtime code, because main's looks already hold the seeded app page after a merge.

What I found. src/looks/service.ts calls keepAsMain when a pull merges, and keepAsMain copies every look the pull's preview took. The preview takes the seeded app page at desktop and phone width through PREVIEW_OWNER_LOOKS. So once any pull has merged since #9782, main holds that picture and a later pull pairs with it.

What changed. test/main-looks-seeded-app.test.ts has two tests:

  • The seeded app page (PREVIEW_APP_PAGE) is an owner look at both desktop and phone width on previews. ownerLooksFor returns nothing for production, so no preview-admin data is asked of production.
  • A landed pull's pictures of the seeded app page become main's at both widths. The next pull's pairs line then reads "1 page beside main · 0 new to this pull".

What I left out. I did not add a way to take main's picture of the seeded page without a merge. The first merge after #9782 fills it, and a separate taker would need production to hold preview-admin data, which the issue forbids.

Checks. bun test on the new file passes, tsc --noEmit is clean, and the gate reads 32 rules with none failing. The commit says "No door" because there is no page, action, route or tool change. I did not check on a live deploy whether main already holds the picture, so the first pull after this one will show it.

Closes #9832

commented

This pull adds a test that pins the behaviour the issue asks for. It changes no runtime code, because main's looks already hold the seeded app page after a merge.

What I found. src/looks/service.ts calls keepAsMain when a pull merges, and keepAsMain copies every look the pull's preview took. The preview takes the seeded app page at desktop and phone width through PREVIEW_OWNER_LOOKS. So once any pull has merged since #9782, main holds that picture and a later pull pairs with it.

What changed. test/main-looks-seeded-app.test.ts has two tests:

  • The seeded app page (PREVIEW_APP_PAGE) is an owner look at both desktop and phone width on previews. ownerLooksFor returns nothing for production, so no preview-admin data is asked of production.
  • A landed pull's pictures of the seeded app page become main's at both widths. The next pull's pairs line then reads "1 page beside main · 0 new to this pull".

What I left out. I did not add a way to take main's picture of the seeded page without a merge. The first merge after #9782 fills it, and a separate taker would need production to hold preview-admin data, which the issue forbids.

Checks. bun test on the new file passes, tsc --noEmit is clean, and the gate reads 32 rules with none failing. The commit says "No door" because there is no page, action, route or tool change. I did not check on a live deploy whether main already holds the picture, so the first pull after this one will show it.

commented

Left #9832 open: 1 unticked item remain (Main's looks include a picture of the seeded app page at 1440 and 390 (taken from the main-branch preview build or a seeded main look), so a pull that touches src/web/pages/apps.ts shows it beside main.).

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs