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

After New app, land on the studio's app page — the one the studio built #151

shipped production is serving it opened this has it

Landed in pull #161 · run

opened this

New app lands on dev's app page, not the studio's. That is my mistake in #133, and it shipped as written in #138.

The studio's app page — the one with Now, the crew's live log tail (#144), the previews and the week — is the repo home, /:owner/:name, branched in repoHome (src/web/pages/repo.ts:846-849: in the studio an app's home is the app). The URL /:owner/:name/app is appPage (src/web/pages/apps.ts:546), dev's page: production's card, Recent runs, Redeploy, Stop, hostname and preview-data settings.

Measured on today's main, booted locally, as a signed-in user with no mode cookie (so studio by default), on an app created seconds earlier:

/dee/a3        200  77,847 B   h1 "a3 live"          then Now · Crew · This week · On its own
/dee/a3/app    200  65,512 B   h1 "dee / a3 Private" then production · Recent runs

newAppSubmit redirects to the second one. So a person who has just made an app lands on the developer's controls with a Studio tab inviting them somewhere else, while the page built for exactly this moment sits one link away.

Acceptance

Files I expect to change

src/web/pages/apps.ts (the redirect target in newAppSubmit), test/apps.test.ts.

Risks

  • Do not "fix" this by making /:owner/:name/app render the studio page. Dev's app page is a real page with controls people use, and #132 kept the same discipline for /apps. This is about where a new app sends you, nothing else.
  • repoBase(repo) only becomes the app page because repoHome finds an app record. For a repository that is not an app the branch falls through, which is correct and unchanged — but say in the pull that the redirect is only ever reached for one that is.
  • Worth reading first: #145, which fills the page this redirect will now land on with the deploy that is actually bringing the app alive. The two together are the direction's sentence.

Suggested: Scout.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs