96b5e53f
beads: the board names every clipped table it draws from
The board raised its truncation flag for a clipped issues or dependencies table and for nothing else, so a clipped labels table took the pills off every card and the options out of the label filter in silence, and a clipped custom_statuses table could put a card in the wrong lane with the counts still reading as facts. The flag could not grow to hold that. It is paired with a count line — "the first N of M issues" — so it can only mean the reads that decide N and M; widening it would have made a bool that means four different things and a number that no longer follows from it. Data.Truncated and ShownOf are therefore byte-for-byte what they were (mcpsrv's list_issues reads them as they are), and the wider fact is a new field: Clipped, one entry per clipped table the board reads, in read order, each naming the table, the rows read against the rows that exist, and what the board lost by the rest. The banner follows. The count line now prints only when the issues read was actually short — "the first 4 of 4 issues" was a wrong sentence, not a warning — and every other clipped table gets its own line beneath it. The detail pane keeps its single sentence from 82d997d; a pane that never drew a lane has no use for a board's list. TestBoardTruncationIsUnchanged is now TestBoardTruncationFlagIsUnchanged: the flag is what it was, which is the claim that survives. Its "comments does not flip the board" subtest survives as "a clip in a table the board does not read" and now also asserts comments reaches neither the flag nor the list, plus a new subtest pinning that labels and custom_statuses are reported without touching the flag.
Eugene Blikh <bigbes@gmail.com> — 2026-08-13 08:06:33 UTC
Commit 96b5e53f3200307fb2d56f7eaf9435128d5a0f4c —
view raw patch
Parent(s):
a1fe404f
| File | Status | + | − |
|---|---|---|---|
beads/build.go
|
M | +36 | -2 |
beads/model.go
|
M | +33 | |
beads/truncation_test.go
|
M | +165 | -5 |
web/beads_test.go
|
M | +151 | |
web/templates/beads.html
|
M | +17 | -2 |