Skip to content

Commit

Permalink
draft dash
Browse files Browse the repository at this point in the history
  • Loading branch information
Beverly Nguyen authored and Beverly Nguyen committed Jan 10, 2025
1 parent a3db0a9 commit 9d09f75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/main/views/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _get_job_counts(job):
''', dir(job))
print(job.notifications_sending)
print(job.notification_count)

job_type = job.template_type
return [
Expand All @@ -362,15 +362,15 @@ def _get_job_counts(job):
for label, query_param, count in [
[
Markup(
f"""total<span class="usa-sr-only">
f"""total notification_count<span class="usa-sr-only">
{"text message" if job_type == "sms" else job_type}s</span>"""
),
"",
job.notification_count,
],
[
Markup(
f"""pending--fdsjfisodj<span class="usa-sr-only">
f"""pending notifications_sending<span class="usa-sr-only">
{message_count_noun(job.notifications_sending, job_type)}</span>"""
),
"pending",
Expand Down
7 changes: 6 additions & 1 deletion app/templates/views/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ <h1 class="usa-sr-only">Dashboard</h1>
<h2 class="font-body-2xl line-height-sans-2 margin-top-0">{{ current_service.name }} Dashboard</h2>

{{ ajax_block(partials, updates_url, 'inbox') }}
{{ ajax_block(partials, updates_url, 'activity') }}

<div id="totalMessageChartContainer" data-sms-sent="{{ sms_sent }}" data-sms-allowance-remaining="{{ sms_allowance_remaining }}">
<h2 id="chartTitle">Total messages</h2>
<svg id="totalMessageChart"></svg>
<div id="message"></div>
</div>
<div id="totalMessageTable" class="margin-0"></div>

<h2 class="line-height-sans-2 margin-bottom-0 margin-top-4">Recent activity</h2>
<div id="activityChartContainer">
Expand Down

0 comments on commit 9d09f75

Please sign in to comment.