Repository navigation
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 |
|
|
||
| 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.
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
|
✋ 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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:
