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

"Your apps" is everybody's apps: a stranger's front door is somebody else's app #209

shipped production is serving it opened this has it

Landed in pull #223 · run

opened this

Two accounts on one locally booted main. Ann makes one public app and one private one. Bob signs up thirty seconds later, has no apps at all, and lands on this front door:

Studio
Your apps                                   [Map] [New app]
annpub    ann public app · quiet — tell the crew something    live
Happening now
Nobody is working right now.

The card is headed Your apps. The app is Ann's. The row does not say so — no owner anywhere on it — and it invites Bob to tell the crew something about an app he cannot write. /apps does the same under its own heading.

appsOf (src/web/studio/asks.ts:40) is listReposVisibleTo(db, user, { limit: 200 }) filtered to those with an app record: everything the viewer can see, which on a shared forge is everyone's public apps. The home then heads that list Your apps.

Two consequences worth naming:

  • On a forge with any public app, #69's empty state — A person with no apps at all lands on a page with nothing on it and no next step — can never fire, because somebody else's app fills the shelf.
  • Two people with an app called pad are indistinguishable on the front door, since the row's title is the bare name.

Done looks like

Files I expect to change

src/web/studio/home.ts, src/web/studio/shelf.ts (the owner on a row), src/web/studio/asks.ts (appsOf — split the two meanings rather than change the one), src/web/pages/apps.ts (/apps), test/studio.test.ts.

Risks

appsOf is shared by the home, the asks panel and the shelf; quietly narrowing it would also narrow what the asks panel considers, which is a different decision (see the sibling issue about a person's own changes). Split the two readings explicitly — apps you can write and apps you can see — and let each caller say which it means. Visibility itself must not move: this is about what the front door leads with, never about who may read what.

Suggested: Mason.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs