# Feature OP-17384 - Primerize user invitation flow

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-17384

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 17.0.0 |
| Sprint | 17.0.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-17383 | Code maintenance | Remove Angular formly / dynamic-forms implementation | closed |  | 17.0.0 |  |  |
| OP-18133 | Bug | User cannot correct input in user invite modal | confirmed |  | Won't Fix |  | Administration / User administration, Modules and project features / Project member, Frontend components and Primer design system |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Administration / User administration, Frontend components and Primer design system, Modules and project features / Project member |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | Oliver Günther |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

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.
