Content
View differences
Updated by Niels Lindenthal over 2 years ago
**As an** OpenProject user
**I want to** to mark projects as favorites
**So that** I can more easily find the projects I have to access the most often (and I don't have to search it in a long list).
**Acceptance criteria**
* In the project overview there is a button "Add to "star" projects
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92065/content"> favorites".
* Clicking this button inverts the button
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92066/content">
* In the project list there is an additional column "Starred" "Favorite"
* In the sidebar of the project list there is a filter "Starred" "Favorite"
**Suggested implementation**
* Add favorite\_projects table (user, project)
* Add filter for projects on favorited projects
* Rewrite level\_list into projects v3 response through `ancestors`
* APIv3 endpoint to set/remove favorite status
* `POST /api/v3/projects/:id/star` to create favorite project :id
* `DELETE /api/v3/projects/:id/star` to delete favorite project :id
* Rewrite autocomplete dropdown to do two requests
* favorite projects
* non favorite projects
* Display groups "Favorites", "All"
* Project overview list
* Can use filter to restrict to favorites
* Show star when project is favorited
* How to favor?
* Alternatives
* In project overview, add button to toggle star
* In my page widget can CRUD favorites
* Account settings receives new menu "Project favorites" and renders the content of the widget
* Build autocompleter similar to wp-query-select with favorite projects at the top
* Favorite projects on top
* All projects in hierarchy
* Projects are shown twice , also when searching
* Widget with favorite projects for my page
**Out of scope**
* Changing the main project selector (<mention class="mention" data-id="52079" data-type="work_package" data-text="#52079">#52079</mention> )
##### Figma and visuals
https://www.figma.com/file/qxerhIdCNEhfP5xcKC087z/Favorite-Projects?type=design&node-id=0%3A1&mode=design&t=yvgmnC9TYPu2X0pk-1
**I want to** to mark projects as favorites
**So that** I can more easily find the projects I have to access the most often (and I don't have to search it in a long list).
**Acceptance criteria**
* In the project overview there is a button
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92065/content">
* Clicking this button inverts the button
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/92066/content">
* In the project list there is an additional column "Starred"
* In the sidebar of the project list there is a filter "Starred"
**Suggested implementation**
* Add favorite\_projects table (user, project)
* Add filter for projects on favorited projects
* Rewrite level\_list into projects v3 response through `ancestors`
* APIv3 endpoint to set/remove favorite status
* `POST /api/v3/projects/:id/star` to create favorite project :id
* `DELETE /api/v3/projects/:id/star` to delete favorite project :id
* Rewrite autocomplete dropdown to do two requests
* favorite projects
* non favorite projects
* Display groups "Favorites", "All"
* Project overview list
* Can use filter to restrict to favorites
* Show star when project is favorited
* How to favor?
* Alternatives
* In project overview, add button to toggle star
* In my page widget can CRUD favorites
* Account settings receives new menu "Project favorites" and renders the content of the widget
* Build autocompleter similar to wp-query-select with favorite projects at the top
* Favorite projects on top
* All projects in hierarchy
* Projects are shown twice , also when searching
* Widget with favorite projects for my page
**Out of scope**
* Changing the main project selector (<mention class="mention" data-id="52079" data-type="work_package" data-text="#52079">#52079</mention> )
##### Figma and visuals
https://www.figma.com/file/qxerhIdCNEhfP5xcKC087z/Favorite-Projects?type=design&node-id=0%3A1&mode=design&t=yvgmnC9TYPu2X0pk-1