mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-03 00:50:29 -04:00
Content updates for Pricing, Trial Mode, and various areas of changing "message parts"
This commit is contained in:
@@ -448,6 +448,12 @@ def message_count_noun(count, template_type):
|
||||
else:
|
||||
return "text messages"
|
||||
|
||||
if template_type == "parts":
|
||||
if count == 1:
|
||||
return "text message part"
|
||||
else:
|
||||
return "text message parts"
|
||||
|
||||
elif template_type == "email":
|
||||
if count == 1:
|
||||
return "email"
|
||||
|
||||
@@ -7,37 +7,33 @@
|
||||
{% block content_column_content %}
|
||||
|
||||
<h1 class="font-body-2xl margin-bottom-3">Trial mode</h1>
|
||||
|
||||
<p>When you add a new service it will start in trial mode. This lets you try out Notify.gov, with a few restrictions.</p>
|
||||
<p>While your service is in trial mode you can only:</p>
|
||||
<ul class="list list-bullet">
|
||||
<li>send 50 text messages per day</li>
|
||||
<li>send messages to yourself and other people in your team</li>
|
||||
</ul>
|
||||
|
||||
{% if current_service and current_service.trial_mode %}
|
||||
<p>
|
||||
To remove these restrictions, you can <a class="usa-link" href="{{ url_for('.support') }}">request to go live</a>.</p>
|
||||
{% else %}
|
||||
<p>
|
||||
To remove these restrictions:
|
||||
</p>
|
||||
<ol class="list list-number">
|
||||
<li><a class="usa-link" href="{{ url_for('.sign_in') }}">Sign in to Notify</a>.</li>
|
||||
<li>Go to the <b class="bold">Settings</b> page.</li>
|
||||
<li>Select <b class="bold">Request to go live</b>.</li>
|
||||
</ol>
|
||||
{% endif %}
|
||||
<p>
|
||||
When we receive your request we’ll get back to you within one working day.
|
||||
</p>
|
||||
<h2 class="font-body-lg" id="before-you-request-to-go-live">Before you request to go live</h2>
|
||||
<p>You must:</p>
|
||||
<h2 class="font-body-lg">Limits while in trial mode</h2>
|
||||
<p>While your service is in trial mode you can only:</p>
|
||||
<ul class="list list-bullet">
|
||||
<li>add examples of the messages you want to send</li>
|
||||
<li>update your settings so you’re ready to send and receive messages</li>
|
||||
<li>accept our terms of use</li>
|
||||
<li>send 50 text message parts per day</li>
|
||||
<li>send messages to yourself and other people in your team</li>
|
||||
</ul>
|
||||
<p>Each text message is made up of one or more parts.</p>
|
||||
<ul class="list list-bullet">
|
||||
<li>Generally, 160 characters is one part (and one text message).</li>
|
||||
<li>A text message of 160-306 characters is two parts.</li>
|
||||
</ul>
|
||||
<p>For more information on how message parts are calculated, see
|
||||
<a href="/using-notify/pricing">Pricing</a>.</p>
|
||||
|
||||
<h2 class="font-body-lg">Before going Live</h2>
|
||||
<p>Before you request to make your service live so you can send messages to clients:</p>
|
||||
<ul class="list list-bullet">
|
||||
<li>Add examples of the messages you want to send into Notify.</li>
|
||||
<li>Update your settings so you’re ready to send and receive messages.</li>
|
||||
<li>Review your Terms of Use in the Memorandum of Understanding.</li>
|
||||
</ul>
|
||||
|
||||
<h3 class="font-body-lg">Going Live</h3>
|
||||
|
||||
<p>To remove the restrictions of Trial Mode and begin sending messages to clients complete the <a href="https://airtable.com/appe4n7jYOALPLcyU/shrIPWnLTw9U1fclL">Live Campaign Form</a>.</p>
|
||||
<p>We'll get back to you within one working day. </p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -19,25 +19,25 @@
|
||||
</div>
|
||||
<div id='pill-selected-item'>
|
||||
<div class='grid-row'>
|
||||
|
||||
|
||||
<div class='grid-col-12'>
|
||||
<h2 class="heading-small margin-bottom-1">Daily messages across all services</h2>
|
||||
<p class="margin-0">You have sent {{ global_message_limit - daily_global_messages_remaining }} of your {{ global_message_limit }} daily messages allowance.</p>
|
||||
<p class="margin-0"></p>You have {{ daily_global_messages_remaining }} messages remaining.</p>
|
||||
<h2 class='heading-small margin-bottom-1'>Text messages</h2>
|
||||
<h2 class='heading-small margin-bottom-1'>Text message parts</h2>
|
||||
<div class="keyline-block">
|
||||
You have sent
|
||||
{{ big_number(sms_sent, 'messages of your', smaller=True) }}
|
||||
{{ big_number(sms_free_allowance, 'free messages allowance.', smaller=True) }}
|
||||
{{ big_number(sms_sent, 'text message parts of your', smaller=True) }}
|
||||
{{ big_number(sms_free_allowance, 'free message parts allowance.', smaller=True) }}
|
||||
<br />
|
||||
You have
|
||||
{% if sms_free_allowance > 0 %}
|
||||
{{ big_number(sms_allowance_remaining, 'messages remaining.', smaller=True) }}
|
||||
{{ big_number(sms_allowance_remaining, 'message parts remaining.', smaller=True) }}
|
||||
{% endif %}
|
||||
{# {% for row in sms_breakdown %}
|
||||
{% if row.charged_units > 0 %}
|
||||
{{ big_number(
|
||||
row.charged_units,
|
||||
row.charged_units,
|
||||
'at {:.2f} pence per message'.format(row.rate * 100),
|
||||
smaller=True
|
||||
) }}
|
||||
@@ -90,7 +90,7 @@
|
||||
{{ item.month }}
|
||||
{% endcall %}
|
||||
{% for counts, template_type in [
|
||||
(item.sms_counts.0, 'sms'),
|
||||
(item.sms_counts.0, 'parts'),
|
||||
] %}
|
||||
{% call field(align='left') %}
|
||||
{{ big_number(
|
||||
@@ -126,7 +126,7 @@
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endcall %}
|
||||
|
||||
|
||||
{% endcall %}
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -140,7 +140,7 @@
|
||||
</div>
|
||||
<div class="grid-col-8">
|
||||
<p class="align-with-heading-copy">
|
||||
What counts as 1 text message?<br />
|
||||
What counts as 1 text message part?<br />
|
||||
See <a class="usa-link" href="{{ url_for('.pricing') }}">pricing</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -992,8 +992,8 @@ def test_usage_page(
|
||||
|
||||
sms_column = normalize_spaces(annual_usage[0].text)
|
||||
assert (
|
||||
"You have sent 251,800 messages of your 250,000 free messages allowance. You have 0 messages remaining."
|
||||
in sms_column
|
||||
"You have sent 251,800 text message parts of your 250,000 free message parts allowance."
|
||||
" You have 0 message parts remaining." in sms_column
|
||||
)
|
||||
assert "$29.85 spent" not in sms_column
|
||||
assert "1,500 at 1.65 pence" not in sms_column
|
||||
@@ -1029,8 +1029,8 @@ def test_usage_page_no_sms_spend(
|
||||
annual_usage = page.find_all("div", {"class": "keyline-block"})
|
||||
sms_column = normalize_spaces(annual_usage[0].text)
|
||||
assert (
|
||||
"You have sent 1,000 messages of your 250,000 free messages allowance. You have 249,000 messages remaining."
|
||||
in sms_column
|
||||
"You have sent 1,000 text message parts of your 250,000 free message parts allowance."
|
||||
" You have 249,000 message parts remaining." in sms_column
|
||||
)
|
||||
assert "$0.00 spent" not in sms_column
|
||||
assert "pence per message" not in sms_column
|
||||
@@ -1106,7 +1106,7 @@ def test_usage_page_with_0_free_allowance(
|
||||
sms_column = normalize_spaces(annual_usage[0].text)
|
||||
|
||||
assert (
|
||||
"You have sent 251,800 messages of your 0 free messages allowance. You have"
|
||||
"You have sent 251,800 text message parts of your 0 free message parts allowance. You have"
|
||||
in sms_column
|
||||
)
|
||||
assert "free allowance remaining" not in sms_column
|
||||
|
||||
Reference in New Issue
Block a user