[CP Staging] Fix infinite loading when creating invoice or expense in offline mode#63995
Conversation
|
@DylanDylann 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] |
|
Might this also fix this issue? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build on android Android: mWeb ChromeScreen.Recording.2025-06-11.at.10.56.40.PM.moviOS: HybridAppScreen.Recording.2025-06-11.at.11.03.27.PM.moviOS: mWeb SafariScreen.Recording.2025-06-11.at.10.52.26.PM.movMacOS: Chrome / SafariScreen.Recording.2025-06-11.at.10.42.25.PM.movScreen.Recording.2025-06-11.at.10.44.32.PM.movMacOS: DesktopScreen.Recording.2025-06-11.at.10.49.29.PM.mov |
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Thanks @allroundexperts. Merging and will cherry-pick |
…finite-loading-when-creating-invoice-offline [CP Staging] Fix infinite loading when creating invoice or expense in offline mode (cherry picked from commit d38871f) (cherry-picked to staging by Beamanator)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.1.64-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.64-5 🚀
|
Explanation of Change
Fixed Issues
$ #63916
$ #63960
$ #63959
PROPOSAL:
Tests
Test fix for "Invoice- Skeleton loading on the first time created invoice offline":
Turn off internet
Tap on FAB
Tap Send invoice
Complete send invoice flow
Invoice room should display without error
Test fix for "Expense - After submitting track expense to workspace offline, app loads infinitely"
Create a workspace.
Go to self DM.
Go offline.
Submit a track expense to self DM.
Click Submit it to someone.
Select the workspace.
On confirmation page, enter Merchant and click Create expense.
Workspace room should display without error
Offline tests
QA Steps
Same as tests
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
Screen.Recording.2025-06-11.at.17.51.23.mov
Screen.Recording.2025-06-11.at.17.55.54.mov
MacOS: Desktop