Repository navigation
Fix scroll on native when going back to the login page - #25590
Conversation
|
The new PR with all merge conflicts resolved is ready @mollfpr |
|
Updated now @mollfpr |
|
@venture1981 not when I test the latest main? Screen.Recording.2023-08-21.at.18.09.54.mov |
Reviewer Checklist
Screenshots/VideosWeb25590.Web.movMobile Web - Chrome25590.mWeb.Chrome.mp4Mobile Web - Safari25590.mWeb.Safari.mp4Desktop25590.Desktop.moviOS25590.iOS.mp4Android25590.Android.mp4 |
|
@francoisl 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] |
|
@francoisl 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] |
|
@joh42 - Please fix conflicts. |
|
Conflicts resolved, testing to make sure everything still works as intended |
| scrollPageToTop: undefined, | ||
| }; | ||
|
|
||
| function LoginForm(props) { |
There was a problem hiding this comment.
NAB
| function LoginForm(props) { | |
| function LoginForm({scrollPageToTop}) { |
There was a problem hiding this comment.
The props are sent to the BaseLoginForm here: https://github.com/joh42/expensify-app/blob/2661fb84b0e3c4921aafa9fc3fe3e794be602d88/src/pages/signin/LoginForm/index.native.js#L38
But {scrollPageToTop, ...props} could work if that's preferred
|
@joh42 let me know when you're done testing |
|
👍 waiting for the Android version to build... |
|
Everything looks good @luacmartins |
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Thanks for the reviews! |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
Details
If the input field is focused when you go back to the login page on native, you are not scrolled to the top of the page. This differs from mweb, where you are scrolled to the top.
Fixed Issues
$ #23718
PROPOSAL: #23718 (comment)
Tests
Test for all platforms
Tests only for iOS and Android
With focus
Without focus
Offline tests
Same as regular tests
QA Steps
Same as regular 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
Screen.Recording.2023-08-13.at.18.35.49.mov
Mobile Web - Chrome
Screen.Recording.2023-08-13.at.16.03.42.mov
Mobile Web - Safari
Screen.Recording.2023-08-13.at.16.00.04.mov
Desktop
Screen.Recording.2023-08-13.at.18.34.05.mov
iOS
Screen.Recording.2023-08-13.at.15.53.54.mov
Screen.Recording.2023-08-13.at.15.54.35.mov
Screen.Recording.2023-08-13.at.15.55.08.mov
Android
Screen.Recording.2023-08-13.at.17.50.02.mov
Screen.Recording.2023-08-13.at.17.51.05.mov
Screen.Recording.2023-08-13.at.17.52.23.mov