Content
View differences
Updated by Behrokh Satarnejad 7 months ago
### Acceptance criteria
* In the Project home, in Overview or in Dashboard, display "empty" states for all widgets in two different variants:
* **Empty**
* This will be shown when the user has access to the widget, but it does not contain anything yet.
* It consists of a Blankslate with:
* _\[open\] Icon if available?_
* Title: (the same as the widget name, eg. "Members", "News", "Description"...)
* _Text: "This widget is currently empty."_
* Action: "+ {Action}"
* This can vary depending on the module. For eg. for Members, it'll be "+ Member", and on click, this should go to the "Add user" dialog, but directly to the second step, where the current project and "User" are already pre-selected, and the current user can directly add or invite a member to the project.
* **Empty but no permission to modify**
* This will be shown when the user has access to the widget, but does not have the permission to edit it
* It consists of a Blankslate with:
* _\[open\] Icon if available?_
* Title: (the same as the widget name, eg. "Members", "News", "Description"...)
* Text: "This widget is currently empty."
* (No action)
* **No permissions to see view**
* This will be shown when the user only has viewing rights (eg. when a work package is shared with an external user, but they can still access the Dashboard)
* It consists of a Blankslate with:
* (No icon)
* Title: (the same as the widget name, eg. "Members", "News", "Description"...)
* Text: "This widget is not available".
* (No action)
* For the overview widgets,
* **Members:**
* Icon: `person`
* Permission to see widget: `view_members`
* Permission for action: `manage_members`
* Action: Show a dialog with a) User autocompleter b) Role select box. (Like member create form)
* **Subitems**
* Icon: `workflow`
* Permission to see the widget:
* _(if get\_all\_subprojects is empty, then empty state: else check permissions for each subitem, and then render ones they have permission to see)._
* Permission for action: `manage_project`
* Action: "+ Program" (if portfolio) and "+ Project" (if porfolio, program or project)
* ... to be completed
### Visuals
[See Figma page](https://www.figma.com/design/kjzHe0qOLme1LXCjLoTBFV/Overview-and-Dashboard?node-id=1180-27377)
###
* In the Project home, in Overview or in Dashboard, display "empty" states for all widgets in two different variants:
* **Empty**
* This will be shown when the user has access to the widget, but it does not contain anything yet.
* It consists of a Blankslate with:
* _\[open\] Icon if available?_
* Title: (the same as the widget name, eg. "Members", "News", "Description"...)
* _Text: "This widget is currently empty."_
* Action: "+ {Action}"
* This can vary depending on the module. For eg. for Members, it'll be "+ Member", and on click, this should go to the "Add user" dialog, but directly to the second step, where the current project and "User" are already pre-selected, and the current user can directly add or invite a member to the project.
* **Empty but no permission to modify**
* This will be shown when the user has access to the widget, but does not have the permission to edit it
* It consists of a Blankslate with:
* _\[open\] Icon if available?_
* Title: (the same as the widget name, eg. "Members", "News", "Description"...)
* Text: "This widget is currently empty."
* (No action)
* **No permissions to see view**
* This will be shown when the user only has viewing rights (eg. when a work package is shared with an external user, but they can still access the Dashboard)
* It consists of a Blankslate with:
* (No icon)
* Title: (the same as the widget name, eg. "Members", "News", "Description"...)
* Text: "This widget is not available".
* (No action)
* For the overview widgets,
* **Members:**
* Icon: `person`
* Permission to see widget: `view_members`
* Permission for action: `manage_members`
* Action: Show a dialog with a) User autocompleter b) Role select box. (Like member create form)
* **Subitems**
* Icon: `workflow`
* Permission to see the widget:
* _(if get\_all\_subprojects is empty, then empty state: else check permissions for each subitem, and then render ones they have permission to see)._
* Permission for action: `manage_project`
* Action: "+ Program" (if portfolio) and "+ Project" (if porfolio, program or project)
* ... to be completed
### Visuals
[See Figma page](https://www.figma.com/design/kjzHe0qOLme1LXCjLoTBFV/Overview-and-Dashboard?node-id=1180-27377)
###