-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feature: Add validation flow to bank account set up #38726
Conversation
@allroundexperts 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] |
@allroundexperts I screenshotted all platforms except Android and iOS. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/A Android: mWeb ChromeScreen.Recording.2024-05-23.at.5.15.50.PM.moviOS: NativeN/A iOS: mWeb SafariScreen.Recording.2024-05-23.at.5.10.01.PM.movMacOS: Chrome / SafariScreen.Recording.2024-05-23.at.4.48.45.PM.movMacOS: DesktopDesktop.Recording.mov |
BUG On going back after verification, you get logged out automatically. Screen.Recording.2024-05-23.at.4.54.19.PM.mov |
On going back, |
This seems connected to me. To make things faster, maybe we can request a bounty increase instead of creating a separate issue. |
@allroundexperts It's a backend issue. After we validate the account, if we call any other API, BE returns that the session has expired. Screen.Recording.2024-05-28.at.16.14.36.movScreen.Recording.2024-05-28.at.16.17.14.mov |
To fix this issue I think when we validate the default contact method, BE should return a new authToken or not expire the current token of the user cc @NikkiWines |
@NikkiWines Can you check if this can be fixed from the backend? |
Yep, I'll take a look today! |
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.
Looks good other than the logout issue which seems to be related to the backend. @NikkiWines is investigating that.
Coincidentally, it looks like we have an open PR to resolve this bug as part of a different issue - #35791 @hayata-suenaga do you have an ETA for that PR by any chance? |
I think we can merge this since the bug is un-related to this PR. |
That PS was in my backlog. Seems like this PR is not related to my PR 😄 |
I think we can merge this since the bug is un-related to this PR. @NikkiWines What do you think about this? |
@hayata-suenaga it is related to your PR (though unbeknownst to you until now) as the functionality you added in https://github.com/Expensify/Web-Expensify/pull/41180 is being utilized as part of this new feature. However, agreed with @allroundexperts that we can merge this PR as is since the sign-out issue is already known will presumably be fixed with #35791. |
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.
Looks good though clicking on the verify the account
link the first time fails to redirect the user appropriately.
After that it works fine though 👍
Screen.Recording.2024-06-05.at.22.19.20.mov
src/languages/en.ts
Outdated
phrase2: 'sign back in with a magic code', | ||
phrase2: 'sign back in with a magic code ', | ||
phrase3: 'or ', | ||
phrase4: 'verify the account here', |
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.
Let's change this to verify your account here
(and also update the Spanish copy accordingly)
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.
@NikkiWines I updated.
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.
Works great aside from the aforementioned log out issue.
✋ 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 production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
Hi @dukenv0307, I am working on extracting the component you have built here and use it on 2FA page when user is not validated. I am facing this navigation issue while trying to use the component on CodeStep of 2FA page. For the past few days, I have been trying to investigate the issue to no avail. Could you please help me understand the issue? Thank you! |
Details
Fixed Issues
$ #33035
PROPOSAL: #33035 (comment)
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
android-mweb-resize.mp4
iOS: Native
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
desktop-resize.mp4