# Feature OP-11866 - Make unlink available directly from the file picker

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| 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 |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| 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** be able to unlink already existing files directly from the file picker modal  
**so that** I don't need to exit that modal to unlink undesired files

**Acceptance criteria**

  - Once the user opens the file picker modal the already selected files are not greyed out but have the checkmark selected and can be unliked directly from there.
  - The link that opens the modal from the file list is no longer "Link existing files" but "Manage linked files" (TBD).
  - The modal header needs to change from "Select files" to "Manage files" (TBD).
  - The button in the action bar should adapt its message depending on the case:
      - The user is only adding new links: "Link X file(s)" (current behaviour)
      - The user is only removing links: "Unlink X file(s)" (TBD)
      - The user is doing both actions: "Confirm file(s) changes" (TBD)
  - The unlink option from the storage files list hover actions is still available.

**Concerns:**

  - Cognitively overloading the familiar file/location picking dialogue.
  - The file structure in the picker does not necessarily contain all linked files as the current user might not have access to some. Then "managing" refers to a subset of files, which is confusing.
  - It makes a very generic component (file/location picker) become very specific and less reusable.
