Issue 100 | User-team association functionality #227
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a set of new features to support batch operations for adding and managing team members and candidates, primarily through email invitations. The changes include new controller endpoints, validation schemas, email templates, and updates to the routing and email service logic to streamline team administration workflows.
Batch User and Candidate Management Functionality
Added new controller endpoints for batch adding team members and candidates, retrieving team candidates, and removing candidates from a team. These endpoints enforce admin or team member permissions as appropriate. [1] [2] [3] [4] [5]
Introduced new Zod validation schemas for validating batch add requests for both members and candidates, ensuring correct payload structure and email validation.
Email Invitation System Enhancements
Implemented a new
sendTeamInvitationmethod inEmailServicefor sending customized team invitation emails, supporting both HTML and plain text formats, with optional personal messages and dynamic role/team details. [1] [2]Added new email templates for team invitations, including subject, HTML, and plain text versions, to provide a clear and branded invitation experience for recipients. [1] [2] [3]
These changes collectively enable team admins to efficiently onboard multiple users or candidates via batch operations, with robust validation and improved communication through customized email invitations.
Closes #100