-
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
update sign in page structure #36803
update sign in page structure #36803
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2024-02-20_15.20.52.mp4Android: mWeb Chromeandroid-chrome-2024-02-20_15.23.28.mp4iOS: Nativeios-native-2024-02-20_16.17.39.mp4iOS: mWeb Safariios-safari-2024-02-20_15.59.58.mp4MacOS: Chrome / Safaridesktop-chrome-2024-02-20_15.10.45.mp4MacOS: Desktopdesktop-app-2024-02-20_15.12.19.mp4 |
@@ -124,7 +126,7 @@ function getRenderOptions({ | |||
}; | |||
} | |||
|
|||
function SignInPageInner({credentials, account, activeClients = [], preferredLocale}: SignInPageInnerProps) { | |||
function SignInPageInner({credentials, account, activeClients = [], preferredLocale, shouldEnableMaxHeight = true}: SignInPageInnerProps) { |
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.
Thinking about this, I can't see a good reason to introduce shouldEnableMaxHeight
as a prop as SignInPage
isn't being used from anywhere else, so we could just set it to false here. Or am I missing something? 😄
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.
@suneox Friendly bump on this question 🙇
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.
Due to SignInPage use default at Router, and re-use at SignInModal so we should set default for a use case Router render
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.
Did you test for that case? I think it would also want the same fix applied, no?
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.
I have test and also provide screenshot in Screenshots/Videos
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.
I meant have you tested for the case where the SignInModal
is used in Router
? I don't think I agree that it should have a different value for shouldEnableMaxHeight
.
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.
I meant have you tested for the case where the SignInModal is used in Router
Yes i have tested both cases using SignInModal
at
App/src/libs/Navigation/AppNavigator/PublicScreens.tsx
Lines 21 to 25 in 52b6d70
<RootStack.Screen | |
name={NAVIGATORS.BOTTOM_TAB_NAVIGATOR} | |
options={defaultScreenOptions} | |
component={SignInPage} | |
/> |
and
App/src/pages/signin/SignInModal.tsx
Lines 22 to 30 in 52b6d70
<ScreenWrapper | |
style={[StyleUtils.getBackgroundColorStyle(theme.PAGE_THEMES[SCREENS.RIGHT_MODAL.SIGN_IN].backgroundColor)]} | |
includeSafeAreaPaddingBottom={false} | |
shouldEnableMaxHeight | |
testID={SignInModal.displayName} | |
> | |
<HeaderWithBackButton onBackButtonPress={() => Navigation.goBack()} /> | |
<SignInPage /> | |
</ScreenWrapper> |
I don't think I agree that it should have a different value for shouldEnableMaxHeight.
@jjcoffee
We have a different value for SignInPage
due to at SignInModal
has a HeaderWithBackButton and already set shouldEnableMaxHeight
so when SignInModal
reuses a SignInPage
as a component we should disable shouldEnableMaxHeight
on SignInPage
to avoid a double scroll bar (due to shouldEnableMaxHeight
will get the screen height + HeaderWithBackButton).
@suneox You have conflicts, can you merge main and sort them? 🙏 |
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! Thanks for the clarifications! 🙇
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/srikarparsi in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
Fixed Issues
$ #36515
PROPOSAL: #36515 (comment)
Tests
Verify user can swipe to the bottom without problems.
Offline tests
QA Steps
Verify user can swipe to the bottom without problems.
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Android: Native
Screen.Recording.2024-02-19.at.22.35.20.mov
Android: mWeb Chrome
Screen.Recording.2024-02-19.at.22.04.06.mov
Screen.Recording.2024-02-19.at.22.43.43.mov
iOS: Native
Screen.Recording.2024-02-19.at.22.35.58.mov
iOS: mWeb Safari
Screen.Recording.2024-02-19.at.22.00.07.mov
Screen.Recording.2024-02-19.at.22.42.05.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-19.at.21.58.31.mov
Screen.Recording.2024-02-19.at.22.38.14.mov
MacOS: Desktop
Screen.Recording.2024-02-19.at.22.05.25.mov