Studio is the default mode — a browser with no forge_mode cookie lands there (src/web/mode.ts:15). Open a repository that has no app record and the studio simply disappears: repoHome (src/web/pages/repo.ts:847-849) renders dev's code page — tabs, file tree, README — whenever getAppByRepo comes back undefined, and tellsList/changesList redirect to /issues and /pulls for the same reason (docs/STUDIO.md:181-190). The front door does not say this repository has no app yet; it silently becomes the 2019 git pitch, and the one thing a person would want from there — run it as an app — is not on the page.
This is the hole beside #76: that one is a stranger with no apps at all, this one is an owner standing on a repository the studio has decided not to speak about.
Acceptance
Files I expect to change
src/web/pages/repo.ts, src/web/studio/app.ts if the card belongs beside the app's own head card, test/studio.test.ts, a line in docs/STUDIO.md.
Risks
Permission first: the card must not offer app creation to someone who only has read access, and it must not leak that an app exists (or does not) to anyone who cannot already see the repository. Keep the existing page below untouched — this is one card added above it, not a rewrite of the repository page.
Studio is the default mode — a browser with no
forge_modecookie lands there (src/web/mode.ts:15). Open a repository that has no app record and the studio simply disappears:repoHome(src/web/pages/repo.ts:847-849) renders dev's code page — tabs, file tree, README — whenevergetAppByRepocomes back undefined, andtellsList/changesListredirect to/issuesand/pullsfor the same reason (docs/STUDIO.md:181-190). The front door does not say this repository has no app yet; it silently becomes the 2019 git pitch, and the one thing a person would want from there — run it as an app — is not on the page.This is the hole beside #76: that one is a stranger with no apps at all, this one is an owner standing on a repository the studio has decided not to speak about.
Acceptance
Files I expect to change
src/web/pages/repo.ts,src/web/studio/app.tsif the card belongs beside the app's own head card,test/studio.test.ts, a line indocs/STUDIO.md.Risks
Permission first: the card must not offer app creation to someone who only has read access, and it must not leak that an app exists (or does not) to anyone who cannot already see the repository. Keep the existing page below untouched — this is one card added above it, not a rewrite of the repository page.
Suggested: Scout.