Repository navigation
Unify recording scopes and refine review controls - #2113
Merged
Merged
Conversation
Keep browser/context operations in each stream's chronological overview and offer page filters only when actual browser pages need distinguishing. Preserve archive-scoped comment identities and each scope's mechanical inspection state. Group recording controls and evidence with shared spacing and target sizes. Start the ruler at zero, keep edge controls reachable, and remove its repeated toolbar clock explanation. Reserve room for stacked moments and scrubbing. Update native browser journeys for the unified scope model, independent clocks, zero-boundary moments, zoom/pan limits and retained inspection. Developer stills now focus the recording timeline rather than the removed single-page selector.
leaf-agent
previously approved these changes
Oct 8, 2026
leaf-agent
reviewed
Oct 9, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The CI test job is red on test_trace_dense_moments_keep_the_axis_usable_and_page_scoped: the dense timeline measures 244 px against its 202 px bound. This also puts the capture 44 px lower than the PR's shorter-timeline design intends.
leaf-agent
dismissed
their stale review
October 9, 2026 00:16
CI failed: dense recording timeline exceeds its bounded height.
Use a persistent Vis DataSet to update item alignment in place rather than replace every native marker control when the timeline width changes. Declare the already-bundled vis-data dependency explicitly. Exercise all dense moments through keyboard navigation and retain the exact focused marker across resize. Bound the timeline at 244px plus rounding tolerance to include its dedicated 44px scrub row.
# Conflicts: # build/browser/generated/browser-runtime.manifest.json
leaf-agent
previously approved these changes
Oct 9, 2026
…ing-review # Conflicts: # skills/leaf/packages/playwright/widgets/lf-trace.js
leaf-agent
approved these changes
Oct 9, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 9, 2026
Main reworked lf-trace (#2099, #2100, #2113): the recording review is in page flow with a reserved capture viewport, a bounded metadata region, a time-scaled timeline and a sticky toolbar. That supersedes this branch's lf-trace work, so the playwright package, its gallery, the corpus and the trace tests take main's versions whole: the sticky stepper, the per-checkpoint image boxes, the held room and its releases, and the branch's trace tests are dropped. What this branch keeps is the layer's sticky-header focus rule (`--lf-head-inset`, `--lf-landing-room` and its restart in state.css), its declarations on the diff file header and action, the page tab strip and panels, the Threads title and a sticky Ask's options, the column sidebar's restart, and the diff code scroller's focus margin. Main's new sticky trace toolbar now declares its inset too: focusing one of its controls while stuck crept the page 14px a key, and moves nothing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 9, 2026
Tab no longer scrolls the page while it moves between the controls of a stuck sticky header, anywhere in the layer. The root's landing band (`scroll-padding-top`) starts 12px below the banner, and a stuck header sits inside it. The browser treated each focused control there as covered and scrolled toward it, but a stuck header never comes out from under the band, so each key crept the page again; a header standing wholly inside the band was centred instead. | Header | Before (per focus) | After | |---|---|---| | lf-diff pinned file header | 17px | 0 | | lf-diff file action | 12px | 0 | | page tab strip | 403px (centred) | 0 | | header after the tabs on a page with a tab strip | ~314px (centred) | 0 | | Threads list thread title | 20px | 0 | | lf-trace toolbar | 14px | 0 | ## The rule - One zero-specificity focus rule in the kernel's `shadow.css` sets `scroll-margin-top` from two properties. A focused element with neither keeps the existing focus-ring margin. - Each sticky header declares `--lf-head-inset`: how far below its `--lf-top` slot its controls stand when stuck. The diff file header and action, the page tab strip, the Threads title, the trace toolbar and a sticky Ask's options declare it. - `--lf-landing-room` is the scroller's landing room: `--lf-root-headers` plus a 12px gap on the root, and the gap alone in page-flow tab panels. It restarts with `--lf-top` at every box that scrolls (`state.css`). The Threads list states its ring room, and the column sidebar states none. - A diff's sideways-scrolling code takes the file header's height as its focus margin, so Tab from a stuck header into the code lands below the header instead of 18px under it at phone width. `main` had the same defect. - `module-authoring.md` describes the declaration for package authors. This branch began as a change to lf-trace's height model. Main's own recording-review rework (#2099, #2100, #2113) superseded that part, so the merge takes main's playwright package whole and keeps only the layer-wide focus fix. ## Tests `test_focus_in_a_stuck_header_leaves_the_page_where_it_is` pins the page tab strip, a diff file header and file action inside the tabs, a second diff after the tabs, and a short wide diff's code, then asserts that focusing each one leaves scrollY where it was. Each case fails with the kernel rule removed. The Threads title and the trace toolbar were measured with a probe rather than asserted. > _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.
Recordings now open on one chronological overview containing page actions and browser/context operations. The former API calls pseudo-page disappears; recordings with multiple browser pages offer All pages and real page filters, while independent streams retain their native clocks. Following comments and saved moments preserves exact capture identity and keeps the current overview when it already contains the destination.
The review controls use consistent spacing and 44px targets, a compact Moments list, and a bounded timeline with a separate scrub row immediately above the capture. Caption and full-size access share a row. The ruler begins at zero, pan and zoom stay within the fitted recording, and the toolbar omits its repeated elapsed-time explanation. Selection, image inspection, playback geometry and the chosen time window survive scope changes and capture replacement.
Validation: native recording journeys cover page/context scopes, independent clocks, comment recovery, dense moments and keyboard focus through resize, playback, image inspection, and timeline zoom/pan. Incremental Vis item updates preserve native controls instead of replacing them on resize. Runtime tests pass (257). The current preview was exercised at desktop and phone widths, with an independent source and rendered review.
Served startup comparison against baseline 9eec5de: both versions make 235 code requests by presentation. The candidate adds 6.7 KB of code for unified recording state and stable native controls, which the first interactive render needs.