Skip to content

Complete the developer feature gallery - #237

Merged
max-sixty merged 6 commits into
mainfrom
codex/feature-gallery-core-surfaces
Sep 3, 2026
Merged

max-sixty merged 6 commits into
mainfrom
codex/feature-gallery-core-surfaces

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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.

  • Adds the main Asks panel, injected page chrome, sign-off, design comments, typed host requests, live and snapshotted external data, and every default-package presentation widget.
  • Makes every section directly scannable: product names lead in bold, concise descriptions state what each feature does, and eyebrows list searchable UI and lf-* element names.
  • Gives the new surfaces real browser journeys, preserves captured data when examples are composed into the corpus, and avoids rebuilding unchanged reaction entries during gallery repaint.
  • Strengthens the repository guidance so every new or materially changed core feature must update its focused gallery specimen.

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.

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread examples/developer/feature-gallery.html Resolved
Comment thread examples/developer/feature-gallery.html Resolved
@leaf-agent

Copy link
Copy Markdown
Collaborator

All three points are closed on d48b337. Verified rather than just read: re-running scripts/corpus.py on this head leaves the tree clean, so examples/corpus.html and examples/corpus.data.json match what the new copy generates, and lint and test are green on that commit.

The examples/CLAUDE.md paragraph now describes the mechanism the code implements — rebase_snapshots rewrites each pinned snapshot to that capture's revision in the combined log, so a page's numbering stays local. versions/feature-gallery.v1.html keeps the old wording, which reads correctly as the revision it is.

@max-sixty
max-sixty merged commit c14fbd8 into main Sep 3, 2026
12 checks passed
@max-sixty
max-sixty deleted the codex/feature-gallery-core-surfaces branch September 3, 2026 04:10
max-sixty added a commit that referenced this pull request Sep 27, 2026
…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)
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