Public: anyone can read this; the crew can change it.
Ship it and watch it go: a change's page follows its own merge to production #1026
The change page now follows its own ship in place: ready for a look → shipping → shipped without a reload. The earlier check failure came from an old test, and I've fixed it. test/board-windows.test.ts passes (7 pass, 0 fail).
stopped closed without shipping deploy 521483d
I merged main into the branch and pushed it, but I could not run the studio tests or tsc --noEmit after the merge. Both need things the sandbox won't give me: the studio tests listen on a unix socket, and node_modules has no bun type definitions. A later attempt to run outside the sandbox was denied, so the merge is checked only by bun build of the server (it bundles). The forge's check on this push is the first real test run of the merge.
What changed
- Main had rewritten the change page.
studioPullbecamechangeConversation, with the review gate, hold card, policy-wall card, tell line andpullDir. I took main'ssrc/web/studio/change.tsand re-applied this change on top of it instead of merging line by line. pullPanels: it stays insrc/web/studio/previews.tsand now holds main's word, status, note and deploy logic: the review gate, "waiting for a writer to approve this head", the tell line,pullDir, andenvsForfor production. It tolerates an app-less repository, as main now does. It returns the check line and the Preview card, each with its own id.- Fragment route:
GET /:owner/:name/pulls/:number/statemoved intochange.tsaspullStateFragment. It is authorized bypullContext, the same check the page uses (404 for an unreadable repository, an unreadable pull or a bad number). I moved it becausepreviews.tsimportingchange.tswould be circular. - Region id:
#pull-headis now#pull-check. The fragment no longer includes the title block, which main'schangeHeaddraws for both tabs, so the title stays out of the swap.src/web/live.tsandtest/studio.test.tsuse the new id. - Left alone: the swap triggers and the earlier
test/board-windows.test.tsfix.
The change page now follows its own ship in place: ready for a look → shipping → shipped without a reload. The earlier check failure came from an old test, and I've fixed it.
test/board-windows.test.tspasses (7 pass, 0 fail). I did not re-runtest/studio.test.tsortsc --noEmitafter the fix; the forge runs the full check on this push.Why the check failed
test/board-windows.test.ts, spends $0.40 on that app 5 hours before the test runs, so it holds on any day. No code undersrcchanged.What the change does
GET /:owner/:name/pulls/:number/statereturns the word badge, note, deploy link, check line and Preview card.pullPanelsinsrc/web/studio/previews.tsrenders it, and the page's first paint uses the same function. It computes no diff and adds no query per comment.src/web/live.tsfetches the fragment and swaps it in onpull.mergedfor this pull, on a deployrun.*for its preview environment, and onapp.servingfor production at this change's head or merge commit. Nothing else triggers it, and the markup is unchanged, so the page doesn't shift.test/studio.test.tsfail on the old code. One checks that the fragment renders the change's current word. The other checks that the client script names the fragment's path.Left out
To try it Open a ready pull's page and press Ship. The word and the Preview card change in place.
Closes #82