# Feature OP-16019 - Primerised version of the basic work package hovercard

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-16019

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/JZyO9Ns9HkgBa2GHSNXwVe/Hover-card?node-id=16-1218 |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Henriette Darge |
| 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

**Note**

This feature simply seeks to implement the current Rails work package hover card using Primer components.

**Acceptance criteria**

  - We will Primerise the existing condensed hover card
    
      - See documentation in Lookbook: <mention class="mention" data-id="58267" data-type="work_package" data-text="#58267">\#58267</mention>

  - The cards will have a fixed with of 500px

  - The first line will have the following meta data:
    
      - **Type**
    
      - **ID**
    
      - **Status** (not editable)
    
      - **Project** (will be truncated if needed, if status and/or project name are particularly long)

  - The second line will contain only the **work package title**
    
      - This will wrap to multi-line if it's a long
    
      - It will not be truncated (we'll implement that later if nececessary)

  - The last line will have:
    
      - **The assignee** on the left edge
        
          - When there is an assignee, use their avatar followed by their name
        
          - The name will be truncated if needed (if it's particularly long and reaches the date display)
        
          - If there is no assignee, display a user icon followed by a hyphen
    
      - **The date** on the right edge, with the calendar icon and the selected date format
        
          - The date will be in red if overdue, like everywhere else
        
          - If only the start date exists, it will be displayed as the only date (eg. "12.10.24")
        
          - If only the finish date exists, it will be displayed followed by an en dash (eg. "– 12.10.2024)
        
          - If both start and finish dates exist, both with be displayed with an en dash (–) in between (eg. "10.10.2024 – 12.10.2024")
        
          - If no date exists, show nothing on the right edge (no calendar icon)

**Out of scope**

  - Narrower versions

  - Displaying other work package attributes. This will come later.

**Visuals**

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

**Figma**
