Repository navigation
Show the release query's result beside its filters on a phone - #5437
Merged
Merged
Conversation
At 390x844 under a finger, data-explorer stacked each filter's Field,
Operator and Value into full-width fields with its three buttons
wrapping onto two lines below, 270px a filter. The two default filters
pushed "2 releases shown" to 878px, under the floating panel and off the
first screen, so a change to a filter showed nothing until the reader
scrolled. The result table then scrolled sideways in its frame (480px in
336px) with Risk, the field the second filter acts on, and Owner past
the frame's edge.
At 42rem or narrower the row is now flex items sized to their content:
each select is as wide as its longest option, the fields' side padding
is `--sp-2`, and the value takes the rest, so a filter's three fields
share one line down to a 360px window and the value wraps onto its own
line below that. The buttons take the next line, their faces reading
"Move up", "Move down" and "Remove": the filter's number moves into a
span the phone's row hides, so the accessible names still say "Move
filter 2 up". The table drops its 30rem minimum, so its four fixed
columns share the stage.
At 390x844 the first screen now holds both filters, the count, all four
columns and Build query; the count stands at 551px and the table frame
is 336px with nothing to scroll. Editing a filter's value by touch
updates the count and table on the same screen without a scroll. Every
select holds its longest option ("is above", 62px) at 320, 360, 390 and
430px, no table cell overruns at any of them, and the corpus sweep's aim
reader finds no control under the 44px floor at 390 or 360. The 320x568
reading reports two buttons scrolled under the playground's sticky
controls after Add filter moves focus, as main's page does.
The phone rules apply only at 42rem or narrower, and the 30rem minimum
never bound a desktop table. At 1440x900, 1120x700 (the catalog's
window) and 844x390, the only differences are antialiasing in the row
buttons' words (157 to 1677 pixels, the largest channel change 65 of
255), and the buttons' row moving by 0.05px, because each label is now
three text runs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…to their words
Independent review found two defects in the previous commit.
Each phone button's accessible name no longer contained its visible text
(WCAG 2.5.3): the button read "Move up" and was named "Move filter 2 up",
so a voice command such as "tap Move up" would likely miss it. The hidden
span is gone. Each `.query-row` is now `role="group"` with
`aria-label="Filter N"`, renumbered as the rows move, and the buttons read
"Move up", "Move down" and "Remove" at every width. Desktop's buttons
change with them, so the public catalog stills need `wt refresh-previews`.
Below about a 355px window the result table split words ("Checko|ut",
"paymen|ts") because its four columns were equal, and the comment claiming
they fit down to 320px was wrong; my reading looked for overflow, which a
split word doesn't cause. On a phone the table now uses `table-layout:
auto`. No word splits at 320, 340, 355, 360, 390 or 430 in Chromium, nor
at 320, 340 or 390 in Firefox, with the default rows or all six. The
frame overflows by 1px only at 320 with all six rows, and the column
edges move by up to 7px when the result set changes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`wt refresh-previews` recaptured all 19 catalog stills and moved the asset pin to max-sixty/leaf-assets@9c3dd34381b8, and the README's image URLs follow the pin. No demo image changed. `data-explorer` has no catalog still, so none of these differences comes from this branch's change: the page is a link in `docs/examples.html` rather than a card. They are look changes landed since the pin last moved (#4875). `dynamic-widgets` differs most, in 9% of its pixels, and the four largest show the same layouts with today's control faces. Co-Authored-By: Claude Opus 5.5 <[email protected]>
max-sixty
marked this pull request as ready for review
November 5, 2026 09:22
leaf-agent
approved these changes
Nov 5, 2026
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.
At 390x844 under a finger,
data-explorer's first screen now holds both filters, the result count, all four columns of the result table and Build query. Before, the count stood at 878px, under the floating panel, and the table scrolled sideways with Risk and Owner past its frame's edge. This is the last live item of the phone-quality queue. Of the four others, three already pass on current main and one islf-tabs' own phone design. They are listed below with the measurements behind each verdict.This changes desktop too: the row buttons' words are shorter at every width.
data-explorerhas no catalog still, since it is a link indocs/examples.htmlrather than a card, so no still shows this change.This PR also moves the asset pin to max-sixty/leaf-assets@9c3dd34381b8:
wt refresh-previewsrecaptured all 19 catalog stills, and the README's image URLs follow the pin. None of those differences comes from the change above. They are look changes landed since the pin last moved on 31 October (#4875).dynamic-widgetsdiffers most, in 9% of its pixels, and the four largest show the same layouts with today's control faces. No demo image changed. The capture ran on this branch's base, 22accdd.What changed
examples/data-explorer.html:.query-rowisrole="group"witharia-label="Filter N", renumbered as rows move. A button's accessible name is its visible text, and the group says which filter it acts on.min-width: 30rem.--sp-2(--wa-form-control-padding-inline), and Value (.query-value, basis 5rem) takes the rest. So Field, Operator and Value share one line down to a 360px window, and Value wraps onto its own line below that. The three buttons take the next line.table-layout: auto, because equal columns split words below about a 355px window ("Checko|ut").tests/journeys/test_render_widgets.py: the data explorer journey now reaches each button through its group by name, and asserts the group's number follows the row when it moves. It fails with the group role removed, and with the label following the filter's id instead of its place.Evidence
Stills are under
/Users/maximilian/.tmp/leaf.agent-a1ac83feeb90a4603/phone-examples/:data-explorer-390-before.pngdata-explorer-390-after.pngdata-explorer-390-dark-before.pngdata-explorer-390-dark-after.pngdata-explorer-390-before-typing.pngdata-explorer-390-after-typing.pngdata-explorer-360-after.png,data-explorer-320-after.pngdata-explorer-320-six-rows-after.pngdata-explorer-1120-before.pngdata-explorer-1120-after.pngdata-explorer-1280-before.pngdata-explorer-1280-after.pngdata-explorer-1440-before.pngdata-explorer-1440-after.pngplayground-short-window)data-explorer-844x390-before.pngdata-explorer-844x390-after.pngThe pairs come from
uv run leaf-dev stills --authored --state data-explorerwith--viewport phone(with and without--scheme dark),--viewport 1120x700,--viewport desktop, and--state playground-short-window. The measurements come fromleaf-dev probe data-explorer --viewport phone(or--viewport WxH --touch) with a journey that taps the value field, fills it and swipes the page with CDP touch events:Names. The accessibility tree at every width reads
group "Filter 2"holdingbutton "Move up",button "Move down"andbutton "Remove".Table. With the default rows and with all six releases, no word splits across lines at 320, 340, 355, 360, 390 or 430px in Chromium, nor at 320, 340 or 390px in Firefox. The frame overflows only at 320px with no filters, by 1px (limit 4 and 6 in Chromium, limit 6 in Firefox). The cost of auto layout is that column edges move when the result set changes. At 390x844, Owner's left edge moves 14px when filter 2's value goes from 40 to 80, and it spans 18px across the seven result sets read (15px at 320x568, 17px at 360x740, 20px at 430x932, in Chromium).
Fields. Each select holds its longest option ("is above", 62px of text) at 320, 340, 355, 360, 390 and 430px (inner room 91, 101, 64, 66, 76, 89px).
Reach. With a third filter added, the corpus sweep's own aim reader (
aims.jsflooredAimswith the selector list fromshadow.css) finds no control under the 44px floor at 390x844 or 360x740. At 320x568 it reports two buttons scrolled under the playground's sticky controls after Add filter moves focus, and main's page reports two as well.Desktop. The buttons' words change at every width. Where a row wraps depends on the windows below, read on both arms with
probe --base --authored:So at 1280x800 the shorter buttons fit beside the fields, and the rows are 38px shorter each. At 800x900 the removed minimum stops a 2px sideways scroll on main. At 1120x700 the rows keep their shape and only the words change.
The rest of the queue, re-measured on main at 390x844 by touch
alert-review, no change. The side list becomes a 2357px strip of 14 tabs in a 364px row, which islf-tabs' recorded phone design for a queue (packages/default/styles/tabs.css, "A list beside its panels"): the open item stays one row down however long the queue. By touch, a swipe scrolls the strip (scrollLeft 0 → 342 → 1993), each group label sticks at the row's start, tapping the last tab opens it whole in view, and Next on me returns to the first open item. Still:alert-review-390-unchanged.png.code-comparison, no change. Repair UI composition and reply continuity, and improve evaluation reports #4638 moved its controls from the playground's sticky rail into the preview two days after the issue's survey. Only the 38px header and 53px tab strip stick now, and the controls scroll away with the page. Reader A scrolls sideways (312 / 819) because "compact · scroll" is the treatment the page compares. Still:code-comparison-390-unchanged.png.dynamic-widgets, no change. All fourlf-text-documenttab strips are 340 / 340 with both disclosures open, and nothing on the page scrolls sideways. Still:dynamic-widgets-390-unchanged.png.github-discoveries, no change. Nopreis 811px wide now. Six code listings inside the collapsed "Source & details" scroll inside their own 276px box (widest 590px), and the page doesn't scroll sideways. A finger swipe on the AX listing scrolls it 212px with no page scroll. Still:github-discoveries-390-unchanged.png.The issue's second paragraph, touch controls under 32px, was settled in #3902, whose corpus sweep holds every tab to the 44px floor at 390px.
What ran
uv run pytest -n 2 "tests/journeys/test_render_widgets.py::test_structured_data_explorer_keeps_one_aggregate_query_configuration" "tests/journeys/test_render_export.py::test_playground_examples_keep_their_offline_interaction_mode[data-explorer]": 2 passed. These are the only tests that read the page's selectors and button names.tests/journeys/test_render_gate.py::test_page_fixture_renders[data-explorer]fails only on "closed surfaces: g opened no go-to". The gate, the phone resize, scroll and typed-box journeys pass. The same failure appears with this branch's base (22accdd) version ofdata-explorer.html, and onheat-loss, which this branch doesn't touch, so this branch doesn't cause it.uv run pre-commit run --files examples/data-explorer.html tests/journeys/test_render_widgets.pyNot verified
test_the_layer_holds_its_whole_page_rules_on_the_corpus,--run-main). Its reader ran on this page alone at three widths.Calls Max may reverse
table-layout: autoon a phone, which takes the column movement above, up to 20px, in exchange for whole words below 355px. The alternative keeps equal columns, which hold still and split words below about 355px.code-comparison's "Comparison viewport" slider changes nothing visible at a phone for most of its range, because the stage is 314px: 400 and 520 both draw 314px candidates, and only 280 and 300 differ. Hiding it on a phone would hide a value the instruction still submits, so I left it and noted it as a follow-up.Closes #4023