Repository navigation
Stand a hidden panel's thread markers by its tab, not the top of its tab set - #7477
Merged
Merged
Conversation
…tab set A thread whose words a tab not chosen hides stands its marker on what the page shows in the panel's place (#6878). For a `hidden="until-found"` box that was the nearest box round it that draws: the tab set, whose top is where a strip over the panels stands. A page's parts are that tab set, but it fills the page and lists its parts in a column down the side, so the markers of threads in a part not on screen stood at the page's top, over its title, in a row as each found room (or off the window). A side list's markers stood by its first row whatever item held the thread. The page states what shows a tab panel: the ARIA tabs pattern labels each panel by its tab with `aria-labelledby`. `lf-tabs`, which `lf-parts` is, now gives each tab an id (`lf-tab-<panel id>`, outside the ids a comment anchors to) and names it from the panel, unless the author labelled the panel otherwise. `closedFaceOver` stands a row by the drawn label a closed box names before falling back to the nearest box round it, so any package's tab set that follows the pattern gets the placement with no widget named. A face can now stand apart from its target, so a scroll of the box that holds the face, such as a side list scrolling its own column, reads the row again (`anchors` in the scroll filter). `labelledBy` moves from annotations/preview.ts to lib/shadow-tree.ts as its one owner. What a user sees differently: - A thread in a part not on screen stands by that part's name in the column of parts; a press opens the part on the thread. - A thread in a side list's unchosen item stands by that item. - A thread in a boxed tab set's unchosen tab stands level with the strip, as before, now level with the tab itself. - A panel's accessible name is its tab's name, as the ARIA pattern has: for a side list or a page's parts that includes the summary line. - On a phone, where the parts list is a row of names with no free room, the marker stands over the name it belongs to; before, it stood in the window's top corner. - Several threads in one hidden part still stand a marker each, which in the narrow column of parts can put one beside the part above. Tests: `test_a_thread_in_a_view_not_shown_stands_by_the_name_that_shows_it` covers a part not shown, a side list's unchosen item, an item the list scrolls into view and a press; its first two cases fail before this change, and the scroll case fails without the scroll-filter line. `test_a_thread_a_closed_box_hides_stands_its_marker_on_the_box` and `test_a_row_behind_an_inactive_tab_stands_on_its_tab` now expect the tab rather than the set's top; Go-to's hint names the tab by its new id. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 28, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 28, 2026
…r count (#7481) 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_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A thread whose words an unchosen tab hides stands its marker on what the page shows in the panel's place (#6878). For a
hidden="until-found"panel that was the nearest box round it that draws: the tab set. A page's parts are a tab set that fills the page and lists its parts down the side, so threads in a part not on screen put their markers over the page's title; a side list's markers stood by its first row whatever item held the thread. Nowlf-tabslabels each panel by its tab (aria-labelledby, the ARIA tabs pattern, unless the author labelled it otherwise), andclosedFaceOverstands the row by the drawn label a closed box names before falling back to the box round it. Since that face can stand apart from its target, the scroll filter also re-reads a row when the box holding its face scrolls.To weigh: a panel's accessible name is now its tab's, which for parts and side lists includes the summary line; on a phone the marker stands over the part's name in the row of names, which has no free seat; several threads in one hidden part still stand a marker each (whether to group them is put to Max on his page). A panel an author labels with
aria-labelledbystands its marker by that label.Max asked for this after seeing four markers over a page's title. Codex reviewed two rounds.
test_a_thread_in_a_view_not_shown_stands_by_the_name_that_shows_itfails before the change; focused tab, margin and Go-to tests andpnpm run test:runtimepass.