# Feature DREAM-494 - Hide segmented control and include sub-itmes checkbox of the filterable tree view

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Target versions | 16.5.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-509 | Bug | On filterable tree view, sub items are not included when sub-item checkbox is ticked | closed |  | 16.5.0 |  | Frontend components and Primer design system, Frontend components and Primer design system / TreeView |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Frontend components and Primer design system, Frontend components and Primer design system / TreeView |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

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

## People

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

## Estimates and progress

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

## Description

**As** a developer  
**I want to** use the filterable tree view without the segmented control or the &quot;include sub-items&quot; checkbox  
**so that** I can use the filterable tree view in scenarios, where selections are trivial and have no need of filters.

**Acceptance criteria**

*   The developer must be able to set a configuration flag to hide the segmented control and/or the &quot;include sub-items&quot; checkbox.
    
*   If the segmented control is disabled, the tree view must not show the button group
    
    *   If the segmented control is disabled, the is no filter applied - except the usual text search.
        
*   If the &quot;include sub-items&quot; checkbox is disabled, the checkbox to include subitems is not shown.
    
    *   If the &quot;include sub-items&quot; checkbox &nbsp;is not shown, the default behavior is to not include sub-items (❓ )
        
    *   The developer must be able to set the default for &quot;Include subitems&quot;.
        
        *   This might be very useful, if the use case is either &quot;Allways include subitems&quot; or &quot;Never include subitems&quot; - and thus disallawoing the user to change it.
