-
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
Don't show GBR to AM/guides for managed customer employee invitations #40160
Conversation
@nkdengineer I know this needs to be tested correctly on staging by expensify team, but can you plz post a recording by specifying hardcoded your email id in the |
@Pujan92 The record is here, Screen.Recording.2024-04-16.at.17.08.31.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Desktop |
@@ -1169,6 +1169,12 @@ function isJoinRequestInAdminRoom(report: OnyxEntry<Report>): boolean { | |||
if (!report) { | |||
return false; | |||
} | |||
if (report.policyID) { | |||
const policy = getPolicy(report.policyID); | |||
if (!PolicyUtils.isExpensifyTeam(policy.owner) && PolicyUtils.isExpensifyTeam(currentUserPersonalDetails?.login)) { |
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.
@nkdengineer plz add a comment on why we are doing this, can inspire by this comment
App/src/pages/workspace/WorkspaceMembersPage.tsx
Lines 328 to 331 in 5efea54
// If this policy is owned by Expensify then show all support (expensify.com or team.expensify.com) emails | |
// We don't want to show guides as policy members unless the user is a guide. Some customers get confused when they | |
// see random people added to their policy, but guides having access to the policies help set them up. | |
if (PolicyUtils.isExpensifyTeam(details?.login ?? details?.displayName)) { |
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.
@Pujan92 I updated the comment. Please help to check again.
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/marcochavezf in version: 1.4.63-0 🚀
|
YESSSSSSSSSSSSS! They have gone! This is amazing. |
@Pujan92 @nkdengineer The QA steps seem a bit unclear. Could you provide some clarification or guidance to help us understand better? |
I have tested this on Staging already. |
@twisterdotcom Thank you for doing that, checking off |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Don't show GBR to AM/guides for managed customer employee invitations
Fixed Issues
$ #39659
PROPOSAL: #39659 (comment)
Tests
Offline tests
QA Steps
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop