factn / resilience-app

Mutual Aid World - Local Resilience App. Providing ready made, constantly evolving software to meet the needs of local mutual aid projects.
https://mutualaidworld.gitbook.io/docs/
GNU General Public License v3.0
80 stars 65 forks source link

Organizers can view and (sometimes) edit volunteer information on mission edit view #561

Open utunga opened 4 years ago

utunga commented 4 years ago

Part of the mission edit user story - #431

There's a special component for assigning volunteers built already - used in Mission Control in planning view. We want to keep the business logic the same as that but put it into the mission edit view. Hopefully, this can be (or already is) componentized so it can be reused here.

The organizer needs to be able to:

The fields involved are:

"tentativeVolunteerUid": "",
"tentativeVolunteerDisplayName": "",
"tentativeVolunteerPhoneNumber": "",
"volunteerUid": "",
"volunteerDisplayName": "",
"volunteerPhoneNumber": "",

--

Once a mission is started it should be read-only. That is if MissionState is X, then: unassigned - editable tentative - editable, assigned - editable started - read only delivered - read only succeeded - read only failed - read only

Per the component, if the volunteer field is changed it should clear volunteerUid field and set tentativeVolunteerUid - thus requiring volunteer to accept it before it moves from tentative to 'accepted'

It should always be possible (whether read-only or editable) for the organizer to see whether the volunteer has 'accepted' or if the mission assignment is still 'tentative'.

laredotornado commented 4 years ago

Hi, Please assign this to me.