Feat: Implement loading skeleton small screen width#43652
Conversation
|
Pinging @Expensify/design for review here. |
|
Looks pretty good! I'm going to spin up a test build for easier testing. |
|
Another thing I noticed is that our desktop loading skeleton isn't quite accurate - it should also have the colored background behind it to simulate the table row cards that would show up. Something like this: @luacmartins perhaps we could increase the bounty and address that here as well? |
| }; | ||
|
|
||
| const circleRadius = 8; | ||
| const padding = 12; |
There was a problem hiding this comment.
I think the padding on mobile for these cards is 12 vertical, and 16 horizontal.
There was a problem hiding this comment.
@shawnborton Can you share the design about the "padding" you mentioned above?
| renderSkeletonItem={() => ( | ||
| <> | ||
| <Circle | ||
| cx={padding + circleRadius} |
There was a problem hiding this comment.
Instead of doing any fancy math here, can we just say that this should be 16x16?
There was a problem hiding this comment.
The fancy math will help me when debugging. I will remove these once we do not have a design change any more. Also, in this case, padding + circleRadius = 16
| <Rect | ||
| x={padding + circleRadius * 2 + 4} | ||
| y={padding + circleRadius - 2} | ||
| width={windowWidth * 0.2} |
There was a problem hiding this comment.
Could we just give this a fixed width of 40?
There was a problem hiding this comment.
This doesn't match the Figma design though. Can you double check? The receipt icon is 36x40.
This comment has been minimized.
This comment has been minimized.
|
But this in a quick Figma file for easier inspection too. |
luacmartins
left a comment
There was a problem hiding this comment.
Looking good. I agree with @shawnborton's comments. We need to adjust some of the values and also I think we should remove a lot of the math and just set fixed values for these.
|
I will add the fixed values once there is no design that needs to be updated. The math helps me a lot of when debugging. |
|
Can you please review the Figma file here to make sure you are using the exact measurements? Thanks! |
luacmartins
left a comment
There was a problem hiding this comment.
@truph01 is this ready for review again?
|
Hmm any idea why iOS failed to build? |
|
Anyways let's start reviewing this and getting some screenshots. Thanks! |
luacmartins
left a comment
There was a problem hiding this comment.
Code LGTM. I kicked off another test build. Let's get this one wrapped up!
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
@truph01 Please add test steps to the OP. Thanks. |
|
@akinwale I added the test steps |
|
Sorry for the late comment, but I realized that this component should actually be 108px tall. We need an extra 8px of gap between the top header row and the bottom content: This way it will match up perfectly with our changes here: #43733 |
|
@truph01 seems like we have to make some small adjustments |
@shawnborton I updated it. Here is result: |
|
Looks good to me. Let's get this thing into final review! |
Reviewer Checklist
Screenshots/VideosAndroid: Native43652-android-native.mp4Android: mWeb Chrome43652-android-chrome.mp4iOS: Native43652-ios-native.mp4iOS: mWeb Safari43652-ios-safari.mp4MacOS: Chrome / Safari43652-web.mp4MacOS: Desktop43652-desktop.mp4 |
|
Screenshots look good! |
|
✋ 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/luacmartins in version: 9.0.2-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|








Details
Fixed Issues
$ #43395
PROPOSAL: #43395 (comment)
Tests
Mobile device
Desktop device
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-06-13.at.19.01.45.mov
Android: mWeb Chrome
Screen.Recording.2024-06-13.at.19.00.56.mov
iOS: Native
Screen.Recording.2024-06-13.at.19.17.31.mov
iOS: mWeb Safari
Screen.Recording.2024-06-13.at.18.59.19.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-13.at.18.55.17.mov
MacOS: Desktop
Screen.Recording.2024-06-13.at.19.02.34.mov