Skip to content

Show Bank address before Bank city in the non-USD bank account flow - #104679

Merged
neil-marcellini merged 3 commits into
mainfrom
claude-bankAddressBeforeBankCity
Nov 3, 2026
Merged

neil-marcellini merged 3 commits into
mainfrom
claude-bankAddressBeforeBankCity

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Swapping Bank address and Bank city when the API returns the city first, so Bank address shows before Bank city.
  • Using the same order on the confirmation page.
  • Leaving every other field (IBAN, SWIFT, account number, bank postal, etc.) where the API put it.
  • Adding unit tests to verify the correct order.

Fixed Issues

$ #104561
PROPOSAL: #104561 (comment)

Tests

  1. Create a workspace with EUR currency.
  2. Go to Workflows > Payments > Add bank account > Connect manually.
  3. Select Croatia as the bank country.
  4. Verify Bank address appears before Bank city.
  5. Select a bank address and verify the city populates correctly.
  • Verify that no errors appear in the JS console

Offline tests

Same as Tests.

QA Steps

Same as Tests.

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team October 22, 2026 05:37
@melvin-bot melvin-bot Bot added Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web labels Oct 22, 2026
@MelvinBot

Copy link
Copy Markdown
Contributor Author

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:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-bankAddressBeforeBankCity
git checkout -b claude-bankAddressBeforeBankCity upstream/claude-bankAddressBeforeBankCity
git push -u origin claude-bankAddressBeforeBankCity

Then you can close this PR and open a new one from your fork.

@MelvinBot

MelvinBot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Android test steps verification results: ⚠️ partial

I created a EUR workspace and reached Workflows > Payments > Add bank account. Tapping "Connect manually" opened a "Validate your account" screen. It asks for a code sent by email, and this automated session can't read that inbox. Because of that, I couldn't reach the country step, the bank details step, or the Confirmation step. The PR's Tests section is still a TODO, so I used the steps from the linked issue.
Validate your account screen requesting an emailed code

Step Status
1. Create a workspace with EUR currencyCreated "Melvin Tester's Workspace" with EUR. Overview shows "Default currency, EUR - €".
Workspace Overview showing Default currency EUR
✅
2. Workflows > Payments > Add bank account > Connect manually"Make or track payments" was already on. "Add bank account" opened a modal with a "Connect manually" option.
Workflows Payments tab with Add bank account button
✅
3. Select Croatia, press Confirm, and the bank details step loadsBlocked. "Connect manually" opened a "Validate your account" screen that asks for a 6-digit code sent by email. The tester can't get that code, so it didn't reach the country step.
Validate your account screen requesting an emailed code
❌
4. Bank address appears above Bank city on the bank details stepNot reached because of the validation screen in step 3.
❌
5. Confirmation summary lists Bank address before Bank cityNot reached because of the validation screen in step 3.
❌

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).


view run · view recording

@MelvinBot

MelvinBot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Web test steps verification results: ⚠️ partial

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.
Validate your account screen requesting an emailed code

Step Status
1. Create a workspace with EUR currencyCreated a new workspace with EUR. Overview shows "Default currency: EUR - €".
Workspace Overview showing Default currency EUR
✅
2. Workflows > Payments > Add bank account > Connect manually, and the country step appearsReached "Connect manually", but a "Validate your account" screen asked for a 6-digit emailed code instead of showing the country step.
Add bank account screen with Connect manually option
Validate your account screen requesting an emailed code
❌
3. Select Croatia, press Confirm, and the bank details step loadsNot reached because of the validation screen in step 2.
❌
4. Bank address appears above Bank city on the bank details stepNot reached because of the validation screen in step 2.
❌
5. Confirmation summary lists Bank address before Bank cityNot reached because of the validation screen in step 2.
❌

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).


view run · view recording

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
...count/NonUSD/utils/putBankAddressBeforeBankCity.ts 100.00% <100.00%> (ø)
...tAccount/NonUSD/BankInfo/subSteps/Confirmation.tsx 0.00% <0.00%> (ø)
...nt/NonUSD/BankInfo/subSteps/BankAccountDetails.tsx 0.00% <0.00%> (ø)
... and 744 files with indirect coverage changes

@marufsharifi

Copy link
Copy Markdown
Contributor

@MelvinBot, replace the PR Author checklist with the verified one below:

PR author checklist

<!-- If necessary, assign reviewers that know the area or changes well. Feel free to tag any additional reviewers you see fit. -->

### Explanation of Change
<!-- Explain what your change does and how it addresses the linked issue -->


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:
- Showing **Bank address** before **Bank city**.
- Using the same order on the confirmation page.
- Keeping other fields (IBAN, SWIFT, account number) in their original positions.
- Adding unit tests to verify the correct order.

### Fixed Issues
<!---
1. Please postfix `$` with a URL link to the GitHub issue this Pull Request is fixing. For example, `$ https://github.com/Expensify/App/issues/<issueID>`.
2. Please postfix  `PROPOSAL:` with a URL link to your GitHub comment, which contains the approved proposal (i.e. the proposal that was approved by Expensify).  For example, `PROPOSAL: https://github.com/Expensify/App/issues/<issueID>#issuecomment-1369752925`

Do NOT add the special GH keywords like `fixed` etc, we have our own process of managing the flow.
It MUST be an entire link to the github issue and your comment proposal ; otherwise, the linking and its automation will not work as expected.

Make sure this section looks similar to this (you can link multiple issues using the same formatting, just add a new line):

$ https://github.com/Expensify/App/issues/<issueID>
$ https://github.com/Expensify/App/issues/<issueID(comment)>

Do NOT only link the issue number like this: $ #<issueID>
--->
$ https://github.com/Expensify/App/issues/104561
PROPOSAL: https://github.com/Expensify/App/issues/104561#issuecomment-6314400079


<!--- 
If you want to trigger adhoc build of hybrid app from specific Mobile-Expensify PR please link it like this:

MOBILE-EXPENSIFY: https://github.com/Expensify/Mobile-Expensify/pull/<PR-number>

--->

### Tests
<!---
Add a numbered list of manual tests you performed that validates your changes work on all platforms, and that there are no regressions present.
Add any additional test steps if test steps are unique to a particular platform.
Manual test steps should be written so that your reviewer can repeat and verify one or more expected outcomes in the development environment.

For example:
1. Click on the text input to bring it into focus
2. Upload an image via copy paste
3. Verify a modal appears displaying a preview of that image
--->
1. Create a workspace with EUR currency.1. 
2. Go to Workflows > Payments > Add bank account > Connect manually.
3. Select Croatia as the bank country.
4. Verify Bank address appears before Bank city.
5. Select a bank address and verify the city populates correctly.

- [x] Verify that no errors appear in the JS console

### Offline tests
<!---
Add any relevant steps that validate your changes work as expected in a variety of network states e.g. "offline", "spotty connection", "slow internet", etc. Manual test steps should be written so that your reviewer and QA testers can repeat and verify one or more expected outcomes. If you are unsure how the behavior should work ask for advice in the `#expensify-open-source` Slack channel.
--->

Same as Tests.

### QA Steps
<!---
Add a numbered list of manual tests that can be performed by our QA engineers on the staging environment to validate that your changes work on all platforms, and that there are no regressions present.
Add any additional QA steps if test steps are unique to a particular platform.
Manual test steps should be written so that the QA engineer can repeat and verify one or more expected outcomes in the staging environment.

For example:
1. Click on the text input to bring it into focus
2. Upload an image via copy paste
3. Verify a modal appears displaying a preview of that image

It's acceptable to write "Same as tests" if the QA team is able to run the tests in the above "Tests" section.
--->

Same as Tests.

- [x] Verify that no errors appear in the JS console

### PR Author Checklist
<!--
This is a checklist for PR authors. Please make sure to complete all tasks and check them off once you do, or else your PR will not be merged!
-->

- [x] I linked the correct issue in the `### Fixed Issues` section above
- [x] I wrote clear testing steps that cover the changes made in this PR
    - [x] I added steps for local testing in the `Tests` section
    - [x] I added steps for the expected offline behavior in the `Offline steps` section
    - [x] I added steps for Staging and/or Production testing in the `QA steps` section
    - [x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    - [x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    - [x] I tested this PR with a [High Traffic account](https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#high-traffic-accounts) against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
- [x] I included screenshots or videos for tests on [all platforms](https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#make-sure-you-can-test-on-all-platforms)
- [x] I ran the tests on **all platforms** & verified they passed on:
    - [x] Android: Native
    - [x] Android: mWeb Chrome
    - [x] iOS: Native
    - [x] iOS: mWeb Safari
    - [x] MacOS: Chrome / Safari
- [x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
- [x] I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
- [x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
- [x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like `Avatar`, I verified the components using `Avatar` are working as expected)
- [x] If new assets were added or existing ones were modified, I verified that:
    - [x] The assets are optimized and compressed (for SVG files, run `npm run compress-svg`)
    - [x] The assets load correctly across all supported platforms.
- [x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
- [x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like `Avatar` is modified, I verified that `Avatar` is working as expected in all cases)
- [x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
- [x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
- [x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    - [x] I verified that all the inputs inside a form are aligned with each other.
    - [x] I added `Design` label and/or tagged `@Expensify/design` so the design team can review the changes.
- [x] If the PR adds or modifies the UI:
    - [x] I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    - [x] I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    - [x] I verified all new/changed elements have meaningful accessible names and roles.
    - [x] I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
- [x] I added [unit tests](https://github.com/Expensify/App/blob/main/tests/README.md) for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
- [x] If the `main` branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the `Test` steps.

### Screenshots/Videos
<details>
<summary>Android: Native</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>Android: mWeb Chrome</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>iOS: Native</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>iOS: mWeb Safari</summary>

<!-- add screenshots or videos here -->

</details>

<details>
<summary>MacOS: Chrome / Safari</summary>

<!-- add screenshots or videos here -->

</details>



@MelvinBot

Copy link
Copy Markdown
Contributor Author

I replaced the PR description with the checklist you verified, word for word.

Step 1 under Tests ends with an extra "1." (Create a workspace with EUR currency.1.). You may want to delete it.


view run

@marufsharifi

Copy link
Copy Markdown
Contributor

@MelvinBot Mark this as ready for review.

@MelvinBot
MelvinBot marked this pull request as ready for review October 26, 2026 12:26
@MelvinBot
MelvinBot requested a review from a team as a code owner October 26, 2026 12:26
@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 I marked Show Bank address before Bank city in the non-USD bank account flow as ready for review.


view run

@melvin-bot
melvin-bot Bot requested review from joekaufmanexpensify and marufsharifi and removed request for a team October 26, 2026 12:26
@melvin-bot

melvin-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown

@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]

@melvin-bot
melvin-bot Bot removed the request for review from a team October 26, 2026 12:26
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T12:29:47.745752Z 68e13f9 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@marufsharifi

marufsharifi commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Screen.Recording.2026-10-28.at.3.24.08.PM.mov
Android: mWeb Chrome
Screen.Recording.2026-10-28.at.3.35.16.PM.mov
iOS: HybridApp
Screen.Recording.2026-10-28.at.2.51.51.PM.mov
iOS: mWeb Safari
Screen.Recording.2026-10-28.at.2.46.14.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2026-10-28.at.1.37.22.PM.mov

@joekaufmanexpensify joekaufmanexpensify left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for product

@marufsharifi

Copy link
Copy Markdown
Contributor

@MelvinBot Resolve the conflicts.

…oreBankCity

Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>

# Conflicts:
#	src/pages/ReimbursementAccount/NonUSD/BankInfo/subSteps/Confirmation.tsx
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I resolved the conflict by merging main into this branch (commit 30affc3).

The only conflict was in Confirmation.tsx. main removed the manual useMemo wrappers, and this PR adds sortBankInformationFields. I kept both changes.

Checks:

  • sortBankInformationFieldsTest passes (5/5).
  • Typecheck shows no errors in the touched files.

view run

@melvin-bot
melvin-bot Bot requested review from neil-marcellini and removed request for a team October 27, 2026 16:49
@melvin-bot

melvin-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown

@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]

@MelvinBot

Copy link
Copy Markdown
Contributor Author

No fix needed. All code checks now pass on 30affc37.

The red validate-perf-tests came from a duplicate Reassure run that GitHub cancelled when a second run started for the same commit. The second run passed, and so did Jest, TypeScript, ESLint, and the builds.

The only remaining failures are checklist (PR Reviewer Checklist) and Check independent approval. A reviewer clears those by completing the checklist and approving the PR.


view run

@neil-marcellini neil-marcellini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Neil's AI agent, human reviewed)

@marufsharifi thanks for this. Two changes before I can approve:

  1. 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 checklist check is failing. Step 1 under Tests also has a stray "1." at the end.

  2. Only swap the city and address. Please change sortBankInformationFields so it only swaps bankAddressLine1 and bankCity when 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']);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(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:

  • bankAddressLine1 jumps up to position 1.
  • bankPostal drops from position 1 to position 4.
  • swiftBicCode now 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']

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@marufsharifi

Copy link
Copy Markdown
Contributor

@MelvinBot please address this: #104679 (review)

…rmation fields

Co-authored-by: Maruf Sharifi <marufsharifi@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

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

  • I renamed sortBankInformationFields to putBankAddressBeforeBankCity. It now swaps only bankAddressLine1 and bankCity, and only when the city comes first. Every other field stays where the API put it.
  • The bank details step and the confirmation page both use the new helper.
  • I updated the unit tests. They now cover the case from the inline comment, the two fields not being next to each other, and only one of the two fields being present.
  • I removed the stray "1." from step 1 under Tests and updated the Explanation of Change.

Checks: The unit tests (7/7), lint on the changed files, and npm run typecheck pass.

Still needed from you, marufsharifi: screenshots or videos for each platform, and the reviewer checklist. I tried to take web screenshots, but the test browser session showed only a blank page, so I couldn't capture any.

@marufsharifi

Copy link
Copy Markdown
Contributor

@neil-marcellini, all yours. thanks.

@neil-marcellini
neil-marcellini self-requested a review November 2, 2026 18:20

@neil-marcellini neil-marcellini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@neil-marcellini
neil-marcellini merged commit 226126f into main Nov 3, 2026
47 of 49 checks passed
@neil-marcellini
neil-marcellini deleted the claude-bankAddressBeforeBankCity branch November 3, 2026 16:14
@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚧 neil-marcellini has triggered a test Expensify/App build. You can view the workflow run here.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@OSBotify OSBotify mentioned this pull request Nov 3, 2026
99 tasks done
@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.5.31-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 failure ❌
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor Author

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.

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.5.31-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

OSBotify commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants