[OLD] Fix scroll on native when going back to the login page#24499
[OLD] Fix scroll on native when going back to the login page#24499joh42 wants to merge 17 commits into
Conversation
|
Regarding the failing unit test check, there is a unit test that fails on main. I've written this on the PR that I think introduced this, and I have also reported it as a bug. |
|
Hey team, do you mind pulling from |
|
Thanks for the quick fix! No unit tests are failing now, ready for review @mollfpr |
|
I'm still struggling to run the android app in my local, and it's always failed to build the CMake. Any idea? |
|
Hmm no I haven't run into that. If you want I can try to build an APK and send it to you. Alternatively there might be someone on Slack who knows how to solve it, seems like there are a few people who've run into CMake issues. |
mollfpr
left a comment
There was a problem hiding this comment.
Sorry for the delay. I manage to run the Android app. Overall the code and test look good, just a couple of comments.
|
Updated code/responded to comment @mollfpr |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-18.at.01.27.35.movMobile Web - ChromeScreen_Recording_20230818_012401_Chrome.mp4Mobile Web - SafariSimulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-18.at.01.26.56.mp4DesktopScreen.Recording.2023-08-18.at.01.31.30.moviOSSimulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-18.at.01.33.15.mp4AndroidScreen_Recording_20230818_012106_New.Expensify.Dev.mp4 |
|
Friendly ping @mollfpr, would be great if we can get this merged within 9 days of assignment |
|
The code looks good and tests well. @joh42 Could you resolve the conflict? Thanks! |
|
Welp... so while I did resolve the conflict, the commit wasn't signed, and I didn't notice until after I had pushed. I know you're not supposed to force push when a PR review has been started, but reverting won't remove the unsigned commit. Is it okay if I remove the unsigned commit and force push in this scenario @mollfpr? |
|
@joh42 Could you try the suggestion here https://expensify.slack.com/archives/C01GTK53T8Q/p1688664028660859? |
|
While that did allow me to sign the commit locally, I'm still unable to push without using force since my local branch differs from the one on Github @mollfpr. Since there are new conflicts, I think the cleanest solution might be to remove the unsigned conflict resolution commit and instead resolve all conflicts in a signed commit. But again, that would require a force push. |
|
@joh42 Okay, let's open a new PR to get cleaner commit and seems everything looks good. |
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
Tests to make sure login is not broken:
Tests for fixes on native:
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