# Epic DREAM-166 - Apply standardized component for PageHeaders & SubHeaders in the missing rails based pages

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

## Detailed specification

### Motivation and background information

### Acceptance criteria

### Out of scope

| Attribute | Value |
| --- | --- |
| Mockups |  |

## Planning

| Attribute | Value |
| --- | --- |
| Roadmap |  |
| Date |  |
| Votes |  |
| List | a11y report 2025 |
| Target versions | 16.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Relevance |  |

## Subitems

| ID | Type | Subject | Status | Assignee | Target versions | Project | Priority | Spent time |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| DREAM-28 | Feature | Update PageHeaders & SubHeaders in the (rails) global index pages | closed |  | 15.0.0 | Stream Design System | Medium |  |
| DREAM-29 | Feature | Update PageHeaders & SubHeaders in the (rails) project pages (Part 1) | closed |  | 15.2.0 | Stream Design System | Medium |  |
| DREAM-192 | Feature | Update PageHeaders & SubHeaders in the (rails) project pages (Part 2) | closed |  | 16.0.0 | Stream Design System | Medium |  |

## Bugs and other work packages

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Module | Frontend components and Primer design system |
| Enterprise plan | Community (COM) |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Henriette Darge |
| Product manager |  |
| Feature Lead |  |
| Designer | Marc Alcobé |
| Developers | Behrokh Satarnejad |
| Requested by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |

## Description

# Current situation

This is a follow-up of <mention class="mention" data-id="57025" data-type="work_package" data-text="##57025">##57025</mention> . 

We now have a standardized component for PageHeaders and SubHeaders that are already used in parts of the application. Because of that we currently have inconsistent headers throughout the application.

# Acceptance

## Solution

**PageHeader**

  - All pages of the application uses the PageHeader Primer component following the designs provided.

  - Limit the actions in the PageHeader to the "View or query" related actions (eg. Favourite, share, change between view types...).

  - The header will always be the default size, not the large one.

  - Follow this rules when it comes to breadcrumb rules:
    
      - **For index or list pages**, display a navigational breadcrumb, including the containing the project (first element) and the groups of the sidebar (inside of the last element):
        
          - eg. Projects / {Project list}
        
          - eg. {Project A} / Members / Work package shares: Edit rights
        
          - eg. {Project A} / Meetings / Upcoming meetings
    
      - **For settings pages**, display a navigational breadcrumb including the project:
        
          - eg. Administration / File storages / {Storage name}
        
          - eg. My account / Email reminders
    
      - **For individual work packages**, display only a hierarchical breadcrumb if there are parents (like today).
    
      - **For individual meetings:** display a navigational breadcrumb, including the the project.
    
      - **For calendars and team planners:** display a navigational breadcrumb, including the the project and considering the calendars/team planners created as views and adding an sidebar entry for "all":
        
          - eg. OpenProject / Calendars / All calendars
        
          - eg. OpenProject / Calendars / Favourite: {Calendar name}
    
      - **For wikis:** display a navigational breadcrumb, including the the project:
        
          - eg. OpenProject / Wiki / {Wiki page name} / {Wiki sub-page name}
    
      - In mobile the breadcrumbs will be substituted with the level on top and an arrow back.

  - Remove all back buttons (the user can use the browser back button or the breadcrumbs instead).

**SubHeader**

  - All pages where is required will now use SubHeaders that will contain the most relevant actions of the page in a Primer style.

  - Check the designs and mockups for references of each specific SubHeader per page.

  - In the pages where there is lists or tables bellow the SubHeaders will contain the filters and creation actions.

  - SubHeaders might change in the same page context if there is actions that are depending on the selection of the content (eg. multi select of work packages...)

  - Date navigations (eg. Calendars or Team Planners) will also be part of the subHeaders.

# Pages to change

- [x] Project overview
- [x] Roadmap
- [x] Activity
- [x] Backlogs
- [x] Budget
- [x] News
- [x] Forums
- [x] Documents
- [x] Wiki pages
- [x] Time and costs
- [x] Project settings

# Visuals and Figma

**PageHeader**

<https://www.figma.com/file/UeRGKwv1lSKDpribyWROe3/Page-Headers-concept?type=design&node-id=0-1&mode=design>

**SubHeader**

<https://www.figma.com/file/tUkyiLDn5ax7Q9DAhxlS69/Sub-headers-concept?type=design&amp;node-id=0-1&amp;mode=design>
