Repository navigation
feat(ui): make mobile navigation a draggable drawer - #130319
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 5:49 AM ET / 09:49 UTC. ClawSweeper reviewWhat this changesThe PR moves mobile navigation from a generic modal to a shell-owned drawer that opens by controls or a deliberate rightward touch drag, with accompanying focus, overlay, toast, and responsive-layout handling. Merge readinessKeep open for maintainer review: this MEMBER-authored, maintainer-labeled PR is a stacked mobile-navigation feature, and current main still uses the modal presentation it replaces. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI shell hosts navigation alongside chat, overlays, and utility panels. On mobile, the shell decides when navigation becomes a modal drawer and must keep touch input, keyboard focus, background interactivity, and transient UI surfaces coordinated. flowchart LR
A[Mobile page content] --> B[Shell touch and keyboard handling]
B --> C[Navigation drawer]
C --> D[Sidebar navigation]
C --> E[Focus and transient surfaces]
E --> F[Main content and overlays]
C --> G[Toast feedback]
Decision needed
Why: The patch adds a product-visible interaction model rather than repairing an established defect, and its acceptance requires maintainer judgment after the stacked UI settles. Before merge
Agent review detailsSecurityNone. PR surfaceSource +503, Tests +62, Other 0. Total +565 across 31 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one shell-owned mobile drawer using the existing navigation content, then land the stack in order after exact-head browser evidence confirms the interaction contract. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this PR proposes a new mobile navigation interaction, while its browser E2E test provides a concrete validation path for the proposed behavior. Is this the best way to solve the issue? Likely yes: current main’s modal wrapper cannot provide a continuous finger-tracked drawer, and the shell is the shared owner of navigation, focus, overlays, and responsive handoff; final browser confirmation remains necessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 46ca7d1f2791. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
4e907f5 to
88fde00
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
88fde00 to
bb179c2
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
bb179c2 to
56dde01
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
56dde01 to
b1ef973
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* feat(ui): make mobile navigation a draggable drawer * fix(ui): align drawer gesture with mobile layout * refactor(ui): isolate drawer startup owners * perf(ui): keep drawer opening in lazy chunk * fix(ui): harden drawer modal lifecycle * fix(ui): complete drawer modal lifecycle * fix(ui): preserve drawer modal ownership * fix(ui): keep drawer modal controls reachable * fix(ui): own drawer shortcuts in capture phase * fix(ui): defer drawer escape to nested controls * fix(ui): suppress shell shortcuts under modals * refactor(ui): isolate drawer key handling * fix(ui): preserve drawer modal ownership * fix(ui): defer picker escape to drawer * fix(ui): scope inbox modal semantics * fix(ui): dismiss inbox across breakpoints * fix(ui): preserve overlay escape ownership * fix(ui): mark drawer swipe runtime boundary * fix(ui): separate shell key phases * chore(ui): shrink assertion baseline
What Problem This Solves
Mobile navigation previously opened as a generic modal and could only be summoned from explicit buttons. It did not track a rightward drag, and its modal wrapper produced clipped edges, excess padding, and less natural motion across phone aspect ratios.
Why This Change Was Made
This PR moves the mobile navigation surface into the application shell as a real drawer. A neutral-area right swipe now pulls the actual sheet with the finger, direction-locks before taking over the gesture, preserves interactive and horizontally scrollable content, and settles from the current drag position. Focus trapping, inert background content, Escape, backdrop dismissal, toast ownership, reduced motion, and responsive handoff remain shell-owned.
The implementation deliberately avoids a duplicate preview rectangle: the visible surface during the gesture is the same navigation sheet that remains open afterward.
User Impact
Evidence
This PR is stacked on #130318 and must be reviewed/merged after that base. The screenshots compare #130318 (Before) with this PR (After), using the sanitized
mobile-transcriptfixture at 360x800, 375x667, 393x852, 430x932, and 852x393 landscape.Light
Dark
29c4ded14bbfd1640bdc21388e405c9f0a8c8e544e907f5f9a6259cc678dede9ac806aebef947110