-
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
Send app source when chatting with Concierge, after redirection from OldDot #34590
Send app source when chatting with Concierge, after redirection from OldDot #34590
Conversation
@MonilBhavsar 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeHaving issues with the android build Android: mWeb ChromeScreen.Recording.2024-01-16.at.10.31.45.PM.moviOS: NativeScreen.Recording.2024-01-16.at.10.30.54.PM.moviOS: mWeb SafariScreen.Recording.2024-01-16.at.10.30.19.PM.movMacOS: Chrome / Safariscreen-recording-2024-01-16-at-102642-pm_qpXFlw5P.mp4 |
Linking.getInitialURL().then((url) => { | ||
const params = new URLSearchParams(url ?? ''); | ||
const exitToRoute = params.get('exitTo') ?? ''; | ||
const {reportID} = ReportUtils.parseReportRouteParams(exitToRoute); | ||
reportIDDeeplinkedFromOldDot = reportID; | ||
}); |
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.
Why wasn't this added in a useEffect
with an empty dependency list?
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.
Just wanted to avoid passing this ugly parameter from a component to the Report.addComment
and Report.addAttachment
functions. Do we have a best practice or a guideline related to this? 👀
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 don't know of any. I guess this is fine as it is then.
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.
Looks good!
@marcochavezf 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] |
🎯 @allroundexperts, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #34594. |
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.
The code LGTM
Merging since it's a critical issue |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
isOldDotConciergeChat parameter isn't visible
bandicam.2024-01-17.20-30-13-778.mp4 |
In the video we cannot see you have checked the params @mvtglobally |
@mountiny Are you saying we are looking in the wrong place? It is on the right of the video |
@mvtglobally you need to click into the AddComment in the networks tab and then preview section of that request you should be able to see the parameters of the request |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.26-2 🚀
|
We need to know in BE if the user is texting Concierge after coming from OldDot. This is needed for the agents to know if the user has questions related to OldDot or NewDot.
Fixed Issues
https://github.com/Expensify/Expensify/issues/358241
Tests
On Dev environment only: Make sure you properly set
EXPENSIFY_ACCOUNT_ID_CONCIERGE
variable in.env
fileisOldDotConciergeChat
parameter is not sent along with theAddComment
commandisOldDotConciergeChat
parameter is sent along with theAddComment
commandOffline tests
N/A
QA Steps
Same as tests, just make sure that you're specifying in the messages sent to the Concierge that you're testing a PR and no action is needed,
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop