What does this PR do?
This PR enables inviting users by email directly from the Team Event-Type “Assignment” selector.
Previously, only existing team members could be selected.
With this change:
- Users can type email addresses directly into the assignment dropdown
- If the email does not belong to an existing team member:
- The user is automatically invited to the team as a Member
- Supports multiple comma-separated emails:
- Prevents duplicate invites
- Validates email format before submission
This improves onboarding flow and removes friction when assigning new team members to event-types.
- Fixes #13532
- Fixes CAL-3076
Visual Demo
Before
- Assignment dropdown only allowed selecting existing team members.
- New users had to be manually added to the team first.
After
- Email can be typed directly.
- Non-team email triggers automatic invite.
- Multiple emails supported (comma separated).
- Clean validation and no duplicate invite behavior.
📹 Demo video attached (shows:
- Entering single email
- Entering multiple emails
- Auto invite behavior
- Assignment success)
Mandatory Tasks
- I have self-reviewed the code.
- I have updated developer docs if required (N/A).
- Automated tests added/updated to cover:
- Email parsing
- Multiple email handling
- Invite creation
- Duplicate prevention
How should this be tested?
- Go to Team → Event Type → Assignment.
- Type a valid email that is NOT part of the team.
- Save changes.
- Verify:
- Invite is sent
- User added as Member
- Assignment saved successfully
Test multiple emails:
/claim #13532