jmkaneshiro / stayontrack

StayOnTrack is a clone of Pivotal Tracker -- an agile project management tool.
https://stay-on-track-app.herokuapp.com/
5 stars 0 forks source link

Delete projects #85

Closed jmkaneshiro closed 4 years ago

jmkaneshiro commented 4 years ago

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.