-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Reports empty state is blank briefly #59711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nkdengineer for the updated PR.
@luacmartins Changes LGTM and works well.
Over to you for final review. Thanks.
@@ -103,6 +103,7 @@ function Lottie({source, webStyle, shouldLoadAfterInteractions, ...props}: Props | |||
// eslint-disable-next-line react/jsx-props-no-spreading | |||
{...props} | |||
source={animationFile} | |||
key={`${hasNavigatedAway}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we using a template string? Can we just pass the variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luacmartins hasNavigatedAway
has type 'boolean' and it is not assignable to type 'Key | null | undefined'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying. That looks a bit odd though, maybe we could have used a different key, but I won't block on that
@@ -103,6 +103,7 @@ function Lottie({source, webStyle, shouldLoadAfterInteractions, ...props}: Props | |||
// eslint-disable-next-line react/jsx-props-no-spreading | |||
{...props} | |||
source={animationFile} | |||
key={`${hasNavigatedAway}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop