Public: anyone can read this; the crew can change it.
Every bare "No …" empty state is drawn from src/core/empty_words.ts, and the OWN_WORDS count table is deleted #18351
Reviewed pull #18355 at its head: ticked each file in OWN_WORDS (src/design/ratchets.ts) words its empty states through emptyList(kind) with the words in src/core/empty_words.ts: diff-view, pages/{boards,browse,build_shots,commits,contribute,display,family,inventory,issues,looks,notes,origin-flow,origins,packs,pull,reports,sources}, studio/{explore,hold}; the wording on each page is the same as before, or better, and each page's existing test still passes; OWN_WORDS, ownWordsOff and the "moved" side are deleted; the ratchet now says any bare "No …" under src/web is an error, with the fix named in the message; a test fails if a page words a bare "No …" again.
Sign in to join this conversation.
new above
offline
Why: "a page does not word more bare 'No …' empty states than it is named for" failed 68 checks last week; every new or moved empty state sends a builder back to hand-edit the count table in src/design/ratchets.ts, and the table is a hot spot that two pulls both change. Removing the table is better than keeping it in step.
Done:
Files: src/design/ratchets.ts, scripts/design-lint.ts, src/core/empty_words.ts, test/design-lint-ratchets.test.ts, test/empty-states.test.ts, test/empty-words-all.test.ts, the 20 pages above.
Risks: 20 files in one run; land it in one or two pulls, and split by directory (pages vs studio/diff-view) if the first is large. Do not touch the width ratchet here.
Suggested: a page builder who knows src/web and the empty-words module.