fix: Reports empty state is blank briefly#59711
Conversation
|
@nkdengineer Please fix the prettier. Also, please check if the performance issue is due to our PR. Thanks |
|
@rojiphil i fixed |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari59711-web-chrome-001.mp4MacOS: Desktop59711-desktop-001.mp4Android: Native59711-android-hybrid-001.mp4Android: mWeb Chrome59711-mweb-chrome-001.mp4iOS: Native59711-ios-hybrid-001.mp4iOS: mWeb Safari59711-mweb-safari-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @nkdengineer for the updated PR.
@luacmartins Changes LGTM and works well.
Over to you for final review. Thanks.
| // eslint-disable-next-line react/jsx-props-no-spreading | ||
| {...props} | ||
| source={animationFile} | ||
| key={`${hasNavigatedAway}`} |
There was a problem hiding this comment.
Why are we using a template string? Can we just pass the variable?
There was a problem hiding this comment.
@luacmartins hasNavigatedAway has type 'boolean' and it is not assignable to type 'Key | null | undefined'.
There was a problem hiding this comment.
Thanks for clarifying. That looks a bit odd though, maybe we could have used a different key, but I won't block on that
| // eslint-disable-next-line react/jsx-props-no-spreading | ||
| {...props} | ||
| source={animationFile} | ||
| key={`${hasNavigatedAway}`} |
There was a problem hiding this comment.
Thanks for clarifying. That looks a bit odd though, maybe we could have used a different key, but I won't block on that
|
✋ 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/luacmartins in version: 9.1.27-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.28-15 🚀
|
Explanation of Change
Fixed Issues
$ #59097
#59623
PROPOSAL:
Tests
Go to the Reports tab.
Search for something that does not exist and observe the empty state animation.
Navigate to a different tab, e.g., Settings.
Go back to Search using the Back button.
The empty state animation should be displayed.
Go to Reports.
Go to any status that will return empty state (or perform a search that will return no result).
Tap filters icon.
Swipe back using iOS gesture (not app back button).
Verify that: Reports empty state will not be blank after returning from filters and after renaming the saved search.
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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