-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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(onboarding): frontend for disableMemberInvite flag #76085
Conversation
Bundle ReportChanges will increase total bundle size by 7.0kB ⬆️
|
@@ -91,6 +91,16 @@ const formGroups: JsonFormObject[] = [ | |||
label: t('Open Membership'), |
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.
Now that you're here, can you change this to Open Team Membership
? The title is confusing and makes it look like open org membership.
can_invite: | ||
organization.access?.includes('member:write') || | ||
(organization.features.includes('members-invite-teammates') && | ||
organization.allowMemberInvite), |
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.
Can you move this logic to a function so then you can share code with line 53?
Can you please add a screenshot for what others will see who are not org admins? |
228bf06
to
8284fa4
Compare
function canInvite(organization: Organization) { | ||
return ( | ||
organization.access?.includes('member:write') || | ||
(organization.features.includes('members-invite-teammates') && |
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.
(organization.features.includes('members-invite-teammates') && | |
(organization.access?.includes('member:invite') && organization.features.includes('members-invite-teammates') && |
I'm not sure if you like to add this change to this PR or the next one, but commented any ways. Looks good otherwise. |
8284fa4
to
501ef18
Compare
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #76085 +/- ##
==========================================
- Coverage 78.15% 78.15% -0.01%
==========================================
Files 6903 6905 +2
Lines 307221 307228 +7
Branches 52875 52866 -9
==========================================
+ Hits 240104 240107 +3
- Misses 60705 60776 +71
+ Partials 6412 6345 -67 |
add toggle for org admin to allow/disallow members from inviting teammates to their org Admin view: <img width="1214" alt="admin_view" src="https://github.com/user-attachments/assets/610f4f67-56a4-43c2-a83c-483709057866"> Non-admin view (toggle is disabled): <img width="1216" alt="member_view" src="https://github.com/user-attachments/assets/12a990bf-6a2b-4fe3-b89d-4cb97e82df1e">
add toggle for org admin to allow/disallow members from inviting teammates to their org
Admin view:
Toggle is disabled for non-admin members and organizations that are not on a business plan: