Repository navigation
Draw the recording timeline on one time scale and remove Vis Timeline - #2429
Conversation
Keep two qualified defect/control pairs as separate leaf-dev diagnostics. Document the exception: recurring CI diagnosis has become costly enough to justify retaining this small internal set. Provide isolated native model runs, no-tools and controlled-browser evidence, frozen provenance, and manual grading. Leave the ambiguous grouped-navigation probe in exploratory evidence. Validated cold prepare-only recognition and discovery runs, fixture/control measurements, eval tests, and focused pre-commit checks.
Supply complete reconstructed fixture source as a separate tool-free condition. Freeze source hashes and audit exact native or SDK inputs without images. Keep source inference distinct from observed rendering and preserve incomplete-source pilot limits.
Runtime, render-gate and shared test changes from the held checkpoint are dropped in favour of main; the playwright package keeps the checkpoint's state for rework. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Replace Vis Timeline's centered, stacked boxes with Leaf's own lanes: every mark's left edge is its recorded time, calls are bars from start to end, and labels only annotate. The playhead is a time; the shown capture is the latest at or before it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…history The recording viewer no longer uses Vis. The eval that reconstructs the old viewer reads the exact bundle bytes from the commit its provenance names. The comparison workspace is a flow root, so its first paint keeps its box. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…d Lit templates Adopts #2346's Lit ownership of controls, moments and saved evidence, around the new timeline module. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e scale Following a thread to an image that is still on screen cancels a replacement that would retire it. A changed time scale redraws the timeline rather than carrying its marks, and its name column has a fixed width, so a font cannot move the scale. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Restoring a saved place no longer reopens a disclosure or view the user concealed; explicit navigation reveals destinations. Saved elements closes and stays closed while recording frames change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…one time Browser tests read each mark's staff against its recorded time, one row per lane, native panning and pinch zoom, and the playhead's shared coordinate. Moments at one time share a flag that lists them; labels at the end of the scale point back from their staff. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Each name in a shared label selects its own mark, and a count zooms to the marks it stands for. Input bars draw their call as an open window with a notch at the Action checkpoint, so none reads as a held key. The image badge states its own capture time and how it relates to the input. Playback waits for each image before moving on. Moment flags on the timeline no longer scroll the page. Shift+arrows step by input or moment and Space plays on the timeline. Ticks with an image are the strong ones. The unused compare attribute is gone; pairing lives in lf-trace-compare. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A checkpoint with an image now stands where that image was captured, so the image on screen is never newer than the playhead. Playback draws each capture over the Viewer at once and keeps 1x pace, waiting only when the image would trail by more than 150 ms. Overlapping calls keep their rows across redraws. Touch taps keep the mark they landed on; a press beside a thin mark picks it; a count zooms until its marks stand a label apart; the selected name is the one highlighted; the Input lane carries a visible legend and no second line beside its notch. Key down and key up read as such. Zoom stays within Chrome's layout limit and its buttons follow pinch zoom. The comparison workspace spaces its parts itself. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The playback image stands inside the Viewer's canvas, so a comment aimed during playback names the image on screen. A tap acts on the element under the finger, not the one Chrome adjusts toward. The notch keeps the Action snapshot's time. Pausing drops pending playback images, a resize re-places the playback image, and a gesture on the Viewer hands the picture back to it. A count zooms no further than shows all its marks. Zoom stays within layout limits after a widening, and zoom availability repaints only on zoom. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Play and Pause share one width, so the readout beside them never moves when playback ends. The playback image follows the Viewer's pan and zoom and is hidden from assistive tech, since the canvas names the part. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Main's focus-ring unification (#2375) moved package rings from `:focus-visible` to the runtime's `[data-lf-focus]` marker; the new timeline, pace select and canvas rings now use it too, so a pointer-focused timeline shows its ring. Measured lengths the comparison writes go through `layoutPx`, as main's other widgets do. Reading-place restoration keeps the branch's rule that a concealed landmark is not reopened, on main's `resolveAnchor` without an explicit page text. Main's capture-extent trace test changes merged cleanly; its Vis tooltip assertions are gone with Vis. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The input timing badge can remain visible after its call has ended while playback moves through the gap before the next checkpoint. The inline suggestion keeps a checkpoint's input association at that checkpoint and uses the call interval between stops.
Main (#2425) taught the Vis rail to run right to left in RTL text and its arrows to follow it. The new time scale instead runs left to right in every text direction, as a chart's time axis does (`direction: ltr` on the timeline), and its step keys, plain and Shift, read their arrows from the scale with `rowArrows`, so they follow it if that changes. The RTL test now protects that: recording zero stands at the left in an RTL page, and → steps later. It fails without the pin. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Between stops, the latest checkpoint stayed selected, so an input's After
checkpoint kept its badge ("after Click") while the playhead stood in the gap
before the next call, where no input applies. The checkpoint's input now
applies only while the playhead is on that checkpoint; elsewhere the badge
follows the input call the playhead is inside, if any. The frames test seeks
into that gap in the gallery recording and expects no badge; it fails on the
previous rule.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The lint check on fcf1a063 found a playback layout shift in test_trace_play_press_belongs_to_its_pointer_click: .lf-trace-selection moved 5px without input while the playhead advanced. I reproduced the same teardown error in a focused local run. The new playback layout needs to keep the readout in place as recorded time changes; this failure withholds my approval. The same CI run also failed test_a_traffic_wait_stops_when_repaints_outlive_its_deadline, which I have not attributed to this change.
CI failed: playback moves the trace selection readout without input.
CI's shift watch caught the selection beside the time readout moving 5 px during playback: in a font without tabular figures, each new time changed the readout's width, and its max-content column pushed the selection. The readout now reserves the recording's longest time label in `ch`, which bounds any label of that length. With proportional digits forced, the play-press test reproduces the shift on the previous code and passes with this. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
From the gallery's initial selection (3.003 s of 3.368 s), real-time playback ended about 365 ms after Play, so on a loaded CI runner the next click found no Pause. Starting from the beginning gives the warm-up the whole recording. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The lint run on 297ec4e5c failed in test_trace_play_press_belongs_to_its_pointer_click: the opening pause.click() waited 120 seconds for a Pause button that was no longer present. The recording lasts about 3.4 seconds, while that first Play→Pause sequence uses the wall clock, so the test can outrun the Pause state under CI load. Hold the recording clock before this opening sequence, or otherwise arrange for Pause to remain available until the press. The focused test passed locally, but this run does not establish a green playback gate. Failing CI job.
CI failed on the reviewed head: playback test timed out waiting for Pause.
…ser as generated (#2461) Main is red on `test_page_fixture_renders[playwright-paired-results]`, a fixture #2429 added. This makes it pass and fixes the second defect the 404s were hiding. - **Fixture media.** `playwright-paired-results.data.json` names example media (`/media/298268218fde4619.png`, …), but a page under `tests/fixtures/pages/` has no `layer.json`, so `media_source` returned a `media/` directory beside it that doesn't exist, and the images 404'd. A page inside this checkout with no layer of its own now takes the example catalog's media, as `source_packages` already gives it the catalog's packages. A page outside the checkout still keeps only its own `media/` (`test_an_unrelated_ancestor_layer_does_not_change_an_external_source`). `test_trace_comparison_prepaint_shows_only_its_opening_recording` had worked around the gap by building that media by hand; it no longer does. - **Comparison chooser.** With the images served, the render gate's apparatus check reported `lf-trace-compare`'s chooser row standing among the page's `lf-trace` children. The row is the widget's own, so it now carries `data-lf-gen`, as `lf-trace`'s generated view does. - **Play-press test.** `test_trace_play_press_belongs_to_its_pointer_click` now holds the recording clock before its first Play/Pause, so on a loaded runner Pause can no longer arrive after the 3.4 s recording has ended (the timing `leaf-agent` flagged on #2429's last head). Locally, `tests/test_render_playwright_trace.py`, `tests/test_interact_preview.py` and `tests/test_render_gate.py` pass on main `75515cd81`. After merging main `de2df875d`, every `test_page_fixture_renders` case, the two trace tests above and `test_trace_page_scrolling_preserves_playback` pass too, as do the pre-commit hooks on the changed files. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…puts (#2514) Follow-up to #2346, from the review of the Lit survey PRs (item 36 in that review's numbering, not a GitHub issue). It finishes the Lit conversion of `lf-trace`, whose lifecycle already moved to `whileConnected`/`frameFor` in #2503. ## Review item 36: `lf-trace` reads its Lit nodes through refs - **Selector table removed.** After each render, a 22-entry table queried the Lit output and stored nodes as public element properties (`trace.play`, `trace.next`, `trace.body`, ...). The template now binds each node the widget reads to a private `createRef()`. No test, widget or tool outside the widget read those properties. Only the table read the six transport classes `lf-trace-first`, `-previous`, `-next`, `-zoom-in`, `-zoom-out` and `-zoom-fit`, so they are gone from the markup. - **`#viewState()` removed.** It built a bag of eleven values that `#paint()` then unpacked. `#paint` now reads scope, extent, choices, origin and moments itself. `#draw` passes only the selected point, its saved tree and the tree rows, which it also uses for projection. - **Other lookups after render.** The missing-image note, input badge and point, and playback image are private fields. One helper now builds the playback image, which `#placePlayback` used to build a second time. Each capture figure keeps its canvas, image and status nodes, so `#drawPicture` no longer queries the figure by class. Three `images.find` calls now use `#imageById`. A Moment that targets a saved element finds its row in the part inventory instead of through a `data-lf-datum` query. - **Hand-written labels.** The position, selection and image-zoom labels are still written directly. A comment on `#drawTime` now says why: they change on every playback frame or pinch step, and `#draw` re-renders and re-projects. - **Resize.** The window `resize` listener the review saw beside the ResizeObserver was already removed in #2429, so the observer is the only thing that calls `#resize`. Behaviour that changed: none visible to the user. | | hand-written source | tests | |---|---|---| | Item 36 (`lf-trace.js`) | −20 (+210 −230) | 0 | ## Validation - These cases in `tests/test_render_playwright_trace.py` pass: comments restoring an exact image, bookmarks, comparison pairing, transport and playback, inspection through playback gaps and scope changes (it includes the saved-tree place checks), zoom and pan, the hidden recording, capture replacement, frames keeping saved elements, the play press, images at their capture times, and idle presentation. - Prettier and eslint pass. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
The Playwright recording viewer (
lf-trace) now draws its own timeline. Every call, input and capture sits at its recorded time on one horizontal scale, and the playhead is a time: the image shown is the latest capture at or before it. Vis Timeline is removed.The Vis timeline stacked overlapping items into rows inside a box with its own vertical scroll, sized markers on their centres, and gave no way to tell when a key press happened relative to the captured image. The new timeline answers those questions directly:
rowArrows.+nchip zooms until they separate. On touch, a tap reads the finger's own point, because Chrome's touch adjustment otherwise moves taps on thin bars to the label above.Where to look
skills/leaf/packages/playwright/widgets/timeline.js(new): the timeline: geometry, label clustering, zoom capped against Chrome's layout limit, gestures and keys.widgets/lf-trace.js: the time model (#cursorTime,#phaseTime,#inputRelation) and playback. Comparison lives only inlf-trace-compare.js, with nocompareattribute onlf-trace.theme.css: rewritten for the timeline. Its focus rings use the runtime's[data-lf-focus]marker.Runtime changes outside the package
reading-place.js: restoring a reading place no longer reopens a disclosure the reader has since closed.visual-parts.jsandanchor-travel.js: following a comment to a visual part already on screen settles it and cancels a pending replacement. Every visual anchor now loads its data, which costs one extra refresh round trip.icons.js: adds astarticon.Vis removal
The vendored bundle, its license file, its build entry and its packages in
package.jsonand the lock are gone. The UI-review eval still needs the frozen bundle, sodev/leaf_dev/review_detection_eval.pyreads it from git history at a pinned commit, recorded in the fixture provenance.Behaviour the tests now protect
tests/test_render_playwright_trace.pyis rewritten around the time model:New tests cover the reading-place disclosure rule (
test_render_navigation.py) and settling an already visible part (tests/runtime/addressed-parts.test.mjs). The registry instructions,instructions/author.md, the gallery example, the corpus anddocs/registry.htmlare updated.Known rough edges: where a captured frame and a checkpoint share a time, stepping stops at that time twice; ruler labels at the edges can be clipped by the scroll window; and the playhead line draws over label text it crosses.