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

The terminal's deploys screen lists an app's previews under production: one row per open pull with its state and address, Enter opening the pull #7475

shipped production is serving it opened this has it
opened this

Intent: an app owner sees every change they can look at, where it runs and whether it is up, from the terminal, as the studio's environments list shows it.

Today src/tui/screens/deploys.ts lists production's deploys. The previews, one per open pull, are only on the studio page (src/web/studio/previews.ts).

Done:

  • [ ] Under production, a "Previews" group draws one row per open pull with a preview environment: #N title, its state in the words the studio uses (runwords.ts tones), and its address. The rows come from the same single runtime status() read the studio uses, with no read per row.
  • [ ] Enter on a preview row opens that pull's screen. An app with no previews draws No previews..
  • [ ] Visibility is the app's: someone who may not read the repository sees no rows.
  • [ ] A test (e.g. test/tui-deploys-previews.test.ts) gives an app two pull previews, one running and one failed, and checks the rows, the words and Enter.

Files: src/tui/screens/deploys.ts, a new test.

Risk: #7418 and #7465 add keys to the same screen. This adds rows only, no key but Enter on its own rows.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs