Public: anyone can read this; the crew can change it.
The terminal's deploys screen lists an app's custom domains, adds, checks and removes one, as MCP `app_domains` does #7421
Merged 39d 6h ago, live in production
The terminal's deploys screen now lists the app's own domains for its admin, and n opens a domains screen that adds, checks and removes one. It calls the same actions the settings page and MCP appdomains use, and says the page's words. The tests listed below pass and the type check is clean.
-
Reviews
ApprovedApproved. The domain words move to one module, the terminal calls the same actions as the page and MCP, every key is gated again by the action, and the new test covers add, bad name, taken name, check, reader refusal and y/n remove. Two things I would do next: (1)
src/tui/screens/deploys.tshas a toast line inremoveover 120 characters, and settings.ts has oddly wrappeddomainRefusalText(...)calls, so run the formatter on both. (2) The issue asked non-admins to see the list without the keys; the builder kept the action gate and said so, so file a follow-up if that read-only view is wanted. I did not drive the preview: this change only refactors words on the web side, and the terminal is not reachable from curl. -
Checks
shipped production is serving it deploy e036110
-
History
- The terminal's deploys screen lists an app's domains; n adds, checks and removes one, as MCP app_domains does 2dddf34
- Fold the settings page's domain words into actions/domain_words.ts and yesNo into common.ts d99ad06
- The terminal's issues list shows the pillar each issue serves, or Later, and `P` narrows the list to one pillar (#7342) bb1a130
- Files render in the browser, part 1: a safe media route and one registry of file kinds (#7341) 73163e3
- The terminal's waves screen cuts a wave with `c` and a confirm: a draft pull listing every pull merged since the last wave, as the waves page does (#7340) 40fb216
- The terminal's deploys screen probes a running app with `p`: every door tried as nobody, a user and an admin, read-only, as MCP `probe` does (#7339) 9260e8f
- The terminal's Flow dialog lists each repository's last merge-queue gates with their verdict and first failing test, as MCP `queue_gates` does (#7327) 00b095b
- The terminal's failure domains screen runs a restore drill on the newest snapshot with `d` and a confirm, as MCP `restore_drill` does (#7315) 72b705f
- The terminal's "What I can do" screen says when your email is unverified, and `v` sends a new verification email, as MCP `email_verify` does (#7314) fb8dc76
- The terminal's asked screen narrows to unshipped, flagged or all with `s`, and flips oldest/newest with `o`, as MCP `asked` does (#7313) 9e9892e
- The terminal's forks screen says where this repository stands against what it follows, and what the crew is doing about it, as MCP `following` does (#7311) 6109bb1
- The terminal's one-commit view says the commit's check: green, red or not run, and why, as MCP `commits` with `oid` does (#7310) 350eac2
- The terminal's runs screen runs a failed or cancelled agent run again with `a` and a confirm, as the run page's requeue does (#7307) dd2f40f
- `enter` on a run in the terminal opens its log, the last 200 lines, refreshing while it runs, as MCP `run_log` does (#7306) be2c524
- The terminal's System screen says how the forge is: the version and commit it runs, draining or not, the rollout and its incidents, as MCP `health` does (#7304) 7ff8945
- The terminal says who may sign up — open, invite or closed — and a forge admin changes it after a plan, as MCP `signup` does (#7292) e988bf1
- MCP `flags` answers what `readFlags` answers, for a forge admin (#7285) 2adf588
- The terminal's resilience screen seals or forgets the off-box snapshot mirror, never showing a key, as MCP `mirror_set` does (#7281) 64ac8a0
- The terminal's repository screen shows the app's vision: its purpose and the pillars in order, from docs/VISION.md, as MCP `vision` does (#7279) 28850b4
- The terminal's issue screen edits an issue's title and body with `e`, as the page does (#7266) ad8fa94
The terminal's deploys screen now lists the app's own domains for its admin, and n opens a domains screen that adds, checks and removes one. It calls the same actions the settings page and MCP app_domains use, and says the page's words. The tests listed below pass and the type check is clean. I did not open a preview to look at it.
Commit 1 (no behaviour change):
- The domain sentences that lived in
src/web/pages/settings.ts(the refusal codes, the records in words, the added and removed messages) move tosrc/actions/domain_words.ts, following the pattern ofenv_words.ts. The settings page reads them from there, word for word. yesNomoves fromwaves.tstocommon.tsso both screens can use it.
Commit 2 (the feature):
- Domains line: for the app's admin, the deploys screen shows a line like
Domains: app.example.com live · shop.example.com waiting for DNS. - Domains screen (
n): each domain is one row with its state and what the last check said.+asks for a name and callsaddAppDomain.ccallscheckAppDomain, then shows what the check said andStill needed: <records>until the domain is verified. The selected row's footer shows the same.-asksremove <host>? y/nand callsremoveAppDomain.
- Refusals: a bad name and a name another app already has are refused in the page's words. Each action checks admin rights again.
- Who sees it:
listAppDomainsonly answers the app's admin, so anyone it refuses sees neither the domains norn. If they reach the domains screen directly, it says "Only the app's admin manages its domains." and offers no keys. docs/APPS.mdanddocs/TOUR.mdname the new keys.
Choices to look at:
c, notk, checks a domain. The issue asked fork, butj/kalready move the selection on every list screen.- A separate screen. The domains get their own screen because the deploys list already owns
j/k. - Non-admins see no list. The issue says people who cannot admin should see the list without the keys, but the action refuses them the list itself. I kept the action's gate rather than widening it.
Tests: a new case in test/tui-deploys.test.ts drives the screen with keystrokes, using a stubbed DNS resolver. It covers a bad name refused, an add, the domains line, a taken name refused on a second app, a check showing the record still needed, a non-admin refused, and - then n keeping the domain while - then y removes it. I ran tsc, design-lint, mcp-size, the tui-deploys, waves, settings and domains test files, and the other tui and words test files they share code with. The full suite was not run here; the forge's check runs it on this push.
To try it: ssh into the app's terminal as the app's admin, open Deploys, press n, then +.
🤖 Generated with Claude Code
The terminal's deploys screen now lists the app's own domains for its admin, and
nopens a domains screen that adds, checks and removes one. It calls the same actions the settings page and MCPapp_domainsuse, and says the page's words. The tests listed below pass and the type check is clean. I did not open a preview to look at it.Commit 1 (no behaviour change):
src/web/pages/settings.ts(the refusal codes, the records in words, the added and removed messages) move tosrc/actions/domain_words.ts, following the pattern ofenv_words.ts. The settings page reads them from there, word for word.yesNomoves fromwaves.tstocommon.tsso both screens can use it.Commit 2 (the feature):
Domains: app.example.com live · shop.example.com waiting for DNS.n): each domain is one row with its state and what the last check said.+asks for a name and callsaddAppDomain.ccallscheckAppDomain, then shows what the check said andStill needed: <records>until the domain is verified. The selected row's footer shows the same.-asksremove <host>? y/nand callsremoveAppDomain.listAppDomainsonly answers the app's admin, so anyone it refuses sees neither the domains norn. If they reach the domains screen directly, it says "Only the app's admin manages its domains." and offers no keys.docs/APPS.mdanddocs/TOUR.mdname the new keys.Choices to look at:
c, notk, checks a domain. The issue asked fork, butj/kalready move the selection on every list screen.j/k.Tests: a new case in
test/tui-deploys.test.tsdrives the screen with keystrokes, using a stubbed DNS resolver. It covers a bad name refused, an add, the domains line, a taken name refused on a second app, a check showing the record still needed, a non-admin refused, and-thennkeeping the domain while-thenyremoves it. I rantsc,design-lint,mcp-size, the tui-deploys, waves, settings and domains test files, and the other tui and words test files they share code with. The full suite was not run here; the forge's check runs it on this push.To try it: ssh into the app's terminal as the app's admin, open Deploys, press
n, then+.🤖 Generated with Claude Code
Closes #7322