-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show "setting up of bank account" message when the policy has no validated account #49584
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. 😄 🤷♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
✋ 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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