Content
View differences
Updated by Behrokh Satarnejad 6 months ago
### Acceptance criteria
* In the Project home, in Overview, 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".
* **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 view the widget**
* 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: Switch to members page 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: "+Subitem " which forwards the user to the create a new project page "+ Program" (if portfolio) and "+ Project" (if porfolio, program or project)
* **News**
* Icon: `megaphone`
* Permission to see the widget:
* News widget is visible to all.
* Permission for action: `manage_news`
* Action: Switch to `Add news` page
### Visuals
[See Figma page](https://www.figma.com/design/kjzHe0qOLme1LXCjLoTBFV/Overview-and-Dashboard?node-id=1180-27377)
###
* In the Project home, in Overview, 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".
* **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 view the widget**
* 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: Switch to members page
* **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: "+Subitem " which forwards the user to the create a new project page
* **News**
* Icon: `megaphone`
* Permission to see the widget:
* News widget is visible to all.
* Permission for action: `manage_news`
* Action: Switch to `Add news` page
### Visuals
[See Figma page](https://www.figma.com/design/kjzHe0qOLme1LXCjLoTBFV/Overview-and-Dashboard?node-id=1180-27377)
###