Repository navigation
[NoQA] Remove dead USD step state and unattached ref from the bank account page - #106258
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Codex Review: Didn't find any major issues. 🎉 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". |
|
@MelvinBot review |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🤖 Web test steps verification results: Static review found no actionable issues. Web verification was blocked because the new USD workspace showed no Reimbursements navigation; this does not establish a PR regression.
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 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.5.35-0 🚀
|
|
No help site update needed — this PR removes unused internal code without changing the bank-account setup workflow or making any existing article instructions incorrect. |
|
No FullStory changes needed. This PR only removes unused bank-account state, props, and an unattached ref without adding user-facing functionality or changing existing tracking needs. |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.5.35-3 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
The USD flow refactor (#86645, reapplied in #90302) removed everything that read
USDBankAccountStepandrequestorStepRefinReimbursementAccountPage, but left the values behind.USDBankAccountStepis state that is only written (its only reader is its own sync effect branch) and its setter is passed through five components.requestorStepRefis never attached to an element, so the loader term(shouldReopenOnfido || !requestorStepRef?.current)is true on every platform. The ref read during render also kept the page from compiling with React Compiler.This PR removes the state, the setter props, the
subSteproute param, the ref andshouldReopenOnfido. The loader condition stays true in the same cases as before. With the ref gone the page compiles, so its four manualuseMemo/useCallbackare removed too.Fixed Issues
$ #106420
PROPOSAL: https://expensify.slack.com/archives/C05LX9D6E07/p1794222393235659
Tests
N/A
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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.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