Manual tab shows scan confirm page after uploading receipt on Scan and returning to Manual#91218
Conversation
…d returning to Manual
|
@ChavdaSachin 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] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
trjExpensify
left a comment
There was a problem hiding this comment.
Nice one, one down! ❤️
|
@dukenv0307, the infinite loading bug is still reproducible.
And one more severe bug.
VideoScreen.Recording.2026-05-25.at.8.43.28.PM.mov |
|
@dukenv0307, for the solution, I'd say we gotta add some sort of mechanism to completely reset the transaction draft as soon as the tab is changed. |
@ChavdaSachin Actually, initMoneyRequest is triggered in this case that will clear the transaction draft data. Is #90652 fixed? |
|
Yes #90652 was fixed |
|
@ChavdaSachin I explained the RCA and solution in the PR description, could you please take a look? If it makes sense to you, we can merge this PR to fix #90652 first. I thought it had the same RCA as #90648, but I was wrong. I'll dig deeply to find the RCA soon |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-06-02.at.00.11.45.movAndroid: mWeb ChromeScreen.Recording.2026-06-02.at.00.09.38.moviOS: HybridAppScreen.Recording.2026-06-02.at.00.07.26.moviOS: mWeb SafariScreen.Recording.2026-06-02.at.00.01.02.movMacOS: Chrome / SafariScreen.Recording.2026-06-01.at.23.56.28.mov |
@trjExpensify I noticed that you assigned me to review this PR. Was that intentional, or was it assigned by accident? |
|
No, my bad. I meant to assign @thelullabyy. |
|
@thelullabyy any updates? |
|
Bump, @thelullabyy. |
|
@trjExpensify Checking now |
|
@JS00001 can you please review this PR? |
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.3.98-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. I reviewed the changes in this PR against the help site files under Why no docs changes are neededWhat this PR does: It's an internal bug fix for the new manual expense flow (gated behind the Changed files are all internal state/logic — no user-facing copy, labels, tabs, or settings:
Why docs are unaffected:
@dukenv0307, no help site PR was created because no documentation changes are required. Please let me know if you believe a docs update is warranted and I'll reassess. |
|
Deploy Blocker #92508 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.98-3 🚀
|
Explanation of Change
When entering "+ → Create expense" from a workspace chat with the new manual flow beta, the Manual tab embeds IOURequestStepConfirmation. After uploading a receipt on the Scan tab and returning to Manual, our cleanup (initMoneyRequest on tab switch) correctly wipes the draft — but IOURequestStepConfirmation's auto-assign useEffect (IOURequestStepConfirmation.tsx:354-368) immediately re-fires because the fresh transaction has no participants. That re-fire triggers a cascade of sibling useEffects (ExpenseDefaultsSetter writes billable/reimbursable, and the Scan-tab hooks still mounted in the background re-write receipt and participantsAutoAssigned), restoring the entire 15-key Scan state on top of our cleanup. Legacy doesn't hit this because the Manual tab is IOURequestStepAmount, which has none of those side-effect children.
Seed the freshly-rebuilt transaction with participants up-front so the auto-assign effect short-circuits:
Fixed Issues
$ #90652
#90648
PROPOSAL:
Tests
Precondition:
Run Onyx.merge('betas', ['newManualExpenseFlow']); in console.
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-05-21.at.00.07.22.mov