Repository navigation
Move domain dashboards into their examples - #2155
Merged
Merged
Conversation
A surviving element destination cannot show old words after a rewrite or data replacement. Use the resolved passage contract to offer local reading only when the compact quote actually clips text. Keep expansion with the retained card and remove the disabled-button treatment from detached quotations.
A native projection retained its subject while replacing its quoted text, exposing an exact-resolution claim for words no longer there. Resolve that case as an element fallback, derive Changed in the thread reading, and preserve local expansion across label changes. Preserve the original gallery log bytes and append only the new fixture events.
Working-density element defaults now yield to component margins and table padding in the same CSS layer. Closed inspection is a toolbar disclosure, retaining its shared touch target while putting phone evidence116px earlier. Overlay opacity controls wrap within narrow layouts. Allocate declared focus geometry before image decoding through the same evidence layout function, then validate decoded bounds. Load and error share a stable geometry invalidator so delayed media failures remain visible. Browser regressions exercise generic density overrides, held undecoded captures and a late peer failure.
Publish thirteen current example previews after main integration, and retain the reviewed visual-review desktop recapture in the merged media revision. Catalog and README links advance with the exact asset pin.
The browser fixture reads page health before closing every context it lends. Remove the duplicate test-finally closure from the held-image allocation and late-image-failure journeys so that fixture guarantee remains intact. The resource ownership guard and both real HTTP/browser journeys pass.
The case queue owns one shared allocation for Previous and Next rather than dropping button minimums in its narrow rule. Keep the picker shrinkable with an ellipsis, and give it a full row when the native options would otherwise be too narrow to read. Put the picker before the paired steps in both DOM and visual order so keyboard focus follows the same route. Browser regressions exercise equal widths and retained geometry through case changes, keyboard focus, long labels and disabled single-case runs at phone and desktop widths.
Keep evidence-first reviews and equal navigation in the bounded workspace introduced on main. Refit captures when inspector or case chrome changes the available pane, and hand restored focus through the shared cause-aware owner. Store margin row positions as full-precision custom coordinates, avoiding CSSOM rounding that restated unchanged positions or hid small moves far down a document. Cover real distant movement and read constrained scroll placement from painted geometry. Refresh and review catalog and merged-tree thread expectations.
Keep native list markers and touch targets while distributing extra hit area around the label. Exercise single-line and wrapped summaries with pointer and keyboard input, and refresh reviewed catalog media.
Case browsing from a verdict now moves to its counterpart through the shared focus owner. Update the authenticated capture-to-review journey to require that native action with full visibility, hit testing and its keyboard ring. Next unreviewed retains its separate evidence-heading destination.
…reading # Conflicts: # README.md # docs/examples.html # leaf-assets.json
Expose anonymous work-role readings while retaining reports, worker assignments, task identities, Asks and provenance. Atlas and PR examples compose native disclosures and facts with page-owned data adapters; generic contracts use an independent fixture vocabulary. Include child-template data consumers in the parent producer inventory, preserving captured registries and parent bindings. Drop retired dashboard layout tests while retaining their state, report, reference and lifecycle guarantees.
leaf-agent
previously approved these changes
Oct 9, 2026
leaf-agent
reviewed
Oct 9, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The shipped code-review author instructions still recommend the pr-review package for a captured pull-request brief (skills/leaf/packages/code-review/instructions/author.md, “Choose evidence for the question”). This PR removes that package and its widget, so an agent following the instruction is directed to a package it cannot select. Update that instruction to describe the page-owned brief or native composition used here.
Replace the separate Targeting editor and workbench with standard Design comments on authored reader identities. Remove the package, target-reference API and unused Web Awesome controls; update examples, corpus, docs and fixtures together. Keep direct and keyboard/touch targeting on the same lazy reading of native controls and their visible label faces. Capture resolves the actual selected span through real passage fences, while ambiguous capture records detached: true so a later identical survivor cannot inherit the original comment. The native Range owns placement independently; retiring it keeps the same draft recoverable. Expose control parts and honest uncertainty in composer/transcript labels and Not located filtering. Spoken context shares bounded, language-aware excerpts with search, retaining the exact stored anchor windows. Validation: native Design and detached/attached editor lifecycle journeys, file/admission/revision/transcript contrasts, corpus,275runtime tests, startup comparison and independent source/native review.
Capture visible file-modelled words for unique as well as repeated native control names. Accessibility-name uniqueness is not durable identity; unsupported generated faces retain the existing owner fallback. Exact part quotations sharing one pressable face now supply that face as the shared placement target for editors and sent threads, while ordinary prose still clears its block. Update label/input equivalence to compare chosen captures rather than bare lazy inventory coordinates. Cover pointer and keyboard capture, file agreement, actual revision, local editor and sent-card geometry, and generated tab fallback.
Mutable task status is generated browser text rather than authored file text. Exercise both the page-owned Atlas adapter and the independent work vocabulary through selection, actual comment admission, a status report, matching author revision and reload. Current status remains an exact passage; the obsolete quote detaches without a spurious file-side reanchor. Assert the visible status is spoken once.
Use one candidate reading for Design interception, direct target capture and the picker. Named regions and pictures retain honest identity; mutable editing values never become automatic names or neighbouring quote context. Browser and file passage cells fence native editing boundaries consistently, and browser search and resolution share that fence rule. Reach declares its borrowed tab stops so keyboard reachability cannot turn prose into a working region. Preserve authored focus and ownership transfer when returning those stops. Keep native cross-cell quotations writable and send their actual detached evidence. The corpus sweep now requires independent file refusal before accepting a non-exact mark, rather than forcing an exact highlight across unreadable seams. Cover native code selection, mark reopening, region/picture routes and source agreement.
Textarea child markup initializes its value, rather than supplying document passage words. Exclude that markup in both browser and file readings so stale defaults cannot enter Design names or surrounding quote context after native editing. Retain honest element and section fallback targets, visible labels, ordinary prose quotations and native typing. Exercise canonical before/after capture, browser/file agreement and a real Design comment followed by normal editing.
Combine package-list and catalog removals, regenerate the shared corpus, preserve anonymous public work declarations and sample producer inventory, and move the remaining browser range-capture tests to canonical anchorForRange. Final catalog publication and matched startup evidence follow the actual main merge.
Retain the reviewed combined package removals and corpus, and adopt the landed event-contract snapshot correction. Product sources match the independently reviewed peer integration.
Republish all thirteen catalog stills from the integrated tree, including native ship-review content. Accept the merged-tree thread capture after 96 image/geometry comparisons show no perceptual or geometry changes.
leaf-agent
approved these changes
Oct 9, 2026
This was referenced Oct 9, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 10, 2026
The ship-review aimed-press test now seeds a comment on its current options widget before checking a press over a standing mark. [PR #2155](#2155) replaced the old task widget with native sections, so the [failed main run](https://github.com/max-sixty/leaf/actions/runs/37976659568) reached option clicks but no marked widget. This keeps the original aim behavior covered without changing the public example. The selected test failed before this change with `missing ['standing mark']` and passed afterward: `uv run pytest -q -n0 'tests/test_render_aim.py::test_an_aimed_press_does_only_what_the_outline_promised[ship-review]'`. Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 10, 2026
The standing-action replay test now reads the registry composed for the page it serves. [PR #2155](#2155) moved work widgets into a test package, so the page gained `lf-test-task` and `lf-test-worker` verbs that were absent from the shipped-package registry the assertion used. The [failed main run](https://github.com/max-sixty/leaf/actions/runs/37976659568) reported those verbs as unexpected even though its page had exercised them. The selected test failed before the change and passed after it: `uv run pytest -q -n0 tests/test_render_projection.py::test_the_render_gate_applies_every_standing_action_a_second_time`. --------- Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 10, 2026
The Atlas and pull-request examples now keep their last child margins within their panel frames. [PR #2155](#2155) moved these displays into authored page CSS; the [failed main run](https://github.com/max-sixty/leaf/actions/runs/37976659568) then found margins larger than the space drawn below the last Atlas task and PR brief, and above six worker reports. The page CSS now removes those edge margins, and the derived corpus CSS was regenerated. Both selected render-gate cases failed before this change and passed after it: `test_page_fixture_renders[command-hub]` and `test_page_fixture_renders[pr-walkthrough]`. The local Chrome screenshot probe could not start on this CI host (`Address family not supported by protocol`), so the visual check is limited to the render gate's browser geometry readings. Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 10, 2026
The message-room test now checks the shipped board's measured grip in both a page and a reply. [PR #2155](#2155) retired the shipped roster; its replacement test fixture does not measure a state-column width, so the [failed main run](https://github.com/max-sixty/leaf/actions/runs/37976659568) read an empty `--lf-state-room` on the page before it could test hidden-message measurement. The test still requires a nonzero board room and the same value after the reply becomes visible. The selected test failed before the change and passed after it: `uv run pytest -q -n0 tests/test_render_widgets.py::test_a_widget_a_message_carries_holds_the_room_its_words_will_need`. Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 11, 2026
…build (#2327) Code-quality survey batch for `tests/`, `dev/` and `build/`: the test page pool's regression, plus small cleanups, one commit each. **Test page pool (F125).** Since #2155 put the `work` fixture package in `serve`'s default selection by path, every default `serve(markup)` ran a full `page init`. `serve` pooled only selections of bare package names, because it named each template directory after the selection. `initialized_page` now owns the key and the `page init` command. A shape is keyed by the selection, the package directories it resolves to as `page init` resolves them, and an optional named preparation step: an example's stamped versions, or `page_dir`'s document. `serve`, `page_dir` and the fixture check share that one keyed lend, templates are numbered, and a selection naming a package under the test's own `tmp_path` (a `layer_registry` or `./.leaf` page) is initialized in place. On this host under load 40 to 58, a default `serve(markup)` went from about 6 s to about 0.75 s after each worker's first. pytest's own fixture caching can't hold this pool by itself. `serve`'s selection is an argument of a call made inside the test body, sometimes twice in one test, and fixture caching keys only on scope and collection-time params. So the pool keeps the shape it had: a worker-scoped `_page_pool` with a function-scoped lender. **Wait deadlines (F79).** The deadline lint loses its per-file allowance. The 33 literal deadlines it held now take the suite's default, `HANDOVER_DEADLINE_MS` for a reload, or a bound past the runtime's 10 s presentation wait. The gate tests whose deadline is meant to expire share `EXPECTED_STALL_MS` (5 s), so two of them now wait 5 s where they waited 2 s and 1 s. **Console errors (F39).** `render_gate.scheme` gains `console_error`, the error branch `console_problem` already had, and `collect_page_errors`. probe, verify-site and the plain arrangement gate use them: still errors only, and a failed load now names its URL. A layout case drops its `response` listener, since the console entry already reports error statuses. **Stylesheets (F128).** `build/styles.mjs` exports `styleOutputs()`, which `build/browser/build.mjs` merges into the outputs it writes and checks. `build:styles` and `check:styles` are gone, and `check:bundles` no longer rebuilds the sheets. The sheets' banner now names `build/styles.mjs`. **Framework facade (F66).** The ESLint rules now refuse deep imports into `vendor/browser-runtime/`, which bypassed both the semantic publisher's ownership rule and the content-module boundary. The rule also drops a check on `createApplicationPublisher`, which the facade never exported. **Smaller items.** - From #2308: the focus-ring sweep now reads the Question ring by `question`, the canonical name since #2252. #2308 can close once this lands. - F131: `leaf-dev probe --do drive:NAME` reaches all 71 stills drivers. 13 were refused before. - F130: `publish-site` now runs on any `dev/` change. Its hand-written list had missed `startup.py`. - F75: two unused test helpers are deleted. - F117 and F118: maintainer docs now match the CLI and the suite, and let `--help` own leaf-dev's flags. **Not done.** - F40, launching catalog previews through `chrome()`: #342 chose Playwright's locked headless shell to keep previews reproducible, and this would reverse that. - F129, moving the package-lock check: #2317 deleted both lock checks when it moved to pnpm. - F58, the shared Lit binding: verification rated it low value and recommended folding it into the next change to either binding. - F34, the usability eval scorers: rewriting eight scorers onto `SourceDocument` needs the stored runs re-scored before and after, which is more than a small change. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
Playing `review-a-plan`, `triage-board`, `pr-walkthrough` and
`ship-review` through as their user (desktop 1440×900, light and dark;
phone where the layout differs) found three places where the page hid
what to do next or what belonged to what. Each fix is in the example's
authored content.
## Changes
- **ship-review, Claude's open question.** The step: answer the release
decision, press Done in the reconnect thread, then open On me. The user
expects On me to list what still waits on them. It said "Nothing waiting
on me", although Claude's comment on "Land the upstream fix" asks
"Should this task stay blocked until their fix is in our build…?" and
nobody has answered. The seeded comment had no `obligation`. It now
carries one, as `leaf thread open --obligation` writes it, so On me
lists the question until the user replies.
- **ship-review, task statuses.** Each task's status was an eyebrow
paragraph with no space above it, so "REVIEW · MOBILE" sat directly
under the previous task's text and read as that task's label, and the
subtasks of "Ship offline editing in the first patch" didn't read as
subtasks. The tasks are now a nested list, each title followed by its
status as a `.tag` (warn for stalled and blocked, ok for done). The
quoted passages and task ids are unchanged, so the seeded anchors still
resolve. The task's margin label now says "item · iOS reconnect stall"
instead of "section · …";
`test_the_shipped_long_thread_keeps_the_margin_and_its_height` now
expects that label.
- **pr-walkthrough, the approval.** The verdict says "Safe to approve
with two follow-ups", and the lede asks the reader to review "as if the
decision were still open", but the page had no control for making that
decision. A permission decision ("Approve PR #3865?", Hold approval /
Approve it) now follows the verdict, in the form
`authoring-decisions.md`, "Permission", gives, so On me shows 1 on
arrival.
- `leaf-dev stills` gains `ship-tasks` (light, dark, phone),
`ship-answered` and `walkthrough`.
## Before/after crops
From `uv run leaf-dev stills --authored --state …` (run
`.tmp/stills/run-wqzuglu2/`, plus `run-_xtw2enc/ship-tasks-dark/` for
dark):
- `ship-answered/{base,head}-crop.png`: On me after both decisions.
Before, it reads "Nothing waiting on me". After, it shows Claude's
vendor question with Reply.
- `ship-tasks/{base,head}-crop.png`, `ship-tasks-dark/…`: the task list.
- `ship-tasks-phone/{base,head}.png`: on a phone, the vendor thread's
pin now stands over the end of the "blocked · mobile" tag. Before, it
stood in the empty end of the eyebrow line.
- `walkthrough/{base,head}-crop.png`, `walkthrough-body-phone/…`: the
approval decision under the verdict.
## Decisions Max may reverse
- The list-with-tags structure for ship-review's tasks (it replaces what
was an `lf-tasks` widget before #2155 converted it to sections). On a
phone it costs the vendor pin's empty seat (above).
- Adding an approval decision to pr-walkthrough, placed right after the
verdict, so it is in the first screen and changes the catalog still. I
haven't run `wt refresh-previews`.
## Checked
- `page check` passes for both examples (advice only, as on main).
- Passing: `tests/browser/navigation/test_obligation_walk.py` (the two
ship-review cases),
`tests/browser/margin/test_card_placement.py::test_the_shipped_long_thread_keeps_the_margin_and_its_height`,
`tests/browser/test_render_options.py::test_a_thread_obligations_done_press_keeps_its_keys_and_one_workflow`,
`tests/browser/test_render_pages.py::test_ship_review_summary_is_addressable_and_baseline_aligned`,
`tests/smoke/test_smoke.py`, `tests/browser/test_render_aim.py`,
`tests/model/test_product_page.py`,
`tests/journeys/test_render_navigation.py::test_pr_walkthrough_navigation_starts_the_review_at_every_width`,
and
`tests/journeys/test_render_widgets.py::test_pr_walkthrough_moves_from_semantic_call_to_exact_patch_comment`.
-
`tests/journeys/test_render_navigation.py::test_inner_state_is_left_before_the_surface_around_it`
fails, and fails the same way with main's `ship-review` files: `m` from
the heading never focuses the thread's `lf-ask`.
- Not run:
`tests/journeys/test_site.py::test_a_shipped_log_opens_its_example_on_its_thread`,
which needs a full site build.
Part of #4011.
> _This was written by Claude Code on behalf of max-sixty_
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Move the Atlas command hub and pull request review from bundled dashboard packages into their examples. The examples now compose native headings, disclosures, facts and checks around page-owned data adapters; the shared
diffpackage keepslf-call-diff.The reusable boundary is a public
readWorkprojection driven by anonymous$work.widgetsdeclarations. It retains task and worker identity, assignment, report state, stopped work, Asks and progress while ignoring ordinary layout wrappers and excluding nested scopes. Report and evidence readings remain stationary until the permanent Show updates control is used. Generic contract tests declare an independent work vocabulary instead of requiring a shipped dashboard. Visible generated status can be commented on through reports, author revisions and reloads; obsolete status quotes detach without rewriting their history.Sample-only data consumers now appear in their parent’s producer inventory. Document bindings walk sample children with their captured registry and retain the parent’s authority for a reused source.
Validation covers file/data and package contracts, public work projections, native PR rendering, live report stability, real generated-status comment journeys, installed-payload rendering, runtime checks, browser build, corpus reproducibility and pre-commit. The final merged tree republishes all 13 catalog previews, including the native ship-review composition, and 48 reviewed thread images with unchanged geometry and appearance.
Matched served startup against merged main: Atlas adds four presentation requests while total/code bytes decrease by 68,776/68,851; PR walkthrough adds three while total/code bytes decrease by 30,511/30,581. The requests come from page-module aliases and implementations, companion styles and the shared synchronous work API. Adapters and styles establish current state, data, comment targets and layout before presentation; the work projection supplies Atlas’s canonical counts and arrives on PR through the shared public API’s eager exports. There are no browser errors or additional layout shifts; elapsed times are diagnostic only.