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 input 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" save without selecting the folder an error message will be displayed bellow the field.
* [ ] If the user is not logged in, an error is automatically presented and the button is updated to "Nextcloud login". This message persists if the user clicks on the "Save" button.
* [ ] 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**.
* [ ] The label for project folder must have a information button attached. When interacting a help message is displayed.
* [ ] In the edit flow, there is also the possibility that the user who is now modifying the project folder for which they doesn't have the permissions can see the manual selected folder.
* [ ] When the project admin clicks on "select folder" they will see the location picker.
* [ ] If there is a folder selected, open the location picker with that folder selected.
* [ ] If there is a folder selected and the project admin has no permissions to that folder, location picker shows home folder an a warning.
## 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/53302/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/56291/content"><img src="/api/v3/attachments/52935/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/56293/content"><img src="/api/v3/attachments/52931/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/56294/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/56292/content"> 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">
## 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 input field
* [ ] If the user clicks on "Save"
* [ ] If the user is not logged in, an error is automatically presented and the button is updated to "Nextcloud login". This message persists if the user clicks on the "Save" button.
* [ ] 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**.
* [ ] The label for project folder must have a information button attached. When interacting a help message is displayed.
* [ ] In the edit flow, there is also the possibility that the user who is now modifying the project folder for which they doesn't have the permissions can see the manual selected folder.
* [ ] When the project admin clicks on "select folder" they will see the location picker.
* [ ] If there is a folder selected, open the location picker with that folder selected.
* [ ] If there is a folder selected and the project admin has no permissions to that folder, location picker shows home folder an a warning.
## 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/53302/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/56291/content"><img
#### 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">
## Figma
https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=3642%3A102909&t=oAYz6G46aDI0WkO2-4