Adds ability for user to delete a project. When a user clicks the "delete" trashcan on a project index item in the dashboard, a modal appears that double checks if they want to delete the project. When the deletion is approved, the project, its related memberships, and its related stories are all deleted.
Notes
Implementing this change required me to change the projects_index_item component from a functional component to a class component. Overall, the current implementation required working within several different components. In a future PR, I will consider refactoring the way that components interact with modals.
As with the story deletion modal, I am reliant on the focused_item slice of global state. This is another area ripe for a refactor.
Summary
Adds ability for user to delete a project. When a user clicks the "delete" trashcan on a project index item in the dashboard, a modal appears that double checks if they want to delete the project. When the deletion is approved, the project, its related memberships, and its related stories are all deleted.
Notes
Implementing this change required me to change the projects_index_item component from a functional component to a class component. Overall, the current implementation required working within several different components. In a future PR, I will consider refactoring the way that components interact with modals.
As with the story deletion modal, I am reliant on the focused_item slice of global state. This is another area ripe for a refactor.