-
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
Redundant OpenReport requests when opening a thread #51710
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeopenAndroid.mp4Android: mWeb ChromeopenAndroidmWeb.mp4iOS: NativeopeniOS.mp4iOS: mWeb SafariopeniOSmWeb.mp4MacOS: Chrome / SafariopenChrome.mp4MacOS: DesktopopenDesktop.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.
LGTM!
✋ 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/tgolen in version: 9.0.57-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.57-10 🚀
|
Explanation of Change
This condition is changed wrongly from the init logic here causing an unnecessary
OpenReport
API to be called. So we should update this to the init logicApp/src/pages/home/ReportScreen.tsx
Lines 580 to 585 in 65fa00a
Fixed Issues
$ #51680
PROPOSAL: #49162 (comment)
Tests
OpenReport
API is calledOffline tests
None
QA Steps
OpenReport
API is calledPR 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-10-30.at.09.56.50.mov
Android: mWeb Chrome
Screen.Recording.2024-10-30.at.09.40.12.mov
iOS: Native
Screen.Recording.2024-10-30.at.10.00.25.mov
iOS: mWeb Safari
Screen.Recording.2024-10-30.at.09.41.34.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-30.at.09.40.12.mov
MacOS: Desktop
Screen.Recording.2024-10-30.at.10.02.56.mov