-
Notifications
You must be signed in to change notification settings - Fork 429
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
fix: Adds permission groups to invite #5173
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Docker builds report
|
Uffizzi Preview |
4e6e4c8
to
2ea813c
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.
PR Overview
This PR adds a new feature to include permission groups when inviting users, while also converting the InviteUsers component to TypeScript and updating related modules. Key changes include:
- Converting the InviteUsers component from JavaScript to TypeScript with added support for permission groups.
- Updating the organisation store to include the permission_groups property in the invite payload.
- Modifying the GroupSelect component’s onAdd callback to incorporate an additional parameter (group name).
Reviewed Changes
File | Description |
---|---|
frontend/web/components/modals/InviteUsers.tsx | New TypeScript invite component with permission groups functionality and click outside hook usage. |
frontend/common/stores/organisation-store.js | Adds permission_groups to the invite payload. |
frontend/web/components/GroupSelect.tsx | Updates onAdd callback signature to pass the group name. |
frontend/web/components/modals/InviteUsers.js | Removal of legacy JavaScript invite component. |
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
frontend/web/components/modals/InviteUsers.tsx:107
- The function closeModal is referenced but not defined or imported in the component; please ensure it is declared or imported to avoid runtime errors.
closeModal()
Thanks for submitting a PR! Please check the boxes below:
docs/
if required so people know about the feature!Task: #4002
Changes
react-datepicker
from version6.2.0
to^8.1.0
DateSelect
component by converting it from JavaScript to TypeScriptpermission_groups
to the invite object inorganisation-store.js
.How did you test this code?