JonathanGarro / SIMS-Portal

IFRC Surge Information Management Support Portal
4 stars 4 forks source link

Add availability as a separate process #45

Closed JonathanGarro closed 1 year ago

JonathanGarro commented 1 year ago

Currently, the Portal collects a person's availability as part of an existing assignment. Discussions have revealed it would make more sense to keep that as a standalone table in the DB, which people report outside of an assignment.

Let's add a table, linked to an emergency and user, that collect's a person's reported availability and interest. You would navigate to the emergency and click an "I'm Interested in Supporting" button that would then replicate the availability route. The guidance would have to make it clear that when you do that, you're blocking off time to be available for tasks that come in that match your skills.

JonathanGarro commented 1 year ago

I've created a branch for availability that tweaks how people will report when they can support. I created a utility function called get_dates_current_and_next_week that gets all remaining days this week, and all days next week, and asks people when they are available:

Screen Shot 2023-06-10 at 02 38 00 PM

JonathanGarro commented 1 year ago

This has been completed. The new feature allows users to:

Also added a trigger to send a Slack message to disaster channels associated with active events requesting members submit their availability with a link included.