Skip to content

Unify recording scopes and refine review controls - #2113

Merged
max-sixty merged 4 commits into
mainfrom
codex/composed-recording-review
Oct 9, 2026
Merged

max-sixty merged 4 commits into
mainfrom
codex/composed-recording-review

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

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
leaf-agent previously approved these changes Oct 8, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
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
leaf-agent previously approved these changes Oct 9, 2026
…ing-review

# Conflicts:
#	skills/leaf/packages/playwright/widgets/lf-trace.js
@max-sixty
max-sixty merged commit a8ed7ff into main Oct 9, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/composed-recording-review branch October 9, 2026 01:55
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]>
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