Content
Updated by Oliver Günther 1 day ago
To use the updated autocompleters, the user invitation flow needs to be adapted
**Acceptance criteria**
* Invitation flow works mostly as before:
* Through the quick add menu (green plus top nav) or through an assignee/user work package select field, you can trigger the invite dialog
* You select a project
* Change from previous implementation: In line with other autocompleters, you only see projects you are allowed to invite in
* You select a type of user
* User
* Group
* Placeholder user (if EE enabled)
* You click continue to choose the user/group/placeholder with an autocompleter
* In case of users, you can invite new users if you are admin (or with the newly added permission in the future in <mention class="mention" data-id="55270" data-type="work_package" data-text="#55270">#55270</mention>)
* In case of placeholder users, you can create them if you are admin (or have manage\_placeholder\_user) permission
* You select a role and optionally, add an invitation message
* You click invite, and if successful, you get a flash message instead of the previous summary/success message in the dialog
* Errors are shown inline next to the inputs
<br>
**Technical notes**
* Primerize the project and principal steps of the invite user dialog
* When inviting a new user (or an existing user that is not found)
* Skip validating custom fields on create. This is in line with other efforts on the P-Team for projects and work packages. The MembersController invite flow has never worked with required custom fields either.
* This allows us to skip showing required custom fields on selecting a new invitee, so we can ensure the same flows for existing, but not visible, and new users.
**Acceptance criteria**
* Invitation flow works mostly as before:
* Through the quick add menu (green plus top nav) or through an assignee/user work package select field, you can trigger the invite dialog
* You select a project
* Change from previous implementation: In line with other autocompleters, you only see projects you are allowed to invite in
* You select a type of user
* User
* Group
* Placeholder user (if EE enabled)
* You click continue to choose the user/group/placeholder with an autocompleter
* In case of placeholder users, you can create them if you are admin (or have manage\_placeholder\_user) permission
* You click invite, and if successful, you get a flash message instead of the previous summary/success message in the dialog
* Errors are shown inline next to the inputs
<br>
**Technical notes**
* Primerize the project and principal steps of the invite user dialog
* When inviting a new user (or an existing user that is not found)
* Skip validating custom fields on create. This is in line with other efforts on the P-Team for projects and work packages. The MembersController invite flow has never worked with required custom fields either.
* This allows us to skip showing required custom fields on selecting a new invitee, so we can ensure the same flows for existing, but not visible, and new users.