diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 30283b214..f1532d2d2 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -86,8 +86,8 @@ def service_dashboard(service_id): current_service.id, ) usage_data = get_annual_usage_breakdown(yearly_usage, free_sms_allowance) - sms_sent=usage_data['sms_sent'], - sms_allowance_remaining=usage_data['sms_allowance_remaining'], + sms_sent = (usage_data["sms_sent"],) + sms_allowance_remaining = (usage_data["sms_allowance_remaining"],) return render_template( "views/dashboard/dashboard.html", diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index fe5fe6f5d..b31b38240 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -29,10 +29,12 @@ {{ ajax_block(partials, updates_url, 'template-statistics') }} {% if current_user.has_permissions('manage_service') %}
-

2024 Total Message Allowance

- +

2024 Total Message Allowance

+
A bar chart showing the messages sent against the total message allowance for 2024 to date
+
+ {% endif %}

Recent Batches

diff --git a/gulpfile.js b/gulpfile.js index 98afbbacf..ec077f727 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -56,6 +56,10 @@ const copy = { gtm: () => { return src(paths.src + 'js/gtm_head.js') .pipe(dest(paths.dist + 'js/')); + }, + chart: () => { + return src(paths.src + 'js/chart.umd.js') + .pipe(dest(paths.dist + 'js/')); } }; @@ -201,7 +205,8 @@ const defaultTask = parallel( ), uswds.compile, uswds.copyAssets, - copy.gtm + copy.gtm, + copy.chart ) );