Guard policyID and bankAccountID for refetching bank account data#84347
Guard policyID and bankAccountID for refetching bank account data#84347srikarparsi merged 5 commits intomainfrom
Conversation
|
@MelvinBot can you please review this PR |
PR ReviewI reviewed the changes in this PR. Here's my analysis: What the PR DoesThis PR fixes an infinite loading state when navigating from the BankAccountPurposePage → CountrySelection → ReimbursementAccountPage flow (personal wallet settings path). Two changes:
Why It WorksWithout a The draft protection is also needed because without it, ObservationsCode logic looks correct — the fix addresses the root cause and the changes are minimal and focused. A few items to note:
VerdictThe code changes are sound and well-scoped. I'd recommend addressing the missing linked issue and test steps in the PR description before merging. |
This reverts commit 50bf69b.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@dukenv0307 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] |
|
Un-assigning @dukenv0307 as we'll review this internally |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7304a8009f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
🚧 @srikarparsi has triggered a test Expensify/App build. You can view the workflow run here. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Guard policyID and bankAccountID for refetching bank account data (cherry picked from commit a0f0b9d) (cherry-picked to staging by blimpich)
|
🧪🧪 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. |
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.3.31-12 🚀
|
Explanation of Change
Navigating from BankAccountPurposePage to ReimbursementAccountPage without a policyID caused an infinite loading screen because withPolicy waited on Onyx to resolve a policy that didn't exist, and ReimbursementAccountLoadingIndicator waited on hasACHDataBeenLoaded, which is only set after a backend fetch that is itself gated on policyIDParam being present.
This PR guards both checks on policyID being present since we don't need to load when there's no policy.
Fixed Issues
$ #84325
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Screen.Recording.2026-03-05.at.7.57.37.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari