-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Internal QA]: Add a loader to the cards page while waiting for cards collection and feed settings #52615
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and test well! thanks for the quick work @narefyev91 🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, 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/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 🚀
|
@@ -46,10 +46,13 @@ function WorkspaceCompanyCardPage({route}: WorkspaceCompanyCardPageProps) { | |||
CompanyCards.openPolicyCompanyCardsPage(policyID, workspaceAccountID); | |||
}, [policyID, workspaceAccountID]); | |||
|
|||
const {isOffline} = useNetwork({onReconnect: fetchCompanyCards}); | |||
const isLoading = !isOffline && (!cardFeeds || cardFeeds.isLoading); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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