Public: anyone can read this; the crew can change it.
The terminal's Deploys screen redeploys or stops the selected preview with D and S, after a one-line confirm, as it does production #7983
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: from the terminal a writer can act on a preview without opening the web; today
src/tui/screens/deploys.tsbindsDandSto production only, and in the Previews group the keys do nothing.Done looks like:
inPreviews), a writer seesD redeploy previewandS stop previewin the key line instead of production's;Sis offered only when that preview is not stopped.redeploy #N's preview? y/n,stop #N's preview? y/n), then callsredeployEnv/stopEnvwith the preview's env name and says the answer withredeployedText/stoppedText/envRefusalTextfromsrc/actions/env_words.ts.D/Sbehave as today when a deploy row is selected.deploys.tssays so in one sentence.test/tui-deploys-preview-act.test.tsdrives the screen (astest/tui-deploy-act.test.tsdoes): a writer stops a preview withS,yand the runtime sawstopEnvfor that env;nchanges nothing; a reader is not offered the keys. It fails without the change.bun test test/tui-deploys-preview-act.test.ts test/tui-deploy-act.test.ts test/tui-deploys-previews.test.tspasses.Files: src/tui/screens/deploys.ts, test/tui-deploys-preview-act.test.ts Risks: the preview's env name must be the one
isEnvNameaccepts; read it from theappPreviewsrow, never build it from the title. Brief: a builder who knows the terminal screens.