Content
View differences
Updated by Marc Alcobé about 3 years ago
**As** a **project admin**
**I want to** setup a _project folder_ during the activation of a storage on a project
**so that** the storage and _project folder_ are available at the same time.
## **Acceptance criteria**
* [ ] When the **project admin** is adding a storage to a project they need to be able to configure _project folder._
* [ ] The **project admin** needs to be able to change the _project folder,_ after the storage was added to the project.
* [ ] When a **project admin** sets/changes the _project folder,_ that folder is activated for all project members. The behaviour of the project must change accordingly.
* [ ] When the _project folder_ setup is not completed or erroneous the **project admin** sees a detailed error message.
* [ ] An option for not configuring a _project folder_ must be provided.
* [ ] The **project admin** should be able to edit the project folder by accessing this page again for each storage.
* [ ] In the case of the **Existing folder with manually managed permissions** project folder a new field for **Existing folder selection** is added with a button "Select folder" that will open the location picker modal to select a folder in the storage. Once the folder is selected the name of the folder will be displayed in the input field. field.
* [ ] If the user clicks on save without selecting the folder an error message will be displayed bellow the field.
* [ ] When the user edits an already existing storage in a project they can't modify the **Storage** field but they are able to change the **Project folder**.
* [ ] In the edit flow, there is also the possibility that the user who is now modifying the project folder can't see the manual selected folder and therefore sees an error message bellow the field.
## Visuals
#### Add new storage
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52930/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52932/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52933/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52935/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52931/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52934/content">
#### Edit existing storage
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52914/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52917/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52916/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52995/content"> src="/api/v3/attachments/52915/content">
## Figma
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=3642%3A102909&t=oAYz6G46aDI0WkO2-4
**I want to** setup a _project folder_ during the activation of a storage on a project
**so that** the storage and _project folder_ are available at the same time.
## **Acceptance criteria**
* [ ] When the **project admin** is adding a storage to a project they need to be able to configure _project folder._
* [ ] The **project admin** needs to be able to change the _project folder,_ after the storage was added to the project.
* [ ] When a **project admin** sets/changes the _project folder,_ that folder is activated for all project members. The behaviour of the project must change accordingly.
* [ ] When the _project folder_ setup is not completed or erroneous the **project admin** sees a detailed error message.
* [ ] An option for not configuring a _project folder_ must be provided.
* [ ] The **project admin** should be able to edit the project folder by accessing this page again for each storage.
* [ ] In the case of the **Existing folder with manually managed permissions** project folder a new field for **Existing folder selection** is added with a button "Select folder" that will open the location picker modal to select a folder in the storage. Once the folder is selected the name of the folder will be displayed in the input field.
* [ ] If the user clicks on save without selecting the folder an error message will be displayed bellow the field.
* [ ] When the user edits an already existing storage in a project they can't modify the **Storage** field but they are able to change the **Project folder**.
* [ ] In the edit flow, there is also the possibility that the user who is now modifying the project folder can't see the manual selected folder and therefore sees an error message bellow the field.
## Visuals
#### Add new storage
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52930/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52932/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52933/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52935/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52931/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52934/content">
#### Edit existing storage
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52914/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52917/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52916/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/52995/content">
## Figma
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=3642%3A102909&t=oAYz6G46aDI0WkO2-4