Show green loader everywhere while showing skeleton loaders on the Reports page - #59578
justinpersaud merged 6 commits into
Conversation
|
@thesahindia 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] |
| shouldDisplaySearch?: boolean; | ||
| shouldDisplayHelpButton?: boolean; | ||
| cancelSearch?: () => void; | ||
| forceShowLoadingBar?: boolean; |
There was a problem hiding this comment.
Rename it to "shouldShowLoadingBar"
| } | ||
| const searchResults = currentSearchResults?.data ? currentSearchResults : lastNonEmptySearchResults; | ||
|
|
||
| const isDataLoaded = |
There was a problem hiding this comment.
@thesahindia I updated PR below. Pls help to check again.
|
I can see the loader even when not connected to the internet. Screen.Recording.2025-04-08.at.6.44.41.PM.mov@shawnborton, should the loading bar appear in the LHN and the chat screen? |
|
I think on mobile, yes. What you are showing above seems correct to me? cc @Expensify/design for the gut check. |
Agree |
cc: @thelullabyy |
|
@thesahindia I suppose that your case App/src/components/Navigation/TopBar.tsx Line 32 in e8ac1a0 |
I think we should to keep the behaviour same. |
|
@shawnborton @dannymcclain, the loader shouldn't appear when the app is offline. Is that correct? |
🤔 Hmm, I don't think it should since we're not actually trying to fetch/load anything, right? |
|
I can see in theory that if we know you are online, there is no sense in showing the green loading bar because it would just sit there and pulse forever, even though it can't actually finish up. That being said, we currently display the green loading bar when offline on staging. So we could technically handle that as a follow up, since it's a bug that already exists. Or we can handle it here if you would like. |
cc: @thelullabyy |
|
Yeah, I don't mind where we solve it, but agree that it's generally weird if we show the green bar when we you're fully in offline mode. |
|
@thesahindia Thanks to clarify, i will update PR asap |
|
@thesahindia I update the PR and here is the result, can you take a look. Screen.Recording.2025-04-10.at.16.35.22.mov |
|
@thelullabyy, the issue is still reproducible. Steps to repro:
Screen.Recording.2025-04-10.at.7.13.02.PM.mov@thelullabyy, You can revert the recent changes since this case is out of scope. We can address this in a separate issue. |
|
@thesahindia completed. Pls help to check again. Thanks |
|
Will test again on monday. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-10.at.7.35.29.PM.movAndroid: mWeb ChromeScreen.Recording.2025-04-10.at.6.21.32.PM.moviOS: NativeiOS: mWeb SafariScreen.Recording.2025-04-10.at.6.59.58.PM.movMacOS: Chrome / SafariScreen.Recording.2025-04-08.at.5.52.11.PM.movMacOS: DesktopScreen.Recording.2025-04-08.at.5.47.14.PM.mov |
|
✋ 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/justinpersaud in version: 9.1.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.28-15 🚀
|
Explanation of Change
Fixed Issues
$#59261
PROPOSAL:#59261 (comment)
Tests
Offline tests
QA Steps
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
0f0602c9-9b71-4866-bc13-8f63335ab9d0.mp4
Android: mWeb Chrome
android_chorme.mov
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
chorme.mov
MacOS: Desktop
desktop.mov