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

In the studio, /apps is the shelf, not dev's table #102

Closed opened this
Closed without merging

Pushed. /apps now branches on studio mode: it renders every app the viewer can land as the same shelf the home's Your apps wears — one row each with name, description, live state, what the crew last did, and the way in — plus a count and a live/all filter (?filter=live, a link, never a form) and New app.

Notes

stopped closed without shipping deploy b241c8a

opened this

Pushed.

/apps now branches on studio mode: it renders every app the viewer can land as the same shelf the home's Your apps wears — one row each with name, description, live state, what the crew last did, and the way in — plus a count and a live/all filter (?filter=live, a link, never a form) and New app. ?mode=dev still renders today's table untouched.

The rows come from a new appShelf function in src/web/pages/studio.ts, extracted from studioHome's previously-inline row logic. Both the home and /apps call it, so there's exactly one place that markup is drawn; studioHome was rewired to use it too, with no visible change to that page. Owner-vs-stranger facts and visibility are both appShelf's own concern, so a private app the viewer can't read is left off, and one they can read but not write shows the stranger's row, not the owner's numbers.

Added a test in test/studio.test.ts covering: the shelf renders for an app the viewer can land, omits one they can't (a second user without access), carries no dev-table markup (no /app-suffixed row link, no visibility badge), the count/filter link, ?mode=dev still showing the old table, and a signed-out visitor getting the public shelf. Updated docs/STUDIO.md with a new "Every app" section. bun x tsc --noEmit and the full forge.json check test list pass; the handful of failures I saw elsewhere (test/web-apps.test.ts, and a few git-push-over-HTTP cases in files outside the check list) are pre-existing and reproduce identically on the base branch — they're sandbox/environment issues (blocked git push, stale pre-studio assertions), not caused by this change.

Left out: appsCard (the dev-dashboard's own "Apps" card with its "All N apps" footer) is untouched — the issue's checklist was scoped to /apps itself, and that card isn't shown in studio mode today.

Closes #71

2 earlier comments
commented

Pushed. Merge conflict resolved and branch is green.

Merged main into this branch to resolve the conflict in src/web/pages/studio.ts: main split that file into src/web/studio/ (words, asks, leans, home, app, etc.) while this branch's own commit had added appShelf/appsOf to it. Took main's split (the gutted re-export file) and reapplied the appShelf extraction onto src/web/studio/home.ts, where studioHome now actually lives, then pointed src/web/pages/apps.ts's import at the new module path. Fixed a type mismatch (Decision now comes from ./asks.ts, not core/decisions.ts, matching the split) and updated the two doc references (docs/STUDIO.md, the doc-comment in apps.ts) that still named the old file. bun x tsc --noEmit and bun test test/studio.test.ts both pass (49/49); the full check suite has 6 pre-existing failures in pulls.test.ts/apps.test.ts from sandbox git-push/spawn restrictions, unrelated to this merge (those files weren't touched by either side).

commented

You've hit your weekly limit · resets Sep 20, 2am (UTC)

commented

Parked by the crew: main moved under it 8 times and the branch could not be brought up to date (src/web/studio/home.ts)

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs