From f49f27bcdf080b3bfd544d5ec70c91e72a8adc3e Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 28 Feb 2024 16:07:49 -0500 Subject: [PATCH 1/5] Content updates to pricing page --- app/templates/views/pricing/index.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/app/templates/views/pricing/index.html b/app/templates/views/pricing/index.html index 73c67770ef..f3f13cf8c6 100644 --- a/app/templates/views/pricing/index.html +++ b/app/templates/views/pricing/index.html @@ -15,7 +15,7 @@

Pricing

{{ content_metadata( data={ -"Last updated": "January 25, 2024" +"Last updated": "February 5, 2024" } ) }} @@ -30,7 +30,8 @@

Pricing

Long text messages

-

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.

{% call mapping_table( @@ -55,6 +56,13 @@

Long text messages

{% endcall %}
+

Personalization

+

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.

+

Signs and symbols

@@ -158,9 +166,4 @@

Accents and accented characters

{% endcall %} -

Trial mode

-

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 %} From 65f365ab6de4a9c8d890defebafa508e7fa57c88 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 28 Feb 2024 16:11:18 -0500 Subject: [PATCH 2/5] Guidance content update --- app/templates/views/guidance/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/templates/views/guidance/index.html b/app/templates/views/guidance/index.html index b7d6ffa1a0..1f8107d6d2 100644 --- a/app/templates/views/guidance/index.html +++ b/app/templates/views/guidance/index.html @@ -41,7 +41,7 @@

Format your content

To create and format your message

  1. All messages start from a template
  2. -
  3. Click “Send Messages”. You’ll see existing templates.
  4. +
  5. Click “Send Messages”. You'll see existing templates.
  6. Add a new template or choose an existing template and select Edit.
@@ -69,7 +69,7 @@

About link-shortening services

Personalize your content

Personalizing your content can increase response rates and help the recipient know the text is legitimate.

@@ -84,6 +84,9 @@

Example

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.

+

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 #}

Add conditional content

Conditional (or optional) content appears only when a recipient meets certain criteria. This feature allows you to make From 067b637f75b990da79de7d5bab47e0a884935464 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 28 Feb 2024 16:15:33 -0500 Subject: [PATCH 3/5] Changed the title of the pricing page to Message parts --- app/templates/views/pricing/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/views/pricing/index.html b/app/templates/views/pricing/index.html index f3f13cf8c6..7f1e073493 100644 --- a/app/templates/views/pricing/index.html +++ b/app/templates/views/pricing/index.html @@ -6,12 +6,12 @@ {% extends "content_template.html" %} {% block per_page_title %} -Pricing +Message parts {% endblock %} {% block content_column_content %} -

Pricing

+

Message parts

{{ content_metadata( data={ From 6cdc14433bebf1bbfbb0f7079f7bb9c67fc27a75 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 13 Mar 2024 11:46:13 -0400 Subject: [PATCH 4/5] Content updated per PR comments --- app/templates/views/guidance/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/views/guidance/index.html b/app/templates/views/guidance/index.html index 1f8107d6d2..5a4238fea5 100644 --- a/app/templates/views/guidance/index.html +++ b/app/templates/views/guidance/index.html @@ -41,7 +41,7 @@

Format your content

To create and format your message

  1. All messages start from a template
  2. -
  3. Click “Send Messages”. You'll see existing templates.
  4. +
  5. Click "Send Messages". You'll see existing templates.
  6. Add a new template or choose an existing template and select Edit.
@@ -82,7 +82,7 @@

To personalize your content

Example

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.

@@ -109,7 +109,7 @@

Examples

  • If you want to make people who are homebound aware of the option of virtual visits (but not other message recipients):
    -

    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.))

  • If you want to send a messages in different languages to different recipients: @@ -234,7 +234,7 @@

    Examples

  • Auto-response text:
    -

    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.

  • From e1981d3c65959fd512eadadbf785f4f5b738eeb3 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 13 Mar 2024 13:33:44 -0400 Subject: [PATCH 5/5] Auto reformat looks like --- app/main/views/send.py | 6 ++++-- tests/app/main/views/test_send.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index b1cea53a88..560c5cb3ad 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/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 35309f57fc..a33f975ba4 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(