-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix unexpected back navigation in Bank Connect flow #24480
Fix unexpected back navigation in Bank Connect flow #24480
Conversation
Ensured a specified fallback route is provided when using Navigation.goBack() within the Bank Connect flow to avoid defaulting to the HOME page unexpectedly after a page refresh.
@burczu Let's try to get this merged within 3 days 😁! Happy to clear any doubts/ issues. |
Hey @ygshbht! I'm sorry for the delay - I was ooo on Monday and Tuesday. Just checked the code and have no comments. I'll continue testing and I think we may be good to go today. |
Reviewer Checklist
Screenshots/VideosWeb24480-web.mp4Mobile Web - Chrome24480-mob-web-chrome.mp4Mobile Web - Safari24480-mob-web-safari.mp4Desktop24480-desktop.mp4iOS24480-ios.mp4Android24480-android.mp4 |
Sure, no worries! |
@@ -17,9 +17,10 @@ function goToWithdrawalAccountSetupStep(stepID, newAchData) { | |||
* Navigate to the correct bank account route based on the bank account state and type | |||
* | |||
* @param {String} policyId | |||
* @param {string} [backTo=''] - An optional return path. If provided, it will be URL-encoded and appended to the resulting URL. |
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.
It's good we have the backTo
property described here, but now this JSDoc is inconsistent because the policyId
has no description - could we add it?
@@ -43,6 +43,7 @@ function ContinueBankAccountSetup(props) { | |||
title={props.translate('workspace.common.connectBankAccount')} | |||
subtitle={props.policyName} | |||
shouldShowGetAssistanceButton | |||
onBackButtonPress={props.onBackButtonPress} |
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.
The onBackButtonPress
prop is missing in propTypes
of this component
@ygshbht added two minor comments to the code |
@burczu Updated! |
@burczu Would you also like to remove this JSdoc here which i had added - as it might seem inconsistent with similar functions? |
@burczu Done! |
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.
Reviewed and tested - I think we are good to go with it.
✋ 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/yuwenmemon in version: 1.3.55-0 🚀
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.3.56-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
Ensured a specified fallback route is provided when using Navigation.goBack() within the Bank Connect flow to avoid defaulting to the HOME page unexpectedly after a page refresh.
Details
Fixed Issues
$ #24237
PROPOSAL: #24237 (comment)
Tests
Note: This requires testing only on browsers and not on mobile apps
Offline tests
Same as Tests
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
desktop.browsers.mp4
Mobile Web - Chrome
android.chrome.mp4
Mobile Web - Safari
ios.safari.mp4
Desktop
desktop.app.mp4
iOS
ios.app.mp4
Android
andriod.app.mp4