Content
View differences
Updated by Kabiru Mwenja 6 months ago
### Acceptance Criteria
* Add a new menu entry in Administration called "Documents"
* It has two tabs (<mention class="mention" data-id="72513" data-type="user" data-text="@Parimal Satyal">@Parimal Satyal</mention>: we need to adopt the wireframes)
* Types
* Real time collaboration (specified in <mention class="mention" data-id="68732" data-type="work_package" data-text="##68732">##68732</mention> )
* The **Types** tab
* It will list document types
* There is a "+ Type" primary button in the sub-header to add new types
* This points to a create form (the same as the edit form but with nothing pre-filled)
* A BorderBoxTable lists all available types (a minor modification to what has already been implemented to Document categories today), with two columns:
* Name (links to the edit page for that type)
* Documents (this lists the number of documents of this type)
* The default type has a 'Default' label next to it.
* Each type has a More (⋯) menu with these options:
* Edit (same action as clicking the name)
* ~~Make Make default (makes this the default type)~~ type)
* Move options depending on position (Move to top; move up; move down; move to bottom)
* Delete
* When deleting a type, there are three possibilities:
* The type is currently used: show a [Danger Dialog](https://qa.openproject-edge.com/lookbook/pages/components/danger_dialog) (warning) that lets the user reassign documents currently using the type to a new type
* The type is currently unused: a similar [Danger Dialog](https://qa.openproject-edge.com/lookbook/pages/components/danger_dialog) (warning)
* Is the last available type: a [Feedback Dialog](https://qa.openproject-edge.com/lookbook/pages/components/feedback_dialog_and_feedback_message) (~~without (without an icon~~) icon)
* The edit screen of a type only has two settings, the same as document categories currently:
* Name (text field)
* Active (checkbox)
* In Administration → Files → Categories,
* Use a Blankslate to indicate that document categories have moved to Documents → Types, with a link.
* Remove this page completely after a few releases: ##
<br>
**Permissions and visibility considerations**
Only admins can modify document types.
**Translation considerations**
none
**Out of scope**
* Additional tabs in the 'Documents' entry in Administration:
* BlockNote (BlockNote settings)
* Collaboration (for Hocuspocus server settings)
* Add a new menu entry in Administration called "Documents"
* It has two tabs (<mention class="mention" data-id="72513" data-type="user" data-text="@Parimal Satyal">@Parimal Satyal</mention>: we need to adopt the wireframes)
* Types
* Real time collaboration (specified in <mention class="mention" data-id="68732" data-type="work_package" data-text="##68732">##68732</mention> )
* The **Types** tab
* It will list document types
* There is a "+ Type" primary button in the sub-header to add new types
* This points to a create form (the same as the edit form but with nothing pre-filled)
* A BorderBoxTable lists all available types (a minor modification to what has already been implemented to Document categories today), with two columns:
* Name (links to the edit page for that type)
* Documents (this lists the number of documents of this type)
* The default type has a 'Default' label next to it.
* Each type has a More (⋯) menu with these options:
* Edit (same action as clicking the name)
* ~~Make
* Move options depending on position (Move to top; move up; move down; move to bottom)
* Delete
* When deleting a type, there are three possibilities:
* The type is currently used: show a [Danger Dialog](https://qa.openproject-edge.com/lookbook/pages/components/danger_dialog) (warning) that lets the user reassign documents currently using the type to a new type
* The type is currently unused: a similar [Danger Dialog](https://qa.openproject-edge.com/lookbook/pages/components/danger_dialog) (warning)
* Is the last available type: a [Feedback Dialog](https://qa.openproject-edge.com/lookbook/pages/components/feedback_dialog_and_feedback_message) (~~without
* The edit screen of a type only has two settings, the same as document categories currently:
* Name (text field)
* Active (checkbox)
* In Administration → Files → Categories,
* Use a Blankslate to indicate that document categories have moved to Documents → Types, with a link.
* Remove this page completely after a few releases: ##
<br>
**Permissions and visibility considerations**
Only admins can modify document types.
**Translation considerations**
none
**Out of scope**
* Additional tabs in the 'Documents' entry in Administration:
* BlockNote (BlockNote settings)
* Collaboration (for Hocuspocus server settings)