Fix magic code navigates back on payment (SettlementButton)#93087
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
all addressed cc. @aimane-chnaif |
|
@aimane-chnaif over to you |
|
@aimane-chnaif bump |
|
Please merge main |
|
|
||
| // The guards checked after the account-validation gate. Also re-checked when a payment | ||
| // interrupted by account validation resumes, since the validation gate skipped them. | ||
| const checkForPostValidationBlockers = useCallback(() => { |
There was a problem hiding this comment.
No need manual memoization
|
🤖 Regression review (requested via No hard regressions found. Reviewing the current HEAD ( What I verified
Residual risks in the new resume path (low severity — all degrade to prior behavior, not worse)
Next Steps: Reply with |
|
Bug on mobile: Navigating back from Add bank account flow goes to Inbox tab. Also happens in production so out of scope. Repro step:
Expected Result: Actual Result: Screen.Recording.2026-07-10.at.10.56.41.AM.mov |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: HybridAppios1.movios2.moviOS: mWeb SafariMacOS: Chrome / Safariweb1.movweb2.movweb3.mov |
Will look into this, but fix in a separate PR. |
|
Ok, got a draft PR here it's a |
|
You can keep it under this same issue, thanks |
|
🚧 mountiny 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.34-0 🚀
|
|
🤖 No help site changes required. I reviewed the changes in this PR against the help articles under Why: This is an internal bug fix, not a user-facing product change. The PR refactors
The existing magic-code help articles (e.g.
If you feel a customer-facing article should describe what happens when paying before validating your account (this PR just makes that flow work correctly rather than introducing it), let me know and I'll draft one. |
|
Deploy Blocker #96091 was identified to be related to this PR. |
|
Deploy Blocker #96153 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.4.34-14 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.4.34-14 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
When an unvalidated user triggers a payment, the new
useVerifyAccountAndResumehook stores the pending payment action, sends the user to the dynamic verify-account (magic code) page, and resumes the stored action once validation succeeds — while dropping it if the user leaves the page without validating.Fixed Issues
$ #72980
PROPOSAL:
Tests
Pre requisite:
Then:
a)
ROUTES.SEARCH_ROOTb)
ROUTES.SEARCH_MONEY_REQUEST_REPORTc)
ROUTES.REPORT_WITH_IDwith the reportIDOffline tests
QA Steps
Same as tests
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
Screen.Recording.2026-06-15.at.11.41.51.mov
Android: mWeb Chrome
Screen.Recording.2026-06-15.at.11.45.47.mov
iOS: Native
Screen.Recording.2026-06-15.at.11.33.22.mov
iOS: mWeb Safari
Screen.Recording.2026-06-15.at.11.25.20.mov
MacOS: Chrome / Safari
Screen.Recording.2026-06-11.at.09.55.21.mov