Repository navigation
Redesign visual review with per-case approvals and On me navigation - #3537
Merged
Merged
Conversation
…ashboard # Conflicts: # skills/leaf/assets/registry.json # skills/leaf/kernel/kernel.json # skills/leaf/kernel/runtime/bundle-queued-work.js
leaf-agent
previously approved these changes
Oct 22, 2026
leaf-agent
approved these changes
Oct 22, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 23, 2026
The two visual review browser checks now assert the geometry of the current comparison: its two capture frames share one seat, and that seat reserves a readable frame before images decode. The old checks expected vertically stacked frames and a capture host over 1000 px tall, so they failed after the retained `lf-shot` comparison replaced that arrangement in #3537. Both cases failed in [main CI run 39917870081](https://github.com/max-sixty/leaf/actions/runs/39917870081) and pass with `uv run pytest -q -n0 tests/browser/test_render_visual_review_journey.py::test_visual_review_allocates_focused_evidence_before_images_decode tests/browser/test_render_visual_review_journey.py::test_visual_review_reports_an_image_failure_after_its_peer_has_loaded`. The checks still require the reserved geometry to stay identical when images arrive and an image failure to be reported. This changes only test expectations. Refs #3695; the run has other failures under investigation. --------- Co-authored-by: leaf-agent <[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.
Visual review now gives each capture case a stable dashboard with a “Looks right” checkbox and feedback through Leaf threads. This replaces verdict radio buttons and shifting inspection controls with retained case views, direct thread access, and a More inspection popover. Screenshot comparison remains owned by
lf-shot.Each case is also a separate On me obligation. The new generic
x-awaits.recordsdeclaration derives those obligations from a bound data contract’s record keys; the server folds approvals, Undo, and case-specific discussion into their current state. Sharedm/Shift+mnavigation reveals the selected datum, including cases inside frozen thread widgets. Localn,a,c, andishortcuts cover case navigation, approval, feedback, and inspection.The main review boundaries are the visual-review package (presentation and approval contract),
obligations.pyand its canonical reading inputs (per-record state), and shared obligation arrival (datum reveal and focus). Package-author documentation, schemas, generated bundles, and affected callers move together. Existing radio-verdict tests are replaced with approval, thread, navigation, reading-continuity, and responsive-layout coverage.Validation: 78 focused model/browser tests passed after integrating main, along with the full
pnpm run check. Independent live review covered desktop and phone layouts, keyboard navigation, feedback, and On me arrival. Earlier matched startup captures showed no layout shifts or console errors. Final lint refinements passed pre-commit and 517 runtime tests. CI exposed an extra handover for generated options; the repair preserves their log ownership, with 19 focused stop/obligation checks. The comparison transaction test now permits the data read its obligation inventory needs while checking the lock remains held. The website loop-order test reuses the fix already on main in #3535.The broader redesign of
lf-shotcomparison and pixel/outline inspection controls is separate work.