[Internal QA]: Add a loader to the cards page while waiting for cards collection and feed settings#52615
Conversation
|
@allgandalf 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] |
|
@narefyev91 lets mark this |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-19.at.1.20.01.AM.movAndroid: mWeb ChromeScreen.Recording.2024-11-19.at.1.16.22.AM.moviOS: NativeScreen.Recording.2024-11-19.at.1.21.35.AM.moviOS: mWeb SafariScreen.Recording.2024-11-19.at.1.23.41.AM.movMacOS: Chrome / SafariScreen.Recording.2024-11-19.at.1.12.05.AM.movMacOS: DesktopScreen.Recording.2024-11-19.at.1.15.19.AM.mov |
allgandalf
left a comment
There was a problem hiding this comment.
LGTM and test well! thanks for the quick work @narefyev91 🙇
|
✋ 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.0.65-0 🚀
|
|
Tested and QA passed! One note, we had removed the loader intentionally from the empty state, because we aren't loading any significant data there (and don't have it for the Expensify Card). I assume this added it back for the empty state too? If it's possible to have it when there are feeds and not for the empty state that would be solid. Otherwise, fine to leave as is. |
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.65-5 🚀
|
| }, [policyID, workspaceAccountID]); | ||
|
|
||
| const {isOffline} = useNetwork({onReconnect: fetchCompanyCards}); | ||
| const isLoading = !isOffline && (!cardFeeds || cardFeeds.isLoading); |
There was a problem hiding this comment.
We should had checked if there is no cardsList present, This missed case caused the loading spinner to show even when we closed the card details RHP and caused the issue #52909. Need to be careful @allgandalf 😓 🙃
Explanation of Change
It was missed correct condition to show loader for online/offline mode for Company cards page
Fixed Issues
$ #52559
PROPOSAL:
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
android.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
web.mov