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

Updated mailers for facilitator workshops #34638

Merged
merged 4 commits into from May 6, 2020
Merged

Conversation

islemaster
Copy link
Contributor

@islemaster islemaster commented May 5, 2020

Customizes the facilitator workshop enrollment receipt and enrollment reminder emails, as spec'd here.

Testing story

Manually tested using local mailer previews. Verified with the diff_email_previews script that no other mailers were changed.

Enrollment receipt (Facilitator workshop):

Before After
image image

Enrollment reminder (Facilitator workshop):

Before After
image image

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@islemaster islemaster marked this pull request as ready for review May 6, 2020 01:04
@islemaster islemaster requested a review from a team May 6, 2020 01:05
@islemaster islemaster changed the title Facilitator enrollment receipt mailer Updated mailers for facilitator workshops May 6, 2020
@@ -98,13 +106,22 @@ def teacher_enrollment_reminder(enrollment, days_before: nil)
@pre_workshop_survey_url = enrollment.pre_workshop_survey_url
@is_first_pre_survey_email = days_before == INITIAL_PRE_SURVEY_DAYS_BEFORE

from = from_teacher
Copy link
Member

Choose a reason for hiding this comment

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

Can we put this first part in an else so that we treat these as immutable values rather than overwriting them immediately in some cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -0,0 +1,82 @@
- pre_work_url = 'https://docs.google.com/document/d/1mmBcMoRKO2TVxQSEEb-SxMnhuDZUkjE06tHa-8CGeyE/edit'
Copy link
Member

Choose a reason for hiding this comment

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

Is it expected that this is an /edit URL while the one just below is a /pub one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is as provided in spec, and there isn't currently a "published" version of this document. I'm asking Megan if she'd like to publish this doc too.


%p
Please have the following with you on the day of your session to ensure you
are able to participate fully.
Copy link
Member

Choose a reason for hiding this comment

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

End in :?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

= link_to 'this page', Pd::WorkshopMailer::SUPPORTED_TECH_URL
for more information regarding compatible operating systems and browsers.
We do not recommend bringing a tablet as your primary device.
%li Download the Zoom app (more information below)
Copy link
Member

Choose a reason for hiding this comment

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

. at end to be consistent with other bullets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -65,8 +68,11 @@ PREVIEWS = %w(
teacher_enrollment_reminder__csf_intro_3_day
teacher_enrollment_reminder__csp_1_10_day
teacher_enrollment_reminder__csp_1_3_day
teacher_enrollment_reminder__csp_for_returning_teachers_10_day
Copy link
Contributor

Choose a reason for hiding this comment

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

These are just entries we forgot to add in previous PRs, yeah? No changes to CSP for returning teachers workshop mailers in this PR, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct - I didn't realize we had this script, and just ran across it while working on this update. I went ahead and updated the list of mailers it tests to reflect some recent additions.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wrote this script long ago to verify that email template changes don't have unexpected results. (For example, 1 partial template can be used in multiple emails that we are not aware of.) Not sure if it is helpful to anyone but me.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems very useful, thanks Ha!

@bencodeorg
Copy link
Contributor

Just trying to understand...what did our enrollment receipts / reminders for facilitator training workshops look like before this change?

@islemaster
Copy link
Contributor Author

Oh, good point Ben. I'll address other review feedback and then post before/after for these mailers as a record of the changes we're making.

@islemaster islemaster requested a review from bencodeorg May 6, 2020 17:35
@islemaster
Copy link
Contributor Author

I've updated the PR description with before/after screenshots of the mailer previews.

@islemaster islemaster merged commit 01950bf into staging May 6, 2020
@islemaster islemaster deleted the facilitator-mailer branch May 6, 2020 20:31
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.

None yet

4 participants