Static skeleton loader for offline reports#58079
Conversation
|
@fedirjh Can you please jump on the review? Thanks! @martasudol there are conflicts |
|
Yeah, that seems incorrect to me - I thought we would just use standard skeleton rows that were static? |
|
This empty state is displayed when there are no messages already fetched and user is offline. That was done in the previous task and somehow I also feel it doesn't fit here well. Maybe just static skeleton would be the option here too? So to simplify this:
|
|
Hmm personally I don't think that empty state makes sense for chats. I would say we should never be showing an empty state like that in any chat room. |
|
@shawnborton understandable. Do you think static skeleton also in this case is proper approach? |
|
That would be fine with me personally, let's see if @Expensify/design agrees though! |
Same! |
|
Got it, already modified so right now in this case we show static skeleton for the whole report section 👌 also updated recordings in the PR description so you can take a look! |
|
Videos look good to me! And then once your other PR with color changes gets merged, I assume the skeletons will appear a bit darker (which I think is a good thing, they are quite faint right now). |
|
Exactly @shawnborton - actually, PR with color changes is already merged (#58200) |
|
Sounds good! Anyways all good on my end, I think we can start the final review of this one. |
Me three |
|
@fedirjh could you please review it? 🙏 |
Reviewer Checklist
Screenshots/VideosiOS: mWeb SafariCleanShot.2025-03-14.at.05.33.26.mp4MacOS: Chrome / SafariCleanShot.2025-03-13.at.16.43.08.mp4MacOS: DesktopCleanShot.2025-03-13.at.17.08.03.mp4 |
|
Can we pull main into the branch? I am seeing the old gap in the report header that we ended up reverting: Or maybe @fedirjh you need to pull again. I will also run a test build for us. |
|
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
|
@shawnborton please wait a liitle bit with build, I'm addressing @fedirjh comments. |
|
Ah oopsies - but no worries, just let me know when you want me to rebuild again! |
This comment has been minimized.
This comment has been minimized.
|
@shawnborton we're good to go with build 👌 |
|
Coming right up 🚀 |
|
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
@fedirjh @shawnborton, just a gentle reminder about the review 🙏 |
|
@fedirjh can you please begin final review of this? @martasudol are the videos in your OP above up to date with the latest styles? |
|
@shawnborton just updated |
Screenshots/VideosAndroid: NativeCleanShot.2025-03-18.at.20.58.26.mp4Android: mWeb ChromeCleanShot.2025-03-18.at.21.03.17.mp4iOS: NativeSimulator.Screen.Recording.-.iPhone.16.Pro.-.2025-03-18.at.19.44.29.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.16.Pro.-.2025-03-18.at.20.04.48.mp4MacOS: Chrome / SafariCleanShot.2025-03-17.at.19.26.16.mp4MacOS: DesktopCleanShot.2025-03-17.at.20.10.41.mp4 |
fedirjh
left a comment
There was a problem hiding this comment.
LGTM.
Over to you @shawnborton
|
Videos look good to me, cc @MariaHCD for final review - thanks! |
|
✋ 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/MariaHCD in version: 9.1.16-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.16-4 🚀
|








Explanation of Change
In offline state, chat history is blank except for the last message at the bottom of a page. It doesn't look user-friendly so with this change the flow is the following:
This will result in no blank spaces & informative workflow that lets you know what's going on.
Fixed Issues
$#57593
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
https://github.com/user-attachments/assets/6a5e6e33-c42f-4c37-aa03-95aa1b558f9dAndroid: mWeb Chrome
https://github.com/user-attachments/assets/a646ba27-31f9-41a2-a56f-6a986fc2b11aiOS: Native
https://github.com/user-attachments/assets/67cbaf04-53b8-47fb-b4ea-0234fc29114ciOS: mWeb Safari
https://github.com/user-attachments/assets/dc6074fa-3094-4b71-8dd2-a92f68ea7cd9MacOS: Chrome / Safari
https://github.com/user-attachments/assets/5822d194-4633-488a-97fd-5574e9b95f25MacOS: Desktop
https://github.com/user-attachments/assets/8dc103ec-d0fa-475a-88d2-e27562bf745b