Repository navigation
fix(mobile): keep the app usable after picking a photo - #355
Merged
Merged
Conversation
Wait for attachment menu animation and native modal dismissal before launching Photos, Files or Paste image. Disable closing overlays and unlock attachment actions on cancellation and errors. Fixes: #229
# Conflicts: # apps/mobile/src/features/attachments/Attachments.tsx
nixuuu
marked this pull request as ready for review
November 8, 2026 09:32
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selecting Photos or Files could present a native picker while the attachment menu's React Native Modal was still closing.
PickerSheetcalledonCloseand immediately ran the selected action, whileOverlayretained its native modal through the exit animation. UIKit could therefore dismiss the picker and leave the app covered by a modal.The attachment menu now queues Photos, Files and Paste image until its dismissal callback: after the exit animation and native
Modal.onDismisson iOS, or removal of the unanimated Android Dialog. Closing overlays stop accepting touches. A single-launch lock releases on selection, cancellation, dismissal and errors; picker and clipboard errors show a short actionable message. No camera attachment action exists. The native paste/drop module was reviewed and does not own the competing modal.Fixes: #229
Verification
CanopyPinnedFetch, and available disk is below the required 12 GB build floor. Reviewed the pinned RN modal implementation and SDK 58 picker documentation. Full-library permission is unnecessary for the system photo picker.check:tmp: 1,773 passed, 161 skipped, 2 failed across 318 files; temp cleanup passes. Both unrelated gateway failures (bots-harness-regressions.test.tsandlinked-routes-status.test.ts) pass on the focused recheck: 16 passed, zero failed, temp cleanup clean. The original full run was not clean. No UI test suites added or run.Device checks and the full test run were completed on
ef3611f2. The subsequent merge of currentdevpreserves its keyboard dismissal before opening the attachment menu; typecheck, lint, formatting and Expo lint were rerun after resolving that conflict. Device checks were not repeated after this merge.Copy audit (§8)
Previously silent picker/clipboard failures now use:
Each alert has a “Close” action. Copy uses sentence case, short sentences, a problem followed by an action, and existing glossary terms; no raw errors, duplicate facts, colour-only cues or sentences with “soul”. Existing Photos/Files labels are unchanged. Phone layouts were checked with the fixed labels and long generated attachment names, including the native clipboard-error alert; wide layouts and the other error alerts remain unverified.