-
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
feat: display members(admin) and profile only for collect group policy #36672
feat: display members(admin) and profile only for collect group policy #36672
Conversation
@rushatgabhane 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/Videos |
src/libs/PolicyUtils.ts
Outdated
@@ -108,6 +108,10 @@ function isExpensifyGuideTeam(email: string): boolean { | |||
*/ | |||
const isPolicyAdmin = (policy: OnyxEntry<Policy> | EmptyObject): boolean => policy?.role === CONST.POLICY.ROLE.ADMIN; | |||
|
|||
const isCollectPolicy = (policy: OnyxEntry<Policy> | EmptyObject): boolean => policy?.type === CONST.POLICY.TYPE.TEAM; | |||
|
|||
const isFreePolicy = (policy: OnyxEntry<Policy> | EmptyObject): boolean => policy?.type === CONST.POLICY.TYPE.FREE; |
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.
There is a policy type Personal
also. Should we show the protect items for policy type personal
?
Asked here - https://expensify.slack.com/archives/C01GTK53T8Q/p1708141365502539
Lines 1333 to 1334 in f8080a2
FREE: 'free', | |
PERSONAL: 'personal', |
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.
got confirmation here. the current logic looks good
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
0f4b8e6
to
7d3eadd
Compare
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.
Thank you!
✋ 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: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
This update removes the menu options for the free plan in the collect policy section. It also makes sure that only admins can see and use the members menu option.
Fixed Issues
$ #36606
PROPOSAL:
Tests
Free Policy - Member (Non-Admin)
Free Policy - Admin
Collect Policy - Member (Non-Admin)
Collect Policy - Admin
Offline tests
N/A
QA Steps
Free Policy - Member (Non-Admin)
Free Policy - Admin
Collect Policy - Member (Non-Admin)
Collect Policy - Admin
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
collect policy - admin
free policy admin
Android: mWeb Chrome
iOS: Native
free policy admincolect policy admin
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
collect:
free: