Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4176 customizing reminder message to partners #4197

Conversation

nathangthomas
Copy link
Contributor

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 nathangthomas deleted the 4176-customizing-reminder-message-to-partners branch March 14, 2024 21:49
@nathangthomas nathangthomas restored the 4176-customizing-reminder-message-to-partners branch March 14, 2024 22:03
@nathangthomas nathangthomas deleted the 4176-customizing-reminder-message-to-partners branch March 14, 2024 22:10
@nathangthomas nathangthomas restored the 4176-customizing-reminder-message-to-partners branch March 14, 2024 22:16
@nathangthomas nathangthomas reopened this Mar 21, 2024
Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @nathangthomas. Thank you for this!
This is a very broad-stroke review -- I'm not looking at the code at all at this time.

I'm afraid we've got different interpretations of what " similar to how we currently make customizations on the distribution email content" means.

What we are looking for is the addition of a Reminder Email Content that would be the pattern for all reminder emails going out from the organization, i.e. customized at the organization level , not the customized-by-distribution approach in your PR. Doing it at the distribution level would result in duplication of effort for the banks.

Care to give it another go, with that clarification?

Thanks again.

@nathangthomas
Copy link
Contributor Author

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

@dorner
Copy link
Collaborator

dorner commented May 24, 2024

@nathangthomas are you still interested in finishing this?

@dorner
Copy link
Collaborator

dorner commented Aug 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customizing Reminder Message to Partners
3 participants