Skip to content

Shot divider and chart pointer journeys fail since #7298 bumped Web Awesome and Plot #7402

In review

Description

@leaf-agent

Two journeys pass at 551c70c60 and fail at ee5b61a7e (#7298, the Dependabot npm group of 31 updates), and still fail on main at 3fa2e5a17. I bracketed them by running them by node id on Linux at both commits. They also fail on macOS in scheduled run 45985529285 on 21c613f05. Each points at a different bumped bundle, so they are probably two causes that share an introducing commit.

tests/journeys/test_render_commands.py::test_a_shot_compares_its_frames_with_a_direct_divider: Web Awesome 3.14.0 → 3.15.0. The test expects expect(comparison).to_have_attribute("position", "50") on lf-shot wa-comparison, but the element reads position="100". #7298 rebuilt packages/default/vendor/webawesome.esm.js, browser/vendor/webawesome/* and browser/styles/vendor/webawesome-theme.css. The next step is to read 3.15.0's wa-comparison changes for its default or initial position, and decide whether lf-shot should set the position it means, or whether the test expected a library default.

tests/journeys/widgets/test_charts.py::test_a_chart_picks_the_point_plot_s_own_pointer_picks[browser] (and [firefox_browser] on macOS): Plot 0.6.17 → 0.6.19. On the faceted case, Leaf's pick and Plot's own pointer pick differ at several points, for example (0.09, 0.14, {'at': [40, 91], 'lines': ['a0']}, None), where Plot's own pointer picks nothing. The teardown also reports unchanged write: transform on g in svg#faceted-alone.plot-…, a write on the test's own standalone Plot figure. #7298 also rewrote build/@observablehq__plot.patch and build/entries/plot/entry.mjs, so the patch Leaf applies to Plot moved with the bump. The next step is to check whether 0.6.19 changed the pointer transform for facets, so that Leaf's reading of facet frames no longer matches Plot's.

Cause of a failure tracked in #7391.

Activity

  1. added
    tend-ci-cause
    on Nov 27, 2026
  2. leaf-agent commented on Nov 27, 2026

    @leaf-agent
    CollaboratorAuthor

    A third journey has the same bracket: tests/journeys/test_render_diff_controls.py::test_file_tree_opens_current_diff_files_by_pointer_and_keyboard[patch] (and [file] on macOS) passes at 551c70c60 and fails at ee5b61a7e, run by node id on Linux. It still fails on main at 3fa2e5a17.

    Deciding error: expect(locator("#files").get_by_role("textbox")).to_have_value("") reads importer. So the file tree's search field keeps the text the test typed at a step where the test expects it cleared. The lead is #7298's bump of @pierre/trees from 1.0.0-beta.6 to 1.0.0, which is a third library alongside Web Awesome and Plot. That hasn't been checked against the library's changelog yet.

  3. leaf-agent commented on Nov 27, 2026

    @leaf-agent
    CollaboratorAuthor

    #7410 fixes the shot divider and the faceted chart journeys. Both fail on main and pass on the branch, and the chart passes in Chromium and Firefox. The file tree journey is still open, and its cause is below. #7410 now says Refs #7402, so merging it leaves this issue open for that third test.

    • Shot divider: Web Awesome 3.15 starts wa-comparison's drag on pointerdown and captures the pointer on the divider. So a click on the handle reaches lf-shot with the divider as its target, and lf-shot took it for a click on the image. lf-shot now ignores clicks inside the divider. The journey's synthetic second-finger pointerdown now carries the handle's coordinates, because a coordinate-less press now drags the divider to 0.
    • Chart pointer: Plot 0.6.18 pools every tip and facet and shows the entry nearest the pointer. An entry that picked nothing still ranks at maxRadius², so it beats any pick more than 40px away. Plot then showed no tip where lf-chart showed one. This is Pointer pooling in 0.6.18 hides picks that 0.6.17 showed observablehq/plot#2475, and Leaf's Plot patch now carries the fix proposed there.

    File tree (@pierre/trees 1.0.0): the bump changed two search behaviours on purpose, and lf-file-tree's header still promises the old ones ("Search clears on blur or activation. Enter in search chooses a row").

    1. Pressing a row no longer closes the search: computeFileTreeRowClickPlan now returns closeSearch: false, where beta.6 returned closeSearch: isSearchOpen. Calling the public tree.closeSearch() from activate in lf-file-tree.js fixes this. With that change [patch] passes locally.
    2. Enter in the search field now only selects the focused match (controller.selectOnlyPath). The search stays open and focus stays in the field. Beta.6 also closed the search and moved focus to the row, through Trees' internal restoreTreeFocusAfterSearchCloseRef. With (1) applied, [file] still fails on this at line 742, where the field reads src/importer.py after Enter.

    Restoring (2) means Leaf doing that hand-off itself through the public API: intercept Enter in the search field, call closeSearch(), then move focus to the row once Trees has redrawn it. That is the next step for this test. The other way is to adopt Trees' new behaviour, keep the search open after Enter, and rewrite the header and the test. That changes how the file tree's search works for a reader. I left both out of #7410 so it stays about the Web Awesome and Plot bumps.

  4. leaf-agent commented on Nov 28, 2026

    @leaf-agent
    CollaboratorAuthor

    #7488 fixes the file tree journey, the last of the three. It keeps the search behaviour lf-file-tree documents and uses only Trees 1.0.0's public API. Pressing a row now calls closeSearch(). A plain Enter in the search field selects the focused match and focuses its row, and the field's blur closes the search. Both [patch] and [file] fail on main at cd2495ac7 and pass on the branch. The PR closes this issue when it merges. Its review and CI are still pending, and tend-land handles its CI and landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions