-
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
Fix scroll on native when going back to the login page #25590
Conversation
The new PR with all merge conflicts resolved is ready @mollfpr |
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.
Thanks @joh42
Just couples of NABs. I'll complete the records for all the platforms now.
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 |
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.
LGTM and tests well 👍
@joh42 Let's make the test clearer.
We can remove Tests to make sure login is not broken:
or replace it to Test for all platforms
, and Tests for fixes on native:
to Tests only for iOS and Android
.
@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 |
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.
LGTM
scrollPageToTop: undefined, | ||
}; | ||
|
||
function LoginForm(props) { |
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.
NAB
function LoginForm(props) { | |
function LoginForm({scrollPageToTop}) { |
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 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 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-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