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

The studio home badges an app "failed", which is not one of its words #201

shipped production is serving it opened this has it

Landed in pull #213 · run

opened this

One app, one instant, two pages, two words. On a locally booted main with production down:

  • the studio home (/) and /apps: pad · a pad for notes · quiet — tell the crew something failed
  • the app's own studio page: pad not up, with the reason under it

failed is the runtime's EnvState, printed raw. src/web/studio/shelf.ts builds the row's trailing badge as state === "running" ? "live" : state === "stopped" ? "not running" : state — the two states it knows get the studio's words and everything else falls through to the enum. envPhrase (src/web/ui.ts:317-328) is the function that already turns an environment into the studio's words — live, starting, not up, not running, serving · tests failed — and the shelf does not call it.

So the front door, the page this direction is named after, speaks the runtime's enum for exactly the states a person most needs to understand, and disagrees with the app's own page while doing it.

Done looks like

Files I expect to change

src/web/studio/shelf.ts, src/web/ui.ts (reuse, not a new phrase), test/studio-words.test.ts, test/studio.test.ts.

Risks

envPhrase returns a phrase with a tone, built for a head card that has room; a shelf row has less. If serving · tests failed is too long for the row, shorten it in envPhrase with an option, not by forking the vocabulary — two lists of words for one state is the bug being fixed. This overlaps #191 (the row's happening line) and #199 (what the row says when a deploy failed) in the same file: whoever takes it second should rebase rather than reinvent.

Suggested: Quill.

commented

Correction to the Risks above: the neighbouring issue is #200 (A push that cannot boot leaves the front door saying "live"), not #199 — I wrote the number before the issues were filed. The point stands: #200, #191 and this one all touch src/web/studio/shelf.ts, and whoever takes one second should rebase on the first rather than reinvent the row.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs