# Feature GIT-54 - Collapse empty sections by default

Project: Stream Repositories
Status: specified
URL: https://community.openproject.org/work_packages/GIT-54

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 18.1.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

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Integrations / GitHub, Integrations / GitLab |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan | Community (COM) |

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead | Jan Sandbrink |
| Developers | OP Dev Titan Team |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** a user  
**I want to** collapse empty sections by default,  
**so that** many empty sections don&#x27;t take attention from the actual content

#### Acceptance criteria

*   All sections in the code tab can be collapsed/expanded
    
*   When opening the code tab, the default state is
    
    *   expanded for sections that have at least one item
        
    *   collapsed for sections that are empty
        
*   Empty sections should also indicate a counter badge (i.e. show a 0 instead of nothing)
    

#### Screenshots

The current problem is visible in the following example. The blank slates of the expanded sections take all the attention and screen real estate:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/927415/content">
