-
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
fix: Show top report skeleton when offline #31492
fix: Show top report skeleton when offline #31492
Conversation
Show animation always.
07e5fa0
to
e267885
Compare
@getusha a friendly bump on this PR |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-27.at.11.21.40.PM.movAndroid: mWeb ChromeScreen.Recording.2023-11-27.at.11.25.25.PM.moviOS: NativeScreen.Recording.2023-11-27.at.11.12.19.PM.moviOS: mWeb SafariScreen.Recording.2023-11-27.at.11.26.23.PM.movMacOS: Chrome / SafariScreen.Recording.2023-11-27.at.11.29.59.PM.movMacOS: DesktopScreen.Recording.2023-11-27.at.11.36.30.PM.mov |
@paultsimura i am seeing this when the report do not have much report items. It Looks fine, i was wondering if we want the skeleton to fill the screen. |
@getusha I believe, it's coming from the @shawnborton what would you say about such UI here? #31492 (comment) |
Hmm yeah, a couple more skeleton messages might be nice to fill the screen a bit more. cc @Expensify/design in case they disagree :) |
I don't think we have a truly flexible solution here: it's either a fixed number of skeleton rows (which used to be 3) or a skeleton that takes the whole screen height: Whole height
long-skeleton.movI tried to increase the fixed height to 5, but it still won't work for all the cases, let's say we have 3 items loaded, the 5 lines look OK: 5-lines-mobile.movBut if we have only 1 item loaded, then 5 lines won't be enough, especially on web: 5-lines-web.movShould we want to use the full-height skeleton for the initial data loading? |
What does this mean exactly? Otherwise can we just pick a higher number, like 7? If it doesn't work perfectly everywhere, that's okay - as long as it covers most of the cases. |
This value is set to This is how the screen looks when we are loading the initial report actions and there are no pre-loaded actions: Maybe we could go with the same approach and append the full-height skeleton even if we have some of the actions (though it will be scrollable): Otherwise, I'll go with the fixed @shawnborton it's up to you ☝️ |
I don't feel too strongly, I'd say whatever our C+/engineer thinks is the best approach works for me. |
Got it. @getusha your shot, please |
I think if it's the same on main/production, we can leave it as it is because it's a design choice. |
That works for me |
@getusha in this case, I think the PR can be approved if the rest LGTY? |
@paultsimura the author PR checklist check is failing, can you make sure the PR has up-to-date checklist content? |
@getusha 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.
Looks good, works well.
Just an FYI: I think I finally figured out why it was decided to use the 3-lines-high skeleton when loading the initial report data. cc: @getusha @shawnborton |
Considering the conversation above, @getusha @paultsimura are we fine to proceed then? |
From my POV – yes |
✋ 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/aldo-expensify in version: 1.4.7-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.7-4 🚀
|
Details
Show the top report skeleton when offline & the beginning of the history is not loaded.
Also, show the skeleton animation always regardless of the network state: #31367 (comment)
Fixed Issues
$ #31367
$ #30503
PROPOSAL: #31367 (comment)
Tests
Same as QA
Offline tests
Same as QA
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
android-compressed.mp4
Android: mWeb Chrome
chrome-compressed.mp4
iOS: Native
iOS.mp4
iOS: mWeb Safari
safari.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4