commitglobal / votemonitor

https://votemonitor.vercel.app
Mozilla Public License 2.0
4 stars 16 forks source link

[NGO Admin/ Observer forms] implement "publish/ draft/ obsolete/ delete" actions on forms (Iteration 1) #598

Open avasi-code4ro opened 1 month ago

avasi-code4ro commented 1 month ago

User Story

As an NGO admin, I want to able to manage (publish/ draft/ obsolete/ delete) observation forms I created for one election event.

Description and business rules (figma link rules) & (figma screen - forms list)

  1. Once a form is published, it becomes visible to the observers in the mobile app.
  2. If a published form has no responses, the NGO admin should be able to retire the form from the mobile app by reverting it to "Drafted" status for further edits. (to see how to handle offline availability*)
  3. If a published form has responses, the form can be moved only to an "Obsolete" status, and it will be removed from the mobile app
  4. A form can only be deleted when it is in a "Drafted" or "Obsolete" status. Published forms cannot be deleted directly; they must first be moved to Obsolete status if they have responses.
  5. Toast messages in the right bottom corner of the app after each action is made (TBD/WIP)
mirunaioana-msc commented 2 weeks ago

we do a hard delete action here (cc: @avasi-code4ro )