show "setting up of bank account" message when the policy has no validated account#49584
Conversation
|
Once a valid bank account is connected to the policy and backend validates it, backend can send the updated next step message to the clients. Does this approach look good to you? |
setupBankAccount.mp4 |
|
Yeah I think that works! My only question - do even employees (non-admins) have access to the achAccount info in Onyx? It seems sorta weird that they would... but if they do then this should be fine. I want to make sure that all roles have/don't have that number appropriately so this approach will work |
|
oh okay great, they don't see the full account number but there's still a value. That should be fine then! |
|
@alitoshmatov 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] |
|
Bump for review, @alitoshmatov |
|
Merged I think we can ignore that. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-03.at.15.45.56.movAndroid: mWeb ChromeScreen.Recording.2024-10-03.at.15.43.08.moviOS: NativeScreen.Recording.2024-10-03.at.15.59.43.moviOS: mWeb SafariScreen.Recording.2024-10-03.at.15.42.40.movMacOS: Chrome / SafariScreen.Recording.2024-10-03.at.12.02.26.movMacOS: DesktopScreen.Recording.2024-10-03.at.15.42.12.mov |
|
@c3024 I notice 2 inconsistencies between OptimisticData and BE response: Optimistic: Waiting for an admin to finish setting up a business bank account.
Screen.Recording.2024-10-03.at.12.04.53.mov |
All optimistic messages in the NextStepUtils have a period or an exclamation mark at the end. So, I think a full stop needs to be added at the backend.
^^ This is from PR #49424 QA steps so this admin vs You difference is known already. @DylanDylann |
|
@dangrous All yours |
dangrous
left a comment
There was a problem hiding this comment.
Hi! This looks good, but can we add a test for the version when hasValidAccount is true, too? Thanks!
|
It looks like lint wants us to migrate to |
|
Added the tests. ESLint check succeeded too. 😄 🤷♂️ |
|
✋ 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/dangrous in version: 9.0.47-1 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.47-4 🚀
|


Details
After approving an expense, we presently show the message as only "Waiting for admin to pay expenses" regardless of whether a validated bank account is connected to the policy. With this PR, we show a message as "Waiting for admin to finish setting up a bank account" if the policy does not have a valid bank account connected to it.
Fixed Issues
$ #47271
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Android: mWeb Chrome
setupAndroidmWeb.mp4
iOS: Native
setupiOS.mp4
iOS: mWeb Safari
setupiOSmWeb.mp4
MacOS: Chrome / Safari
setupChrome.mp4
MacOS: Desktop
setupDesktop.mp4