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! |
| * 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.
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?
| title={props.translate('workspace.common.connectBankAccount')} | ||
| subtitle={props.policyName} | ||
| shouldShowGetAssistanceButton | ||
| onBackButtonPress={props.onBackButtonPress} |
There was a problem hiding this comment.
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? https://github.com/ygshbht/App/blob/902ae5abc88e08a8944cd85aff9dc43e299cbfb6/src/ROUTES.js#L23-L35 |
|
@burczu Done! |
burczu
left a comment
There was a problem hiding this comment.
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 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
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