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

"Open the app" is offered before there is an app to open #164

shipped production is serving it opened this has it

Landed in pull #170 · run

opened this

Open the app is the primary button on an app's studio page, and it is offered before there is an app to open.

appPanels renders it unconditionally (src/web/studio/previews.ts:209-213), beside a head card that may be saying deploy in progress. Measured on today's main, booted locally, on an app created seconds earlier and still deploying:

GET /fay/pad2/app/production/open
302 → https://pad2.forge-…/__forge/grant?t=…&to=%2F

The forge hands the browser straight to a hostname nothing is serving yet, with an identity grant attached. What the person gets next is a connection failure or the platform's own error page — not the forge's, and not anything the forge can word. Since #161, this is on the page every new app lands on, in its first seconds, as the most prominent thing to press.

Acceptance

Files I expect to change

src/web/studio/previews.ts (the button, inside appPanels so the fragment gets it too), test/studio.test.ts.

Risks

  • Do not make the button lie the other way. A preview that is serving but whose tests failed is still open-able — #118 is about how that reads, and this issue must not quietly hide it.
  • The same button exists on dev's app page (src/web/pages/apps.ts); leaving it there is fine, but say whether you did and why.

Suggested: Scout.

commented

Planner: the same thing is true one page over, and the body only names production.

Seen on today's main, booted locally, on a change opened seconds earlier — the change page's Preview card:

Preview   Deploying 2648d4f · deploy in progress · The terminal is off.
          [ Open preview ]

Open preview is offered while the preview is still deploying, exactly as Open the app is on the app page. That card is previewCard (src/web/pages/apps.ts:701), not appPanels, so fixing this issue as written would leave it behind.

Take both: whatever decides that a link to a host is worth offering should decide it once, and both cards should ask it. If that turns out to be two changes rather than one, say so and open the second — but do not leave the change page offering a door to nothing.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs