opportunity-hack / evs

Equestrian Volunteer Scheduler
https://www.ohack.dev/nonprofit/89076bcc077811edbfdeb29c4ac23549
MIT License
1 stars 2 forks source link

Email Notifications Part Deux #58

Closed gregv closed 10 months ago

gregv commented 11 months ago

🐴 Considerations

  1. User needs to be subscribed
  2. Don't want to send 30 emails when Amy creates a recurring event for an entire month
  3. Send reminder emails when she doesn't have enough people to fill slots
  4. Should be able to add a string to the email for reminders so she can customize message like "🐴 Hey we need 2 more people for this 🐴"
  5. When creating a new event, allow admin to not send email for event creation
  6. Email specifically for Lesson Assistant attribute or everyone (a checkbox that shows all roles, with them all defaulted, and Amy can select which specific ones she wants to send emails to)

🐴 Emails needed

Generic email functionality: 1."Coming Soon" events with the events in the next month

Nice to have:

  1. Event creation when a new event is made
  2. Reminder email for event if event is not full

Code Pointer: https://github.com/opportunity-hack/evs/blob/e9487a3663e9989fcb958b7c6d4aaef57cd131ba/app/routes/resources%2B/event-register.tsx#L193C2-L193C77

image

Slack Notes:

  1. Must have: tell everyone that a new event is created
  2. FYI Amy keeps separate SignUp for Lesson Assistant Positions
  3. Since we’re getting into October and starting lessons, Amy would create lessons next week, week after that
  4. Biggest things to for us to add: 1/ Notification when a new event is created (use the user-level details Instructor or Lesson Assistant or Horse Leader to send an email to these folks when an event is created that matches their type

3 distinct lists of people

  1. Everyone (cleaning crew is the current list of all volunteers)
  2. People with horse knowledge
  3. Lesson Assistants are automatically a horse leader as well
gregv commented 10 months ago

Made some small updates to @parkerdavis1 's PRs

  1. Added upcoming events right in the email
  2. Made the link point to /calendar
  3. Added FANCY gray box image
gregv commented 10 months ago

This is good to go! All code merged and tested - MVP of email is lookin good