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

An owner can archive an app from its settings: it spins down, hides from lists and stays reachable by link #14131

opened this

Check · Review · Land · Live — Its check is queued. Next: reviewer, no review yet.

Ready to land

Archive and Restore from settings now preview and receipt. The /apps hiding, direct-URL access and Restore were already on main, so I only closed the gaps. tsc is clean and the archive, settings, TUI and gate-list tests pass.

Notes · 9 files · +170 −34

working queued to check deploy 33ea5f5

Check queued 11m, place 51 of 64Check of 33ea5f5fast tier: queued · full gate runs on land

Website spec: 25 findings (report only)
opened this

Archive and Restore from settings now preview and receipt. The /apps hiding, direct-URL access and Restore were already on main, so I only closed the gaps. tsc is clean and the archive, settings, TUI and gate-list tests pass. gate.ts passes with a Direction: line, which I added in a second commit to satisfy its "pipeline first" rule. I did not run the forge's full check.

What already existed (#10890 and earlier):

  • Archiving stops the app and its previews (moveArchive in src/actions/repos.ts).
  • /apps omits archived apps, with an "N archived" link to /apps?archived=1.
  • /-/confirm already carries an Archive preview.
  • Restore, and the MCP and TUI doors, were already in place.

What changed:

  • Preview: the Settings → Archive button on a live app opened no preview and archived straight away. It is now a GET to the confirm page, and a same-origin POST then archives. Restore stays one tap, since it needs no preview.
  • Receipt: the flash after archiving now says the app is stopped, hidden from home and /apps, and its address still opens with a banner. The Restore flash says the app is listed again and wakes on its next visit.
  • Banner: the "Archived on <date>" banner with Restore appeared only on non-app repository pages. An archived app's own page, the one the direct URL opens, had none. archivedLine moved to src/web/pages/following.ts and src/web/studio/app.ts now draws it.
  • TUI and docs: the archived-repositories screen now says an archived app is still at its address, and there is a docs/features/app-archive.md page with an index row.

Tests:

  • New test/app-archive.test.ts covers the preview, a refused cross-origin POST, the receipt, hide, reach with banner, and restore with receipt.
  • test/settings.test.ts expected the old direct post for Archive. That expectation was wrong for the new behaviour, so I changed it to expect the confirm form.

Left alone: the Looks: line says "No look" because the change is a button and banner text. I did not change the confirm page's wording, which already says what archiving does.

Try it: open /<owner>/<app>/settings, press Archive, read the confirm page and confirm. The app leaves /apps and home, and its URL still opens with the banner and Restore.

🤖 Generated with Claude Code

Closes #14085

2 earlier comments
commented

Archive and Restore from settings now preview and receipt. The /apps hiding, direct-URL access and Restore were already on main, so I only closed the gaps. tsc is clean and the archive, settings, TUI and gate-list tests pass. gate.ts passes with a Direction: line, which I added in a second commit to satisfy its "pipeline first" rule. I did not run the forge's full check.

What already existed (#10890 and earlier):

  • Archiving stops the app and its previews (moveArchive in src/actions/repos.ts).
  • /apps omits archived apps, with an "N archived" link to /apps?archived=1.
  • /-/confirm already carries an Archive preview.
  • Restore, and the MCP and TUI doors, were already in place.

What changed:

  • Preview: the Settings → Archive button on a live app opened no preview and archived straight away. It is now a GET to the confirm page, and a same-origin POST then archives. Restore stays one tap, since it needs no preview.
  • Receipt: the flash after archiving now says the app is stopped, hidden from home and /apps, and its address still opens with a banner. The Restore flash says the app is listed again and wakes on its next visit.
  • Banner: the "Archived on <date>" banner with Restore appeared only on non-app repository pages. An archived app's own page, the one the direct URL opens, had none. archivedLine moved to src/web/pages/following.ts and src/web/studio/app.ts now draws it.
  • TUI and docs: the archived-repositories screen now says an archived app is still at its address, and there is a docs/features/app-archive.md page with an index row.

Tests:

  • New test/app-archive.test.ts covers the preview, a refused cross-origin POST, the receipt, hide, reach with banner, and restore with receipt.
  • test/settings.test.ts expected the old direct post for Archive. That expectation was wrong for the new behaviour, so I changed it to expect the confirm form.

Left alone: the Looks: line says "No look" because the change is a button and banner text. I did not change the confirm page's wording, which already says what archiving does.

Try it: open /<owner>/<app>/settings, press Archive, read the confirm page and confirm. The app leaves /apps and home, and its URL still opens with the banner and Restore.

🤖 Generated with Claude Code

commented

<!-- look-pages a6e10b0e8018 --> Look pages for a6e10b0, from the gate:

  • look pages (inferred): this pull changes src/web/pages/following.ts, src/web/pages/repo.ts, src/web/pages/settings.ts and 1 more; the forge pictures /settings/crew (src/web/pages/following.ts), /settings/grants (src/web/pages/following.ts), /preview-admin/sample (src/web/pages/following.ts) and 3 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

Archiving an app now goes through the confirm page from Settings. The archive confirmation says what happened, and an archived app's page carries the banner with Restore in the studio too.

Fixed in this push: the first-view budget test failed because /settings/crew rendered 90 blocks against a budget of 89. The Archive block I added to settings carried an explainer paragraph, and I removed it. The confirm page already says the same thing. test/attention.test.ts, test/app-archive.test.ts and test/settings.test.ts pass locally. bun x tsc --noEmit, the gate and design-lint are clean.

The other failure: "a sleeping preview woken at the limit" in test/quotas-running.test.ts timed out at 120 seconds in the check. It passes here in 14 seconds, and nothing in this pull touches that path. I treated it as a flake and changed nothing, so it may come back on the next check.

Not done: the explainer text is gone from the settings page rather than moved elsewhere, to keep that page inside its budget.

To try: open /<owner>/<app>/settings and press Archive. Read the confirm page and confirm. /apps then omits the app, and its URL shows the banner with Restore.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs