-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-10-17] [$250] Book travel - Book travel animation becomes blank while RHP is dismissed #49744
Comments
Triggered auto assignment to @MonilBhavsar ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
don't know what caused it, but def NOT A BLOCKER |
This happens with all the animations, like on the wallet, security, and troubleshoot pages. |
let's close 😄 |
Thanks for looking! Demoting from blocker, but let's try if we can fix it |
ProposalPlease re-state the problem that we are trying to solve in this issue.Default name in name field displays user/report ID instead of user/report name What is the root cause of that problem?This happens as we render an empty view here if the user has navigated away. The issue we set hasNavigatedAway quickly before the RHP animation has been completed. This then shows the user an empty view while RHP is dismissing. What changes do you think we should make in order to solve the problem?We will change the state change here: to run after interactions, which will make it wait for the animation to be completed: App/src/components/Lottie/index.tsx Lines 82 to 88 in a4a344b
InteractionManager.runAfterInteractions(() => {
setHasNavigatedAway(true);
}); ResultScreen.Recording.2024-09-26.at.2.36.22.AM.mov |
@MonilBhavsar @neonbhai the reasons mentioned here suggest that we should do nothing. Or it may cause issues 1, 2, 3 But I guess that is only the case when the image hasn't loaded App/src/components/Lottie/index.tsx Lines 82 to 88 in a4a344b
|
Since this was reported as a regression, may be it comes from #48040 🤔 |
Not reproducible after reverting #48040 |
No. It came from this one (#48444). It shows empty view while navigating away. App/src/components/Lottie/index.tsx Line 88 in 33818a9
Long story short, While working on #48040 with @Krishna2323, we found a bug, and it from PR of #47273, I commented there #47273 (comment). After that, the contributor of #47273 submitted another PR to fix the issue that we found which is #48444 |
It's because we used static images for the BookTravel placeholder before. We switched to use LottieAnimation recently that's why you saw this issue. This issue will happen with any RHP that has Lottie animation because we hide them while navigating away to fix #47273 |
@hungvu193 Previously, playing animations in the background made the user interface unresponsive (#47273), so we stopped them after navigating away. Now, after some updates in the app (possibly the RN upgrade), performance has improved. Although background animations still consume CPU, they no longer make the interface unresponsive. If the high CPU usage is acceptable, we could allow animations to play in the background again. cc @suneox |
@hungvu193 I have another comment to verify behavior on PR still works as expected after your comment
Nope, the PR is fix crashed issue
Before this PR, we didn’t have any use cases similar to this issue.
@MonilBhavsar Actually, I don’t think the PR from 2 weeks ago is a regression of the new feature because, at the time of the old PR, we didn’t have any context for the new feature. So, I believe this should be considered a new issue, and the scope of the old PR doesn’t cover the new one. |
@QichenZhu I believe our PR shouldn’t cover the new feature introduced several weeks later, so you can go provide a new proposal for this issue. |
@suneox Hey I'm not trying to be picky here. This issue is clearly a regression from #48444. Screen.Recording.2024-09-28.at.18.47.17.movScreen.Recording.2024-09-28.at.18.50.38.movThat means, QA didn't find it during regression period of #48444. Since regression period was over for #48444. We can consider this as a new issue. |
@hungvu193 Yes, you're right that similar issues exist on other pages too. It wasn’t considered a problem before, probably because it’s not noticeable to the human eye. I have to use a slow motion camera to catch it. Why is this issue noticeable on the travel page? Because the page slides out more softly. Below is a comparison video of the Preference and Travel pages at 16x slower speed. animation.mp4 |
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @layacat You have been assigned to this job! |
Thanks for assigning. I'll raise PR today! |
I created PR #50199 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.47-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-17. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Summarizing payment on this issue: Contributor: @layacat $250, please apply to the Upwork job or comment with your Upwork profile @suneox please complete the BZ checklist. |
Hi @sakluger I submitted work on Upwork, please check |
Checklist
|
@layacat thanks! I didn't realize you had already applied. I sent an offer via Upwork. |
I just submitted work for payment on Upwork. Please check |
Perfect, thanks! All contracts have been paid out now. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.40-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+kh230901@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Book travel animation will not become blank while RHP is dismissed
Actual Result:
Book travel animation becomes blank while RHP is dismissed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6615160_1727291080522.20240926_020845.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @saklugerThe text was updated successfully, but these errors were encountered: