Repository navigation
fix(ui-kit, ui-react): interactive FilterRow pills reach 44px by default (#4086) - #4096
Conversation
Under a coarse pointer every pill with an onClick carries .bk-hit and paints at least 44px wide, so it reaches 44px vertically and never sideways. The strip clips horizontally only there, letting the vertical reach through. Fine-pointer paint and the strip are unchanged, and decorative pills never reach. The rail-lane browser test probes every edge, clicks the extended edge with a real mouse, and keeps the inset focus ring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… drawing it (#4086) The file viewer drops its 44px overrides on the Preview/Raw pills, which now reach through FilterRow's default, and widens its wrapped-row gap to 20px on touch. The Actions dismissal reasons take the kit pill geometry (29.5px) with .bk-control.bk-hit and a 16px coarse row gap; their names and pressed state are unchanged, and their focus ring now sits outside. Pointer-lane scenes at 320 and 1280 probe the viewer toolbar, the graph Local and Clusters controls, the Actions lens row and the dismiss confirm. The design-kit record gains the 2026-11-16 ruling that narrow pills paint 44px wide on touch, and corrects the viewer gap's rationale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 4096 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 4096 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
…l project (#4086) It asserts a native pointer premise, so like native-buttons it runs only in the rail projects; the visual project has no pointer mode and failed it on the premise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #4086
What changed
Interactive
FilterRowpills now reach a 44px touch target by default, as ruled on #3531. Underany-pointer: coarseevery pill with anonClickcarries.bk-hit, keeps its 20.5px paint height, and paints at least 44px wide (maintainer decision on #4086, 2026-11-16), so no pill reaches sideways. The strip's clipping moves into.bk-filter-row, which clips only horizontally on touch so the vertical reach gets through. Fine-pointer paint and decorative pills are unchanged, andFilterRowPropsis unchanged. The file viewer drops its 44px Preview/Raw overrides and gets a 20px coarse row gap. The Actions dismissal reasons take the kit pill geometry (29.5px) withbk-control bk-hitand a 16px coarse row gap; their focus ring is now outside (+2px), and their names and pressed state are unchanged. The design-kit record gains the narrow-pill ruling and a corrected rationale for the viewer gap.Caller audit (inventory re-run at this head:
git grep -n "<FilterRow\|<Segmented" -- packages)file-viewer-frame.tsxPreview/Rawactivity-page.tsxlens rowgraph-controls.tsx:129)overflow-y-auto, no top padding) does not clip the first row's vertical reach (probed). Already broken today: the 264px column cuts off "Maintenance" (~54px) and "Entity" (~3px).durable-actions.tsx)min-h-11.bk-control bk-hit+any-pointer-coarse:gap-y-4.focus-frames.visual.tsxWhy this shape
It follows the #3531 ruling recorded in
docs/decisions/design-kit/components-and-interactions.mdand the 2026-11-16 decision on #4086. A 44px minimum width on touch, rather than the record's 38px rule or per-caller fixes, removes sideways reach entirely: the end-of-strip clipping and the neighbour overlap both go away for every current and future caller (#3800's PR tabs included) without changing fine-pointer paint. The trade-off ofoverflow-x: clip: on touch, focusing a pill the strip has clipped no longer scrolls it into view. No current interactive row overflows except the #4092 column.Proof
Real Chromium (pinned 1243) in the rail-fine, rail-coarse and rail-mixed projects, each a native pointer premise:
filter-row-targets.visual.tsx(new). Failing first on main:In: carries the hit-area utility: expected false to be true,coarse widths 31,41,46,expected { x: 'hidden', y: 'hidden' } to deeply equal { x: 'clip', y: 'visible' }. After the change: coarse 5/5, fine 6/6, mixed 6/6. The tests probe 1px inside all four edges, click the extended top edge with a real mouse (fine and mixed lanes), check the inset focus ring, and check that static pills gain nothing.hit-reach.app.pointer.tsx(viewer toolbar with and without Share, graph Local and Clusters, at 320 and 1280). Failing first:tab "Preview": carries the hit-area utility/tab "In": …. After: 18/18 in each lane. At 320 the toolbar is asserted to wrap.navigation-reach.durable-actions.pointer.tsx(dismissal reasons wrapping at 320, lens row, at 320 and 1280). Failing first:button "Don't ask again": carries the hit-area utility,tab "needs you 2": …, and the row-14 focus offset. After: 118/118 in each lane.min-width: 44px→In: paints at least 44px wide … expected 31.bk-hitfrom pills →In: carries the hit-area utilityandOut takes its own extended edge: … got 0 times.any-pointer-coarse:gap-y-4→button "Don't ask again": meets the touch floor … "bottom":"button \"Need more info\""at 320 and 1280.gap-y-5: no failure, as explained in the caller audit (no reaching control sits on the line above today).packages/ui-kit/tests,packages/ui-react/tests/render) 1862/1862; storybook FilterRow, Keyboard, WeeklyReview and ScreenBody stories 26/26; visualfocus-frames16/16; pointer navigation suites 258/258 in each lane; typecheck.ui-react-layoutDiscovery screenshot cases mismatch on this host. The diff is font rendering across a header strip with no FilterRow in it, so the hosted pinned run is authoritative for those baselines.219714eaa: every heavy job passed (layout 1–2, browser 2–3, captures, endurance, runtime, runtime_host, pack, unit) except browser (1). There the new kit probe also ran in the plainvisualproject, which has no pointer mode, and failed on its premise. It is now excluded from that project likenative-buttons.FilterRowPropsand all exports are unchanged. This is rendering behaviour outside the package API's TypeScript surface (docs/integration-contract/package-api.md), so there is no contract entry. A patch changeset covers the published behaviour ofbrain-ui-kitandbrain-ui-react.Collisions (
bun scripts/collisions.ts --json --pr 4096) at head219714eaa: closure: #3054,#4096; closure: #3056,#4096; textual: #3059,#4096; closure: #3069,#4096; closure: #3581,#4096; closure: #3622,#4096; closure: #4002,#4096; closure: #4036,#4096; closure: #4051,#4096; closure: #4060,#4096; closure: #4068,#4096; closure: #4070,#4096; closure: #4071,#4096; closure: #4072,#4096; closure: #4073,#4096; closure: #4074,#4096; closure: #4075,#4096; closure: #4080,#4096; closure: #4093,#4096; closure: #4095,#4096. One textual collision:packages/ui-kit/vitest.config.tswith #3059, an evaluation-only draft marked DO NOT MERGE and idle since 2026-10-27. The rest are closure-category overlaps.{"version":1,"kind":"brain-check-pr-receipt","head":"64a4638a92015f2806514f2626644eec0ac59526","base":"origin/main","mode":"focused","startedAt":"2026-11-16T18:22:12.051Z","finishedAt":"2026-11-16T18:23:22.561Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13848.24588},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":113.16145699999834},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":74.99360800000068},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":21.50000700000237},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":56435.922915999996}]}Checklist
docs/reflect the change, or nothing documented moved.docs/decisions/provider-history.md): the provider-history guard passes, or nothing on a turn's path changed.Anything left open
🤖 Generated with Claude Code