Skip to content

Stand one marker for the threads a closed box hides, badged with their count - #7481

Merged
max-sixty merged 2 commits into
mainfrom
thread-markers-over-title
Nov 28, 2026
Merged

max-sixty merged 2 commits into
mainfrom
thread-markers-over-title

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Threads on several passages that one closed box hides (a part or tab not shown, a closed disclosure) now stand one marker by the box's face, badged with their count, instead of a marker each crowding a face as narrow as a part's name. The projection gathers them at each render by the box closedOver names (gatherFaces); the first entry's row draws every thread, and the others keep their rows and entries but stand nowhere through a new row option, gathered, which the layout withholds and registerMarginRow compares. A pass that reads another box than the render gathered by draws the margin again, so the threads part as the box opens and gather as it closes.

To weigh: gathering is a render-time read of each thread entry's closed box (an ancestor walk; closedFaceOver's layout read only for hidden ones); a box opening or closing costs one more render; a gathered thread's non-thread readings wait for the box to open; a card open on a gathered thread hides with its row until the box opens, as a card on any withheld row does.

Max picked "one marker per hidden part or tab" on his page after #7477. Codex reviewed four rounds. test_the_threads_a_part_not_shown_holds_stand_one_marker_counting_them fails before the change; the neighbouring face tests, pnpm run test:runtime and check:browser pass.

This was written by Claude Code on behalf of max-sixty

…r count

A thread whose words a closed box hides, a tab not chosen or a closed
disclosure, stands its marker by what the page shows for the box (#7477).
Several threads in one such box stood a marker each by that face, and a
part's name in the column of parts is too narrow for more than one or two:
on Max's page, four threads in a part not shown put one marker a line up,
beside the part above's name. Max chose, on his page, one marker for each
hidden part or tab, counting its threads.

The projection now gathers, at each render, the thread entries one closed
box hides (`gatherFaces`, keyed by the box `closedOver` names, not by its
face, since boxes apart can show one face, as a deck's cards do). The first
entry's row, in reading order, draws every thread of the box, so its badge
counts them, its preview lists them and a press opens the box on the first.
The others keep their rows and entries, so every route to a thread, its
card, Page Map and the thread walk included, still finds the thread's own
row; a new row option, `gathered`, has the layout withhold them, joins what
`registerMarginRow` compares, and keeps them out of the rows a scroll
reads again. A card open on a gathered thread withholds itself with its row
until the box opens, focus on a marker that joins a group moves to the
marker counting it, and spoken positions count only the markers the walk
reaches. A pass that reads another box for a row than the render gathered it
by draws the margin again (`afterScript`, as a fold already did), which
gathers or parts the threads as the box closes or opens.

What a user sees differently:

- Threads on several passages of a part, tab or disclosure not shown stand
  one marker by its name, badged with how many; hovering it lists them.
- A press on it opens the box on its first thread, where each thread then
  stands by its own words; reaching another takes a second press.
- A gathered thread's other readings, such as a change, show once the box
  opens.

Tests: `test_the_threads_a_part_not_shown_holds_stand_one_marker_counting_them`
covers the badge and place by the part's name, the press that parts them,
and choosing another part, which gathers them again; it fails before this
change, which draws a marker for each thread.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit af079be into main Nov 28, 2026
7 checks passed
@max-sixty
max-sixty deleted the thread-markers-over-title branch November 28, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants