fix: expense turn to empty report when switch to most recent - #74668
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@hungvu193 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] |
Code Review SummaryI've completed a comprehensive inline review of this PR. Changes Reviewed
Result✅ No violations found - The change follows existing code patterns and doesn't introduce any performance anti-patterns. The addition of resetting Key Observations
|
trjExpensify
left a comment
There was a problem hiding this comment.
Nice catch! No qualms from product with the bug fix.
P.S Can you try to make your PR titles more reflective of what code changes the PR is making / fill out the explanation of changes section? Thanks!
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-11.at.18.04.02.movAndroid: mWeb ChromeScreen.Recording.2025-11-11.at.17.21.51.moviOS: HybridAppScreen.Recording.2025-11-11.at.18.14.31.moviOS: mWeb SafariScreen.Recording.2025-11-11.at.16.15.50.movMacOS: Chrome / SafariScreen.Recording.2025-11-11.at.16.07.35.movMacOS: DesktopScreen.Recording.2025-11-11.at.16.13.23.mov |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Looking good
Please address - #74668 (review)
|
@MonilBhavsar i added the |
|
Thanks 👍 |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.2.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.58-3 🚀
|
Explanation of Change
After switching to most recent, when user goes back to the workspace expense chat, we'll call
OpenReportAPI, and we only set thehasOnceLoadedReportActionsto true insuccessData=>shouldShowLoadingis false while we are calling theOpenReportAPI => empty state report is displayed. So we need to addhasOnceLoadedReportActionstooptimisticDataFixed Issues
$ #74056
PROPOSAL: #74056 (comment)
Tests
Precondition: App is on preferences focus mode
Offline tests
Same as 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))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.mov
Android: mWeb Chrome
am.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov