Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@dominictb 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] |
|
🚧 @joekaufmanexpensify has triggered a test Expensify/App build. You can view the workflow run here. |
src/pages/ReimbursementAccount/VerifiedBankAccountFlowEntryPoint.tsx
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
|
🚧 @joekaufmanexpensify 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! 🧪🧪
|
|
I tested both the US and non-US cases and both worked well. For the edge case where you delete the workspace (and lose admin-status), deleting the workspace actually deleted the partially setup account. I think that is expected for now and Srikar is cleaning up that behavior here. |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from my perspective!
|
All yours @dominictb |
|
friendly bump @dominictb |
| const [isCurrentUserPolicyAdmin] = useOnyx( | ||
| ONYXKEYS.COLLECTION.POLICY, | ||
| { | ||
| canBeMissing: true, |
There was a problem hiding this comment.
canBeMissing was removed
| /** Method to set the state of isResettingBankAccount */ | ||
| setIsResettingBankAccount?: (isResetting: boolean) => void; | ||
|
|
||
| /** Method to navigate back after resetting bank account from wallet */ |
There was a problem hiding this comment.
| /** Method to navigate back after resetting bank account from wallet */ | |
| /** Method to navigate after resetting bank account */ |
| const isAccountValidated = account?.validated ?? false; | ||
|
|
||
| const {login: currentUserLogin} = useCurrentUserPersonalDetails(); | ||
| const isCurrentUserPolicyAdminSelector = useCallback((policies: OnyxCollection<OnyxTypes.Policy>) => hasActiveAdminWorkspaces(currentUserLogin, policies), [currentUserLogin]); |
There was a problem hiding this comment.
I don't think we need memoization here. React Compiler will handle that automatically.
| if (!backTo.includes(ROUTES.SETTINGS_WALLET)) { | ||
| return; | ||
| } | ||
| Navigation.goBack(isCurrentUserPolicyAdmin ? ROUTES.SETTINGS_BANK_ACCOUNT_PURPOSE : ROUTES.SETTINGS_WALLET); |
There was a problem hiding this comment.
Does this mean that if user is not an admin, resetting the flow will close RHP and open wallet page?
There was a problem hiding this comment.
yes, because non-admin should not have access to the purpose page
|
@dominictb all comments addressed |
|
@dominictb I've found one issue regarding the currency that we haven't caught during the review of the previous PR - I've added the fix to this PR, can you please test the non-USD flow as well? |
|
@dominictb bump |
|
just a heads up - I'll be ooo 4-10 March |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariUntitled.mov |
|
When going back to country step, 1️⃣ I can change my country but 2️⃣ it's not saved. Closing and reopen that bank account flow will still show my initial country. I don't know which one but either one of them must be a bug.
We should either not allow edit country once set, or save the updated country. |
|
@dominictb I will block the possiblility to change the country once we submit the step |
|
@dominictb fixed! |
|
@dominictb all checks fixed |
|
all yours @srikarparsi |
|
🚧 @srikarparsi 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.3.28-0 🚀
|
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.3.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.30-3 🚀
|
Explanation of Change
Fixed Issues
$ #82581
PROPOSAL:
Tests
Prerequisites: be an admin of a workspace
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 stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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-02-19.at.18.23.21.mp4
Android: mWeb Chrome
iOS: Native
Screen.Recording.2026-02-19.at.18.28.36.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-19.at.16.36.47.mp4