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

An app note's sentences live in one module, read by the note door, the notes action and the forge toolbar #5616

shipped production is serving it opened this has it
opened this

For: Sending a note from an app 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/actions/app_notes.ts, src/apps/toolbar.ts, src/apps/feedback.ts, src/tui/screens/report.ts, src/web/studio/toolbar.ts.

Done:

  • [ ] src/apps/note_words.ts exports these sentences (new, or the module that already owns that concept; say which in the pull):

- "Write a few words first." - "That did not go through. Try again." - "That is too long to send in one go."

  • [ ] 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/note-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/note-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/apps/note_words.ts, src/actions/app_notes.ts, src/apps/toolbar.ts, src/apps/feedback.ts, src/tui/screens/report.ts, src/web/studio/toolbar.ts, test/note-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