-
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
[CP Staging] Fix #27673 #27696
[CP Staging] Fix #27673 #27696
Conversation
When using |
The PR is ready for review. |
@abdulrahuman5196 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] |
FWIW, I already checked the case: Settings -> Wallet -> Add Bank in the previous PR #26816 (comment) but didn't see this regression 😥. |
@@ -51,6 +53,14 @@ function BankAccountPlaidStep(props) { | |||
return errorFields; | |||
}, []); | |||
|
|||
useEffect(() => { |
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.
I'm not entirely sure how this works.
So, any time the Plaid Setup element is focused, or any time the plaidData
gets updated we will run the useEffect
method, correct?
What about when the element is unfocused (like on a blur)?
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.
So, any time the Plaid Setup element is focused, or any time the
plaidData
gets updated we will run theuseEffect
method, correct?
Any time the current page changes focus (you open another page) or plaidData
gets updated, this useEffect
hook is called.
What about when the element is unfocused (like on a blur)?
When we render BankAccountPlaidStep,
it will open the PlaidLink
view. If you dismiss the process by navigating to another page (the current page is blurred), we will reset the step by BankAccounts.setBankAccountSubStep(null);
Note: When PlaidLink
is fully opened, its view will cover the entire screen.
cc: @joelbettner
@abdulrahuman5196 all yours for review and checklist. |
Assigning @aimane-chnaif since they can get to this now and it's a deploy blocker |
Verified fix on web. Still testing on all platforms |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
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.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
(cherry picked from commit 762b0de)
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.3.71-12 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.71-12 🚀
|
Details
Reset Plaid steps if the screen is blurred.
Fixed Issues
$ #23888
$ #27673
PROPOSAL: #23888 (comment)
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-09-18.at.11.53.00.PM.mov
Mobile Web - Safari
Screen.Recording.2023-09-19.at.12.03.53.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-09-18.at.11.58.11.PM.mov
Desktop
Screen.Recording.2023-09-18.at.11.56.42.PM.mov
iOS
Screen.Recording.2023-09-18.at.11.59.29.PM.mov
Android
Screen.Recording.2023-09-18.at.11.55.38.PM.mp4