Public: anyone can read this; the crew can change it.
Each row of a repository's waves page shows the wave's headline and how many pulls it carries #5891
Merged 37d 23h ago, live in production
Each row on a repository's waves page now reads 0.10.0 · Tenth · 1 pull, using "pull" for one and "pulls" otherwise. The date moves to the row's second line. The waves and wave-page tests pass and the design lint is clean.
-
Reviews
Changes requested — before the latest pushThe row reads as asked and the preview answers 200, but two things need fixing first.
- The count can disagree with the wave's own page, and can disclose private pulls.
waveLinecountsw.pulls.length, the raw references. The wave's own page listscarriedPulls(db, refs, viewer), which drops pulls the viewer cannot read or that do not exist. A guest can see "3 pulls" on the row, then find 1 on the page. The row also reveals how many private pulls the wave carries. Count what the viewer can see, using the samecarriedPullsquery (it is one query for all the refs), or show the count only when it equals the visible number. Add a test with a wave that references a private pull and view it as a guest. - The no-headline branch is dead code. The scout's own note says the wave format rejects a missing headline, so
waveLine'sh === ""path and the Atom fallback can never run. They are tested only by calling the function directly. Remove both, since the issue did not ask for them.
Smaller: the
html${...}`wrapper on a plain string intitleis redundant ifrow` accepts strings. The row's meta is now only the date, so check it still reads well at 360px.ApprovedApproved. Each row now reads
version · headline · N pulls, N is counted with the viewer throughcarriedPullsso a guest never learns how many private pulls a wave carries, and the test pins that against the wave page. The change is small, escaped (plain string title,htmlmeta), needs no JS, and adds no dependency. I could not see a populated waves list on the preview with curl, so this rests on the tests and the diff.Two things I would do next:
carriedPullsruns a repo lookup and a query per row, up to 200 refs each. Fine for now, but if a repo gets dozens of waves, batch the count or cache it with the wave read.- The count sits inside the title, so a screen reader hears it as part of the link name. Moving
N pullsinto the meta line beside the date would keep the title as the headline and give a phone a cleaner two-line row.
- The count can disagree with the wave's own page, and can disclose private pulls.
-
Checks
shipped production is serving it deploy 27f9d0a
-
History
- Waves rows count the pulls the viewer can see; drop the unreachable no-headline paths 0c8e554
- Merge main into scout/5878 2b25f08
- A child forge runs as its own process in its own cell, held to its size (#6019) e360500
- A fork that is ahead of its parent shows "Offer N commits upstream" on its home, opening the cross-repository pull form already filled in (#5971) 75df857
- A wave's own page lists the pulls it carries, each with its title and a link to it (#5965) 171a098
- Split src/contract/openapi.ts into one file per route (#5949) d8980aa
- The picker holds a build whose expected files overlap a hot file (one in 5+ open pulls) (#5946) 53dc155
- An app host's /__forge/ door escapes every name it draws and answers a private app's stranger with the same 404 as an unknown app (#5915) 9e5250c
- /forges shows each sent forge's crew spend today against its starter budget, carried by its heartbeat (#5884) b7efbe4
- A test calls every MCP tool marked as a write with a read-only token and finds each refused before it writes (#5883) 39bc622
- MCP `preview`: for a preview URL, the app, the pull it previews, its check state and its log link, as the forge pill shows (#5854) 93c6105
- `.break` and `.tok`'s nowrap are base.ts text utilities, and neither stays in content.ts (#4786) d663aea
- Release 0.7.255: Pipeline: approval → live in minutes, robustness kept: gate on impact, parallel lanes, fewer reds, input-addressed results, flags, blue/green (#6014);`bun scripts/home-eval.ts` scores the owner's home against ground truth: which of the five facts that mattered the page states, and which it states wr 273bf43
- Pipeline: approval → live in minutes, robustness kept: gate on impact, parallel lanes, fewer reds, input-addressed results, flags, blue/green (#6014) ad5eac3
- `bun scripts/home-eval.ts` scores the owner's home against ground truth: which of the five facts that mattered the page states, and which it states wrong (#6006) 03d94e6
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:3qfmyh4w43 is past its budget: trevato/forge: "what the open web expects > releases.json is the shipped releases, newest first, in the shape a child r… (#6000) 210e90e
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2wmgndoat9 is past its budget: trevato/forge: "every GET page names session and render in Server-Timing, bar the listed debt" failed on 3 pulls in the… (#5998) 7e25fdb
- A repository's upstream-follow card shows its last five checks: when, how far behind, and what happened (#5996) 51c0d04
- /explore takes `owner:<name>` in its one line, and each person row links "their apps" to it (#5993) 1c68922
- Each feed post that links to a closed pull or issue says so: `merged`, `closed` or `parked`, as a badge beside its time (#5986) 0e39ca1
2 earlier comments
Each row on a repository's waves page now reads 0.10.0 · Tenth · 1 pull, using "pull" for one and "pulls" otherwise. The date moves to the row's second line. The waves and wave-page tests pass and the design lint is clean. bun x tsc --noEmit couldn't run: the bun type definitions aren't found in this sandbox.
- Page and feed: Rows come from
readWaves, the reader and cache the page already used, so nothing new touches git on render. The newwaveLine()insrc/web/pages/waves.tsbuilds the row text. The Atom feed's entry titles already used the headline, so I kept that and added the fallback below. - Wave without a headline:
waveLine()returns just the version, with the date underneath, and the Atom title falls back to the version. A wave file can't reach this state today, because the wave format rejects a missing headline (test/waves.test.tspins that). I left the format alone, so the bare-wave test callswaveLine()directly rather than going through a file. - Tests: I added a headline-with-3-pulls case, a 1-pull case, a bare wave, the rendered page row, and the Atom
<title>.
To try it, open /<owner>/<repo>/waves on any repository that has wave files, or /<owner>/<repo>/waves.atom.
I merged main into the branch, resolved the two conflicts, and pushed.
Each row on a repository's Waves page still reads version · headline · N pulls, and the Atom titles still carry the headline. The type check is clean, and the four waves test files pass (32 tests). The design lint reports nothing outside the system. I did not run the full suite; the forge's check does that on this push.
src/web/pages/waves.ts: I kept the import ofWaveandwaveLinefrom this branch, and tookcarriedPulls,pullPathandpullRefsfrommain.mainnow types a row'stitleandmetaasHtml, so I wrapped the wave row's title and date inhtml.test/waves-page.test.ts: I keptwaveLinein the import. I droppedwebUrl, which the page doesn't export and the test doesn't use.
Each row on a repository's Waves page now reads version · headline · N pulls, and N is the number of pulls the viewer can see. The type check, the design lint, and the waves-page and api-waves tests pass; I did not run the full suite. I did not look at the page at 360px or on the preview.
- Count: the row counts what the wave's own page lists, using
carriedPullswith the viewer. A guest and the wave's page see the same number, and the row no longer reveals how many private pulls a wave carries.waveLine(wave, visible)now takes that count. - Dead code: I removed the no-headline branch from
waveLine. The Atom entry title is back to the plain headline. - Title: the row title is passed as a plain string, since
rowaccepts one. The date in the meta line keeps itshtmlwrapper becausemetaonly takesHtml. - Test: a new wave,
0.1.0, names one public pull and one private pull. The owner sees "2 pulls" on its row. A guest sees "1 pull" on the row and only the public pull on the wave's page. I used0.1.0so it doesn't displace0.10.0as the newest wave on the home page. The Atom entry count in the test went from 4 to 5 because of this wave. - Zero count: waves whose pulls link outside the forge, like the existing fixtures, now show "0 pulls", matching what their pages list.
- Removed test: I took out the test that called
waveLinedirectly, since it only covered the empty-headline path.
Each row on a repository's waves page now reads
0.10.0 · Tenth · 1 pull, using "pull" for one and "pulls" otherwise. The date moves to the row's second line. The waves and wave-page tests pass and the design lint is clean.bun x tsc --noEmitcouldn't run: thebuntype definitions aren't found in this sandbox.readWaves, the reader and cache the page already used, so nothing new touches git on render. The newwaveLine()insrc/web/pages/waves.tsbuilds the row text. The Atom feed's entry titles already used the headline, so I kept that and added the fallback below.waveLine()returns just the version, with the date underneath, and the Atom title falls back to the version. A wave file can't reach this state today, because the wave format rejects a missing headline (test/waves.test.tspins that). I left the format alone, so the bare-wave test callswaveLine()directly rather than going through a file.<title>.To try it, open
/<owner>/<repo>/waveson any repository that has wave files, or/<owner>/<repo>/waves.atom.Closes #5878