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 #18355
Merged 2h ago, live in production
Every bare "No …" empty state under src/web is now drawn from src/core/emptywords.ts, and the OWNWORDS count table is deleted. The design lint and tsc are clean, and the tests that name the changed wording pass.
-
Reviews
Changes requested — before the latest pushThe move to the table is clean and the wording is kept, but two bare "No …" sentences are still worded on the pages and the ratchet cannot see them. Fix these in one round.
- (first) src/web/pages/build_shots.ts and src/web/pages/sources.ts pass
sentence: "No screenshots on ${label} yet."andsentence: "No visits recorded for ${label} in … days."to emptyLine. That is a page wording its own bare "No …" empty state, only moved into an option, and OWN_FORM does not match it, so issue box 4 (a test fails if a page words a bare No again) is not met. Give the table entry a placeholder form instead (for example asubjectoption that fills a{}in the table's sentence), so the words stay in src/core/empty_words.ts. Alternatively drop thesentenceoption and let the table words stand. - src/web/pages/contribute.ts builds the sentence with
emptyText("welcomeIssues").replace("the welcome label", …). That is string surgery on the table's words and breaks silently if the table sentence is reworded. Use the same placeholder mechanism as in 1. - Issue box 3 says ownWordsOff is deleted. It is kept and reshaped (src/design/ratchets.ts). Either delete it and have the scan produce the finding directly, or rename it to say what it now does (for example
bareNoFindings). The stale comment in scripts/design-lint.ts ratchetFindings ("The same counts and words") should be updated, and the doc comment in ratchets.ts ends with a dangling "none is allowed" line break. - test/empty-notes.test.ts still holds a local OWN_WORDS count table (next, now, waves, series). That is a second count table for the same thing. Either move those four to the table too or say in the pull why they stay.
- Add a test that would fail if a page passes a bare "No …" through
sentence:. Extend the ratchet pattern to catchsentence: "Noandsentence:No`.
Looks fine: the reworded packs, origin-flow and hold sentences, the boards icon change (search for no rows), the tests following the new wording. I did not check the terminal side beyond noting the table is shared. No page, route or action changed, so the No door line stands.
ApprovedAll five earlier asks are met. The
sentence:option is gone and the{}subject is filled in the table and escaped on the page.contribute.tsusesemptyText.ownWordsOffis nowbareNoFindings, and the stale comments are fixed. Theempty-notestable now carries a reason. The ratchet now matchessentence: "No, and both forms have tests. Only wording and where it lives changed, with no layout change, so I have no new accessibility or phone concerns. I read the diff, not the preview pictures.Two things I would do next:
- Non-blocking: in
test/empty-notes.test.tsthe two comment blocks above the table now say the same thing, and the old one still says to "move one onto NOTE_WORDS and lower its count". Delete the old one. - Non-blocking:
/boardsnow shows "No rows." with the search icon instead of the activity icon. That is fine, but say so in the pull description.
- (first) src/web/pages/build_shots.ts and src/web/pages/sources.ts pass
-
Checks
shipped production is serving it deploy 69ce311
-
History
- The table's words take a subject: no page hands a bare "No …" through sentence: 3fc34c7
- Name the look and door for the empty-words pull f1637cb
- Tests follow the three sentences reworded to clear the bare-No ratchet 41563b2
- Rewrap comments; lower the empty-notes table by the two pages that moved 17818c3
- Every bare "No …" empty state is drawn from the empty-words table; the OWN_WORDS count table is gone 70feb8b
- Talk no longer lists, selects or routes to the captain on the web (#18346) 7406da3
- Publishing an app from the tab forge mints the visitor principal, and only then (#18243) 64017fd
- A server's page shows whether its map answers, with the reason, before anyone opens the 3D view (#18349) bca1c31
- The Apple app can list and answer the actions Talk is holding for a person (#18342) 8a995aa
- The Apple app can read the game door, lock it and open a write window, through one JSON route (#18341) 37d7870
- The game map says which way it failed: not listening, too large, too slow or refused by BlueMap (#18347) f1e92e5
- Full suite red: test/spawn-move-cell-sizes.test.ts (#18340) 6034a7d
- Game door: lock automatically when the player leaves the network, as a setting (#18329) f698c54
- Connections: email_check.verified_at is read nowhere once #18222 lands, and is dropped when no release in play reads it (#18327) 0ccd5dd
- Connections: one place says an email is proven, with the sign-in proof reading it (#18320) 181d662
- Talk opens on the conversation the person was in, at the place they left it (#18322) 3eab8eb
- Universal runner: a Mac registers itself, ships TestFlight from main with the forge's secrets, and has one switch (#18291) 08c168a
- Game door: the desk snapshot carries each player's allowed servers, from whoMayReach (#18325) 9b34956
- Connections 1: one list of proven identities on the account, with the proven email and the Minecraft link moved into it (#18168) 278b2e3
- Game door: one Talk engine for game chat, web and iOS (#18316) 8304196
5 earlier comments
Every bare "No …" empty state under src/web is now drawn from src/core/empty_words.ts, and the OWN_WORDS count table is deleted. The design lint and tsc are clean, and the tests that name the changed wording pass. I did not run the full bun test or the first-view-budget, unused-exports and duplicate-import tests, and bun scripts/fast.ts said the diff was too broad to name tests. I pushed anyway, so the forge's check is the first run of the full suite; it may turn up a failure I haven't seen.
What moved
- All 20 files in the old table now take their empty states from the table. Each has an entry in
src/core/empty_words.ts, drawn withemptyList(kind)where it was a picture block andemptyLine(kind)where it was a muted line. Where a page already had a matching kind (rows,labels), I reused it. - Wording is the same, with two changes:
- On
/boardsthe empty result now says "No rows." instead of "No rows", and its icon changes from activity to search. - Contribute's "No open issue carries the “…” label" line is built from the table's sentence by replacing the words "the welcome label" with the page's own label.
- On
emptyLinetakes asentenceoption, so lines that name a label, window or branch keep their live text (build_shots,sources).- Four pages began a sentence with "No" but were not empty states:
packs: "No data, secrets or variables come with it." becomes "Data, secrets and variables do not come with it."origin-flow: "No JavaScript? Refresh…" becomes "Without JavaScript, refresh…"studio/hold: "No rule sends it…" becomes "Until it is released, no rule sends it…"looks: its "No picture yet." line is a real empty state, so it went into the table like the rest.
The ratchet
OWN_WORDS, the "moved" side and the "lower the count" fix are gone.ownWordsOffnow returns one finding per file that words a bare "No …", and its fix names the table.test/empty-words-all.test.tsfails if any file undersrc/webwords one, and checks the message for each of the three forms.test/design-lint-ratchets.test.tsis updated to match.- I did not touch the width ratchet.
test/empty-notes.test.tshas its own small count table. I lowered it by the two pages that left it (contributeandsources).
Not done
- No terminal or
docs/features/change, since no page, action or route changed; the commit lines sayNo door.
Try it
- Open
/boards/dataand run a query that matches nothing. - Open a repository's commits page past its end.
- Open an empty
/notes. - Each shows its sentence and reason from the table.
[{"go":"/boards/data","look":"run a question that matches no rows","expect":"No rows. with the reason beneath"},{"go":"/notes","look":"a fresh account's notes list","expect":"No notes yet. Write one above. as one muted line"}]
🤖 Generated with Claude Code
<!-- look-pages 17818c3369ec --> Look pages for 17818c3, from the gate:
look pages (none): "Looks: /boards" is not a page of app.looks in forge.json; this pull changes src/web/diff-view.ts, src/web/empty_words.ts, src/web/pages/boards.ts and 18 more but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Three of the four failures were my own doing, and I've fixed them. The fourth I believe is flaky, but I haven't confirmed it.
What I fixed. The earlier commit reworded three sentences so they no longer started with a bare "No …", which the design-lint ratchet flags. Three tests still checked the old wording:
test/holds.test.tsnow expects "Until it is released, no rule sends it to review or lands it".test/packs.test.tsnow expects "Data, secrets and variables do not come with it."test/web-origins.test.tsnow expects "Without JavaScript, refresh this page to check again".
I changed the tests, not the code. Reverting the wording made bun scripts/design-lint.ts fail with "no page words a bare 'No …' empty state". Only the test strings changed in this commit.
What I checked.
test/holds.test.ts,test/web-origins.test.tsandtest/packs.test.tspass together, 81 pass and 0 fail.bun x tsc --noEmitis clean.- I did not rerun
design-lintor its ratchet tests after the final test edits. They passed with the sentences as reworded.
The fourth failure. The "200 MB stays blocked" test in test/pull-pipe.test.ts passes here, 4 of 4. It tests pipe memory and timing, which nothing in this pull touches. The check log says it is green on main in 3 runs, so I read the failure as load in the shard. If it fails again on this push, it needs a look in its own right.
Gate. scripts/gate.ts notes six files with a comment line over 100 columns and leaves them for the nightly rewrap. It could not infer a look page for the /boards change. The reviewer decides on that, or a Looks: or No look: line would settle it.
<!-- look-pages 41563b275851 --> Look pages for 41563b2, from the gate:
look pages (none): "Looks: /boards" is not a page of app.looks in forge.json; this pull changes src/web/diff-view.ts, src/web/empty_words.ts, src/web/pages/boards.ts and 18 more but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
I checked the three named rules and the look-pages note. I changed no code for them; the only thing I added is a commit that answers the gate. The note's "Looks: /boards" line came from the gate's own inference, not from anything I wrote.
- Dead exports, duplicate imports and the first-view budget:
test/unused-exports.test.ts,test/dup-imports.test.ts,test/attention.test.tsandtest/attention-stamped.test.tsall pass, 18 tests and 0 failures. The first-view budget is only checked inside the attention tests. I did not run the whole suite. - Look pages: The pull moves empty-state wording into the one table in
src/core/empty_words.tsand changes no layout or markup. Taking a look at each of the 23 touched pages would show nothing new. The new commit carries aNo look:line saying so. - Both doors: No page, action, route or MCP tool changed, only the sentences they print, and those now come from the shared table, which the terminal side draws from as well. The new commit repeats
No door:with that reason. I did not opensrc/tui/to confirm every terminal view reads the table, so this rests on how the table is shared, not on a check of each view. - Gate:
bun scripts/gate.tsstill lists six files with a comment line over 100 columns, insrc/core/empty_words.ts,src/web/diff-view.ts,src/web/pages/boards.tsand three more. It leaves them for the nightly rewrap, so I did not touch them.
The pull is pushed.
I addressed all five of juniper's points and pushed the branch. I did not run the full suite: the tests below pass, bun x tsc --noEmit is clean and design-lint is clean.
sentence:option. The table entriesshots,visitsandwelcomeIssuesnow hold a{}for the one thing a page names. The words stay insrc/core/empty_words.ts.emptyText(kind, subject)andemptyLine(kind, { subject })fill the{}, and thesentenceoption is gone.build_shots.tspasses{ subject: label }.sources.tspasses{ subject: "<label> in N days" }.- Escaping: the subject is escaped on the page, and the new test passes
<b>to show it.
contribute.ts. It callsemptyText("welcomeIssues", "the “<label>” label"). The.replaceon the table's sentence is gone.ownWordsOff.- Rename: it is now
bareNoFindings, insrc/design/ratchets.ts,scripts/design-lint.tsand the test. - Comments: I fixed the stale "same counts" comment in
scripts/design-lint.tsand the dangling "none is allowed" line in theratchets.tsdoc comment.
- Rename: it is now
test/empty-notes.test.ts. I kept its local count table and added a comment saying why. The four pages in it (next,now,waves,series) open with "Nothing" or "Not", not a bare "No", and each carries a variable or a link. The bare-No ratchet is what stops a new one, so this table is not a second count of the same thing.- New test. The ratchet now also matches
sentence: "Noand `sentence:No`, andtest/empty-words-all.test.tshas cases for both. A second new test checks that the subject fills the{}in the page and in the terminal'semptyText`.
Tests run. empty-words-all, empty-notes, build-shots, traffic-sources, design-lint-ratchets, dup-imports, unused-exports, attention, contribute-language, keys-contribute and sources-language all pass. The attention test is the one that holds the first-view budget.
Doors and looks. No page, action or route changed, so the commit keeps its No door: line. It also has a No look: line, since only the wording moved. I did not open src/tui/ to check each screen; the terminal reads the same table through emptyText.
Every bare "No …" empty state under
src/webis now drawn fromsrc/core/empty_words.ts, and theOWN_WORDScount table is deleted. The design lint andtscare clean, and the tests that name the changed wording pass. I did not run the fullbun testor the first-view-budget,unused-exportsand duplicate-import tests, andbun scripts/fast.tssaid the diff was too broad to name tests. I pushed anyway, so the forge's check is the first run of the full suite; it may turn up a failure I haven't seen.What moved
src/core/empty_words.ts, drawn withemptyList(kind)where it was a picture block andemptyLine(kind)where it was a muted line. Where a page already had a matching kind (rows,labels), I reused it./boardsthe empty result now says "No rows." instead of "No rows", and its icon changes from activity to search.emptyLinetakes asentenceoption, so lines that name a label, window or branch keep their live text (build_shots,sources).packs: "No data, secrets or variables come with it." becomes "Data, secrets and variables do not come with it."origin-flow: "No JavaScript? Refresh…" becomes "Without JavaScript, refresh…"studio/hold: "No rule sends it…" becomes "Until it is released, no rule sends it…"looks: its "No picture yet." line is a real empty state, so it went into the table like the rest.The ratchet
OWN_WORDS, the "moved" side and the "lower the count" fix are gone.ownWordsOffnow returns one finding per file that words a bare "No …", and its fix names the table.test/empty-words-all.test.tsfails if any file undersrc/webwords one, and checks the message for each of the three forms.test/design-lint-ratchets.test.tsis updated to match.test/empty-notes.test.tshas its own small count table. I lowered it by the two pages that left it (contributeandsources).Not done
docs/features/change, since no page, action or route changed; the commit lines sayNo door.Try it
/boards/dataand run a query that matches nothing./notes.🤖 Generated with Claude Code
Closes #18351