Fix: navigate to enable-payment page after adding Bank account#29847
Fix: navigate to enable-payment page after adding Bank account#29847thienlnam merged 4 commits intoExpensify:mainfrom
Conversation
|
@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] |
|
@abdulrahuman5196 removed the redundant param. |
|
Thank you checking again |
|
@getusha Kindly add information in the details section of the PR. Curious question: I was testing and the |
@abdulrahuman5196 could you help me understand what kind of information i should add? |
Like What is this PR for? What are we changing here? Same as other PRs 🤔 Since we also don't have a proposal it would be hard for someone else to understand in future the change made here |
|
@abdulrahuman5196 added some details, tried to explain what's going on here. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-10-18.at.11.40.03.PM.mp4Mobile Web - ChromeScreen.Recording.2023-10-18.at.11.47.52.PM.mp4Mobile Web - SafariScreen.Recording.2023-10-18.at.11.45.53.PM.mp4DesktopScreen.Recording.2023-10-19.at.12.00.01.AM.mp4iOSScreen.Recording.2023-10-18.at.11.52.25.PM.mp4AndroidScreen.Recording.2023-10-18.at.11.53.52.PM.mp4 |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @MariaHCD
🎀 👀 🎀
C+ Reviewed
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #29726 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@MariaHCD Do check the attached videos as well on the reviewers checklist |
| /** | ||
| * Whether after adding a bank account we should continue with the KYC flow | ||
| */ |
There was a problem hiding this comment.
NAB: Stores a route that is navigated to after successfully adding a bank account
|
✋ 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/thienlnam in version: 1.3.87-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.87-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.87-12 🚀
|
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.88-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.88-11 🚀
|
|
@getusha After some testing it looks like the flow still drops you back into the wallet page instead of wallet/enable-payments. Any ideas why that might be happening? |
|
@getusha Sorry missed this message. Was this fixed now? |
|
@abdulrahuman5196 I was unable to reproduce the issue following the steps described on the issue |
|
Thanks for the thread link @getusha. I wasn't aware of it. Seems good in the thread. |
| function continueSetup(fallbackRoute = ROUTES.HOME) { | ||
| if (!kycWallRef.current?.continue) { | ||
| Navigation.goBack(ROUTES.HOME); | ||
| Navigation.goBack(fallbackRoute); | ||
| return; | ||
| } | ||
|
|
||
| // Close the screen (Add Debit Card, Add Bank Account, or Enable Payments) on success and continue with setup | ||
| Navigation.goBack(ROUTES.HOME); | ||
| Navigation.goBack(fallbackRoute); |
There was a problem hiding this comment.
This change caused Onfido to stop loading #66921, it might be caused during refactors, but this found to be the root cause.
Details
Previously we were navigating to wallet page after adding PBA
App/src/pages/AddPersonalBankAccountPage.js
Lines 93 to 95 in 3b86da6
Added
setPersonalBankAccountContinueKYCOnSuccesswith fallback route parameter which will be used to navigate to any route we passed after adding PBA, in this case since the expected result is to land on Additional Information page, we are setting the fallback route toROUTES.ENABLE_PAYMENTS. we can't expect the route to be ENABLE_PAYMENTS always, there are cases where we want to navigate the user back to wallet page e.g.Fixed Issues
$ #29726
PROPOSAL:
Tests
User A:
User B:
Offline tests
N/a
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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.2023-10-18.at.2.39.59.PM.mov
Android: mWeb Chrome
confirm-pg-mweban.mov
iOS: Native
confirm-pg-ios.mov
iOS: mWeb Safari
confirm-pg-ba-msafari.mov
MacOS: Chrome / Safari
confirm-pg-ba.mov
MacOS: Desktop
Screen.Recording.2023-10-18.at.1.35.36.PM.mov