-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[TS Migration] Migrate CurrentUserPersonalDetailsSkeletonView to TypeScript #30441
[TS Migration] Migrate CurrentUserPersonalDetailsSkeletonView to TypeScript #30441
Conversation
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, but let's remove [No QA]
from PR's title as it can be tested by QA
@JKobrynski Update QA Steps section in the description 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: Native30441.Android.webmAndroid: mWeb Chrome30441.mWeb.Chrome.webmiOS: Native30441.iOS.mp4iOS: mWeb Safari30441.mWeb.Safari.mp4MacOS: Chrome / Safari30441.Web.movMacOS: Desktop30441.Desktop.mov |
Hi @JKobrynski, could you share how you are showing the skeleton? I have tried to slow my connection, but it doesn't work it only shows a blank page. I believe it's because of this early return. App/src/pages/settings/InitialSettingsPage.js Lines 326 to 331 in 3eb119d
It prevent the skeleton from appearing. App/src/pages/settings/InitialSettingsPage.js Lines 334 to 339 in 3eb119d
|
@mollfpr to make 100% sure it would still look correctly, I modified the code, so it's shown no matter what. |
import React from 'react'; | ||
import SkeletonViewContentLoader from 'react-content-loader/native'; |
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.
This component loader only works on the native platform.
import SkeletonViewContentLoader from 'react-content-loader/native'; | |
import SkeletonViewContentLoader from '@components/SkeletonViewContentLoader'; |
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.
Updated!
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 👍
I think we should make it clear for the QA to modify the code to test the component. I don't see any clear test case to test it out because of a condition that prevents the component from showing.
For example:
diff --git a/scripts/start-android.sh b/scripts/start-android.sh
old mode 100644
new mode 100755
diff --git a/src/pages/settings/InitialSettingsPage.js b/src/pages/settings/InitialSettingsPage.js
index bc395b47bf..8b3e13c80a 100755
--- a/src/pages/settings/InitialSettingsPage.js
+++ b/src/pages/settings/InitialSettingsPage.js
@@ -331,7 +331,7 @@ function InitialSettingsPage(props) {
}
const headerContent = (
<View style={[styles.avatarSectionWrapper, styles.justifyContentCenter]}>
- {_.isEmpty(props.currentUserPersonalDetails) || _.isUndefined(props.currentUserPersonalDetails.displayName) ? (
+ {!_.isEmpty(props.currentUserPersonalDetails) || _.isUndefined(props.currentUserPersonalDetails.displayName) ? (
<CurrentUserPersonalDetailsSkeletonView
backgroundColor={themeColors.appBG}
avatarSize={CONST.AVATAR_SIZE.XLARGE}
✋ 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/marcaaron in version: 1.3.98-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.98-5 🚀
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.3.99-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀
|
Details
Fixed Issues
$ #25052
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as Tests section above
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
Android: Native
android.webm
iOS: Native
ios.mp4
iOS: mWeb Safari
safari.mp4
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov