-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Display skeleton avtar while loading #30625
Conversation
@dukenv0307 I've noticed that unlike other loaders, this skeleton doesn't have a shine effect. Could you please add that to ensure consistency? |
Regarding the review, I will be out of the office starting tomorrow and throughout this week, returning on Monday. |
@ArekChr Updated to skeleton avatar. |
I was OOO, reviewing |
@dukenv0307 could you update the branch with the latest main? Thanks! |
@shawnborton The issue doesn't seem to happen on the main branch anymore. It looks like it's been sorted out. Should we proceed with this pull request, or is it okay as it is now on staging? Here is how it is currently on the staging: main.movHere's what the PR changes look like: pr.mov |
Updated to the latest main. |
@shawnborton Any thought on the comment above? |
I like the PR changes you have proposed here with the skeleton loader on the avatar. cc @Expensify/design for visibility. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb ChromeiOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
src/components/AvatarSkeleton.js
Outdated
import SkeletonViewContentLoader from './SkeletonViewContentLoader'; | ||
|
||
const propTypes = { | ||
/** */ |
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.
Missing comment here
src/components/AvatarSkeleton.js
Outdated
}; | ||
|
||
const defaultTypes = { | ||
shouldAnimate: true, |
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.
Is this prop needed at all?
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.
We can add this to re-use without animation in the feature.
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.
Let's remove it for now. If it's needed in the future, we can implement it then.
src/components/AvatarSkeleton.js
Outdated
import SkeletonViewContentLoader from './SkeletonViewContentLoader'; | ||
|
||
const propTypes = { | ||
/** Whether enable animtaion */ |
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.
/** Whether enable animtaion */ | |
/** Indicates if the animation should be enabled. */ |
@ArekChr Updated to remove the prop. |
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.3.99-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.99-0 🚀
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.4.0-0 🚀
|
Details
Display skeleton avtar while loading
Fixed Issues
$ #28638
PROPOSAL: #28638 (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)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
Screen.Recording.2023-10-31.at.15.18.15.mov
Android: mWeb Chrome
Screen.Recording.2023-10-31.at.15.10.23.mov
iOS: Native
Screen.Recording.2023-10-31.at.15.15.19.mov
iOS: mWeb Safari
Screen.Recording.2023-10-31.at.15.12.05.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-31.at.15.03.08.mov
MacOS: Desktop
Screen.Recording.2023-10-31.at.15.21.07.mov