-
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
#2 - Fix multiple open report call when report screen is mounted #41427
#2 - Fix multiple open report call when report screen is mounted #41427
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] |
The reason #41307 happens is because if the report is loading, we return an empty report actions. Idk why we decide to do that.
App/src/pages/home/report/ReportActionsView.tsx Lines 165 to 171 in 8661f6a
That's why we don't call OpenReport inside ReportActionsView if we are linking to a message. App/src/pages/home/report/ReportActionsView.tsx Lines 240 to 247 in 8661f6a
So, I decided to do the same. |
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.
👋 Hi, I'm jumping in to review since this seems valuable. The logic for this area is pretty involved and I don't claim to fully understand it, so I'm asking some questions.
Let's pleas also add a lot more tests, such as opening a link to a message, opening an invalid reportID, opening a valid report link, opening a non-existent report link.
Added test for the invalid/non-existing report |
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 your replies. There's still a lot I'm unsure of, so I suggest some more tests to verify the behavior for both yourself and especially us reviewers.
Also please add steps distinguishing between opening an invalid reportID (such as 0
), opening a valid report link, and opening a non-existent report link (some random valid id that doesn't exist). "Open an invalid chat" is a bit vague.
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.
Ok, I think it should be good now. I still don't see a test for reportID 0. Leaving it to C+ and the managing engineer for final approvals and merge.
Checking now |
@bernhardoj The skeleton view is flickering when moving to a report after sign-in. Could you kindly check on this? Screen.Recording.2024-05-07.at.5.36.35.PM.mov |
Thanks for catching that. I found that it happens after we move the cc: @neil-marcellini |
@neil-marcellini Could you kindly check on the above? |
@abdulrahuman5196 I gave a thumbs up, let's put it back outside the interaction task |
@abdulrahuman5196 updated |
Checking now |
@bernhardoj I am seeing multiple openReport calls after signin. Screen.Recording.2024-05-13.at.4.35.45.PM.mp4 |
That's really weird, i can't reproduce that at all. Screen.Recording.2024-05-13.at.20.53.26.mov |
@abdulrahuman5196 would you please re-test and provide specific test steps if you still experience the bug? |
Checking now again |
After latest merge I don't see this issue - #41427 (comment) Finishing checklist. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-15.at.12.04.24.AM.mp4Android: mWeb ChromeScreen.Recording.2024-05-15.at.12.05.59.AM.mp4iOS: NativeScreen.Recording.2024-05-14.at.11.57.43.PM.mp4iOS: mWeb SafariScreen.Recording.2024-05-15.at.12.02.06.AM.mp4MacOS: Chrome / SafariScreen.Recording.2024-05-14.at.11.40.07.PM.mp4MacOS: DesktopScreen.Recording.2024-05-14.at.11.44.05.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. @neil-marcellini / @flodnv
🎀 👀 🎀
C+ Reviewed
🚀 Deployed to staging by https://github.com/flodnv in version: 1.4.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.74-6 🚀
|
Details
We call OpenReport in both ReportScreen and ReportActionsView. This PR fix it.
Fixed Issues
$ #41307
$ #39673
PROPOSAL: #39673 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Web/Desktop
Android/iOS/mWeb
Next test for all platforms
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-05-01.at.23.16.39.mov
Screen.Recording.2024-05-02.at.16.03.40.mov
Screen.Recording.2024-05-03.at.14.59.54.mov
Android: mWeb Chrome
Screen.Recording.2024-05-01.at.22.38.29.mov
Screen.Recording.2024-05-02.at.16.05.32.mov
Screen.Recording.2024-05-03.at.15.06.16.mov
iOS: Native
Screen.Recording.2024-05-01.at.22.44.22.mov
Screen.Recording.2024-05-02.at.16.08.40.mov
Screen.Recording.2024-05-03.at.15.02.43.mov
iOS: mWeb Safari
Screen.Recording.2024-05-01.at.22.25.39.mov
Screen.Recording.2024-05-02.at.16.07.22.mov
Screen.Recording.2024-05-03.at.15.01.17.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-01.at.19.19.58.mov
Screen.Recording.2024-05-02.at.15.58.35.mov
Screen.Recording.2024-05-03.at.14.58.16.mov
MacOS: Desktop
Screen.Recording.2024-05-01.at.22.17.51.mov
Screen.Recording.2024-05-02.at.16.02.30.mov
Screen.Recording.2024-05-03.at.14.59.12.mov