diff --git a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss index 74441f092..4a909e123 100644 --- a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss +++ b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss @@ -319,27 +319,15 @@ td.table-empty-message { .dashboard { .big-number-with-status { - a { - background: color("blue-60v"); - padding: units(2); - margin-bottom: units(1); - text-decoration: none; - &:hover{ - background: color("blue-warm-70v"); - } - } - span { - color: white; - } .big-number-smaller { display: flex; flex-direction: column; .big-number-number { font-size: units(5); - line-height: units(6); + line-height: units(5); } .big-number-label { - font-size: units(3); + font-size: units(2.5); } } .big-number-status { diff --git a/app/assets/sass/uswds/_uswds-theme.scss b/app/assets/sass/uswds/_uswds-theme.scss index b588e264d..bc4b9b733 100644 --- a/app/assets/sass/uswds/_uswds-theme.scss +++ b/app/assets/sass/uswds/_uswds-theme.scss @@ -9,5 +9,9 @@ in the form $setting: value, @use "uswds-core" with ( $theme-font-type-sans: "public-sans", - $theme-show-notifications: false + $theme-show-notifications: false, + $theme-banner-max-width: "desktop-lg", + $theme-grid-container-max-width: "desktop-lg", + $theme-footer-max-width: "desktop-lg", + $theme-header-max-width: "desktop-lg" ); diff --git a/app/templates/views/dashboard/_totals.html b/app/templates/views/dashboard/_totals.html index 20c1d3a81..9a297bf53 100644 --- a/app/templates/views/dashboard/_totals.html +++ b/app/templates/views/dashboard/_totals.html @@ -1,43 +1,25 @@
{% if statistics['sms']['requested'] is number %} - {{ "{:,}".format(statistics['sms']['requested']) }} + {{ "{:,}".format(statistics['sms']['requested']) }} {% else %} - {{ statistics['sms']['requested'] }} + {{ statistics['sms']['requested'] }} {% endif %} - {{ statistics['sms']['requested']|message_count_label('sms', suffix='sent') }} + {{ statistics['sms']['requested']|message_count_label('sms', suffix='sent') }} in the last seven days +
+ + Details - {% if show_failures %} - - {% if statistics['sms']['failed'] %} - - {{ "{:,}".format(statistics['sms']['failed']) }} - failed – {{ statistics['sms']['failed_percentage'] }}% - - {% else %} - No failures - {% endif %} - - {% endif %} + {# Removing the failures area for now, as the user can click on the above link to see all the details. + In the future state of the dashboard, the all statuses will be more apparent with data visualizations #}In the last seven days
{{ ajax_block(partials, updates_url, 'inbox') }} diff --git a/tests/app/main/views/test_dashboard.py b/tests/app/main/views/test_dashboard.py index 83b861ed4..affeea43f 100644 --- a/tests/app/main/views/test_dashboard.py +++ b/tests/app/main/views/test_dashboard.py @@ -655,7 +655,7 @@ def test_should_not_show_recent_templates_on_dashboard_if_only_one_template_used expected_count = stats[0]["count"] assert expected_count == 50 assert normalize_spaces(page.select_one("#total-sms .big-number-smaller").text) == ( - "{} text messages sent".format(expected_count) + "{} text messages sent in the last seven days".format(expected_count) )