[CP Staging] Fix categories settings page always show loader when open the page#50226
Conversation
| }, [props.policy?.id, isConnectionDataFetchNeeded]); | ||
|
|
||
| if ((isConnectionDataFetchNeeded || isFetchingData) && shouldBlockView) { | ||
| if ((isConnectionDataFetchNeeded || isFetchingData || isOnyxDataLoading) && shouldBlockView) { |
There was a problem hiding this comment.
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.
@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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.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