# Feature DREAM-616 - Inplace edit for project attributes on project overview page

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

## Planning

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

## OPEN POINTS / FEEDBACK

_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-650 | Bug | Long Text Project Attribute is showing CF ID on click | closed |  | 17.3.0 |  | Frontend components and Primer design system, Modules and project features / Project overview |
| DREAM-649 | Bug | Fields with AttributeHelpTexts are jumping | closed |  | 17.3.0 |  | Frontend components and Primer design system / Inplace edit fields |
| OP-19064 | Bug | ProjectAttribute permissions in API are not correct | confirmed |  | Product Backlog |  | API, Modules and project features / Project attributes |

## Technical Details

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

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| 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**

  - On the project overview page, the project attributes (in side-panel and main area) are editable in place (instead of inside a dialog)

  - On hover, a border is shown around the field (like it is currently)

  - When clicking on the value, the text is replaced by a inplace edit field (basically an input appearing)

  - Exceptions: The dialog is still shown in three cases:
    
      - The field is a long-text field and shown in the sidebar (the CkEditor simply needs more space than the right side can offer)
    
      - When a field has comments enabled
    
      - The field is a Hierarchy or weighted item list
        
          - Dialog with a tree view inside (like it is currently already for project attributes)

  - Save/Cancel:
    
      - Normal inputs can be saved via Enter/Escape.
    
      - Checkboxes are saved automatically on change
    
      - Select lists have a save / cancel button
    
      - ckEditor has save/cancel (if not opened in a dialog)
    
      - Date fields save on selecting a date

  - Permissions:
    
      - Editing project attributes now requires `edit_project_attributes` as well as `edit_project` permission. This is different than before but consistent with the API. There is a seperate bug (<mention class="mention" data-id="73225" data-type="work_package" data-text="#73225">\#73225</mention>) to change that again.

<br>
