-
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
2FA flow scroll fixes #27885
2FA flow scroll fixes #27885
Conversation
This makes the Footer button a child of the ScrollView container. The footer button will now be scrollable below the content.
This is achieved by adding the container style flexGrow1 to the ScrollView. This makes the footer button sit at the bottom of the page for large screens.
This adds a top padding of 20px to the footer button (it already has a bottom padding of 20px) This mirrors the padding of other buttons in the App
This makes the Footer button a child of the ScrollView container. The effect will be that the footer button will now be scrollable below the content.
This adds a top padding of 20 px to footer button, mirroring the padding of other buttons in the App
… Step We achieve this by adding the container style flexGrow1 to the ScrollView
@marcochavezf 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] |
This was achieved by adding the button to the parent ScrollView (and changing the style to styles.mtAuto (this aligns it to the end of the container. The parent ScrollView is given a style of flexGrow1 to make sure it takes up all the space available.
@mananjadhav Hi, the PR is ready for review! |
@neonbhai Can you resolved the conflicts? And I am wondering why I didn't get assigned to the PR. |
@mananjadhav on it |
@mananjadhav 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.
Change looks good. Working through the checklist now.
🎯 @mananjadhav, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #27980. |
I can see the correct issue is tagged and I don't see any link, yet a new issue is created. @neonbhai can you confirm if you've linked the issue in the correct format. |
Reviewer Checklist
Screenshots/VideosWebweb-2fa-scroll-fix.movMobile Web - Safarimweb-safari-2fa-scroll-fix.movDesktopdesktop-2fa-scroll-fix.movAndroidandroid-2fa-scroll-fix.mov |
@neonbhai I tested the space related changes and that's fine. One thing I noticed between the staging & your screencasts vs my screencasts is that the button in my video isn't disabled by default. Can you verify if that isn't because of our change? |
@mananjadhav this behaviour is in the lastest main. This PR linked to this issue added it. |
I checked again and the issue is linked correctly 🤔 |
Thanks for the confirmation @neonbhai |
@marcochavezf all yours! |
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
✋ 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/marcochavezf in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
Details
This PR fixes button padding and places it below the content in Two Factor Authentication flow
Fixed Issues
$ #26212
PROPOSAL: #26212 (comment)
Tests
Use an account that does not have two factor authentication. (Or create new using a temp email)
Offline tests
These pages are not accessible when offline
QA Steps
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
2FA.web.full.mov
2fa_web.mov
contact.methods.on.really.small.screen.webm
Mobile Web - Chrome
Android.mWeb.mp4
Mobile Web - Safari
safari.mweb.mov
Desktop
video6080150794517088761.mp4
iOS
ios.iPhone.14.mov
Android
https://github.com/Expensify/App/assets/64629613/dcb4b8b2-6135-4af0-b323-8cffd0zcf410