diff --git a/app/main/views/send.py b/app/main/views/send.py index b1cea53a8..560c5cb3a 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -560,7 +560,9 @@ def _check_messages(service_id, template_id, upload_id, preview_row): if preview_row < len(recipients) + 2: template.values = recipients[preview_row - 2].recipient_and_personalisation - simplifed_template.values = recipients[preview_row - 2].recipient_and_personalisation + simplifed_template.values = recipients[ + preview_row - 2 + ].recipient_and_personalisation elif preview_row > 2: abort(404) @@ -863,7 +865,7 @@ def _check_notification(service_id, template_id, exception=None): back_link_from_preview=back_link_from_preview, choose_time_form=choose_time_form, **(get_template_error_dict(exception) if exception else {}), - simplifed_template=simplifed_template + simplifed_template=simplifed_template, ) diff --git a/app/templates/views/guidance/index.html b/app/templates/views/guidance/index.html index b7d6ffa1a..5a4238fea 100644 --- a/app/templates/views/guidance/index.html +++ b/app/templates/views/guidance/index.html @@ -41,7 +41,7 @@
Personalizing your content can increase response rates and help the recipient know the text is legitimate.
To personalize with the recipient's first name and include a reference number:
-State WIC: Hello ((first name)), your reference is ((ref number)). Please provide this number when you call 123-123-1234 to make an appointment.
+State WIC: Hello ((first name)), your reference is ((ref number)). Please provide this number when you call 555-123-1234 to make an appointment.
+ +Note that variations in the length of personalized content can impact the length of specific messages, and may affect + the number of parts used.
{# Add conditional content #}State Medicaid: Please call 123-123-1234 to schedule an appointment. ((homebound??Virtual visits are available.))
+State Medicaid: Please call 555-123-1234 to schedule an appointment. ((homebound??Virtual visits are available.))
State Agency: This number is unmonitored. To contact us, call us at 123-123-1234. We will never ask for personal details +
State Agency: This number is unmonitored. To contact us, call us at 555-123-1234. We will never ask for personal details in a text. If you have questions about how to protect your privacy, see statename.gov/privacy.
If a text message is longer than 160 characters (including spaces), it counts as more than one message part.
+If a text message is longer than 160 characters (including spaces and service name), it counts as more than one message +part.
Personalization can change the length of messages. For example, if you are personalizing with a first name, Fred is +significantly shorter than Alexander. When you are evaluating how long a message is, you need to consider variations in +message length based on personalization.
+Before you send messages, Notify will let you know how many messages you are sending, the number of parts you are using, +and the number of parts you’ll have left.
+@@ -158,9 +166,4 @@ more parts towards the allowance if you:
{% endcall %} -When a new service is added, it will start in trial mode. Moving a service out of trial mode is subject to approval by -the Notify.gov team. Additional unique services may be added, although moving each service out of trial mode is subject -to approval by the Notify.gov team.
- {% endblock %} diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 35309f57f..a33f975ba 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -2612,8 +2612,10 @@ def test_preview_notification_shows_preview( session["placeholders"] = {} page = client_request.post( - "main.preview_notification", service_id=service_one["id"], template_id=fake_uuid, - _expected_status=200 + "main.preview_notification", + service_id=service_one["id"], + template_id=fake_uuid, + _expected_status=200, ) assert page.h1.text.strip() == "Preview" assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == url_for(