Loading state perception improvement#57610
Conversation
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
I like it! The reduction in speed definitely makes this feel more calming and less anxious, which helps in setting expectations for when the content might load. |
|
Curious what @Expensify/design thinks too! |
Totally agree—it feels much more chill haha. Into it! |
|
Love the after result and where it's heading!! The static -> animated effect is really smooth when compared to the current version. |
|
🚧 @mountiny has triggered a test hybrid 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! 🧪🧪
|
|
@mountiny https://github.com/Expensify/App/actions/runs/13687734578/job/38274845207 this step is failing and it looks like not related to this PR? |
|
@dukenv0307 just a friendly reminder about my PR 🙏 |
|
Test looks good on adhoc build Screen.Recording.2025-03-07.at.21.16.46.mov |
mountiny
left a comment
There was a problem hiding this comment.
@martasudol great, left couple comments for you
|
Thanks for comments @mountiny - already addressed 👌 |
mountiny
left a comment
There was a problem hiding this comment.
Thanks! @martasudol @dukenv0307 this is quite large PR lower in the stack so please be on a look out for any deploy blockers to be able to address them quickly or we might have to revert (no rush so we would probably prefer revert)
|
✋ 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/mountiny in version: 9.1.11-1 🚀
|
| trialBannerBackgroundColor: colors.green100, | ||
| skeletonLHNIn: colors.productLight400, | ||
| skeletonLHNOut: colors.productLight600, | ||
| skeletonLHNIn: colors.productLight200, |
There was a problem hiding this comment.
Just catching this now - why did we change these colors?
|
Looks like this PR caused this regression: #58284 (comment) |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.13-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.13-5 🚀
|
Explanation of Change
This PR improves loading state perception by:
These changes provide clearer visual feedback during data loading, reducing user confusion and distraction.
Fixed Issues
$ #57604
PROPOSAL:
Background:
Our application uses skeleton loaders and loading bars to indicate data loading. Users spend significant time viewing reports that fetch data from servers.
Problem:
When users interact with reports, the blinking skeleton loader distracts them, and the loading bar fails to appear when partially loaded reports fetch additional data, causing confusion about system status.
Solution:
We will implement two key changes:
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/d6687ad2-98d0-4d0f-b5d4-13c4994dbcabAndroid: mWeb Chrome
https://github.com/user-attachments/assets/8609eb04-a665-40c0-832e-39ef4b15102fiOS: Native
https://github.com/user-attachments/assets/e3ac758e-e589-4a83-87ae-9258401443a8iOS: mWeb Safari
https://github.com/user-attachments/assets/752505e6-709c-4777-9e56-15c7a9ab8586MacOS: Chrome / Safari
https://github.com/user-attachments/assets/ba7b540f-53d3-445e-ab08-b1ce34692d2aMacOS: Desktop
https://github.com/user-attachments/assets/64c8442d-7038-4cbb-9626-f4e0c036b156To improve the user experience, we’ve adjusted the skeleton loader animation to be more subtle and less distracting. The new version animates more slowly and reduces the flickering effect, making the loading state feel smoother and less intrusive.
Before this change:
https://github.com/user-attachments/assets/3610c9e3-ccf8-45e8-87b0-af48bce67526
After this change:
https://github.com/user-attachments/assets/8e55894a-cb5a-4e4e-9653-e37442fee66b