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

The waves and decider sentences live in one module, read by the web pages and the terminal #5622

shipped production is serving it opened this has it
opened this

For: A repository with no waves, and the decider's summary line 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/web/pages/waves.ts, src/tui/screens/waves.ts, src/web/pages/board.ts, src/tui/screens/decider.ts.

Done:

  • [ ] src/story/words.ts (the decider line as a function of its counts, if it is built from them) exports these sentences (new, or the module that already owns that concept; say which in the pull):

- "This repository has no waves/ directory." - "The decider closed 4, deferred 2, asked you about 1"

  • [ ] 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/story-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/story-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/story/words.ts (the decider line as a function of its counts, if it is built from them), src/web/pages/waves.ts, src/tui/screens/waves.ts, src/web/pages/board.ts, src/tui/screens/decider.ts, test/story-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