MapCampaigner
MapCampaigner copied to clipboard
Add archive/delete functionality
Related to #588 but going to separate out archive/delete functionality.
Problem: There is a need for either archiving or deleting campaigns. As a campaign manager, I might be creating a test campaign that I don't to use anymore, or I want to clean up some existing campaigns and so I would like to delete my campaign. Right now we don't expose any functionality to users for this. Current process is to delete campaign directly from the S3 bucket.
Potential Solution: When in Edit mode on a campaign, add a archive/delete function.
I say archive or delete because there might be a use case for only archiving (and thus removing from frontend) instead of permanently deleting. There doesn't seem to be a huge need to save the campaigns forever but there might be a use case for being able to access a very old campaign. Open for discussion.
@Eleonore9 this will require some front end changes as well obviously (see wireframe) but i think we can implement a function on the backend to delete an s3 campaign folder. Additionally we may want to traverse user json to remove the deleted project from the project arrays. We can wait on this until the user json is sorted out
Archiving sounds like an interesting feature, although I guess it would involve even more changes for retrieving the archived project.
archiving will likely not exist in favor of a full delete. the "inactive" state of a project will serve a similar function to archive in that it will set projects out of the active view
Would the delete button be displayed in the "Edit Project" page? And would the confirmation be a pop-up?
I tried to draft something in the same style of the mc_flow
doc: https://docs.google.com/drawings/d/1bA0zahunRMQJJaMr1-mso5xTXnaQYvSQGtT2Kxz4nr8/edit?usp=sharing
@Eleonore9 see the figma page for exact layout, but in general the delete will be available in the header that will exist across all the new "project" level pages. Per the new user management file this will only be displayed to users with "manage" permission for a project:
The confirmation dialog is in the wireframe on figma for reference