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

The terminal reads its refusals from the modules that own them, not its own copies #5594

shipped production is serving it opened this has it
opened this

For: The terminal's refusals for a private address, a new account's repository limit and an origin already connected reads the same wherever it is said, because it is said from one place. Today each sentence below is typed out separately in src/tui/screens/common.ts, src/http/api.ts, src/core/capacity.ts, src/actions/origins.ts, so the next edit to one copy makes them drift.

Done:

  • [ ] the owning modules (export from core/capacity.ts, actions/origins.ts and a small src/kernel/address_words.ts for the first) exports these sentences (new, or the existing module of that concept if one already owns similar words; say which in the pull):

- "that address is inside a network, not on the internet" - "new accounts cannot create repositories yet" - "that account is already connected"

  • [ ] Every file named imports them, and grep -rn for each sentence under src/ finds only the module.
  • [ ] Answers and pages are byte-for-byte unchanged: every existing test passes as it is.
  • [ ] A new test/tui-words.test.ts asserts each exported sentence is non-empty and that each file named no longer contains the literal (read the source as text). It fails if a copy is typed back.
  • [ ] Before pushing, run test/tui-words.test.ts, the tests of the files you touched, bun x tsc --noEmit and, if src/web changed, bun scripts/design-lint.ts. A red test elsewhere that main also has is named in the pull, not a reason to stop.

Files: the owning modules (export from core/capacity.ts, actions/origins.ts and a small src/kernel/address_words.ts for the first), src/tui/screens/common.ts, src/http/api.ts, src/core/capacity.ts, src/actions/origins.ts, test/tui-words.test.ts. Risk: a pure move; change no wording. Touch only the lines the sentences are on.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs