Repository navigation
Complete the developer feature gallery - #237
Conversation
# Conflicts: # examples/corpus.html # examples/developer/feature-gallery.html
leaf-agent
left a comment
There was a problem hiding this comment.
The snapshot rebasing is the right call — pr-walkthrough keeps 1–3 and the gallery's own snapshot="1" becomes 4 in the corpus with nothing for the author to coordinate. Two places still carry the old world.
examples/CLAUDE.md still states the convention this PR replaces. The external-data paragraph (search for A selected snapshot number must stay valid both in its own page and in corpus composition) ends "so the first capture in the first contributing example owns snapshot 1; grow this fixture convention only when another capture actually needs to compose." Another capture now does compose, and the answer was rebase_snapshots rather than a grown convention. The corpus.py docstring is updated, but this is the reference an example author reads, and left as is it sends the next one hand-numbering captures across examples.
The rebasing rewrites the attribute but not the prose that names it — inline below. versions/feature-gallery.v1.html carries the same two lines; leaving those alone is right if the rewording should read as a revision.
|
All three points are closed on The |
…tired column variables (#1273) A first sidebar that holds only an `lf-toc` stays in the flow between an 848px shell, where the default package fixes the map into the left margin, and 1296px, where the core theme floats the sidebar. In that band the empty sidebar kept its `margin: var(--sp-4) 0 30px`, and as a `flow-root` box it also kept the blocks on either side of it from collapsing their margins. On `feature-gallery` at 1200px, the render gate's width, that put 54px between the lede and the paragraph after it where the floated posture gives 13px. The docs site patched it for itself (#1246) by zeroing the margins, which still left 23px because the box stayed `flow-root`. The core theme now handles this beside the posture declaration that #1278 moved there: under the margin posture, a first sidebar whose only child is the `lf-toc` is `display: block` with no block margins, so the blocks on either side meet as they do when the sidebar floats. The rule has to be in the core theme, because package CSS is now confined to the package's own widgets and could not reach the `aside`. The docs copy is deleted. From 1296px the core theme's float margins still outrank the new rule, so the floated sidebar is unchanged. The surveyor's reading of no gap at 1000px came from the page, not from Leaf: the feature gallery hides `#bg-sidebar` below a 1152px shell (its own `@container lf-shell (max-width: 1151px)`, from #237), so there the gap only shows from 1152 to 1295px. Any other page with this shape has the gap from 848px. `layouts.css` no longer pins `--lf-shift: 0px` and `--lf-gutter-l`. These were left over from the column model #1246 retired, and they only fed `--lf-sidebar-free-left`, which nothing read, and a `+ 0px` term in the default package's outline width. The core theme's `main` rule that set those two properties and `--lf-sidebar-claim` is gone. `--lf-sidebar-claim` was an alias for `--sidebar-max` with one reader, the map's width, which now reads `--sidebar-max` directly. Behaviour that moved: between 848 and 1296px of shell, on a fine pointer, a page whose first sidebar holds only the contents map loses the gap under the block before it (41px on the feature gallery at 1200px). `test_a_left_sidebar_uses_the_margin_until_the_page_needs_it_back` now checks that band: the block after the sidebar stands where it would with the sidebar gone. `test_the_reading_map_returns_when_a_hidden_sidebar_comes_back` asserted the wrapper's display was `flow-root`, which only stood in for "the wrapper came back". It now asserts that the display is not `none`. `layouts.css` still selects `lf-pane` by tag. The survey read this as a pane-depth inconsistency that the role alone would fix. Keying on the role alone breaks two things the tag carries. An authored pane is held only as the workspace body or a cell of it, and `test_a_pane_inside_a_plain_section_of_a_workspace_flows` goes red if the depth limit is dropped. The tag is also the only mark present at first paint: on `alert-review` the runtime paints `data-lf-reading-role` 450-650ms after first paint. That needs a first-paint, authored-versus-generated mark, so it is a `TODO.md` entry under Shared definitions. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
PR #221 established a developer-only omnibus gallery, but the surface still emphasized margin Buttons and omitted several core workflows. This completes the gallery as the feature-indexed place where a Leaf developer can exercise the product without turning synthetic coverage into a public user example.
lf-*element names.Validated with
uv run pre-commit run --all-files,uv run pytest tests(813 passed), the Leaf render gate in both palettes, and desktop/mobile browser inspection.