-
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
Fix multiple open report call when report screen is mounted #40624
Fix multiple open report call when report screen is mounted #40624
Conversation
@abdulrahuman5196 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] |
On a small screen, logging in won't call OpenReport since there is no report screen mounted which is different with a large screen. So, I only test opening some reports and verify the OpenReport call is still only called once.
@abdulrahuman5196 can you tell me how to reproduce this? so I can take a look. Thanks! |
Checking now |
I didn't see this issue yesterday. Will check again and approve if no other issues. |
Screen.Recording.2024-04-26.at.9.57.18.PM.movFor some reports I am still seeing OpenReport being called twice after fresh signin. I suspect reports with partial skeleton loading is still calling OpenReport twice. Could you check on this @bernhardoj ? |
Looks like it's coming from this temporary code App/src/pages/home/report/ReportActionsView.tsx Lines 394 to 410 in 10fc359
From your video, I can see at least 2 satisfied conditions, I think we can ignore it for now since it's a temporary code and the author already commented that it will be removed in the future. Btw, idk how to reproduce it |
Got it. Verified and seems its the cause. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-29.at.5.33.34.PM.mp4Android: mWeb ChromeScreen.Recording.2024-04-29.at.5.37.29.PM.mp4iOS: NativeScreen.Recording.2024-04-29.at.5.27.56.PM.mp4iOS: mWeb SafariScreen.Recording.2024-04-29.at.5.30.06.PM.mp4MacOS: Chrome / SafariScreen.Recording.2024-04-29.at.5.15.14.PM.mp4MacOS: DesktopScreen.Recording.2024-04-29.at.5.17.58.PM.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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @flodnv
🎀 👀 🎀
C+ Reviewed
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/flodnv in version: 1.4.68-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
[CP Staging] Revert PR #40624, fix flickering when switching from task to parent
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.68-3 🚀
|
🚀 Deployed to staging by https://github.com/flodnv in version: 1.4.69-0 🚀
|
This PR is failing because of issue #39673 The issue is tested in: Web, mWeb and Desktop 1714550211587.Screen_Recording_2024-05-01_at_10.52.39_in_the_morning.mp41714550449687.Screen_Recording_2024-05-01_at_10.59.20_in_the_morning.mp41714550449687.Screen_Recording_2024-05-01_at_10.59.20_in_the_morning.1.mp4 |
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.69-2 🚀
|
Details
We call OpenReport in both ReportScreen and ReportActionsView. This PR fix it.
Fixed Issues
$ #39673
PROPOSAL: #39673 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Web/Desktop
Android/iOS/mWeb
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Screen.Recording.2024-04-20.at.14.02.00.mov
Android: mWeb Chrome
Screen.Recording.2024-04-20.at.14.06.15.mov
iOS: Native
Screen.Recording.2024-04-20.at.13.58.34.mov
iOS: mWeb Safari
Screen.Recording.2024-04-20.at.13.59.27.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-20.at.13.52.31.mov
MacOS: Desktop
Screen.Recording.2024-04-20.at.13.54.01.mov