Repository navigation
Description
Blocked by #4086
Blocked by #4097
Context
Found during the #4086 caller audit. On laptop, the graph controls column is 264px wide (GraphControlsColumn, packages/ui-react/src/components/graph/graph-controls-column.tsx:19-36, w-[264px] with px-4), so its Mode FilterRow (Segmented, packages/ui-react/src/components/graph/graph-form.tsx:31-47) has 232px of room. The four pills (Clusters, Discovery, Local, Maintenance) measure 62, 72, 49 and 85px plus three 6px gaps: 286px, measured in Chromium at main 05bf0d6a0. FilterRow's strip clips horizontally (const row, packages/ui-kit/src/rows/FilterRow.tsx:68-74), so about 54px of "Maintenance" is cut off and that pill cannot be read or fully reached. The Colour row has the same problem in Local and Discovery modes: Topic, Distance, Folder and Entity measure 48, 65, 54 and 50px plus three 6px gaps, 235px, so "Entity" loses about 3px. #4086 leaves horizontal clipping unchanged, so the fix is not part of it.
Scope
Implement the maintainer's 2026-11-16 ruling on the design brief:
Segmented(graph-form.tsx:31-47) forwards theFilterRowcolumnsprop delivered by ui-kit: FilterRow lays its pills out in two equal columns on request #4097.GraphControlsColumnpassescolumns={2}for Mode, and for Colour throughControlsBody.- Labels, values and order are unchanged: Clusters · Discovery · Local · Maintenance and Topic · Distance · Folder · Entity.
- The phone controls sheet passes nothing and keeps the single strip.
- The keyboard contract is unchanged (↑/↓ unbound).
- Update fix(ui-kit, ui-react): interactive FilterRow pills reach 44px by default (#4086) #4096's graph-scene expectations once that has landed: remove only the
["Maintenance"]/["Maintenance", "Entity"]clipping exceptions.
Out of scope
FilterRow's reach, paint or strip clipping (ui-kit, ui-react: interactive FilterRow pills reach 44px by default, and the viewer and dismissal chips stop drawing a 44px pill #4086).- The phone controls sheet (D3: it keeps the single strip).
- The
FilterRowprop and its stories (ui-kit: FilterRow lays its pills out in two equal columns on request #4097).
Acceptance criteria
- All four Mode pills and all four Colour pills are fully visible and fully clickable in the 264px laptop column at the pinned fonts, proven by a browser test measuring each pill inside the strip.
- Under a coarse pointer every Mode and Colour pill still owns all four edges of its 44px target (
hit-reach.tsprobe), with no neighbour theft. - The laptop Mode and Colour rows render 2×2 at equal width. The phone sheet's Colour strip is unchanged (its 320px scene still expects no clipping).
- The coarse-pointer gap between Direction and Colour in Local mode is probed explicitly with no neighbour theft.
- Keyboard behaviour is unchanged: Tab lands on the selected pill, → from Discovery activates Local, Home/End work, a second Tab leaves the row, and ↑/↓ are unbound.
- fix(ui-kit, ui-react): interactive FilterRow pills reach 44px by default (#4086) #4096's graph scene passes
tabsReachwith no clipped list for these rows.
Verification
The browser test above in the rail-fine, rail-coarse and rail-mixed projects; bun run check:pr --base origin/main.
Contract impact
None expected (ui-react layout only).
Refs #4086
The #4086 browser scene is currently proposed in open draft #4096, inspected at 219714eaab7b5c69bb17e9506c3ce86f9a6a1510: tabsReach and the graph scope (packages/ui-react/tests/browser/hit-reach.app.pointer.tsx:50-64, :92-102) explicitly retain the existing clipped Maintenance/Entity exceptions. It is not delivered in inspected main 05bf0d6a02. Once that owned runtime/test output lands, update its expectation in this fix; do not weaken the edge probes or preserve a permanent clipping exception.
2026-11-16: added the Colour row's "Entity", found by the #4086 browser scene.
Design inputs and prerequisite — 2026-11-16
The later #4086 maintainer ruling selects at least 44px paint width for every interactive FilterRow pill under a coarse pointer, with centred labels; fine-pointer paint is unchanged. It supersedes the earlier 38px-minimum alternatives where applicable. Consume this alongside the default-reach record in docs/decisions/design-kit/components-and-interactions.md and the existing D6 graph form, rather than designing a new reach policy here.
#4086 is an actual output prerequisite for the coarse-pointer acceptance: this issue excludes its shared reach/clipping behavior, and its graph regression scene currently exists only in that draft. The design can be prepared independently, but completion must use the delivered runtime and update the owned exception assertions. Closing design-record task #3531 alone does not satisfy that output.
Keep standalone: this task restores a laptop product control, outside the phone-specific #2596 outcome and the browser-fixture-only #2753 outcome. Wanted unscheduled work is p2; no milestone is invented. This pass verified the cited main source and draft regression, and added the self-contained design prompt below; it ran no new browser layout qualification.
2026-11-16: maintainer ruled D1–D6 (two equal columns; columns?: 2; phone unchanged; ↑/↓ unbound; kit prop split to #4097 with design sign-off on its stories). Scope and acceptance now point at that branch, and the issue is blocked by #4097 as well as #4086.
Activity
[-]ui-react: the graph controls column cuts off the Mode row's Maintenance pill on laptop[/-][+]ui-react: the graph controls column cuts off the Mode row's Maintenance pill and the Colour row's Entity pill on laptop[/+]schlessera commentedon Nov 16, 2026
Design needed — graph controls in the 264px laptop column (2026-11-16). The four Mode choices, four Colour choices, fixed column and keyboard behavior already exist. Choosing their visible labels, row layout and coarse-pointer spacing is still a design judgment; source inspection cannot select that presentation. Wrapping is the recommendation below, not an approved layout.
schlessera commentedon Nov 16, 2026
Design brief: Mode and Colour in the 264px column (2026-11-16)
Checked against main
05bf0d6a02(FilterRow.tsx,graph-form.tsx,graph-controls.tsx,graph-controls-column.tsx), draft #4096 at219714ea(hit-reach.app.pointer.tsx) and the #4086 ruling. I did not run a new browser measurement. All widths below are the #4086 audit numbers.1. Candidates
Clusters Discovery Local/Maintenance. Colour:Topic Distance Folder/Entity. Each row leaves one pill alone on the second line, and the line breaks shift whenever a label changes.ValueRowcycling, a select)2. Layout (laptop, 1280px viewport)
Copy, values and order are unchanged: Clusters · Discovery · Local · Maintenance and Topic · Distance · Folder · Entity. The accessible name is the visible label.
any-pointer: coarse(rail-coarse and rail-mixed). The arithmetic is in §3.overflow-y-auto), so the extra 18–36px per row is absorbed.3. Coarse-pointer reach arithmetic
Label(not interactive).gap-4) to the scene search field, which has no reach, so 11.75 < 16.gap-4+ label +mb-1.5, about 35px. That is ≥ 23.5, but the probe must confirm it.4. Larger text and reflow
flex: 1 0 calc(50% − 3px)on a wrapping strip. Its minimum width is its content width (nowrap label), so a pill never shrinks below its label. If two pills don't fit on a line, the second one wraps and each takes the full line.laptop:(900px) and gets the phone sheet, so it never reaches this column.5. Keyboard and focus (unchanged)
←/→move in DOM (reading) order and wrap across the visual lines (Discovery →→→ Local). Home/End go to the first and last pill. Activation follows focus.↑/↓stay unbound, as today. No grid navigation pattern is introduced (see question D4).ControlsBodybelow it. A Colour row that survives a Local ↔ Discovery switch keeps its mounted slot.6. Phone, 320px (regression only)
The phone sheet has no Mode row, and the sheet's Colour strip (235px in about 288px) is not clipped: #4096's 320px scene expects
[]. The phone keeps the single strip. The two-column layout is passed only fromGraphControlsColumn. In the sheet, the same wrapping strip still prevents clipping at larger text, but by natural wrap rather than in pairs.Themes: no new tokens or colours. Paper and dark use the existing chip ramp. Motion: none added, and reflow is instant.
7. Implementation boundary
FilterRow has no wrap API, so this layout needs one new kit prop (question D2):
FilterRow:columns?: 2. Leaving it unset gives the currentnowrapstrip, byte-for-byte. Withcolumns: 2the strip getsflexWrap: wrap,columnGap: 6, a row gap of 6, or 24 under(any-pointer: coarse)via the kit's existing live CSS media query, and pills atflex: 1 0 calc(50% − 3px)with centred labels. Paint, reach, roving and the role are untouched. The prop is additive and gated, following the D27 general rule. This is not a generic layout framework.Segmentedforwardscolumns.GraphControlsColumnpassescolumns={2}for Mode and passes it throughControlsBodyfor Colour. The phone sheet passes nothing.8. Stories and tests
ui-kit stories at 232px strip, 320px, and desktop, in paper and dark:
TwoColumnswith each end selectedTwoColumnsCoarse(row gap 24 plus an edge-ownership probe)TwoColumnsLargeText(200%, single column, nooverflowing())StripUnchanged(nocolumnsprop)ui-react browser tests in rail-fine, rail-coarse and rail-mixed:
elementFromPointat its centre returns the pill.tabsReachpasses with noclippedlist. Remove only["Maintenance"]and["Maintenance", "Entity"]from fix(ui-kit, ui-react): interactive FilterRow pills reach 44px by default (#4086) #4096's graph scene.→from Discovery activates Local; Home/End; a second Tab leaves the row.Then run
bun run check:pr --base origin/main.Open questions for the maintainer
FilterRowpropcolumns?: 2, or name a different shape? No shared API is assumed approved.↑/↓unbound in the 2 × 2 layout, so the keyboard contract stays exactly as it is?area: ui-kit+area: ui-react) for the prop and stories, and make it a prerequisite of this issue alongside ui-kit, ui-react: interactive FilterRow pills reach 44px by default, and the viewer and dismissal chips stop drawing a 44px pill #4086?schlessera commentedon Nov 16, 2026
Decision (maintainer, 2026-11-16) on the design brief:
FilterRowcolumns?: 2. Unset keeps today's strip byte-for-byte. Set, it gives wrap, a 6px column gap, and a 6px row gap (24px underany-pointer: coarse). Notcolumns?: number, and not a generic layout API.GraphControlsColumnpassescolumns={2}.The body now points its scope and acceptance at this branch.
needs: decisionis removed. The issue staysblockeduntil #4086 and #4097 land.