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

Updates to Automated Emails #545

Merged
merged 3 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions microsetta_private_api/admin/email_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class EmailMessage(Enum):
EventSubtype.EMAIL_ACTIVATION
)
incorrect_sample_type = (
gettext("Your Microsetta Initiative status update: attention needed"),
gettext("Microsetta Initiative update: attention needed"),
"email/incorrect_sample_type.jinja2",
("contact_name", "sample_barcode", "recorded_type", "received_type",
"resolution_url"),
Expand All @@ -35,21 +35,21 @@ class EmailMessage(Enum):
)
missing_sample_info = (
gettext(
"Your Microsetta Initiative status update: information needed"),
"Microsetta Initiative update: information needed"),
"email/missing_sample_info.jinja2",
("contact_name", "sample_barcode", "received_type", "resolution_url"),
EventType.EMAIL,
EventSubtype.EMAIL_MISSING_SAMPLE_INFO
)
sample_is_valid = (
gettext("Your Microsetta Initiative status update and next steps"),
gettext("We received your Microsetta Initiative sample"),
"email/sample_is_valid.jinja2",
("contact_name",),
EventType.EMAIL,
EventSubtype.EMAIL_SAMPLE_IS_VALID
)
no_associated_source = (
gettext("Your Microsetta Initiative status update: "
gettext("Microsetta Initiative update: "
"critical information needed"),
"email/no_associated_source.jinja2",
("contact_name", "sample_barcode", "resolution_url"),
Expand All @@ -65,7 +65,7 @@ class EmailMessage(Enum):
)
address_invalid = (
gettext(
"Your Microsetta Initiative status update: information needed"),
"Microsetta Initiative update: information needed"),
"email/address_invalid.jinja2",
("contact_name", "resolution_url"),
EventType.EMAIL,
Expand All @@ -81,23 +81,23 @@ class EmailMessage(Enum):
)
thank_you_with_kit = (
gettext(
"Registration code & kit update!"),
"Microsetta Initiative registration code & kit update"),
"email/thank_you_with_kit.jinja2",
("first_name", "registration_code", "interface_endpoint"),
EventType.EMAIL,
EventSubtype.EMAIL_THANK_YOU_WITH_KIT
)
thank_you_no_kit = (
gettext(
"Your questionnaire is ready!"),
"Your Microsetta Initiative questionnaire is ready"),
"email/thank_you_no_kit.jinja2",
("first_name", "registration_code", "interface_endpoint"),
EventType.EMAIL,
EventSubtype.EMAIL_THANK_YOU_NO_KIT
)
kit_tracking_number = (
gettext(
"Your kit is on its way!"),
"Your Microsetta Initiative kit has shipped"),
"email/kit_tracking_number.jinja2",
("first_name", "tracking_number"),
EventType.EMAIL,
Expand Down
4 changes: 2 additions & 2 deletions microsetta_private_api/templates/email/address_invalid.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@
</p>
<p class="c1"><span class="c0">&nbsp;</span></p>
<p class="c8 c9">
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We are writing as we've encountered an issue processing your transaction, and we would appreciate your assistance in helping to resolve this matter.") }}</span>
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have encountered an issue processing your transaction, and we would appreciate your assistance in helping to resolve this matter.") }}</span>

<span class="c4">{{ _("Specifically, we were unable to verify the address to which you requested we ship you kit(s).") }}</span>
<span class="c4">{{ _("Specifically, we were unable to verify the address to which you requested we ship your kit(s).") }}</span>
</p>
<p class="c2">
<span class="c0"></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,16 @@
<span class="c0"></span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("Our lab will need verification of the type of sample you sent in before they can begin processing it to ensure that your sample is sequenced correctly. If you know the sample type then please reply to this email") }}<a href = "mailto: [email protected]">[email protected]</a> {{ _("with this information. We will then update your profile so the collection can be appropriately associated.") }}</span>
<span class="c0">{{ _("Our lab will need verification of the type of sample you sent in before they can begin processing it to ensure that your sample is sequenced correctly.") }}</span>
</p>
<p class="c2">
<span class="c0"></span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("Please reply to this email with a confirmation of the sample type. We will then update your sample record so the specimen can be processed appropriately.") }}</span>
<p class="c1 c5"><span class="c0"></span></p>
<p class="c1">
<span class="c0">{{ _("If you have any questions, please reply to us at ") }}<a href = "mailto: [email protected]">[email protected]</a>. {{ _("Thank you for supporting our project.") }}</span>
<span class="c0">{{ _("If you have any questions, please reply to us at ") }}<a href = "mailto: [email protected]">[email protected]</a>.</span>
</p>
<p class="c1"><span class="c0">&nbsp;</span></p>
<p class="c1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
</p>
<p class="c1"><span class="c0">&nbsp;</span></p>
<p class="c8 c9">
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We are writing as we've encountered an issue processing your sample, and we would appreciate your assistance in helping to resolve this matter. To make sure we have the correct information, we require you to confirm the type of sample you sent and the collection date and time with our team. Please click on the URL below to view the collection information.") }}</span>
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your sample with the barcode ID specified below, but need additional information before we can proceed with processing it. Please click on the barcode to view the information you have already logged.") }}</span>
</p>
<p class="c2"><span class="c0"></span></p>
<p class="c8 c9">
Expand All @@ -233,7 +233,7 @@
<span class="c0"></span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("Based on what we can see, we think the collection type is:") }}</span>
<span class="c0">{{ _("Based on what we can see, we think the sample type is:") }}</span>
</p>
<p class="c8 c9">
<span class="c0">&nbsp;</span>
Expand All @@ -247,13 +247,13 @@
<span class="c0">&nbsp;</span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("We require this information in order to process the collection in compliance with our human subjects research protocol. Therefore, editing online account information is currently locked as a preventative measure to ensure we meet regulations. Not to worry - by replying to this email our team is ready to assist you with updating the following information.") }}</span>
<span class="c0">{{ _("Please reply to this email with the following information.") }}</span>
</p>
<p class="c8 c9">
<ul class="c8 c9">
<li><span class="c0">{{ _("Collection date") }}</span></li>
<li><span class="c0">{{ _("Collection time") }}</span></li>
<li><span class="c0">{{ _("Collection type") }}</span></li>
<li><span class="c0">{{ _("Sample type (e.g. stool, mouth, skin)") }}</span></li>
<li><span class="c0">{{ _("Collection date (can be approximate)") }}</span></li>
<li><span class="c0">{{ _("Collection time (can be approximate)") }}</span></li>
</ul>
</p>
<p class="c1 c5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@
</p>
<p class="c1"><span class="c0">&nbsp;</span></p>
<p class="c8 c9">
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We are writing as we've encountered an issue processing your collection, and we would appreciate your assistance in helping to resolve this matter.") }}</span>

<span class="c4">{{ _("Specifically, the following sample sent to the lab needs more information to be included before it can be processed:") }}</span>
<span class="c4">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your sample with the barcode ID specified below, but need additional information before we can proceed with processing it.") }}</span>
</p>
<p class="c2"><span class="c0"></span></p>
<p class="c8 c9">
Expand All @@ -235,7 +233,7 @@
<span class="c0"></span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("We require this information to process this specimen in compliance with our human subjects research protocol. Please log back into the participant website by clicking or copying the following URL:") }}</span>
<span class="c0">{{ _("Please log back into the participant website by clicking or copying the following URL:") }}</span>
</p>
<p class="c8 c9">
<span class="c0">&nbsp;</span>
Expand All @@ -249,20 +247,20 @@
<span class="c0">&nbsp;</span>
</p>
<p class="c8 c9">
<span class="c0">{{ _('After accessing your account using the above URL, you will need to create a source by clicking on one of the buttons under the "Sources" section.') }}</span>
<span class="c0">{{ _('After logging in to your account, you will need to create a profile.') }}</span>
</p>
<p class="c8 c9">
<span class="c0">&nbsp;</span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("Once a source has been created, please reply to this email with the following information so that we can link the collection to your source:") }}</span>
<span class="c0">{{ _("Once a profile has been created, please reply to this email with the following information so that we can link the sample to your profile:") }}</span>
</p>
<p class="c2"><span class="c0"></span></p>
<p class="c8 c9">
<ul class="c8 c9">
<li><span class="c0">{{ _("Collection date") }}</span></li>
<li><span class="c0">{{ _("Collection time") }}</span></li>
<li><span class="c0">{{ _("Collection type") }}</span></li>
<li><span class="c0">{{ _("Sample type (e.g. stool, mouth, skin)") }}</span></li>
<li><span class="c0">{{ _("Collection date (can be approximate)") }}</span></li>
<li><span class="c0">{{ _("Collection time (can be approximate)") }}</span></li>
</ul>
</p>
<p class="c8 c9">
Expand Down
4 changes: 2 additions & 2 deletions microsetta_private_api/templates/email/sample_is_valid.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@
</p>
<p class="c1"><span class="c0">&nbsp;</span></p>
<p class="c8 c9">
<span class="c0">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your microbiome collection, and it is now in the processing queue. Samples are processed within 1 – 3 months. Once sequenced, you will receive an update with a link to your results.") }}</span>
<span class="c0">{{ _("Thank you for your interest and participation in The Microsetta Initiative. We have received your microbiome sample. Samples are typically processed within 1 – 3 months. If you are part of a specific study, the timeframe could be longer. Once sequenced, you will receive an update and a report will be available in your online account.") }}</span>
</p>
<p class="c1"><span class="c0">&nbsp;</span></p>
<p class="c1">
<span class="c0">{{ _("If you have any questions, please reply to us at ") }}<a href = "mailto: [email protected]">[email protected]</a>. {{ _("Thank you for supporting our project.") }}</span>
<span class="c0">{{ _("Thank you for supporting our project.") }}</span>
</p>
<p class="c1"><span class="c0">&nbsp;</span></p>
<p class="c1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@
<span class="c0"></span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the TMI website to create your account, profile, and fill in the initial forms and surveys. <strong><i>Your email address is linked to this information and must be the same email used to set up your account</i></strong>.") }}</span>
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the Microsetta website to sign up, create your profile, and fill in the initial forms and surveys. <strong><i>Ensure that the email address you use to create your account matches the one associated with this information</i></strong>.") }}</span>
</p>
<p class="c8 c9">
<span class="c0">&nbsp;</span>
</p>
<p class="c8 c9">
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Create Account or Login") }}]</strong></a></span>
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Sign Up or Login") }}]</strong></a></span>
</p>
<p class="c8 c9">
<span class="c0">&nbsp;</span>
Expand All @@ -252,7 +252,7 @@
</p>
<p class="c8 c9">
<span class="c0">
{{ _("Thank you for your participation! If you have any questions, please visit our <a href='https://microsetta.ucsd.edu/participant-resources/faqs/'>FAQs</a> and <a href='https://microsetta.ucsd.edu/participant-resources/instructions/'>instructions</a> pages, or you can email us at ") }}<a href="mailto:[email protected]">[email protected]</a>.<br />
{{ _("Thank you for your participation! If you have any questions, please visit our <a href='https://microsetta.ucsd.edu/participant-resources/faqs/'>FAQs</a>, or you can email us at ") }}<a href="mailto:[email protected]">[email protected]</a>.<br />
</span>
</p>
<p class="c8 c9">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@
<span class="c0"></span>
</p>
<p class="c8 c9">
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the TMI website to create your account, profile, and fill in the initial forms and surveys. <strong><i>Your email address is linked to this information and must be the same email used to set up your account</i></strong>.") }}</span>
<span class="c0">{{ _("<strong>What's next</strong>: If you're joining us for the first time, visit the Microsetta website to sign up, create your profile, and fill in the initial forms and surveys. <strong><i>Ensure that the email address you use to create your account matches the one associated with this information</i></strong>.") }}</span>
</p>
<p class="c8 c9">
<span class="c0">&nbsp;</span>
</p>
<p class="c8 c9">
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Create Account or Login") }}]</strong></a></span>
<span class="c0"><a href="{{ interface_endpoint }}"><strong>[{{ _("Sign Up or Login") }}]</strong></a></span>
</p>
<p class="c8 c9">
<span class="c0">&nbsp;</span>
Expand Down
Loading