Repository navigation
Mark a tab set whose list runs down beside its panels, and key its rows' styles on the mark - #6406
Merged
Merged
Conversation
… queue's rows do A page of parts listed each part's name and summary but not the state of the obligations it holds, so a page with one question per part read the same in its list untouched, answered, sent back and reopened. Each row down the column now draws the side list's obligation line under its summary: an open mark while one waits on the user, "On <agent>" while one is the agent's, and a check with the answer's own words once every one is answered. A row whose part asks something keeps that line either way, so an answer moves no row, and a part that asks nothing reserves none. The tab's accessible description says the same, as a queue row's does. The phone's row of parts sticking over the open part shows names alone: it already hid the summary to stay one line high, and now hides the state line with it. Parts placed anywhere else still list their names in a row. Side lists drew the line before parts existed (#2633). When #3198 gave parts the side list's row, it widened the summary from `side` to the list running down (`#down`) and left the state line on `side`; neither that commit, its pull request nor the module header records a reason. The `lf-tabs.js` header now says a part's row is drawn as a side list's is. Parts take the side list's path, one `obligationsIn` per row that authors an obligation, and so its cost, which grows with rows times obligations: a switch on a generated page of 400 parts, one question each, took 37 ms of main thread in Chromium against 4 ms before, and a 400-item queue already takes 40 ms. Tests: adds `test_each_part_s_row_says_where_its_question_stands`. No existing test changed. > _This was written by Claude Code on behalf of max-sixty_
# Conflicts: # packages/default/widgets/lf-tabs.js
# Conflicts: # packages/default/widgets/lf-tabs.js
…roup labelled with the question, and no choose attribute The test's markup used lf-ask and lf-options' choose, which main dropped, so page check refused the fixture. It protects the same behavior.
A side list's or page of parts' row whose panel waits on the user drew a bare open circle on its answer line, which read as an empty list bullet. That row now ends its name's line with On Me's symbol, the panel's mark for what waits on the user, and leaves the answer line empty; the line shows only the answer or whose turn it is. The symbol keeps its room in every state, as the line does, so a long name wraps the same whatever its answer. Leaf's dot already means an unread reply, and a mark before the name read as a bullet too. The side-list and parts tests assert the symbol where they asserted the open mark.
…steps and the side-list journey's docstring A row waiting on the user now ends its name's line with On Me's symbol, so the gallery's steps and the journey's description of the row named a mark readers no longer see. Leaf's reviewer flagged the gallery's steps on #6152.
…ws' styles on the mark lf-tabs.js decides once whether a set's list runs down beside its panels: a side list, or a page's parts standing in a `main` with no Layout. tabs.css repeated that decision as `:is(lf-tabs[list="side"], lf-parts)[data-lf-views]` in the eight rules that draw a row's name, summary, state line and On Me's symbol. The module now sets `data-lf-down` on the set, and those rules key on it alone, so the theme draws rows wherever the module draws them and a third kind of downward list needs no CSS edit. The side list's own layout rules (its column, stacking and groups) stay on `lf-tabs[list="side"]`, and the rules that reserve a row's height before upgrade stay on the authored tags, since the module's mark arrives only with the upgrade. Computed styles of every element in the list, on a root page of parts and a side list at desktop and phone widths, match the parent commit's. The old selector also matched parts placed anywhere other than a page's root, which list their names in a row. Those rows had taken the column row's grid, so a name lost the 2px its open rule stands in and the keyboard ringed the whole tab; they now draw as a boxed set's row of tabs does. The side-list and parts browser tests, and the side list's focus and ring tests, pass; two of them fail with the module's mark removed. Max chose this on the #6152 review page.
leaf-agent
approved these changes
Nov 18, 2026
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.
lf-tabs.jsdecides once whether a tab set's list runs down beside its panels: a side list, or a page's parts in amainwith no Layout.tabs.cssrepeated that decision as:is(lf-tabs[list="side"], lf-parts)[data-lf-views]in the eight rules that draw a row's name, summary, state line and On Me's symbol. The module now setsdata-lf-downon the set and those rules key on it, so the theme draws rows exactly where the module does, and a third kind of downward list needs no CSS edit.The side list's own layout rules (its column, stacking and groups) stay on
lf-tabs[list="side"], and the rules that reserve a row's height before upgrade stay on the authored tags, since the mark arrives with the upgrade. Parts placed anywhere but a page's root matched the old selector too and took the column row's grid; they now draw as a boxed set's row of tabs does, their names 1px lower and ringed at the name.Max chose this on the review page for #6152, which it follows.
On a root page of parts and on a side list, at desktop and phone widths, every element of the list has the same computed style and box as on the parent commit. The side-list and parts browser tests and the side list's focus and ring tests pass; two of them fail with the module's mark removed.