You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attachments-Video preview page with Send button is skipped when sending a video #99141
Version Number: 9.4.58-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:https://test-management.browserstack.com/projects/2219752/folder/13176710/test-cases/41236938 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: iPhone 15 iOS 26.6 App Component: Other
Action Performed:
Navigate to 1:1 chat
Tap + button - Add attachment - Choose from gallery
Select a video and confirm
Expected Result:
Video preview is displayed with Send green button
Actual Result:
Video preview page is not shown after selecting a video file. The file is sent right away. Also no preview for any other attachments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #98528 - "Skip preview modal for native platform when adding attachment" by @hungvu193 (High confidence) Related Issues: #98049 (the originating feature request)
Recommendation: REVERT
PR #98528 skips the attachment preview/confirmation modal for all native attachment additions, but the confirmation step is still needed for gallery picks and file/document attachments — this reproduces the reported symptom exactly (attachment sent immediately, no preview). A clean revert (single file, +13 lines) restores the preview step; a roll-forward is possible if we want to keep the improvement but scope it correctly (see below).
Assigned: @hungvu193 (PR author), @daledah, @iwiznia (approving reviewers) from the causing PR Labels: No changes. DeployBlockerCash kept (App PR caused it; App deploy is blocked). No DeployBlocker present.
📋 Detailed Analysis
Evidence
The bug symptom — "Video preview page is not shown after selecting a video file. The file is sent right away. Also no preview for any other attachments" — is precisely the behavior introduced by PR Skip preview modal for native platform when adding attachment #98528, whose title is literally "Skip preview modal for native platform when adding attachment."
The PR's single changed file is src/pages/inbox/report/ReportActionCompose/useAttachmentPicker.ts — the exact code path for the "+" menu attachment picker / confirmation flow.
Offending logic (added by Skip preview modal for native platform when adding attachment #98528): lines 50-57. On native, onFilesValidated calls addAttachment(files) and returns early, bypassing the reportAttachmentsContext.setCurrentAttachment(...) + Navigation.navigate(ROUTES.REPORT_ADD_ATTACHMENT...) block (lines 59-69) that renders the "Send attachment" preview screen.
git log confirms the most recent change to this file is the 9.4.58 submodule/merge state; the early-return native branch matches the PR diff exactly.
Root Cause
The originating request (#98049) asked to remove the extra "Send attachment" screen specifically for the iOS Take photo flow, because the iOS camera already has a baked-in "Use Photo" review step. The design discussion on that issue explicitly noted the skip should apply where a native review step already exists, and that flows without such a step should still let the user review before sending.
PR #98528 implemented the skip at the onFilesValidated level gated only on isNative (platform === ANDROID || platform === IOS), so it applies to every native attachment path — Choose from gallery, Choose file/document, etc. — not just the camera flow. Those paths have no review step, so the file is sent immediately with no chance to preview/cancel, which is the reported regression.
Yes, this is expected, with native platform we will skip the preview screen for attachments (videos, images,...). Please check the convo: #98049 (comment)
Activity
applause-bot commentedon Aug 21, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/6f5f0dcb29f50e13ffec2972c9147429f57dbc3b72c039bdd296bee6097a9d81
github-actions commentedon Aug 21, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Aug 21, 2026
Triggered auto assignment to @marcochavezf (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Aug 21, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Aug 21, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #98528 - "Skip preview modal for native platform when adding attachment" by @hungvu193 (High confidence)
Related Issues: #98049 (the originating feature request)
Recommendation: REVERT
PR #98528 skips the attachment preview/confirmation modal for all native attachment additions, but the confirmation step is still needed for gallery picks and file/document attachments — this reproduces the reported symptom exactly (attachment sent immediately, no preview). A clean revert (single file, +13 lines) restores the preview step; a roll-forward is possible if we want to keep the improvement but scope it correctly (see below).
Assigned: @hungvu193 (PR author), @daledah, @iwiznia (approving reviewers) from the causing PR
Labels: No changes.
DeployBlockerCashkept (App PR caused it; App deploy is blocked). NoDeployBlockerpresent.📋 Detailed Analysis
Evidence
src/pages/inbox/report/ReportActionCompose/useAttachmentPicker.ts— the exact code path for the "+" menu attachment picker / confirmation flow.Verification
src/pages/inbox/report/ReportActionCompose/useAttachmentPicker.ts.onFilesValidatedcallsaddAttachment(files)and returns early, bypassing thereportAttachmentsContext.setCurrentAttachment(...)+Navigation.navigate(ROUTES.REPORT_ADD_ATTACHMENT...)block (lines 59-69) that renders the "Send attachment" preview screen.git logconfirms the most recent change to this file is the 9.4.58 submodule/merge state; the early-return native branch matches the PR diff exactly.Root Cause
The originating request (#98049) asked to remove the extra "Send attachment" screen specifically for the iOS Take photo flow, because the iOS camera already has a baked-in "Use Photo" review step. The design discussion on that issue explicitly noted the skip should apply where a native review step already exists, and that flows without such a step should still let the user review before sending.
PR #98528 implemented the skip at the
onFilesValidatedlevel gated only onisNative(platform === ANDROID || platform === IOS), so it applies to every native attachment path — Choose from gallery, Choose file/document, etc. — not just the camera flow. Those paths have no review step, so the file is sent immediately with no chance to preview/cancel, which is the reported regression.Fix options
hungvu193 commentedon Aug 21, 2026
Yes, this is expected, with native platform we will skip the preview screen for attachments (videos, images,...). Please check the convo: #98049 (comment)
iwiznia commentedon Aug 21, 2026
Yep, intended behavior, closing.