-
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 deep linking to reports after signing in #43307
Conversation
a7e3d7e
to
800a624
Compare
I'm only able to test this on web atm. Attempting to deep link on mobile gave me this error
It's working well on web where this was reported so posting this for review anyway |
Reviewer Checklist
Screenshots/VideosAndroid: NativedeeplinkAndroid.mp4Android: mWeb ChromedeeplinkAndroidmWeb.mp4iOS: NativedeeplinkiOS.mp4iOS: mWeb SafarideeplinkiOSmWeb.mp4MacOS: Chrome / SafarideeplinkChrome.mp4MacOS: Desktop |
This warning has always appeared whenever I opened a deeplink on iOS and Android with |
Thanks for the tip, let me see if I can fix the |
Alright that issue should be fixed now. Ready for another review @c3024 |
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.
Tests well and code changes LGTM!
@roryabraham 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] |
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/roryabraham in version: 9.0.2-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
@@ -378,7 +381,7 @@ function ReportScreen({ | |||
return reportIDFromRoute !== '' && !!report.reportID && !isTransitioning; | |||
}, [report, reportIDFromRoute]); | |||
|
|||
const isLoading = !reportIDFromRoute || (!isSidebarLoaded && !isReportOpenInRHP) || PersonalDetailsUtils.isPersonalDetailsEmpty(); | |||
const isLoading = isLoadingApp ?? (!reportIDFromRoute || (!isSidebarLoaded && !isReportOpenInRHP) || PersonalDetailsUtils.isPersonalDetailsEmpty()); |
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.
FYI, This caused a regression where the list doesn't scroll to the linked report action. This happens because isLoadingApp
is false
and that’s why the ??
operator doesn’t execute the right hand side. So the solution is to use ||
operator, so that the right hand side is evaluated if LHS is false. This was fixed here.
Details
Fixes an issue where we attempt to load a report before the app is done loading, causing the
OpenReport
response to be dropped.Fixed Issues
$ #42753
Tests
Offline tests
None
QA Steps
Same as Tests
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-20240619-103742.mp4
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-06-19.at.10.44.32.AM.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-06-17.at.4.16.01.PM.mov
MacOS: Desktop