Repository navigation
Open the self DM confirmation when scanning after Manual resolved to track - #102534
Conversation
…track With Submissions disabled, the Manual tab's confirmation puts the expense on the self DM and changes the shared route type from create to track. The Scan tab reads the same route, and its global-create destination logic only accepted create, so a receipt uploaded after switching tabs fell through to the recipient picker. Treat track as already resolved to the self DM before the default-policy gate, the same way useDefaultParticipants does. The self DM report must be loaded, otherwise the flow still falls back to the picker.
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@ZhenjaHorbach I found a case which I am not sure on expected behavior.
should we auto-select a) last selected workspace? |
|
This is updating code that was changed fairly recently here to improve performance. I would like @rinej @Julesssss @cristipaval to have eyes on this PR. From a product perspective:
For this question specifically, (B) would follow existing behaviour outside of this specific flow (example below), so we can stick with that.
|
|
thanks! @ZhenjaHorbach I think you can start review |
|
I checked the changes against the earlier performance work. I don't see a performance concern here. The new check runs after receipt capture, and the lazy subscriptions and camera mounting stay unchanged. |
|
Looks good overall, shouldn't impact the performance ✅ One small thing: |
@rinej yeah this makes sense to me |
ScanGlobalCreate also renders for archived reports, so a track scan started from a report that is now archived reached the self DM short-circuit and skipped the recipient picker. Require transaction.isFromGlobalCreate, the same gate useDefaultParticipants applies before its track branch.
|
Looks good for me, @mukhrr thanks for the change! |
|
Will check the PR today or tomorrow morning! |
|
@ZhenjaHorbach and this one as well, pls. thanks! |
|
Sorry |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-10-12.at.10.15.27.movAndroid: mWeb ChromeScreen.Recording.2026-10-12.at.10.12.15.moviOS: HybridAppScreen.Recording.2026-10-12.at.10.03.20.moviOS: mWeb SafariScreen.Recording.2026-10-12.at.10.07.59.movMacOS: Chrome / SafariScreen.Recording.2026-10-12.at.09.57.26.mov |
|
Working on it! |
|
LGTM! |
|
🚧 mollfpr has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.5.8-0 🚀
|
|
No help site update is needed. This bug fix makes the Scan tab send the expense to your self DM, matching what the Manual tab already does when Submissions is off. Users would expect that behavior, and it doesn't make any existing article sentence wrong. |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.8-5 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
With Submissions disabled, the Manual tab puts the expense on the self DM and changes the shared route type to
track, but the Scan tab's destination logic only acceptedcreate, so uploading a receipt opened the recipient list. Scan now treatstrackas already resolved to the self DM, asuseDefaultParticipantsdoes.Fixed Issues
$ #100243
PROPOSAL: #100243 (comment)
Tests
Precondition: your default workspace has Submissions turned off in Workflows.
Offline tests
Go offline before step 1 and repeat steps 1-5. The destination is resolved on the client, so the upload still opens Confirm details with your self DM while offline.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged theExpensify/designteam so the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android_app.mp4
Android: mWeb Chrome
android.web.mp4
iOS: Native
ios.app.mp4
iOS: mWeb Safari
ios.web.mp4
MacOS: Chrome / Safari
web.mp4