Skip to content

fix(ios): smooth sidebar drags and remove background seams - #112299

Merged
steipete merged 2 commits into
mainfrom
steipete/ios-sidebar-glass-ui-polish-82e0ab
Jul 21, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/ios-sidebar-glass-ui-polish-82e0ab

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Closes #111643

What Problem This Solves

Fixes an issue where iPhone and compact iPad users could see a different-colored surface in the rounded top and bottom of the open sidebar, a clipped or oversized Liquid Glass reveal control, and choppy interactive drawer tracking. The open drawer also lacked a consistent glass close affordance during the reveal.

This is a residual follow-up to #111831. That change stabilized the original recognizer ownership, but the compact drawer still moved a separate generic background alongside the destination and kept transient drag work coupled to the full root view.

Why This Change Was Made

The compact drawer now has one presentation owner. A dedicated stable shell owns the transient gesture session, the rounded full-bleed destination card, tap dismissal, and edge-open arbitration. The destination itself paints the rounded safe-area regions, so custom backgrounds remain continuous instead of revealing a generic grouped surface.

The reveal and close actions share one 44-point semantic control with a 36-point circular Liquid Glass visual. The open-state X stays structurally present through interactive reveal, but is only exposed to hit testing and accessibility when the drawer is actually open. The first meaningful drag direction is latched for the whole touch, preventing a rejected vertical scroll from turning into a drawer toggle at release.

User Impact

Sidebar drags now track as one card instead of two moving full-screen layers. The rounded top and bottom match the active destination background, the reveal control no longer clips against its toolbar slot, and the open drawer has a clear circular glass X. Users can also dismiss by dragging left from inside the sidebar, while pushed screens keep the native iOS back gesture.

Evidence

Before and after

Before: separate rounded surface After: destination-owned full-bleed card
Before: open sidebar with mismatched rounded destination surface After: open sidebar with continuous background and glass close control
Before: oversized reveal glass After: glass contained inside 44-point target
Before: sidebar reveal control After: unclipped circular sidebar reveal control

Artifact manifest: https://artifacts.openclaw.ai/pr-ios-sidebar-glass-ui-polish-20260721/artifact-manifest.json

Exact-head verification

Exact pushed head: 96fed3aff1e4c033298a7a599edf54ef5f4fcf99

  • 118 focused tests in 3 suites passed for sidebar presentation, structure, and navigation behavior on the rebased production patch.
  • 6 drawer regression tests passed after the final first-direction latch fix.
  • 2 UI tests passed in 313.690 seconds on iPhone 17 Pro / iOS 27 Simulator:
    • slow edge-open across all 16 root destinations;
    • slow close drags beginning inside the exposed sidebar;
    • pushed Settings native back-swipe without opening the drawer;
    • leading-edge vertical scrolling without drawer activation.
  • Light and dark simulator screenshots show continuous rounded safe-area backgrounds, complete circular reveal glass, and the glass X close control.
  • Native localization verification passed with 5,102 entries and no drift.
  • git diff --check passed.
  • Final changed-file verification passed on Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/29829959044
  • Final structured Codex autoreview: no accepted/actionable findings, patch is correct (0.93 confidence).
  • Source-blind behavior validation passed the visual, drag, inside-close, and back-swipe clauses. The simulator CLI does not expose a Reduce Motion toggle; tap-based reveal/close remained available and the code-aware review found no Reduce Motion regression.
  • AI-assisted change; implementation, tests, visual comparison, and review output were independently inspected before push.

@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios size: L maintainer Maintainer-authored PR labels Jul 21, 2026
@steipete
steipete marked this pull request as ready for review July 21, 2026 13:05
@clawsweeper

clawsweeper Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(ios): smooth sidebar drags and remove background seams This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification is complete on 96fed3aff1e4c033298a7a599edf54ef5f4fcf99.

What I verified:

  • xcodebuild focused sidebar/presentation/source-guard run: 118 tests in 3 suites passed.
  • Final drawer latch regression run: 6 tests passed.
  • OpenClawUITests.testSidebarSlowEdgeDragOpensFromEveryRootDestination and testSidebarEdgeDragPreservesPushedScreenBackGesture: 2 tests passed in 313.690 seconds on iPhone 17 Pro / iOS 27 Simulator.
  • The UI matrix covered all 16 root destinations, close drags beginning inside the sidebar, leading-edge vertical scrolling, and pushed-screen native back-swipe.
  • Light and dark screenshots show continuous rounded safe-area backgrounds, a contained circular reveal control, and the glass X close action.
  • Native localization verification passed with 5,102 entries.
  • Blacksmith changed-file gate passed: https://github.com/openclaw/openclaw/actions/runs/29829959044
  • Exact-head CI passed on attempt 2: https://github.com/openclaw/openclaw/actions/runs/29832924763/attempts/2
  • The first CI attempt failed only in the unrelated setup-inference-detection isolation test; current main passed the same CI workflow, and the rerun passed.
  • Structured Codex autoreview completed with no accepted/actionable findings.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 112299 completed in hosted_exact_or_recent_parent mode and verified the remote PR tree matches the prepared head.

Known proof gap: the simulator CLI does not expose a supported Reduce Motion toggle for a source-blind run. Tap-based reveal and close controls remain present, and code-aware review found no Reduce Motion regression.

@steipete
steipete merged commit 26165bb into main Jul 21, 2026
217 of 222 checks passed
@steipete
steipete deleted the steipete/ios-sidebar-glass-ui-polish-82e0ab branch July 21, 2026 15:40
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS sidebar jitters during slow drags and toolbar control flickers

1 participant