-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
ignore all type of thread reports to determine concierge report #45713
ignore all type of thread reports to determine concierge report #45713
Conversation
@allgandalf 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] |
@fabioh8010 Please review. 45700-concierge-chat-issue.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.
Makes sense, LGTM!
@rojiphil Is possible that it could happen to Expensify chat too? If the checklist is sent there and the user create threads or something?
The check for |
Looks good then, I've also checked here and confirmed the Expensify DM is not affected by this issue |
@mountiny Since the change is small can you please do the final review and take this further? |
Reviewer Checklist
Screenshots/VideosSimple change, author added recordings Android: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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/mountiny in version: 9.0.10-2 🚀
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.10-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.10-7 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.11-5 🚀
|
Details
This PR fixes the logic (i.e here) for identifying a concierge chat. The current logic looks at the participant account id to determine if Concierge account id is present in it. However, the concierge account id would also be a participant in all its thread reports. So, while we need to check if the report is a thread report we do not have to explicitly check for
chat
type reports as any thread report should not be considered as a concierge report. We achieve this by usingisThread
utility instead ofisChatThread
.Fixed Issues
$ #45700
PROPOSAL:
Test
Prerequisite: Use an account which
a) Have
Concierge
as onboarding chatb) Have set up
Track and Manage Expenses
onboarding stepc) Is in
Free trial
Steps:
1 Verify that the LHN for
Track an Expense
report does not display theFree Trial Badge
2 Click on the
Track an Expense
3 Verify that the report header does not display the
Free Trial Badge
Offline tests
Same as the Steps in Tests Section.
QA Steps
Same as the Steps in Tests Section.
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)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Desktop
45700-desktop-002.mp4
iOS
45700-ios-native-002.mp4
Android
45700-android-native-002.mp4
Mobile Web - Chrome
45700-mweb-chrome-002.mp4
Mobile Web - Safari
45700-mweb-safari-002.mp4
Web
45700-web-safari-002.mp4