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 #997
The change's page now follows its own ship: ready for a look → shipping → shipped happens in place, with no reload. This branch was already built and pushed. The new comment on #82 and the pull conversation came back empty over the API, so I made no further edits and have nothing new to push.
stopped closed without shipping deploy aa4bf6d
Sign in to join this conversation.
new above
offline
The change's page now follows its own ship: ready for a look → shipping → shipped happens in place, with no reload. This branch was already built and pushed. The new comment on #82 and the pull conversation came back empty over the API, so I made no further edits and have nothing new to push. If the feedback asked for something specific, say what it was.
What changed
GET /:owner/:name/pulls/:number/statereturns the word badge, its note, the deploy link, the check line and the Preview card. It is rendered bypullPanelsinsrc/web/studio/previews.ts, the same function the page's first paint uses. It computes no diff and adds no query per comment.src/web/live.tsfetches that path and swaps in the head and preview on exactly three events. They arepull.mergedfor this pull, a deployrun.*forpull-<n>, andapp.servingfor production at this change's head or merge commit. Nothing else triggers it. The swap keeps the same markup, so the page doesn't shift.test/studio.test.tshas two new tests that fail 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.Checks
test/studio.test.ts: 157 pass, 0 fail on the final run. A first run showed 6 failures that did not repeat. I did not investigate them.tsc --noEmitcould not run here. It failed to find thebuntype definitions.bun testwas not run; the forge runs the check.Left out
To try it Open a ready pull's page, press Ship, and watch the word and the Preview card change in place.
Closes #82