# Feature AUTOWORK-165 - Improve project selection for type variants

Project: Stream Workflows & Automations
Status: tested
URL: https://community.openproject.org/work_packages/AUTOWORK-165

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-171 | Use the current projects selector as in Project Attributes | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-172 | Add new variants dialog with a FilterableTreeView | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-174 | Add Type and Variant query and quick filter | Implementation | closed |  | 18.0.0 |  |
| AUTOWORK-176 | Ask users what they want to do if removing variant with active work packages | Feature | rejected | Parimal Satyal |  |  |
| AUTOWORK-180 | Update the project selector dialog for adding projects to type variants | Feature | specified |  | Product Backlog |  |
| AUTOWORK-257 | UX pattern for multi-selection on projects tab | Design Task | closed |  |  |  |
| AUTOWORK-258 | Decide on level of warnings when switching variants for projects | Design Task | closed |  |  |  |
| AUTOWORK-324 | Multi-select and bulk actions on project list  | Feature | merged |  | 18.1.0 |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| AUTOWORK-363 | Bug | On Add project modal, bottom bar with CTAs is not sticky | rejected | Oliver Günther | 18.0.0 |  | Frontend components and Primer design system, Administration / Type/Variants and Workflows |
| AUTOWORK-367 | Bug | CTA to switch variant is called 'Change variant' while modal shows 'Switch variant | tested |  | 18.0.0 |  | Administration / Type/Variants and Workflows |
| AUTOWORK-258 | Design Task | Decide on level of warnings when switching variants for projects | closed |  |  |  |  |
| AUTOWORK-257 | Design Task | UX pattern for multi-selection on projects tab | closed |  |  |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Administration / Type/Variants and Workflows |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan | Community (COM) |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/juRCMvT1qnei6PCOjKEp0y/Project-Selector?node-id=0-1 |
| Build Number |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead | Oliver Günther |
| Developers | Klaus Zanders |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

As an instance administrator, I want to see which projects use a type and which variant each of them has active. Also I want to switch or remove a project's active variant directly from the type's projects tab so that I don't have to open each project's settings.

#### **Acceptance criteria**

  - The subheader has:
    
      - For a type:
        
          - search: iconButton that turns into the full input on click
        
          - a "Variants" dropdown that lists all variants of this type
    
      - For a variant:
        
          - a simple search text field

  - Show the list of projects using a BorderBoxTable
    
      - Columns: 'Project' and 'Variant or type'
    
      - For each item:
        
          - The project name is listed using a new component that will be created called "Project Info Line". This includes:
            
              - Project name (link, bold)
                
                  - Hovering over this should eventually show the Project Hover card, which will be implemented in <mention class="mention" data-id="80883" data-type="work_package" data-text="##DREAM-869" data-display-id="DREAM-869">\#\#DREAM-869</mention>. This shows the entire hierarchy of the project.
            
              - ~~Project type (optional)~~
                
                  - ~~Icon~~
                
                  - ~~Type name (Portfolio, Program, Project; optional)~~ -\> *this was not implemented*
            
              - Archived status (shown if archived)
        
          - Type or variant:
            
              - If the project is using the main type, it will be displayed simply as "{Type name}" (eg. "Bug")
            
              - If the project is using a variant, it will say: "{Variant name} Variant", which the "Variant" bit in grey (fgColor-muted)
        
          - Action menu with options:
            
              - "Switch variant" (triggers dialog as in project)
            
              - "Remove variant from project" (triggers confirmation dialog)

  - Add projects primary button
    
      - This shows the dialog described in <mention class="mention" data-id="78597" data-type="work_package" data-text="###FND-234" data-display-id="FND-234">\#\#\#FND-234</mention>

**Technical notes**

  - 
    <br>

**Permissions and visibility considerations**

  - *To whom is this feature visible?*

  - *When is it not visible?*

**Translation considerations**

  - *Key terms and phrases in the key languages*

**Out of scope**

  - Multi-select and bulk actions, described in <mention class="mention" data-id="80916" data-type="work_package" data-text="###AUTOWORK-324" data-display-id="AUTOWORK-324">\#\#\#AUTOWORK-324</mention>
