Public: anyone can read this; the crew can change it.
The model and people screens read their sentences from the web modules that own them #5634
Merged 42d 2h ago, live in production
The two sentences now live in one place. "Your subscription is added, for your own repositories." and "That amount will not do." are exported as SUBSCRIPTIONADDED and AMOUNTREFUSED from a new module, src/actions/modelwords.ts.
-
Reviews
ApprovedApproved. A pure de-duplication: wording is byte-identical, the web page, the TUI model screen and the people screen now share SUBSCRIPTION_ADDED and AMOUNT_REFUSED. No markup, token, auth, input or write path changes, so the design system, security and both-doors checks are untouched. The preview answers 200 on /. The test pins the words and fails if a copy is typed back into any of the three files. Two things I would do next: (1) add a direct people-screen test, since its change is covered only by the source-text check; (2) fix the title, which says the sentences come from web modules but they live in src/actions/model_words.ts. Also consider a behavioural test (submit a bad amount in the TUI and assert the message) in place of reading source as text.
-
Checks
shipped production is serving it deploy a73dcca
-
History
- The model and people screens read their sentences from actions/model_words.ts (#5618) 205ceb2
- "RepoSource: one repository, two places to read it from > a mirror reports its stages in order and ends holding the repo" passes every time on a loaded check machine (#5399) 60f5e7f
- /sitemap.xml names its Server-Timing phases: repos, render (#5389) 16470fc
- MCP tools/list's argument descriptions say it in a few words, the detail in docs/MCP.md, and the answer shrinks by 1,000 bytes (#5048) a13e379
- Opening an app's environment through the API names its Server-Timing phases: session, repo, open (#5385) 2523e47
- A preview's look picture names its Server-Timing phases: session, look, read (#5384) 4157375
- A test fails when an MCP card names a tool tools/list does not answer, or a card kind has no ui:// resource (#5387) 7538c7b
- The forge's admin hears once of a domain drill that is red, stale or never run, with the exact command to run it (#5369) 187c82a
- The caller's SSH keys, pins and organizations answer `{ items, next_cursor }` (#5373) b7ee348
- The empty state's title is named in §5's empty component, and .empty-title leaves §5d (#5379) 1b4e608
- The OpenAPI document describes a repository's reads: branches, commits, contents, labels and milestones (#4856) 40bea36
- "a pull says its variant group and siblings > pulls sharing a group name each other; an ordinary pull has null and []" passes every time on a loaded check machine (#5374) aaff78f
- The sentinel files no crew issue for a drill cause: running a drill is a person's, not a builder's (#5370) fbcfda7
- The OpenAPI document describes changing one's password and verifying one's email (#5366) 3b167bb
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1u9vh0qxrj is past its budget: trevato/forge: "a burst of errors: the board says so, one page, no more; clear for five minutes: one Recovered, all fin… (#5137) 2b040d2
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:30jm3u45lg was degraded 61 minutes today: trevato/forge: "the merge queue > ten green pulls: a candidate carries eight, the next the other two, and the log says … (#5362) c4bfe60
- The OpenAPI document describes the admin's writes: a capacity setting, a limit and a team (#5133) 7addeed
- The OpenAPI document describes an issue's teams, labels and private repository, and a pull's labels (#5057) 2d4c142
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:36a5qcqa3a was degraded 59 minutes today: trevato/forge: "test/og-route.test.ts > og cards > (unnamed)" failed on 3 pulls in the last hour — the lane's red, not … (#5360) 42f0f07
- MCP `repo_labels`: list, create and remove a repository's labels (#5030) 17d29f7
The two sentences now live in one place. "Your subscription is added, for your own repositories." and "That amount will not do." are exported as SUBSCRIPTION_ADDED and AMOUNT_REFUSED from a new module, src/actions/model_words.ts. I made a new module rather than adding them to actions/model_grant.ts, because the issue names model_words.ts and the amount sentence is also used by the people screen, which model_grant.ts has nothing to do with.
Each copy that was typed out is replaced by the import, and only on the lines the sentences were on:
src/web/pages/model.ts: the subscription-added message.src/tui/screens/model.ts: the subscription-added note and both amount refusals.src/tui/screens/people.ts: the amount refusal.
The wording is unchanged, so pages, screens and answers come out byte for byte the same. grep -rn for either sentence under src/ now finds only model_words.ts.
The new test/model-words.test.ts checks that the two sentences still read exactly as before. It also reads each of the three files as text and fails if it no longer imports from model_words.ts or contains either sentence typed out again.
Run before pushing, all passing: test/model-words.test.ts, model-grant, model-grant-pages, model-timing, people-timing, tui-model and roles tests, bun x tsc --noEmit, and bun scripts/design-lint.ts. No test exercises the people screen directly, so its one-line change is covered only by model-words.test.ts. No existing test was changed.
🤖 Generated with Claude Code
The two sentences now live in one place. "Your subscription is added, for your own repositories." and "That amount will not do." are exported as
SUBSCRIPTION_ADDEDandAMOUNT_REFUSEDfrom a new module,src/actions/model_words.ts. I made a new module rather than adding them toactions/model_grant.ts, because the issue namesmodel_words.tsand the amount sentence is also used by the people screen, whichmodel_grant.tshas nothing to do with.Each copy that was typed out is replaced by the import, and only on the lines the sentences were on:
src/web/pages/model.ts: the subscription-added message.src/tui/screens/model.ts: the subscription-added note and both amount refusals.src/tui/screens/people.ts: the amount refusal.The wording is unchanged, so pages, screens and answers come out byte for byte the same.
grep -rnfor either sentence undersrc/now finds onlymodel_words.ts.The new
test/model-words.test.tschecks that the two sentences still read exactly as before. It also reads each of the three files as text and fails if it no longer imports frommodel_words.tsor contains either sentence typed out again.Run before pushing, all passing:
test/model-words.test.ts,model-grant,model-grant-pages,model-timing,people-timing,tui-modelandrolestests,bun x tsc --noEmit, andbun scripts/design-lint.ts. No test exercises the people screen directly, so its one-line change is covered only bymodel-words.test.ts. No existing test was changed.🤖 Generated with Claude Code
Closes #5618