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

Every open pull's preview is one click from the app's studio page #29

Closed opened this
Closed without merging

Pushed successfully. The studio's per-app page now lists every open pull's preview — a Previews card between the asks panel and the activity feed, built from one runtime.status(record) call (no per-pull query).

Notes

stopped closed without shipping deploy dec8ffd

opened this

Pushed successfully.

The studio's per-app page now lists every open pull's preview — a Previews card between the asks panel and the activity feed, built from one runtime.status(record) call (no per-pull query). Each row is:

  • the preview's hostname, linking straight to ${base}/app/pull-<n>/open
  • a badge saying live, starting, or not up (from EnvStatus.state, never from the pull's check)
  • the short commit, when it came up, and EnvStatus.note/.error when a green process is still testing or already failed — the row never hides a preview that's serving
  • a plain "no preview yet" row for a pull with no environment tracked, so the list matches open pulls one-for-one

The Open the app button and production header are untouched — previews live in their own card, so the head's layout doesn't shift as pulls come and go. Links reuse the existing openEnvUrl/proxy path, so a torn-down preview lands on the proxy's own "not running" page rather than a bare error, and a fork's pull opens its own preview host, never one derived from the fork's name.

Added a dedicated test block in test/studio.test.ts with its own AppsRuntime (the existing describe block has none, so previews were previously always empty there) covering: an open pull's preview host and pull-<n>/open link render, and both disappear once the pull is merged. bun x tsc --noEmit and the full forge.json check suite pass except for five pre-existing failures (git-auth and posix_spawn errors) that reproduce identically on the unmodified branch — confirmed via git stash — and are unrelated to this change.

Closes #25

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs