Skip to content

fix(mobile): speed up thread sections and stabilize folds - #1322

Merged
nixuuu merged 1 commit into
devfrom
perf/optimize-mobile-section-expansion
Nov 26, 2026
Merged

nixuuu merged 1 commit into
devfrom
perf/optimize-mobile-section-expansion

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026

Copy link
Copy Markdown
Member

Changes

  • Update the thread list in one layout pass when Working or Snoozed expands or collapses. Keep the rows virtualized and mount side threads at their natural height with a short fade on manual open.
  • On iOS, adjust the scroll offset relative to the tapped timeline header in the Fabric mount transaction that changes the fold height. Preserve that anchor when the same fold is rapidly reversed.
  • Build React Native from source on iOS so the scroll view change is included. The timeline fix requires a new iOS build.

Verification

  • On an Android emulator, opened and closed Working, Snoozed and side threads. Verified five rapid Snoozed toggles and checked that clearing search restores the saved section state.
  • Mobile typecheck, lint and formatting for edited files, git diff --check, and the three mobile disclosure anchor tests passed locally.
  • Expo iOS prebuild generated the source-build setting. A native iOS build and frame-by-frame verification on an iPhone or simulator remain pending. GitHub Actions runs the full repository gate.

Fixes: #1246
Related: #730

## Changes

- Update the thread list in one layout pass when Working or Snoozed expands or collapses. Keep the rows virtualized and mount side threads at their natural height with a short fade on manual open.
- On iOS, adjust the scroll offset relative to the tapped timeline header in the Fabric mount transaction that changes the fold height. Preserve that anchor when the same fold is rapidly reversed.
- Build React Native from source on iOS so the scroll view change is included. The timeline fix requires a new iOS build.

## Verification

- On an Android emulator, opened and closed Working, Snoozed and side threads. Verified five rapid Snoozed toggles and checked that clearing search restores the saved section state.
- Mobile typecheck, lint and formatting for edited files, `git diff --check`, and the three mobile disclosure anchor tests passed locally.
- Expo iOS prebuild generated the source-build setting. A native iOS build and frame-by-frame verification on an iPhone or simulator remain pending. GitHub Actions runs the full repository gate.

Fixes: #1246
Related: #730
@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 19:43
@nixuuu
nixuuu merged commit 67de843 into dev Nov 26, 2026
24 checks passed
@nixuuu
nixuuu deleted the perf/optimize-mobile-section-expansion branch November 26, 2026 19:48
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