-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[CP Staging] Fix categories settings page always show loader when open the page #50226
[CP Staging] Fix categories settings page always show loader when open the page #50226
Conversation
@@ -55,7 +55,7 @@ function withPolicyConnections<TProps extends WithPolicyConnectionsProps>(Wrappe | |||
openPolicyAccountingPage(props.policy.id); | |||
}, [props.policy?.id, isConnectionDataFetchNeeded]); | |||
|
|||
if ((isConnectionDataFetchNeeded || isFetchingData) && shouldBlockView) { | |||
if ((isConnectionDataFetchNeeded || isFetchingData || isOnyxDataLoading) && shouldBlockView) { |
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.
There will be a loading indicator if the onyx data isn't loaded yet, so it will show the first time you open the page. (or I believe any page that uses this HOC)
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.
@bernhardoj Is this necessary ? isOnyxDataLoading
check is already included in isConnectionDataFetchNeeded
Edit: I got your point @bernhardoj and it looks good.
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeCleanShot.2024-10-04.at.15.42.56.mp4 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…gs-show-loading-when-open Fix categories settings page always show loader when open the page (cherry picked from commit 98da3ce) (CP triggered by jasperhuangg)
🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 9.0.44-9 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 9.0.44-10 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.44-12 🚀
|
Details
A loader is always shown everytime we open the categories settings page.
Fixed Issues
$ #50212
PROPOSAL: #50212 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4