Public: anyone can read this; the crew can change it.
Empty words: move the boards, bets, waves and flows onto the shared table #15908
Check · Review · Land · Live done — Landed and live in production.
Twelve pages now draw their empty states from EMPTYWORDS instead of wording their own "No …" text. The OWNWORDS ratchet named in the issue is not in this checkout: test/empty-words-all.test.ts and OWNWORDS don't exist on main or in any branch history I could see.
shipped production is serving it deploy 084a6fd
7 earlier comments · 1 event
The feedback is the gate's automatic list of the pages it will picture for c752aec. It asks for no change, and I found no defect in the pull. I pushed nothing.
The pull still does what it did: the empty states on the boards, bets, waves, flows, features, flags, reports and looks pages draw from the shared EMPTY_WORDS table. To try it, open /boards/holds on a fresh forge and see "No file is held." drawn as the shared empty block.
The inferred list is wide because 28 routes import src/web/empty_words.ts. It covers /, /docs and /explore, which this pull does not change visually. If a narrower set is wanted, a Looks: <path> line in a commit message would override the inference. I left that alone because I don't know which pages you want pictured.
I merged main into the branch, resolved the four conflicts, and pushed it. The empty-words and empty-states tests and tsc --noEmit pass. The looks.test.ts and waves.test.ts run was cut off, so neither has a result. I did not run the rest of the suite; the forge runs the full check on the push.
- Table:
src/core/empty_words.tsnow holds both sets of kinds. Main'sbuilds,releases,forks,repos,commits,displays,issues,pulls,branches,labelsandeventssit alongside this pull'sbets,holds,flowLines,lookand the rest. For the shared fields I kept main's shape.emptyListtakes main'stitle,noteandactionoptions. - Docs:
docs/features/empty-words.mdkeeps main's text, plus a short paragraph for this pull's boards, bets, waves, flows, features, flags, reports and looks pages. - Ratchet test:
test/empty-words-all.test.tswas added on both sides. I took main's version and dropped the ratchet entries for the pages this pull moves onto the table. I keptboards-holds.tsat 1, because that count comes from a multi-line "No build starts…" paragraph the pattern matches, not from the empty state this pull moved. Our check for the moved pages is now its own file,test/empty-words-moved.test.ts. - Type fix:
noteonemptyListaccepts Html as well as a string, becausesrc/web/pages/looks.tspasses Html. - Door rule: the gate's "both doors" rule flagged that no
src/tui/file changed. I put a "No door:" line in the merge commit, because the terminal's words are unchanged. The commit also carries "Looks: /boards/holds".
<!-- look-pages 20f464adcd34 --> Look pages for 20f464a, from the gate:
look pages (inferred): "Looks: /boards/holds" is not a page of app.looks in forge.json; this pull changes src/web/empty_words.ts, src/web/pages/bets.ts, src/web/pages/boards-gates.ts and 11 more; the forge pictures / (src/web/empty_words.ts), /docs (src/web/empty_words.ts), /explore (src/web/empty_words.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
I merged main into the branch, resolved the three conflicts, and pushed (18a8cad5c). The one test failure I saw is a screenshot capture that needs a real Chromium, which this sandbox doesn't have. The forge's own check will run it.
src/core/empty_words.ts:mainnow builds the kinds from aTABLEconstant. I dropped my separateEmptyKindtype and put this pull's entries (bets,holds,flowLines,lookand the rest) into that table.src/web/empty_words.ts: this pull's icons sit in the icon map besidemain's.notestill accepts Html as well as a string, becausesrc/web/pages/looks.tspasses Html.test/empty-words-all.test.ts: I tookmain's ratchet and left out the entries for the pages this pull moves onto the table.- Tests:
tsc --noEmitis clean, and the empty-words, empty-states, looks and waves tests pass apart from that one capture test. I did not run the rest of the suite. - Look pages: the merge commit says
Looks: /boards?help, a path that is inapp.looks. The earlierLooks: /boards/holdswas not, so the gate rejected it. I also pushed an empty commit naming/boards?help,/preview-admin/sample/betsand/preview-admin/sample/waves.
<!-- look-pages 18a8cad5c5b2 --> Look pages for 18a8cad, from the gate:
look pages (named): this pull changes src/web/empty_words.ts, src/web/pages/bets.ts, src/web/pages/boards-gates.ts; a commit names /preview-admin/sample/bets
No change to the code this round. The feedback is the gate's automatic note that look pages are needed, because the pull touches src/web/empty_words.ts, src/web/pages/bets.ts and src/web/pages/boards-gates.ts, and a commit names /preview-admin/sample/bets. It reports no failure and asks for no fix, so there was nothing to address on the branch and I pushed nothing.
Checks run on the current head:
- Design lint: clean.
tsc --noEmit: reported no errors.- Tests:
bets,boards-doors,bets-card-fitandempty-words-moved(the empty-words test file I named) pass: 64 pass, 0 fail. - Skipped: two tests skip. The bets phone-fit test is one of them, because the sandbox has no chromium that starts. I didn't find out which test the other is.
- Not run:
scripts/fast.tsfound the diff too broad to name (3559 files), so I picked these tests by hand. I did not run the full suite; the forge's check does that on push.
To review the look pages, open /preview-admin/sample/bets, /boards?help and /preview-admin/sample/waves on the preview at https://lab--15908--forge-trevato-apps.open-platform.sh. In each, the empty state should read in the shared table's words and the page layout should not shift.
Mostly sound: fifteen kinds in the shared table, twelve pages moved, design-lint clean. Four things to fix in one round.
- (first) boards-holds.ts still words its own muted 'No …' paragraph (the 'No build starts…' text), so it stays in OWN_WORDS at 1. Box 2 says the files leave OWN_WORDS. Either move that sentence onto the table or reword it so the pattern no longer counts it, then delete the entry.
- test/empty-words-moved.test.ts is a second ratchet beside test/empty-words-all.test.ts, using a regex that only catches two shapes. The OWN_WORDS removal is the issue's check; drop this file. Real behaviour (a kind's sentence appearing on a page) is better asserted by rendering one page.
- Principle 8 / 1: the look failure now reads 'No picture yet.' plus 'Taking one of <sha> failed'. 'No picture yet' is wrong when a capture failed, and the old test was loosened to match. Give the failed case its own title (emptyList accepts title) such as 'No picture of <sha>.' and keep the old assertion.
- Both doors: no src/tui change and the 'No door' line sits only in a merge commit. If the terminal words these lists differently, say so in the description; otherwise confirm the shared table feeds it.
Smaller: every new kind uses the 'activity' icon, so the icon map adds nothing. Fall back to a default instead of 15 repeated entries. Also, this is a cleanup while the direction is pipeline first; it is small, so I do not block on that.
Merged main into the branch and pushed. Almost everything this pull set out to do had already landed on main (#15898) as emptyNote, so the pull is now much smaller.
- Conflicts: in
bets.ts,boards-gates.ts,boards-held.ts,flags.ts,flow-panel.ts,flows-all.tsandempty-words-all.test.tsI tookmain's version. It words the same states, just throughemptyNoteinstead of my kinds. - What is left of this pull:
- The three pages
mainstill words itself (waves.ts,features.ts,boards-holds.ts) now use or avoid the table. - Two new note sentences in
src/core/empty_words.tsand their entries removed fromOWN_WORDS.
- The three pages
- Round-one review points:
- Point 1 (the
boards-holds.tsparagraph) is done: it now reads "A build does not start on…" and itsOWN_WORDSentry is gone. - Point 2 (drop
test/empty-words-moved.test.ts) is done: the merge takesmain's tree, which has no such file. - Point 3 (the look failure title) has no change.
mainalready gavelooks.tsits own wording, andtest/looks.test.tsequalsmain's, so I did not add a "No picture of <sha>." title; that case needs a check. - Point 4 (both doors,
src/tui) is not addressed: I have not checked whether the terminal words these lists differently. - The icon-map point is moot, because
main'sempty_words.tsreplaced mine.
- Point 1 (the
- Checks:
tsc --noEmitreports no errors.- Of 107 tests across six files, 106 pass. The one failure is "a real capture through the grant door, with /usr/bin/chromium" in
test/looks.test.ts. I did not confirm why it fails, and I did not run it againstmain. scripts/gate.ts --fixreports four long comment lines that the nightly rewrap handles onmain.
<!-- look-pages 1c9b9ec19ee5 --> Look pages for 1c9b9ec, from the gate:
look pages (named): this pull changes src/web/pages/boards-holds.ts, src/web/pages/features.ts, src/web/pages/waves.ts; a commit names /preview-admin/sample/bets
Approved. The pull is now three small edits on top of main's emptyNote work: two empty titles on waves and features come from NOTE_WORDS, the holds paragraph no longer reads as an own "No …" line, and three OWN_WORDS counts are gone. No markup, CSS, JS-dependence or layout changes, so phone, keyboard and no-JS behaviour are untouched; nothing touches the terminal, whose words are unchanged. Earlier asks: the holds paragraph wording is met, the stray moved-words test is gone, the icon-map point is moot. The look-failure title and the TUI wording check were not changed; both fall outside this diff now. Next two things: (1) check src/tui for the same wave/feature/hold empty sentences and point them at NOTE_WORDS; (2) src/web/studio/file_holds.ts still words its own "No file is held.".
Twelve pages now draw their empty states from
EMPTY_WORDSinstead of wording their own "No …" text. TheOWN_WORDSratchet named in the issue is not in this checkout:test/empty-words-all.test.tsandOWN_WORDSdon't exist onmainor in any branch history I could see. So I addedtest/empty-words-all.test.ts, which fails if any of the twelve files words its own muted "No …" line orempty({ title: "No …" }). If the real ratchet lands elsewhere, its count for these files should simply be removed.The tests I ran around these pages pass, except
test/looks.test.ts's chromium capture test, which also fails on the base.bun x tsc --noEmitandbun scripts/design-lint.tsare clean.bun scripts/gate.ts --fixprinted nothing to its summary, so I take it as clean. I did not run the full suite.src/core/empty_words.tsgains kindsbetIssues,bets,betScopes,boardRows,gates,heldRepos,holds,waveApp,wavePulls,hotFiles,flowLines,features,flags,securityReportsandlook.labelandhrefare now optional, and a row may carry areason, which onlybets,boardRows,featuresandlookuse.emptyList: it takes anotethat replaces the table's reason, andempty()accepts anHtmlnote.featureshands in its own docs link andlookhands in the failure note.bets.ts,boards.ts,boards-gates.ts,boards-held.ts,boards-holds.ts,waves.ts,flow-panel.ts,flows-all.ts,features.ts,flags.ts,reports.tsandlooks.tsall callemptyList(kind).data-no-holdsanddata-pulls-nonestay on a wrappingdiv, becauseempty()takes no attributes.test/looks.test.tsfor this; the test was checking the old words.src/web/studio/file_holds.tshas the same "No file is held." line but is not in the issue's list, so I left it.To try it, open
/boards/holdson a fresh forge; it shows "No file is held." as the shared empty block./boards,/bets,/flagsand/featuresempty states look the same way.🤖 Generated with Claude Code
Closes #15900