Skip to content

fix(mobile): sync sidebar animation and add resize on wide screens - #1089

Merged
nixuuu merged 1 commit into
devfrom
fix/android-sidebar-animation-resize
Nov 21, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/android-sidebar-animation-resize

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026

Copy link
Copy Markdown
Member

Change

  • Drive the sidebar and conversation boundary from the same animation. The sidebar keeps its content width during the toggle. Changes across the wide-layout breakpoint and toggles with Reduce Motion apply immediately.
  • Add a drag handle in wide Android and iOS windows. The app saves the width per pairing on release. Double tap restores the default. Screen readers can adjust the width and restore the default.

Verification

  • Passed locally: formatting and lint on edited files, mobile typecheck, and Expo bundle export for Android and iOS.
  • Native runtime verification is pending. The device tool could not confirm ownership of the Android emulator. Check rapid toggles and live resizing on a foldable and an iPad, including a long thread. The measurements in feat(mobile): animate ui state changes with reanimated #298 found dropped frames while the older implementation reflowed a 40-turn thread during width animations.
  • The full verification gate runs in GitHub CI.
  • Copy audit (docs/copy.md §8): the new screen-reader labels are “Resize sidebar” and “Restore default width.” Both name the action directly. The control exposes its current value and adjustment range.

Fixes: #298

@nixuuu
nixuuu marked this pull request as ready for review November 21, 2026 18:47
@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 18:47
@nixuuu
nixuuu merged commit eac56c9 into dev Nov 21, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/android-sidebar-animation-resize branch November 21, 2026 18:49
nixuuu added a commit that referenced this pull request Nov 29, 2026
…1454)

## Change

The native split view was changing the width of a conversation on every
animation frame. On a landscape phone, the transcript repeatedly wrapped
and measured its text as the sidebar moved.

- Slide the sidebar and the conversation together with one horizontal
transform. The conversation takes its full width at the start of a close
and its split width at the end of an open.
- Show a vertical guide under the resize handle. Releasing the handle
applies and saves the width once. Cancelling keeps the previous width.
- Size both panes from the same window frame when rotating. The split
follows the system layout direction and keeps the transcript and
composer inside the outer safe edges, including on Android's inverted
list.

## Verification

- Compared the original and revised Android API 36 development client on
a landscape phone emulator with a populated conversation and an isolated
gateway. Its conversation container reported 2–4 width changes per
toggle before the fix and one after. A 700 ms drag went from 11 width
changes to one on release. Holding or cancelling the drag produced no
width change.
- On the final revision, four collapsed landscape → portrait → landscape
rotations each went directly from 862.48 to 411.43 and back to 862.48
dp. With the sidebar open the corresponding widths were 542.48 and
411.43 dp.
- Also checked persistence after reopening and restarting, double-tap
reset, reduced motion, portrait and landscape rotation, and the mirrored
split with forced RTL. Frame pacing on a physical iPhone remains
unverified.
- Mobile TypeScript check, formatting and scoped lint passed for the
edited TSX files.

Two CI attempts reproduced a race in the worker’s Claude rewind fixture.
The fixture correction is in #1457.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant