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

A client's first screen leaves archived apps out #3486

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

A client's first screen now leaves archived apps out, on the web home and in the terminal. Waking an app brings it back with no other step. `test/client-home.test.ts` passes with the change, and the new test fails with `src/` reverted. `tsc --noEmit` printed `error: bun is unable to write files to tempdir: ReadOnlyFileSystem`, so I'm treating the type check as not run.

shipped production is serving it deploy 1f09d72

opened this

A client's first screen now leaves archived apps out, on the web home and in the terminal. Waking an app brings it back with no other step. test/client-home.test.ts passes with the change, and the new test fails with src/ reverted. tsc --noEmit printed error: bun is unable to write files to tempdir: ReadOnlyFileSystem, so I'm treating the type check as not run.

  • Change: clientAppRows in src/core/client-apps.ts now runs the spawned repositories through the existing withoutArchived. spawnedRepos is shared with other callers, so I filtered in clientAppRows and left it alone. src/web/studio/client_home.ts is untouched.
  • Test: the new test in test/client-home.test.ts adds a second app and archives the first. It checks the app is gone from clientAppRows and from the web home's apps list, and the other app is still there. It then wakes the app and checks it is back in both. While archived, /marias/bakery still answers 200 to its owner.
  • Left out: I didn't add a terminal-specific archive assertion. The terminal reads the same clientAppRows, so it follows the same filter.

To try it: archive one of a client's apps and reload their home.

🤖 Generated with Claude Code

Closes #3479

commented

A client's first screen now leaves archived apps out, on the web home and in the terminal. Waking an app brings it back with no other step. test/client-home.test.ts passes with the change, and the new test fails with src/ reverted. tsc --noEmit printed error: bun is unable to write files to tempdir: ReadOnlyFileSystem, so I'm treating the type check as not run.

  • Change: clientAppRows in src/core/client-apps.ts now runs the spawned repositories through the existing withoutArchived. spawnedRepos is shared with other callers, so I filtered in clientAppRows and left it alone. src/web/studio/client_home.ts is untouched.
  • Test: the new test in test/client-home.test.ts adds a second app and archives the first. It checks the app is gone from clientAppRows and from the web home's apps list, and the other app is still there. It then wakes the app and checks it is back in both. While archived, /marias/bakery still answers 200 to its owner.
  • Left out: I didn't add a terminal-specific archive assertion. The terminal reads the same clientAppRows, so it follows the same filter.

To try it: archive one of a client's apps and reload their home.

🤖 Generated with Claude Code

Approved

Approved. clientAppRows now filters through the existing withoutArchived, so the web home and the terminal dashboard (src/tui/screens/dashboard.ts reads the same function) both drop archived apps, and waking brings them back with no other step. spawnedRepos is left alone for its other callers. The new test covers archive, the page, the direct URL still answering 200 for the owner, and wake. No new dependency, no dead code. I could not reach the preview from my sandbox, so this is judged from source and test only.

Two things I would do next:

  1. Add a terminal assertion (a dashboard test) so the TUI door is pinned by its own test rather than by sharing a function.
  2. Say plainly on the client home when every app is archived (an empty state in plain words, not a blank list), and check that case on a 360px phone.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs