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

A test fails the first-login page on jargon, in its visible text and its labels, for every role that lands there #10756

opened this

Merged 23d 15h ago, live in production

A new test now fails the first-login page when it uses jargon, and the one hit it found is reworded. The new test, the existing first-login and spawn tests, tsc, the gate and bun scripts/design-lint.ts all pass. I did not run the full suite, so the forge's check does that on this push.

Notes

opened this

A new test now fails the first-login page when it uses jargon, and the one hit it found is reworded. The new test, the existing first-login and spawn tests, tsc, the gate and bun scripts/design-lint.ts all pass. I did not run the full suite, so the forge's check does that on this push.

What changed

  • Word list: test/helpers/jargon.ts holds the twelve words from the issue and has no allow list. It matches whole words, case-insensitively, plus a plural "s". It reads visible text and aria-label, title, alt and placeholder.
  • New test: test/first-login-words.test.ts spawns and claims a forge, as next-steps-card.test.ts does. It renders the home page for the owner and for the everyday account, and checks everything inside <main>. A third test checks that the word list catches what it should.
  • Reworded: the only hit on that page was the crew-has-no-key note in src/web/studio/crew.ts. It said "The crew has no model key yet, so it cannot start work." It now says "The crew cannot start work yet: it needs a subscription to think with." The link text is unchanged.

Two things to look at

  • Edited test expectations: test/spawn-child-apps.test.ts asserted the old sentence (The crew has no model key yet), so I changed those assertions to the new wording. That is against "no test expectation is edited to stay green", but the old sentence contains "model key" and could not stay. The note is shared with app pages. No behaviour changed.
  • Scope of the check: it covers only <main>. The menu and command palette ("Access tokens", "SSH keys", "Origins", "Command palette") also trip the list, but the issue puts menu renames out of scope. Those hits are left for their own issue.

Not done

  • Screenshots: the sandbox can't take them, so there are no before/after screenshots. The only visible change is the one sentence above.

To try it, run bun test test/first-login-words.test.ts.

🤖 Generated with Claude Code

Closes #10752

4 earlier comments
commented

A new test now fails the first-login page when it uses jargon, and the one hit it found is reworded. The new test, the existing first-login and spawn tests, tsc, the gate and bun scripts/design-lint.ts all pass. I did not run the full suite, so the forge's check does that on this push.

What changed

  • Word list: test/helpers/jargon.ts holds the twelve words from the issue and has no allow list. It matches whole words, case-insensitively, plus a plural "s". It reads visible text and aria-label, title, alt and placeholder.
  • New test: test/first-login-words.test.ts spawns and claims a forge, as next-steps-card.test.ts does. It renders the home page for the owner and for the everyday account, and checks everything inside <main>. A third test checks that the word list catches what it should.
  • Reworded: the only hit on that page was the crew-has-no-key note in src/web/studio/crew.ts. It said "The crew has no model key yet, so it cannot start work." It now says "The crew cannot start work yet: it needs a subscription to think with." The link text is unchanged.

Two things to look at

  • Edited test expectations: test/spawn-child-apps.test.ts asserted the old sentence (The crew has no model key yet), so I changed those assertions to the new wording. That is against "no test expectation is edited to stay green", but the old sentence contains "model key" and could not stay. The note is shared with app pages. No behaviour changed.
  • Scope of the check: it covers only <main>. The menu and command palette ("Access tokens", "SSH keys", "Origins", "Command palette") also trip the list, but the issue puts menu renames out of scope. Those hits are left for their own issue.

Not done

  • Screenshots: the sandbox can't take them, so there are no before/after screenshots. The only visible change is the one sentence above.

To try it, run bun test test/first-login-words.test.ts.

🤖 Generated with Claude Code

commented

The failing check was the first-view budget test, and I've fixed it and pushed. test/attention.test.ts, test/spawn-child-apps.test.ts and test/first-login-words.test.ts now pass here. I did not re-run the full suite, so the forge's check on this push is the full run.

My reworded no-key note was one word over the repository and app pages' budget: 118 words seen against 117 allowed. I shortened it to "The crew cannot start work yet: it needs a subscription." That is 10 words, down from 12 in the original sentence, so the pages end up under budget.

The rest of the pull is unchanged from my earlier description. It still adds the jargon test and word list, and still changes the assertions in test/spawn-child-apps.test.ts to the new wording.

commented

The first-login page now has no jargon in its visible text or labels for the owner or the everyday account. A test fails if it comes back. I could not take screenshots here, so the before/after is in words below. The type check, scripts/gate.ts and the three affected test files pass (16 tests).

What changed

  • Reworded note. The note on the first page of a new forge, in src/web/studio/crew.ts, now reads "The crew cannot start work yet: it needs a subscription." It used to read "The crew has no model key yet, so it cannot start work." That removes the one jargon hit in <main>.
  • Jargon test. test/first-login-words.test.ts checks <main> for the owner and for the everyday account against the word list in test/helpers/jargon.ts. Its header now says that.
  • Shared setup. The spawn-and-claim setup moved to test/helpers/claimed-forge.ts. Both this test and test/next-steps-card.test.ts use it, so they can't drift.
  • Hyphens. A hyphen now counts as a word break in the checker, so "ssh-key" and "model-key" are hits. A test covers it.

Edited assertions. The reworded sentence forced edits to assertions in test/spawn-child-apps.test.ts. Each edited assertion points at the new sentence and checks nothing else.

Not done. The aria-label, title and placeholder hits in the menu and command palette are still untested, because the checker only reads <main>. That is #10769.

🤖 Generated with Claude Code

commented

I fixed the failing check by regenerating the crew and explore rows of the tool table in docs/MCP.md. The table test now passes, and tsc --noEmit is clean. I ran only test/mcp-table.test.ts locally, not the full suite or scripts/gate.ts, and the forge's check will run the full suite on this push.

The test docs/MCP.md holds the tool table the code renders… landed on main after this branch was cut. This branch never had it, and the doc was already out of date for those two tools. I merged origin/main into the branch and ran bun scripts/mcp-table.ts to rewrite the table. The change is two lines in docs/MCP.md, committed on its own.

The pull's original change is unchanged: the first-login page stays free of jargon, the no-key note now reads "The crew cannot start work yet: it needs a subscription.", and the shared claimed-forge test setup is still there.

To try it, run bun test test/mcp-table.test.ts.

🤖 Generated with Claude Code

commented

Left #10752 open: 2 unticked items remain (Every hit on that page is reworded in plain words ("your apps", "the crew is working on…"); no test expectation is edited to stay green.; bun scripts/design-lint.ts passes; before/after screenshots in the pull.).

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs