human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

4176 customizing reminder message to partners

Open nathangthomas opened this issue 1 year ago • 2 comments

Resolves #4176

Description

This PR allows a custom message to be added to the distribution reminder message similar to how we currently make customizations on the distribution email content.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Tested manually
  • Wrote two tests in the distribution_mailer_spec that account for a distribution that includes a custom_reminder

Provide instructions so we can reproduce. You can test the email manually by:

  • run the app locally bin/start
  • go to http://localhost:3000/diaper_bank/distributions/1/edit
  • add a custom message and ensure that the distribution date and time is for a date in the future.
  • open rails c
  • run DistributionMailer.reminder_email(Distribution.first.id).deliver_now A mailer preview should open in your browser.

Screenshots

Screenshot 2024-03-14 at 2 53 06 PM Screenshot 2024-03-14 at 2 51 40 PM

nathangthomas avatar Mar 14 '24 21:03 nathangthomas

Yes, I'll take another look with the clarification in mind. Thanks!

nathangthomas avatar Apr 01 '24 16:04 nathangthomas

@nathangthomas are you still interested in finishing this?

dorner avatar May 24 '24 19:05 dorner

Going to close this - no activity and based on the comments it was not taking the right approach.

dorner avatar Aug 16 '24 19:08 dorner