-
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
Feat/initial settings page layout change #27468
Feat/initial settings page layout change #27468
Conversation
@narefyev91 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] |
…b.com/ishpaul777/App into feat/InitialSettingsPageLayout-change
This comment was marked as resolved.
This comment was marked as resolved.
@narefyev91 Review changes when you got the chance, |
@roryabraham PR is open for review, Can you take a look and let me know if there are any changes, Thanks! |
@ishpaul777 can you please fix merge conflicts |
We also need here design team to take a look on current result and expected behaviour cc @shawnborton |
<View style={[styles.avatarSectionWrapper, styles.justifyContentCenter]}> | ||
{_.isEmpty(props.currentUserPersonalDetails) || _.isUndefined(props.currentUserPersonalDetails.displayName) ? ( | ||
<CurrentUserPersonalDetailsSkeletonView | ||
backgroundColor={themeColors.appBG} |
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.
Avatar loading skeleton color was same as what we use for Header of the layout so have to change the color to same a body color. @shawnborton can you review this change also.
Before | now | If we dont change color to appBG |
---|---|---|
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
No issues found during testing - the only thing is having platform specific code inside some files - like |
Thanks for the review @narefyev91, the safari specific code you refering to was added as part of this PR. Please check this #26873 (review) for context why this was added |
If everything looks good to you, Can you approve so that melvin assign @roryabraham for review. |
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.
Overall great job, and thanks for including the fix for the status bar color on those other pages.
Just had one question
@@ -103,7 +103,8 @@ function NavigationRoot(props) { | |||
|
|||
prevStatusBarBackgroundColor.current = statusBarBackgroundColor.current; | |||
statusBarBackgroundColor.current = currentScreenBackgroundColor; | |||
if (prevStatusBarBackgroundColor.current === statusBarBackgroundColor.current) { | |||
|
|||
if (currentScreenBackgroundColor === themeColors.appBG && prevStatusBarBackgroundColor.current === themeColors.appBG) { |
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.
sorry, I don't understand why we made this change. Seems like it was correct before and prevents animating between any two screens where the color was the same, not just between two screens of the default background color?
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.
so before this there was a issue when navigating to Security Page or opening a report the status bar color change to light blue and dark green respectively, and when close button is pressed or we close a report and then navigate back to settings page the status bar color remains unchanged 👇
Record_2023-09-20-19-59-59.mp4
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.73-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.73-1 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
Details
Fixed Issues
$ #27407
PROPOSAL: #27407 (comment)
Tests
Offline tests
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
chrome.mov
Mobile Web - Chrome
mwebChrome.mp4
Mobile Web - Safari
safari.mp4
Desktop
iOS
ios.mp4
Android