Repository navigation
Retire decorative widgets in favor of page-owned HTML - #2151
Conversation
…notices # Conflicts: # README.md # docs/examples.html # docs/index.html # leaf-assets.json
leaf-agent
left a comment
There was a problem hiding this comment.
PR #2155 changes the same examples/live-progress.html, examples/corpus.html, dev/leaf_dev/stills.py, and shared render tests. GitHub currently reports this head as conflicting with main. The two proposals cover complementary widget removals, so the overlapping pages and fixtures need to be reconciled on the resulting tree before this is ready for approval.
leaf-agent
left a comment
There was a problem hiding this comment.
CI found a stale reader-calibration fixture: dev/leaf_dev/reader_eval.py::fixture still requires id="count-open" value="7", but the new triage board renders that count inside a <dl>. test_reader_calibration_shows_the_judge_its_page_at_every_width fails before either calibration page is built. Make the fixture vary the count in the new authored markup so both the seven-card control and eight-count case reach the judge.
CI failed — reader calibration and read-state message fixtures still use the retired metric representation.
The calibration edits the real count through the HTML parser. Read-state fixtures exercise their existing hidden-original and stationary-reading contracts through normal Markdown reply admission instead of retired metric markup.
Limit embedded sample allocation and module loading to three children at once. On the composed corpus, simultaneous child runtime imports can exhaust Chromium's request pool; a failed module then reports “Presentation failed: entry module did not load” during page check. The load slot is released as soon as the child document loads, so a slow state read does not block later samples. This repairs the corpus failure in [main CI run 37929061293](https://github.com/max-sixty/leaf/actions/runs/37929061293) and the same failure in [#2162's test job](https://github.com/max-sixty/leaf/actions/runs/37968990299). The affected corpus includes replacement markup from #2151; its check passed in the preceding complete main run. Verification: the corpus check reproduced a `net::ERR_INSUFFICIENT_RESOURCES` module request before this change and passed after it. Four sample lifecycle cases and a case holding four child state reads pass, as do 275 runtime tests, the browser bundle check, and pre-commit. In a matched-source startup probe, both arms loaded 302 code requests with no layout shifts. The candidate added 1,057 code bytes and presented the composed page; it can delay an offscreen sample's load while other children load, which avoids the browser resource failure. Co-authored-by: leaf-agent <[email protected]>
The live-progress page now puts “checks passing” before “4 of 5” in a definition list. Its comment test still expected the retired widget's word order, so the main CI run failed even though the comment field received the correct selected text. Update that assertion to match the authored label while keeping the test's focus, draft, and scroll checks. The [main CI run](https://github.com/max-sixty/leaf/actions/runs/37929061293) failed this test after #2151. I reproduced the failure locally and reran the exact node after the change: 1 passed. The branch now includes current main, including #2171’s bounded sample loader, which repairs the shared `ERR_INSUFFICIENT_RESOURCES` / entry-module presentation failure in these older CI runs. Current-main validation: the exact affected browser cases pass locally; independent source review found no actionable issues. Fresh broad CI runs on this updated head. > _This was written by Codex on behalf of max-sixty_ Co-authored-by: leaf-agent <[email protected]> Co-authored-by: Maximilian Roos <[email protected]>
Several bundled widgets only decorated static text. Pages now own those compositions through native HTML: label/value pairs use
dl, status labels usesmall.tag, comparisons use sections, plans and event histories use lists andtime, and directory excerpts usepre. This removes the chip, metric, compare/variant, milestone, chronology and tree registries, modules, initial renderers and CSS. Activity keeps its package-owned initial drawing in a dedicated activity bundle. All examples, historical fixtures, authoring references and evals use the new markup.Selections, undo, anchored comments, live revisions and shared actions continue through their existing owners. Generic declaration and startup/export tests now exercise active or privately declared widgets; tests specific to retired rendering were removed. Page-owned styles retain headline hierarchy and visible blocked/active/done status.
The public demo and catalog are re-recorded from the replacement pages. The recorder now owns an isolated harness session, preventing its delivery loop from competing with the invoking agent.
leaf-dev stills --authoredcompares each commit's example markup and companions, allowing before/after evidence for page edits as well as runtime changes.Validation: independent code review and native desktop/phone browser review; 275 runtime tests; 714 file-boundary cases; 612 combined document/registry/product checks and 735 independently rerun integration cases; focused startup, inline suggestion/undo, export, option, anchored-card and monitoring-revision browser checks; native review, quotation and live-progress integration checks plus 48 reviewed thread captures; real demo recording; browser bundle gate; regenerated corpus; pre-commit. Native count calibration and three thread read-state regressions also pass through the current markup and reply admission. Matched-source startup comparison has the same 251 code requests and 19,402 fewer code bytes, with no new error or layout-shift result.