-
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
Improve flagging the users as texting Concierge from the OldDot on web #37088
Improve flagging the users as texting Concierge from the OldDot on web #37088
Conversation
…ture/35565-improve-flagging-user-texting-concierge
This reverts commit afd0f5f.
…ture/35565-improve-flagging-user-texting-concierge
…ture/35565-improve-flagging-user-texting-concierge
@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] |
Hi, Code seems to be fine. Let me test in my morning and update here. |
REviewing now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/A Android: mWeb ChromeN/A iOS: NativeN/A iOS: mWeb SafariScreen.Recording.2024-02-29.at.4.21.20.PM.mp4MacOS: Chrome / SafariScreen.Recording.2024-02-29.at.4.11.17.PM.mp4MacOS: DesktopN/A |
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. @cristipaval
🎀 👀 🎀
C+ Reviewed
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 @rezkiy37 and @abdulrahuman5196 🙌
✋ 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/cristipaval in version: 1.4.46-0 🚀
|
const exitToRoute = params.get('exitTo') ?? ''; | ||
const {reportID} = ReportUtils.parseReportRouteParams(exitToRoute); | ||
reportIDDeeplinkedFromOldDot = reportID; | ||
const isWeb = ([CONST.PLATFORM.WEB] as unknown as string).includes(getPlatform()); |
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.
this code is not in compliance with our standards for cross-platform code. @rezkiy37 @abdulrahuman5196 @cristipaval please review App Philosophy with particular emphasis on item 5. Then please open a follow-up PR to implement this in a way that's compliant with our code standards. Thanks!
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.
Okay. I will prepare an additional PR. Ty!
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.
I am preparing a PR to fix it.
const {reportID: currentReportID} = ReportUtils.parseReportRouteParams(currentExitToRoute); | ||
|
||
if (!isWeb) { | ||
reportIDDeeplinkedFromOldDot = currentReportID; |
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.
isn't it possible that someone could click a link in OldDot web and have it open a native app?
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.
I tested this scenario a few times. It always opens a browser to handle a deep link. It proposes to open a native app, once you get a report screen opened. Therefore, it does not need to handle the deep link anymore.
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.46-2 🚀
|
Details
The PR improves a flow how the app detects if it was redirected from OldDot. When the user writes to Concierge from the NewDot on the web, the app informs the backend that the user is coming/texting from OldDot. However, the app forgets an initial deep-link if a tab was refreshed. The PR adds a logic to persist the initial deep-link via the sessionStorage.
Fixed Issues
$ #35565
PROPOSAL: #35565 (comment)
Tests
Start Concierge from OldDot web. Also, you can use a next endpoint
/transition?accountID=<ACCOUNT_ID>&email=<LOGIN>&exitTo=r%2F<CONCIERGE_REPORT_ID>&shouldForceLogin=false
.Get redirected to the Concierge chat in NewDot in a new tab.
Send a message to Concierge.
Verify that the API command
AddComment
includesisOldDotConciergeChat
and equalstrue
.Verify that in the Concierge tool, the message is marked as coming from OldDot.
The user refreshes the tab with the Concierge chat in NewDot.
Send a message to Concierge.
Verify that the API command
AddComment
includesisOldDotConciergeChat
and equalstrue
.Verify that in the Concierge tool, the message is marked as coming from OldDot.
The user duplicates the tab with the Concierge chat in NewDot.
Send a message to Concierge.
Verify that the API command
AddComment
includesisOldDotConciergeChat
and equalstrue
.Verify that in the Concierge tool, the message is marked as coming from OldDot.
The user opens a new tab with Concierge chat in NewDot without using OldDot.
Send a message to Concierge.
Verify that the API command
AddComment
does not includeisOldDotConciergeChat
and equalstrue
.Verify that in the Concierge tool, the message is not marked as coming from OldDot.
Offline tests
Same as "Tests".
QA Steps
Ping @cristipaval to QA this.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
N/A
Android: mWeb Chrome
N/A
iOS: Native
N/A
iOS: mWeb Safari
IOS.Safari.3.mp4
MacOS: Chrome / Safari
Chrome.1.mp4
MacOS: Desktop
N/A