[No QA] Add more context to ActivityIndicator logs#71053
[No QA] Add more context to ActivityIndicator logs#71053Julesssss merged 6 commits intoExpensify:mainfrom
ActivityIndicator logs#71053Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
ActivityIndicator logsActivityIndicator logs
blazejkustra
left a comment
There was a problem hiding this comment.
Solid work, looks good to me 👍
dariusz-biela
left a comment
There was a problem hiding this comment.
In my opinion, using Onyx.connectWithoutView is justified here. The data from it is used only for logs, and components using ActivityIndicator should not be linked to the state of the entire application.
You just need to add a comment next to the new Onyx.connectWithoutView explaining why it can be used here.
|
@QichenZhu will you review this PR or should I? Thank you. |
Hi, we'll skip C+ review as this was internally reviewed by the SWM team. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ 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/Julesssss in version: 9.2.20-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.2.20-4 🚀
|
Explanation of Change
This PR adds more global context to logs that are triggered when loading indicators remain visible longer than
timeoutMs. It also allows for passing local context via props.Example log:
Fixed Issues
$ #69850
PROPOSAL:
Tests
timeoutMsprop to a small value e.g. 0) on any screen that rendersActivityIndicatortimeoutMsand says: "ActivityIndicator has been shown for longer than expected"timeoutMsappStateincluding:navigation,session,network,requestQueues.Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop