Skip to content

Mark a tab set whose list runs down beside its panels, and key its rows' styles on the mark - #6406

Merged
max-sixty merged 9 commits into
mainfrom
agent-a54f3baedeb87f066
Nov 18, 2026
Merged

max-sixty merged 9 commits into
mainfrom
agent-a54f3baedeb87f066

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

lf-tabs.js decides once whether a tab set's list runs down beside its panels: a side list, or a page's parts 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, 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.

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

… 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.
@max-sixty
max-sixty merged commit 92827d4 into main Nov 18, 2026
5 checks passed
@max-sixty
max-sixty deleted the agent-a54f3baedeb87f066 branch November 18, 2026 19:44
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