Skip to content

Redesign visual review with per-case approvals and On me navigation - #3537

Merged
max-sixty merged 4 commits into
mainfrom
codex/visual-review-dashboard
Oct 22, 2026
Merged

max-sixty merged 4 commits into
mainfrom
codex/visual-review-dashboard

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

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.records declaration derives those obligations from a bound data contract’s record keys; the server folds approvals, Undo, and case-specific discussion into their current state. Shared m / Shift+m navigation reveals the selected datum, including cases inside frozen thread widgets. Local n, a, c, and i shortcuts cover case navigation, approval, feedback, and inspection.

The main review boundaries are the visual-review package (presentation and approval contract), obligations.py and 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-shot comparison and pixel/outline inspection controls is separate work.

This was written by Codex on behalf of max-sixty

…ashboard

# Conflicts:
#	skills/leaf/assets/registry.json
#	skills/leaf/kernel/kernel.json
#	skills/leaf/kernel/runtime/bundle-queued-work.js
leaf-agent
leaf-agent previously approved these changes Oct 22, 2026
@max-sixty
max-sixty merged commit 491a2c7 into main Oct 22, 2026
3 checks passed
@max-sixty
max-sixty deleted the codex/visual-review-dashboard branch October 22, 2026 07:30
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]>
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