# Feature DREAM-683 - Make project hierarchy collapsable in the global project selector

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-683

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Target versions | 17.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| DREAM-743 | Bug | First element is not triggered when pressing Enter | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-740 | Bug | Autocomplete options overlap the project list | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-737 | Bug | The project selector doesn't auto-scroll to show current project  | closed |  | 17.6.0 |  | Modules and project features / Navigation, Frontend components and Primer design system |
| DREAM-732 | Bug | Cannot open project selector on mobile | closed |  | 17.6.0 |  | Native apps / Mobile, Frontend components and Primer design system, Modules and project features / Project list |
| DREAM-727 | Bug | Long project names are not wrapping when they are not on the root level | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-726 | Bug | Add blankslate for favorited projects when there are none | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-725 | Bug | Missing space on the right side of the project selector | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-724 | Bug | Search input is not initially focused | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-723 | Bug | Menu elements jump on hover | closed |  | 17.6.0 |  | Modules and project features / Navigation, Frontend components and Primer design system |
| DREAM-717 | Bug | Highlighting of search term is sometimes off | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-715 | Bug | Favourite projects are not visible when they are not on the root level | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-714 | Bug | Button to leave the current project is misaligned on mobile | closed |  | 17.6.0 |  | Frontend components and Primer design system, Modules and project features / Navigation |
| DREAM-716 | Bug | Focus is cut off on SegmentedControl in new project selector | confirmed |  | Product Backlog |  | Frontend components and Primer design system, Modules and project features / Navigation |

## Technical Details

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

## Details

| Attribute | Value |
| --- | --- |
| Pull preview | https://pr-23137-74625-make-proje-ip-167-235-250-91.my.opf.run/ |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

# **Acceptance criteria**

*   The `Primer::OpenProject::FilterableTreeView` should be extended for this to support async loading and filtering
    
    *   **Filtering:**
        
        *   Each search triggers a server request (with a debounce)
            
        *   all search results are shown, with their complete (parent) hierarchy being expanded
            
        *   matching text is highlighted in the returned tree &nbsp;     
            
        *   there is a no-results message is shown when the server returns an empty tree  
            
        *   there is a loading skeleton while a request is in flight          
            
    *   **Expansion state**:
        
        *   Nodes that were expanded before filtering are still expanded after the filter is cleared     
            
    *   **Selection:**
        
        *   Nodes that were checked before filtering are still checked after the filter is cleared
            
        *   Nodes that are checked but hidden by the current filter are still submitted with the form       
            
    *   **Include sub-items:**
        
        *   When &quot;Include sub-items&quot; is checked, the form submission includes this information so the server can resolve all descendants                                             
            
        *   For the visible tree, include sub-items behaves as before (all children are selected and disabled)
            
    *   **Styling:**
        
        *   The search bar is moved to the first position, then the segmented control, then the checkbox
            

**Project selector**

*   The global project selector can expand/collapse hierarchy nodes
    
*   Per defaullt, all nodes are collapsed
    

# **Technical notes**

*   The limit for the project selector remains
    

# **Out of scope**

*   Remembering what was collapsed and what was expanded after page reload
