Repository navigation
improve(ui): open long filters as a shared phone sheet - #190499
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR opens Automations and Sessions filters in a shared bottom sheet on phones while retaining popovers at wider widths. Example: Open Automations filters at 390×844.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this useful, maintainer-authored PR open; the visual improvement is supported, but keyboard behavior and two concrete validation blockers need repair. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherControl UI filter renderers choose a responsive presentation shell; existing filter callbacks still update their page owners, while Popover and sheet-dismiss provide overlay lifecycle and gestures. flowchart TD
A[Filter trigger] --> B[Phone layout query]
B --> C[PhoneSheet]
B --> D[Desktop Popover]
C --> E[Shared overlay lifecycle]
C --> F[Sheet dismissal gestures]
C --> G[Existing filter controls]
D --> G
G --> H[Page filter owners]
Technical reviewBest possible solution: Keep the shared shell over the existing overlay and gesture owners, restore search-first Escape handling, reuse the tabbable traversal, and reduce emitted CSS to satisfy the paired budget. Do we have a high-confidence way to reproduce the issue? Current main still renders anchored filter popovers, matching the supplied before captures; the introduced search-Escape failure follows directly from the modal and keyboard owners without executing target code. Is this the best way to solve the issue? A shared shell is justified because the existing sidebar sheet has sidebar-specific focus inputs and a separate backdrop; retaining Popover and sheet-dismiss avoids replacing their lifecycle and gesture responsibilities. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e33046421b6f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +381, Tests +172. Total +553 across 8 files. Added test files: 2. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 11:29 AM ET / 16:29 UTC. |
Share a phone sheet for Sessions and Automations filters while preserving desktop popovers and native form participation. Keep keyboard navigation inside the sheet when a restored search hides the close control. The restored-search regression fails before the correction and passes afterward. Seven focused Chromium cases and independent review pass; redundant cosmetic and synthetic-event checks were removed. CI run 41430938418/1 remains red for the approved CSS budget exception and an unrelated isolated WebKit ChatDetails resize case. Its owners and imported inputs are identical to the tested main baseline and do not use PhoneSheet. All other jobs and security checks passed.
What Problem This Solves
On a phone, long filters open as narrow anchored popovers. Automations holds five selects plus Reset in a 280px popover that takes 57% of the screen and cuts off the list. Inside the Sessions filter, a native select, two compact inputs and two tinted toggles each use a different size. The mobile page PRs each decided this alone: two built separate sheets and one has a tall full-width popover.
User Impact
On phones, the Automations and Sessions filters open as a bottom sheet. It dismisses the same way everywhere: tap the dim, tap close, swipe the grabber or press Escape. Tapping the dim never reaches the page beneath. Every filter stays reachable, no copy is added, and desktop and tablet widths keep the popover.
Why This Change Was Made
The rule: a phone filter is a sheet when it is a form, meaning three or more labelled text, date or select fields. Option rows, checkboxes, toggles and one or two fields stay a popover. Height alone doesn't decide it: Dashboards reaches 50% with option rows, but each row applies with one tap and the popover scrolls its own author list.
PhoneSheetincomponents/solid/phone-sheet.tsxis the one shared sheet. It sits besidePopoverand takes the same trigger, ref and child props, so a surface swaps with one tag. It follows the structure from #190387, because a backdrop in the same top layer as the panel can't be beaten by page stacking. Children stay mounted while closed, because the Meetings form submits its closed fields.Every sheet has one header: a centered title with close on the right. Sessions' search sits directly left of close, in the same row, and doesn't move the title. While searching, the field takes the row and its own clear replaces close. The dim, grabber and Escape still dismiss.
The sheet also sets one rhythm for its content: a 16px side inset, 12px between rows, a 13px label above a 40px field, a 16px value and a full-width action. The value size is iOS's input floor. Automations keeps Schedule and Last run side by side, and longer values such as "Recently updated" get the full width. Sessions pairs Updated within with Limit and Global with Unknown, and Group by is a normal labelled select. An unchecked toggle draws no check, and its slot stays so the label doesn't move, the same as #190367.
Left alone: the sidebar's filter sheets and the Inbox sheet. They already work on phones, they share
sheet-dismiss, and their desktop surfaces and nested pages are tied to them, so moving them changes nothing a person sees. The sidebar's sheets are settings lists of rows and switches rather than labelled forms, so the form rhythm doesn't apply to them.Conversions for open PRs
Each one was tried locally on top of that PR's diff, including its sheet content refinement, at 390px. Meetings, Usage and Sessions all worked.
PhoneSheet. improve(ui): make the sessions page a phone list #190367 Sessions takes over this PR's Sessions conversion. Its select stays as it is in this PR and becomes a choice page in improve(ui): make the sessions page a phone list #190367, which also moves search to the page, soheaderActioncan go once it lands.#190367 and #190387 overlap this PR on purpose, and resolve as described above.
Evidence
Mock data at 390x844 and 320x568, opened with a real tap, with default and long values. Page PRs are not applied, so these show today's top bar.
oxfmt,stylelint,oxlintandtsgo:uipass. Thephone-sheetandview-jobs-filterbrowser tests pass along with the Sessions and Automations unit tests and the cron and session-list e2e tests.ui:check-performance:basefails only on the total CSS budget, which main already exceeds (no JS budget failure).