rubyforgood / inkind-admin

A project serving Community Education Partnerships - https://www.cep.ngo/ . This Rails application presents an admin interface for CEP to manage their volunteers and students. And provides a GraphQL backend for https://github.com/rubyforgood/inkind-volunteer .
MIT License
9 stars 27 forks source link

Assign Volunteers to Admin/Staff #126

Closed garettarrowood closed 2 years ago

garettarrowood commented 2 years ago

Summary

As an admin, I need to assign volunteers to my admins ("Staff" members in the UI).

Things to Consider

This will have fancier mocks/autocomplete functionality later. But we have to get the basic functionality up first. So for now, a dropdown of AVAILABLE volunteer names will suffice.

One admin/staff member has_many volunteers that report to them. Admin = Staff. At any given time, a volunteer be assigned to only ONE staff member. But, they might have a volunteer for 1-2 years, then another for one for 7 years, etc. We likely need a new join table with effective dates. Perhaps managed_users with a manager_id (User), volunteer_id (User), start_date (date), end_date (date). Just a suggestion...

Possible visual representation (NOT A FINAL MOCKUP). This one is volunteer to student:

Screen Shot 2021-10-24 at 5 30 03 PM

This story is about admin to volunteer though:

Screen Shot 2021-10-24 at 5 39 59 PM

^ Again - do not labor over styles, because this is not how this will ultimately look. Think about functionality and data first :).

Criteria for Completion

On the Admin Edit page: