Repository navigation
Remove the static export; export is the offline runtime - #1136
Merged
Merged
Conversation
`leaf version export` now always writes the offline copy that boots Leaf's runtime from an embedded state reading, so the references, sidecars, and maintainer guidance drop the script-free copy: the `lf-copy` medium and "Standalone copies and print" section, `lfPrepareExport` and the attributes-because-export obligation, the Chromium 125 export floor, the corpus export test, and the `--interactive` flag. serving-pages.md "Exported files" owns the single command; page-authoring.md points there for the live-specimen refusal. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Export now always writes the offline interactive copy, so tests whose subject was the baked static copy (what it keeps, drops, or looks like, its readiness waits, its browser floor, its scroll cue, the corpus-wide sweep) are deleted. Tests that did live work before exporting keep the live half; gloss, inline-thread, and pending-change checks keep their print assertions on the live page. `--interactive` tests drop the flag. The UTF-8, captured CSS graph, CSP, and capture-key checks now read the interactive export; live-specimen refusal matches its message prefix. Assertions on the removed lf-copy class and CSS guards are gone, and the served probe routes are every render-check source. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # tests/AGENTS.md
# Conflicts: # docs/registry.html # tests/test_render_projection.py
leaf-agent
approved these changes
Sep 24, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 24, 2026
The Rust sort example landed beside #1136 with an lfPrepareExport() that froze the film on its first merge for the static export. #1136 removed that export, so nothing calls the hook any more. Remove it from the example and regenerate the corpus copy. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 22, 2026
…it flags (#6695) The corpus journey (`test_page_fixture_renders`) now takes an axe reading of every authored page in light and dark, which nothing has done since #1136 removed the static export's axe pass. This fixes the seven pages it flagged: - **Tally (alert-review, command-hub):** Next On Me's `aria-controls` named an id outside the widget's shadow root, which no browser resolves. The button steps through the region rather than controlling it, so the attribute is removed. - **File tree (deploy-config, file-tree, file-tree-input):** @pierre/trees puts `role="tree"` on the root that also holds the search field, and a tree may own only items and groups. A vendor seam moves the role to the scroller holding the rows, and moves the root's one `[role="tree"]` layout rule onto the root's own attribute. 1.0.0 still has this, so the seam outlives an upgrade. Base and head lay the tree out to the same pixel. - **shadow-scale:** the example's quiet text, a row's labels, the card eyebrow and the dark Save button were 2.2–4.4:1. They are now 4.7:1 or better. - **wt-merge:** the film's 13px flag checkboxes sat 23px apart where the row wraps. Each label is now at least 24px tall. The colour-scheme switch shared by `unread_syntax` and the new reading finished only the document's own transitions. It read a search field inside a shadow root mid-transition, as light under dark ink. It now finishes every finite motion through `finishMoving`. Max asked for this (#10 on the Gridlines page). Nobody else has read it yet. Checked by running the eleven affected pages through `test_page_fixture_renders`, running an axe-only sweep of all 49 authored pages, running the file tree, tally, film and syntax-probe browser tests, and confirming that the unfixed shadow-scale fails the new entry. > _This was written by Claude Code on behalf of max-sixty_
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.
Leaf had two exports. The static one froze the drawn page, stripped every script, and marked the root
html.lf-copy. The offline-interactive one (--interactive) embeds the page's own runtime and its captured state, so the page draws itself when the file opens. This removes the static export.leaf version exportnow writes only the offline file, and takes no flag.Why
With no script in the static copy, every feature had to say what it looks like without its JavaScript. That took:
html.lf-copy/html:not(.lf-copy)selectors across 8 stylesheets;lfPrepareExport()hooks in five widgets;staticLabel, the tab-icon rest link);Since August, 131 commits touched the export files and 77 touched
lf-copy. Main still carries one from today: #1132 fixed a nightly failure on a copy width.The case that surfaced this was How it works in a static copy. The #739 rule
html.lf-copy body > main:has(> lf-tabs…)stretched its text to the full window (1392px paragraphs, all five tabs stacked). The offline file draws the same page exactly as the site does: 720px paragraphs and a working tab strip. Its runtime is the live page's, so new features need no export-specific handling.Changes
exporting.py:cmd_exportalways builds the offline file (export_document). The browser bake and its readiness waits are gone. A page with a live specimen is refused, as--interactivealready refused one.standalone.jsis deleted andcoveredWordsmoves intowords.js. The file:// probe route,prepare_standalone_probes, andEXPORT_FLOORare gone.html.lf-copyrule is deleted, including the copy scroll-cue timeline in shadow.css. Some screen rules had depended on the class weight ofhtml:not(.lf-copy); without it, the "Another option" textarea took the runtime's textarea border. That guard is nowhtml:root, which has identical specificity, and theme.css states the convention.:where(html:not(.lf-copy))wrappers carried no weight and are unwrapped.lfPrepareExporthooks,staticLabel,data-lf-rest,data-lf-export="document"on specimen frames,serializableshadow roots, the live-leaves detached-tray guard, and comments that argued from the copy are all gone.--interactivetests drop the flag. UTF-8, captured-CSS and CSP checks now run against the offline file. The corpus-wide static export test is deleted.serving-pages.md"Exported files" describes the single export. Package guidance no longer asks widget authors to design for a script-free copy.Verification
--lf-copy-*properties and the timing noise a base-vs-base control also shows.test_visual_review_guides_one_typed_still_run, which fails the same way on main at c61f52f.What this drops
docs/event-log.html) can't be exported.Each is a follow-up.
🤖 Generated with Claude Code