Repository navigation
Show Bank address before Bank city in the non-USD bank account flow - #104679
Conversation
Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
|
🤖 Web test steps verification results: I created a EUR workspace and reached Workflows > Payments > Add bank account > Connect manually. A "Validate your account" screen then asked for a code sent by email, which this automated session can't read, so the country step, the bank details step, and the Confirmation step could not be reached. Android hit the same screen. The PR's Tests section is still a TODO, so I used the steps from the linked issue.
To verify steps 3 to 5, test with an account that is already validated. You can also check the order manually with the issue's steps (Croatia, EUR). |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot, replace the PR Author checklist with the verified one below: PR author checklist |
|
I replaced the PR description with the checklist you verified, word for word. Step 1 under Tests ends with an extra "1." ( |
|
@MelvinBot Mark this as ready for review. |
|
🤖 I marked Show Bank address before Bank city in the non-USD bank account flow as ready for review. |
|
@marufsharifi 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] |
Codex Review SummaryThis 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. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-10-28.at.3.24.08.PM.movAndroid: mWeb ChromeScreen.Recording.2026-10-28.at.3.35.16.PM.moviOS: HybridAppScreen.Recording.2026-10-28.at.2.51.51.PM.moviOS: mWeb SafariScreen.Recording.2026-10-28.at.2.46.14.PM.movMacOS: Chrome / SafariScreen.Recording.2026-10-28.at.1.37.22.PM.mov |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
|
@MelvinBot Resolve the conflicts. |
…oreBankCity Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com> # Conflicts: # src/pages/ReimbursementAccount/NonUSD/BankInfo/subSteps/Confirmation.tsx
|
I resolved the conflict by merging The only conflict was in Checks:
|
|
@neil-marcellini 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] |
|
No fix needed. All code checks now pass on The red The only remaining failures are |
neil-marcellini
left a comment
There was a problem hiding this comment.
(Neil's AI agent, human reviewed)
@marufsharifi thanks for this. Two changes before I can approve:
-
Manual tests. Please add screenshots or videos for each platform. They should show Bank address above Bank city on the Croatia/EUR bank details step and on the confirmation page, and show that picking an address fills in the city. Please also complete the reviewer checklist, since the
checklistcheck is failing. Step 1 under Tests also has a stray "1." at the end. -
Only swap the city and address. Please change
sortBankInformationFieldsso it only swapsbankAddressLine1andbankCitywhen the city comes first, and leaves every other field where the API put it. Sorting the whole bank information group moves fields further than the issue needs. This test shows the confusing result; see my inline comment there. Please rename the helper and update the tests to match.
| const sortedFields = sortBankInformationFields(fields); | ||
|
|
||
| // Then only the bank information fields are reordered, inside the slots they already held | ||
| expect(getIDs(sortedFields)).toEqual(['accountNumber', 'bankAddressLine1', 'swiftBicCode', 'bankCity', 'bankPostal', 'IBAN']); |
There was a problem hiding this comment.
(Neil's AI agent, human reviewed)
This result is confusing. In the input, bankCity and bankAddressLine1 are next to each other (positions 3 and 4). After sorting:
bankAddressLine1jumps up to position 1.bankPostaldrops from position 1 to position 4.swiftBicCodenow sits between the address and the city.
The issue only asks for Bank address to come before Bank city, so I'd expect just those two to swap:
['accountNumber', 'bankPostal', 'swiftBicCode', 'bankAddressLine1', 'bankCity', 'IBAN']There was a problem hiding this comment.
Fixed in 4220cb8. The helper now only swaps bankAddressLine1 and bankCity when the city comes first, so this case returns exactly what you expected:
['accountNumber', 'bankPostal', 'swiftBicCode', 'bankAddressLine1', 'bankCity', 'IBAN']I renamed the test file to tests/unit/putBankAddressBeforeBankCityTest.ts and updated this assertion.
|
@MelvinBot please address this: #104679 (review) |
…rmation fields Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>
|
I addressed the code change from this review and pushed it in 4220cb8. You still need to add screenshots or videos for each platform and complete the reviewer checklist. What changed
Checks: The unit tests (7/7), lint on the changed files, and Still needed from you, |
|
@neil-marcellini, all yours. thanks. |
neil-marcellini
left a comment
There was a problem hiding this comment.
Thanks for the updates. It looks great now. Sorry, I guess I missed your testing videos from last time. I see that comment now, so good to go.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 neil-marcellini 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/neil-marcellini in version: 9.5.31-0 🚀
|
|
No help site update needed — this bug fix reorders existing bank-detail fields to prevent overwriting an entered city, without adding a workflow or making existing article instructions incorrect. |
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |






Explanation of Change
In the non-USD manual bank account setup, Bank city appeared before Bank address.
This caused an issue because selecting a bank address could overwrite the city already entered by the user.
This PR fixes the issue by:
Fixed Issues
$ #104561
PROPOSAL: #104561 (comment)
Tests
Offline tests
Same as Tests.
QA Steps
Same as Tests.
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