Skip to content

Stack sticky headers by stated height, and fix the queue page's squeezed rows - #1472

Merged
max-sixty merged 9 commits into
mainfrom
chrome-covers-review
Sep 30, 2026
Merged

max-sixty merged 9 commits into
mainfrom
chrome-covers-review

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Implements step 1 of notes/chrome-and-covers.md: the parts of the chrome and sticky-header plan that needed no product decision. It fixes both causes of the queue page's squeezed rows, and replaces the measured sticky-header machinery with headers of stated height stacked through CSS.

Sticky headers stack by stated height

--lf-top is now a registered length (theme.css). A sticky header sticks at var(--lf-top) and adds its own stated height to --lf-top for what it stands over; its holder passes the value it met on as --lf-top-outer. The page tab strip (--lf-tabstrip-h, a kernel token so the root's scroll-padding can read it live) and the diff file header (--lf-diff-head-h) both do this, so a diff's header in a page tab now pins under the strip rather than over it, and a landing on a diff row stops below both. Boxes that scroll (bounded blocks, tables, boards, a bounded text document's listing) start --lf-top again at 0px.

The runtime reads coverage from the same value: headerInset(el, scroller) in runtime/geometry.js replaces declareStickyHeaders, insetBand, the measured header heights and --lf-root-tab-clear, and user-place.js reads it per node. references/packages.md states the contract for a package's own sticky header.

The diff header is one line: a long path ellipsizes its folders, keeps the file name whole, and carries the full path as its title. A page tab strip that overflows shows presses at its edges, driven by the layer's existing data-lf-more-before/after reading, right-to-left aware.

The queue page's layout causes

  • The workspace's grid-auto-rows: minmax(0, 1fr) now applies only to a body holding panes (layouts.css), so a side-list queue's rows keep their height and the body scrolls.
  • The pointer hit floor is stated as padding (max(<pad>, (<min> - 1lh) / 2)) wherever a flex or grid container could squeeze the control, instead of a min-height that disabled the flex auto minimum.

Banner rows in CSS

The banner's row count is computed in CSS from the pointer, the width and the page's data-lf-review declaration, so the rows observer and pre-runtime guess are gone (banner.js, chrome.css). version.js now carries data-lf-review across an in-place revision, which it previously left stale.

Tests

New browser tests: a diff in a page tab pins under the strip; a table at a pane's top is under no sticky header; a phone keeps a long diff path to one line with its file name whole. Each fails with its fix reverted. The stuck-root-tab-strip test and the Versions-menu touch still (plan-versions-touch) are updated for the new geometry; the happy-dom tests for the deleted measurement are removed.

Still open in the note: whether a workspace's regions stick to the root instead of scrolling as panes (option E), the side list's full-height form, and the bottom bar and phone banner.

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

max-sixty and others added 9 commits September 30, 2026 12:03
…ery scroller

The workspace wrote `grid-auto-rows: minmax(0, 1fr)` on any body, which also
landed on a widget that is the body and lays out its own tracks: an
`lf-tabs list="side"` queue's row was held to the window (742px at 1440x900)
and its 75px rows were squeezed to 32px. The rule now applies only to a body
holding panes. On a 21-item queue the list runs its full 1800px and the body
scrolls it with the open item.

A bounded block, a table and a board scroll (a table and a board sideways,
which makes them the scroller on both axes), so anything sticking inside one
sticks at its own top. They now start `--lf-top` from 0 as the workspace's
scrollers do; before, a diff header in one stood 42px below where it rests.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…eir measurement

A page tab strip and an lf-diff file header both stuck at the banner's
`--lf-top`, so a diff in a page tab drew its header over the strip (42–98px
against the strip's 42–89px at 1440x900). The strip's height reached only the
root's `scroll-padding`, through a size observer (`declareStickyHeaders`), and
never `--lf-top`.

Each sticky header now has a stated height and adds it to `--lf-top` for what it
stands over, its holder passing the incoming value on as `--lf-top-outer`:

- The page tab strip is one row of `9px + max(38px, --aim-floor)` with no
  scrollbar. Presses at either edge page the names that run past it, shown only
  while the strip scrolls that way (`scroll-state` container queries); a focused
  or opened tab scrolls itself into the strip. Its height joins the root's
  `scroll-padding` as `--lf-root-headers`.
- A diff's file header is one line of 35px, or the review bar's height under a
  finger. A long path keeps the file's name whole and ellipsizes its folders,
  with the whole path in the title; it used to wrap to up to three lines.

`--lf-top` is registered as a length, and the runtime reads what the headers
stand over from it (`headerInset`): at each scroller, the value where the box
just inside it stands, less the scroller's own. That replaces
`declareStickyHeaders`, `headersByScroller`, `measureUnseenHeaders`,
`insetBand`, `--lf-root-tab-clear` and lf-diff's `declareHeadRoom`. The place a
re-render holds (user-place.js) takes each item's band from the same reading.

Tests: `test_sticky_headers_stack_so_a_diff_in_a_page_tab_pins_under_the_strip`
is new (the diff header starts at the strip's foot, a landed row sits below
both, a row half under the diff header reads as shown from the header's foot).
The phone test of a wrapping path now asserts a one-line header with the file
name whole. The runtime tests of `insetBand` and of declared-header rooms went
with the code; the stuck-strip test reads the band for the heading it asks about.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The banner's row count is now a function the theme computes from the pointer,
the window's width and the page's declared sign-off (`data-lf-review`), and the
banner lays itself out by it: on one row the status shrinks to its ellipsis
beside the control run and nothing wraps; on two the status takes the first
line whole and the run the second. `bannerRows`, the `data-lf-banner-rows`
attribute, and the pre-runtime guesses are gone, and the menus' left anchoring
reads the same token through a style query.

The bounds sit a few pixels under the wrap points measured in Chrome on macOS
(436px fine and 456px coarse without sign-off, 636px and 644px with it), so no
width that drew one row now draws two. A finger's gesture steps stand in the
reading loop's place on the row the banner already has rather than wrapping it,
so opening page search on a touch banner no longer moves the document.

An in-place revision now carries the arriving document's `data-lf-review` onto
the root, since the banner's rows follow it as Approval does.

Tests: the rows test asserts the drawn height equals the stated height, no
control is cut off, and the row count by width, in place of the attribute and
the guess; new tests pin that search's touch steps keep one row at 490px and
that a revision adding sign-off takes the banner to two rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…and the bottom bar

The note's step 1 moved into the code beside each contract, so the note keeps
the diagnosis, the options, and what remains: decision E, the side list's
full-height form without E, and the bottom bar with the phone banner. The MCP
snapshot item went with the MCP Apps transport (#1465).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`min-height: var(--aim-floor)` on a flex or grid item replaces the item's
automatic minimum, its content height, so a bounded container shrank the
control below its words and drew them over the next one. Measured: in a
full-height workspace, each two-line `lf-tabs list="side"` row shrank from
76px of content to 36.7px, and all 20 rows overlapped the next. In a 200px
window the banner's More menu, a flex column capped at the window's
height, crushed its 30.3px `.lf-btn` rows to 24px instead of scrolling;
the version menu, a capped grid, does the same to its rows.

A control a flex column or a grid can squeeze now states its block floor
as padding, `max(<its padding>, (<its minimum> - 1lh) / 2)` less its
border, in the rule that sets its padding:

- `.lf-btn` (shadow.css), with the two chrome rules that restate its
  padding (`.lf-latest-chip`, `.lf-thread-filter`);
- the version menu's `.lf-version-row` and `.lf-version-diff`;
- `.lf-tab-btn`, with the page-flow strip folding its name's 2px rule in
  (its `flex: none` stays);
- the swipe deck's Pass and Keep, and the playground's switch and button
  radios (the radio also drops Web Awesome's own form-control minimum).

The shared list in shadow.css now states `min-width` for every aim and
`min-height` only for members that stand in rows or in flow or state
their own height. The other rules that read the floor stay on
`min-height`: the skip link (fixed), the status button, banner row
buttons, the visual-review verdicts, the board's destinations and the
diff toolbar (rows), the thread summary, a checkpoint's expander, the
margin card's sticky head, the settled options row and a lone group's
add form (in flow), the card grip (absolute), the swipe deck's return
button (in flow), and a single-line field (its minimum already states
one line of content).

Behavior that moved: a one-line control rests at the same height on
both pointers, to within layout-unit rounding (44 -> 43.98px under a
finger). A multi-line control now keeps its content height when
squeezed; under a finger it also grows by the padding, as a version row
with a note does (49.97 -> 61.66px) and a side-list row with a summary
(54.97 -> 62.66px). `test_every_aim_the_layer_offers_takes_a_finger`
reads the aim list from the rule that now states only `min-width`.

`leaf-dev stills` gains a pointer per state and a `plan-versions-touch`
state, the Versions menu under a finger, which is where the growth shows.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…d a scroller where it stands

Review fixes to the sticky-header stack:

- The strip's edge presses showed from `scroll-state` container queries while the
  layer's own reading of a sideways scroller (`data-lf-more-before`/`-after`,
  reach.js) masked the same edge, fading the press to near nothing. The presses
  now show from that reading, the strip's mask is off, the scrollbar is hidden
  in every browser, and the presses scroll and point the right way under
  `dir=rtl`. The press width is stated once, as the strip's inline
  `scroll-padding`, which the tab reveal reads.
- `headerInset` took the larger of an element's `--lf-top` and its parent's,
  which read a table in a workspace pane (0 against the pane body's -14px) as
  under a 14px header, so a cell at the pane's top read as off screen. A box that
  scrolls is read at its parent again, and lf-diff puts its stacked value on the
  file's fold, which does not scroll, rather than on the scrolling code box.
- The strip's height is a kernel token on the root, so the root's
  `scroll-padding` reads it live (`var(--lf-tabstrip-h)`) rather than a value
  resolved once at declaration, which went stale when the pointer changed. A tab
  set that stops being the page's strip withdraws `--lf-root-headers` only where
  no other set has become it.
- A bounded `lf-text-document` scrolls its listing rather than itself, so the
  `--lf-top` reset moves to the listing.
- Comments and guidance now say which boxes start `--lf-top` again, that a
  header being pushed off at its holder's end still counts as covering, and that
  a page's sticky track stands below any page tab strip too.

Tests: `test_a_table_at_a_pane_top_is_under_no_sticky_header` is new, and fails
under the larger-of reading.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The one-line header is a flex row, which draws no marker, and its own triangle
was a smaller, muted one; it is now the filled pair the browser drew, at the
marker's size.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit c2ec981 into main Sep 30, 2026
5 checks passed
@max-sixty
max-sixty deleted the chrome-covers-review branch September 30, 2026 21:26
max-sixty added a commit that referenced this pull request Oct 1, 2026
The widget quality check (#1474) found every Command Hub widget changing
size between first paint and presentation. This fixes the three whose
final size the authored page already settles, each by its cause rather
than per widget.

**Goal layout keyed on markers the upgrade wrote.** `lf-command.js`
stamped `data-lf-command-goal` and `data-lf-command-worker`, and the
package theme hung a goal's layout on them: a block title, a contained
float, and workers shut behind the crew chip. The markers derive from
the authored tree, so the theme now selects that tree (`lf-command
lf-task`, `lf-task > lf-agent`) and the markers are gone. Hiding a
goal's workers is scoped to `html[data-lf-live]`, since a reading
without the runtime has no crew chip to open them. A package adding its
own goal or worker widget to `$command.widgets` lays it out in its own
theme.

**Generated parts with no room held for them.** Where the authored tree
says a part will be drawn, the theme holds its room at the place the
upgrade draws it, until it is drawn:

- an agent's live line, now one line of the row's own type tall, which
is also the height a `doing` clause sets, so a report fills the line
instead of growing the row;
- a worktree's shut head;
- the chip row of a task outside a command, when it has a non-empty
owner, `when` or tags, or subtasks: one row of chips, under the title or
at the top of a task with none. Chips that wrap onto a second row are
not held, since how many fit on a line is known only once they are
drawn; the base layer's lf-milestone (#1484) holds its `.lf-chips` row
the same way. Holding a wrapped row would take either a chip row that
never wraps or the server drawing the row, and neither is in this
change;
- a `talk` goal's composer.

**The composer's height lived inside one rule.** It is now
`--lf-compose-h` in `shadow.css`, stated at the root for a widget
holding a composer's room, and on each field, so a field whose context
sizes its action (lf-options' Add row) still derives its own.

lf-agent, lf-task and lf-worktree leave
`tests/known_widget_findings.py`. lf-command and lf-command-readings
stay, with the reason beside them: the readings hold a row per stopped
goal and live worker and a tile for quiet ones, and the command model
reads those from the log and the clock, which first paint has neither
of. The command's worked example gains `talk`, so the check now covers
the composer's held room (turning the reservation off brings back
`goal-feeders` 27→75).

Visible change: an agent row is about 5px taller, because its live line
is one line of the row's type. `leaf-dev stills` shows no other
difference.

**Also: main's red tab test.** Since #1472,
`test_a_revision_inside_one_tab_keeps_the_tab_set_and_every_other_tab`
fails on main: a revision that adds a tab rebuilds the page's tab set,
and the outgoing set withdrew `--lf-root-headers` from `html` before its
replacement declared it again, a remove-and-restore the write watch
refuses. `lf-tabs.js` now withdraws the header once the operation that
disconnected the set is over, and only if no strip took its place.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 1, 2026
… reserve a label's room once its control is drawn, and settle main's nightly (#1497)

Four nightly failures on main, each fixed at its cause.

**A diagram whose renderer never arrives took the room (#1485).** A live
page gives an unrendered `lf-diagram` the drawing's `available` width
from
first paint, and only `html:not([data-lf-interactive])` gave the source
the
column back. When the renderer failed to load, the page did not start,
but
the mark stayed, so the source sat at the room's left edge, 1552px wide
against a 720px column. The tab and gloss rules each restated the fault
as
`:not([data-lf-startup-error])`; the diagram's rule, the `x-height` clip
and
the chart's hidden source did not. Now `prepaint.js` takes
`data-lf-interactive` off when a fault is `incomplete` (something the
page
needs did not arrive), so every rule keyed on the mark gives back its
fallback at once, and the tab and gloss rules drop their copy of the
fault.
An uncaught error in code that did load keeps the mark, since the page
may
still present. `data-lf-startup-error` still names the reason.

Behavior moved: `test_a_drawing_that_has_not_drawn_claims_no_room` held
that the source reads in the column through every page's loading
interval;
since #1485 a live page reserves the room then. It is now
`test_a_drawing_that_will_never_draw_claims_no_room`, with the same
assertions, about the page whose renderer cannot arrive.

**The interaction gallery's Play press moved Loop and Viewport
(#1484).**
#1484 shows only a tab set's first panel before it upgrades, so the
gallery, in the Interactions panel, reserved its toggle's words while
undrawn: a 0px floor, which a face-change re-measure never replaced.
`reserve` now takes its floor inside `measure`, now where the control
has a
box and otherwise the first time it has one, so no caller can reserve
from
an undrawn place. The playground's own `measure` wrapper goes. Since a
floor
is now often taken inside a resize delivery, the root that face changes
are
watched on is observed once at module load rather than by each floor,
which
inside a delivery Chrome reports as "ResizeObserver loop completed with
undelivered notifications".

**The passage sweep counted chart sources a drawing then replaced.** The
feature-gallery sweep unhid every panel and collected its blocks in the
same
script; a chart in a shut panel draws once it has a box, and on a slow
machine its drawing replaced the source mid-sweep, leaving a detached
range
(reproduced on main at 6x CPU throttling, about one run in three).
Whether
the charts have drawn before the sweep depends on timing, so no single
commit flips it. The test now waits for the page to finish what the
reveal
started before it sweeps.

**The diff test asserted the native disclosure marker (#1472).** #1472
made
a file's row a flex row that draws its own triangle. The test now holds
that
each row shows ▶ when shut and ▼ when open.



> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 1, 2026
… and show it each Ask as `a` meets it (#1532)

A user review of a 21-item triage queue page found that its worst
wording problems were one failure: nobody read the page from the user's
side before handing it over. Each item's context sat above its Ask, so
`a` showed "Merge #1402 as it is?" with #1402's explanation scrolled
away; a heading read "The Codex PRs share a blocker, and it isn't
#1397", answering a question the author had put to its own research
subagent; and the header chips compressed research the user never saw.
`page-authoring.md` already asked the author to read the page as the
user will. The session looked at three screens and handed over 20
seconds later, and even done, that reading is the author's own: every
name on the page resolves from notes the user never had.

Given the original page's screens and told to work it as the user would,
a subagent with only the user's request flagged all three, plus
shorthand such as "clock-offset page sizes" and "the Pi harness". A
second subagent that also had the author's research reports flagged the
three but missed the shorthand.

### What changes

- **Pre-handover review** (`page-authoring.md`): once the check is
clean, the reading goes to a subagent given the user's request and the
check's labelled screens and nothing else, which reads the page as the
user would and reports where it could not follow or had to guess. The
author fixes what it reports and still judges the design.
- **Screens at each Ask** (`render_gate/screens.py`): on a page with
Asks, the check presses `a` from the top and saves
`{width}px-ask-{k}.png` at each of the first eight open Asks it reaches,
suggestions included, reading which Ask it reached from the runtime's
own `data-lf-ask` mark; one more press tells it whether the walk goes
on, which the label then says. `command.py` ends the screen list by
pointing at the subagent reading.
- **`.tag` in a flex or grid row** (`assets/theme.css`): `align-self:
center`, so a chip beside a larger link keeps its own height instead of
stretching to the link's with its text at the top.
- **Feature gallery**: the side-list queue example's item description
moves inside its `lf-ask`.
- **TODO.md**: a Queues theme (`a` from a row reaching that row's Ask,
answers shown in the list, groups, the item first on a phone), measuring
the fresh-reader review, and a Stop-hook item.

The queue's layout failures were fixed separately on main (#1472); an
earlier sticky, measured side list on this branch was dropped in favour
of it.

### Evidence

`evals/record-read-without-the-notes` hands a child a clean render check
on a page written from research reports and asks what happens before
handover: the reader grader passed 0 of 3 on main's guidance and 3 of 3
on this branch (one branch run skipped reading `page-authoring.md`, so
the case scored 2 of 3); `record-asks-hold-their-premise` stayed 3 of 3.
The case checks that an author says it will hand off the reading, not
that it does; TODO.md records measuring that, and the cost (about 110k
tokens and two minutes on the triage page), across real sessions.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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