Fix infinite loading in Reports page after going online#71483
Conversation
|
I'm still having trouble running the iOS |
|
Not sure how to show the test tools modal on mWeb using the shortcut. Is it possible? android.mweb.mp4 |
Codecov Report❌ Patch coverage is
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-03.at.00.36.40.mp4Screen.Recording.2025-10-03.at.00.11.08.mp4Android: mWeb ChromeScreen.Recording.2025-10-03.at.00.14.02.mp4Screen.Recording.2025-10-03.at.00.35.19.mp4iOS: HybridAppScreen.Recording.2025-10-03.at.00.12.12.mp4iOS: mWeb SafariScreen.Recording.2025-10-03.at.00.13.15.mp4MacOS: Chrome / SafariScreen.Recording.2025-10-03.at.00.18.20.mp4MacOS: DesktopScreen.Recording.2025-10-03.at.00.16.51.mp4 |
|
@bernhardoj Could you please verify the merge with the latest main branch on iOS native? The offline message doesn't show up after going offline, and the search results don't appear when coming back online. Screen.Recording.2025-10-03.at.00.43.53.mp4 |
|
Merged with main |
@bernhardoj Could you please double-check this issue still happens after merging with the latest main? |
|
I can't repro the issue. s.mp4 |
@bernhardoj It looks like this also happens on the latest main (we can separate it into another issue). However, after coming back online, the search still triggers, resulting in the “Something went wrong” message. Could you please double-check which PR caused this issue, or we can handle it directly in this one? Screen.Recording.2025-10-12.at.21.31.26.mp4 |
|
I still can't repro it. If it happens on main too, then let's handle it on a separate issue. a.mp4 |
|
@suneox bump |
I lost focus on this one, I’ll double-check it |
Okay, if it happens again it should be separated into another issue. |
|
✋ 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/blimpich in version: 9.2.35-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.2.35-4 🚀
|
| const isMigratedModalDisplayed = focusedRoute?.name === NAVIGATORS.MIGRATED_USER_MODAL_NAVIGATOR || focusedRoute?.name === SCREENS.MIGRATED_USER_WELCOME_MODAL.ROOT; | ||
|
|
||
| if ((!isFocused && !isMigratedModalDisplayed) || isOffline) { | ||
| const comingBackOnlineWithNoResults = prevIsOffline && !isOffline && searchResults === undefined; |
There was a problem hiding this comment.
This condition was not enough. We should use isEmptyObject(searchResults?.data) instead of searchResults === undefined.
More details: #70233 (comment)
Explanation of Change
Fixed Issues
$ #70887
PROPOSAL: #70887 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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))npm run compress-svg)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
iOS: Native
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4