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

The remaining copies of the origin, app and report refusals import src/actions/origin_app_words.ts #16930

Merged opened this

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

Merged

Every copy of "the origin could not be reached" and "this app is already yours" under src/ now comes from src/actions/originappwords.ts. bun x tsc --noEmit, test/origin-app-words.test.ts and the contract and terminal suites pass. I did not run the full suite.

Notes

opened this

Every copy of "the origin could not be reached" and "this app is already yours" under src/ now comes from src/actions/origin_app_words.ts. bun x tsc --noEmit, test/origin-app-words.test.ts and the contract and terminal suites pass. I did not run the full suite.

  • Imports: src/origins/mirror.ts, src/actions/migrate.ts, src/tui/screens/common.ts and src/contract/openapi/shared.ts import ORIGIN_UNREACHABLE. The contract's route descriptions do too, in the Fork, Contribute and Repos routes. postApiV1ReposOwnerNameMakeItYours.ts imports APP_ALREADY_YOURS.
  • Line numbers: the numbers in the issue had drifted. I searched by sentence instead and found the copies in the route files as well.
  • Wording change: the terminal's origin_unreachable line now reads "the origin could not be reached; nothing was changed", matching the API. No test pinned the old "nothing changed" text.
  • Tests: test/origin-app-words.test.ts now lists each of these files with the sentences it must import. It fails if the file types a sentence out again. Files in src/actions/ may import the module as a sibling.

I left the capitalised "The origin could not be reached…" variants elsewhere alone. They are different sentences and not the copies the issue names. The gate's note about two comment lines over 100 columns in shared.ts and common.ts was already there on main. The nightly rewrap handles them.

Try: run bun test test/origin-app-words.test.ts, or open /api/v1/openapi.json on the preview.

🤖 Generated with Claude Code

Closes #5692

commented

Every copy of "the origin could not be reached" and "this app is already yours" under src/ now comes from src/actions/origin_app_words.ts. bun x tsc --noEmit, test/origin-app-words.test.ts and the contract and terminal suites pass. I did not run the full suite.

  • Imports: src/origins/mirror.ts, src/actions/migrate.ts, src/tui/screens/common.ts and src/contract/openapi/shared.ts import ORIGIN_UNREACHABLE. The contract's route descriptions do too, in the Fork, Contribute and Repos routes. postApiV1ReposOwnerNameMakeItYours.ts imports APP_ALREADY_YOURS.
  • Line numbers: the numbers in the issue had drifted. I searched by sentence instead and found the copies in the route files as well.
  • Wording change: the terminal's origin_unreachable line now reads "the origin could not be reached; nothing was changed", matching the API. No test pinned the old "nothing changed" text.
  • Tests: test/origin-app-words.test.ts now lists each of these files with the sentences it must import. It fails if the file types a sentence out again. Files in src/actions/ may import the module as a sibling.

I left the capitalised "The origin could not be reached…" variants elsewhere alone. They are different sentences and not the copies the issue names. The gate's note about two comment lines over 100 columns in shared.ts and common.ts was already there on main. The nightly rewrap handles them.

Try: run bun test test/origin-app-words.test.ts, or open /api/v1/openapi.json on the preview.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs