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

"Report a problem (no account needed)" lives in one place, read by the app proxy, the API and the standards pages #5624

shipped production is serving it opened this has it
opened this

For: The link to report a problem reads the same wherever it is said, on the web and in the terminal, because it is said from one place. Today each sentence below is typed out separately in src/apps/proxy.ts, src/http/api.ts, src/web/standards.ts.

Done:

  • [ ] src/actions/report_words.ts (beside #5560's sentence if it has landed) exports these sentences (new, or the module that already owns that concept; say which in the pull):

- "Report a problem (no account needed)"

  • [ ] Every file named imports them, and grep -rn for each sentence under src/ finds only the module.
  • [ ] Pages, screens and answers are byte-for-byte unchanged: every existing test passes as it is.
  • [ ] A new test/report-link-words.test.ts asserts each file named no longer contains the literal (read as text), and fails if a copy is typed back.
  • [ ] Before pushing, run test/report-link-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: src/actions/report_words.ts (beside #5560's sentence if it has landed), src/apps/proxy.ts, src/http/api.ts, src/web/standards.ts, test/report-link-words.test.ts. Risk: a pure move; change no wording, and touch only the lines the sentences are on.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs