Skip to content

Commit 4f7c0d8

Browse files
authored
Recent updates nov 2025 (#5719)
**Story card:** [sc-12742](https://app.shortcut.com/simpledotorg/story/12742/nov-2025-update-recent-updates-card-on-dashboard) ## Because Adding recent updates back onto the dashboard: - Added statin nudge - Improved DM dashboard design, following HEARTS360 ## This addresses This was removed due to a lack of features ## Test instructions Load the home page on localhost Test in mobile and desktop formats
1 parent 5b15e86 commit 4f7c0d8

File tree

7 files changed

+69
-133
lines changed

7 files changed

+69
-133
lines changed

app/assets/stylesheets/application.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ span.inactive {
545545
position: relative;
546546
}
547547

548+
.card-margin-0 {
549+
margin: 0;
550+
}
551+
548552
@include media-breakpoint-down(lg) {
549553
.card {
550554
height: auto !important;
@@ -748,6 +752,7 @@ span.inactive {
748752
}
749753

750754
.o-65 { opacity: 0.65; }
755+
.o-85 { opacity: 0.85; }
751756

752757
.card-chip-container {
753758
white-space: nowrap;
@@ -837,6 +842,16 @@ span.inactive {
837842
}
838843
}
839844

845+
.grid-col-1 { grid-column: 1; }
846+
.grid-col-2 { grid-column: 2; }
847+
848+
@media (max-width: 990px) {
849+
.grid-col-1,
850+
.grid-col-2 {
851+
grid-column: auto;
852+
}
853+
}
854+
840855
.gap-16px {
841856
gap: 16px;
842857
}

app/assets/stylesheets/partials/_dashboard.scss

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,20 @@ Dashboard UI
4343

4444
.update {
4545
position: relative;
46-
padding: 0.5em 16px 0 64px;
47-
46+
padding: 0 16px 0 0;
47+
margin-bottom: 0px;
48+
display: grid;
49+
grid-template-columns: 48px 1fr;
50+
gap: 14px;
51+
align-items: center;
4852
p {
49-
margin: 1em 0 0 0;
53+
margin: 0 0 0 0;
54+
line-height: 20px;
5055
}
5156

5257
.update-date {
53-
position: absolute;
54-
left: 0;
55-
top: 2em;
56-
width: 48px;
58+
width: 50px;
59+
height: 64px;
5760
background: $green-light;
5861
border-bottom: 1px solid $green-mid;
5962
color: $green-dark;
@@ -62,12 +65,17 @@ Dashboard UI
6265
line-height: 1.3;
6366
border-radius: 4px;
6467
text-transform: uppercase;
65-
letter-spacing: 1px;
68+
letter-spacing: 0.5px;
6669
font-weight: bold;
67-
font-size: 12px;
68-
70+
font-size: 13px;
71+
display: flex;
72+
flex-direction: column;
73+
align-items: center;
74+
justify-content: center;
75+
align-self: flex-start;
6976
b {
7077
font-size: 11px;
78+
letter-spacing: 1px;
7179
}
7280
}
7381

@@ -76,6 +84,14 @@ Dashboard UI
7684
}
7785
}
7886

87+
.gap-12px {
88+
gap: 12px;
89+
}
90+
91+
.gap-16px {
92+
gap: 16px;
93+
}
94+
7995
sup {
8096
font-size: 9px;
8197
font-weight: normal;
Lines changed: 19 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,32 @@
1-
<div class="card mt-4">
2-
<h2>
3-
Recent updates
4-
</h2>
5-
<p class="c-grey-dark">
6-
<% if CountryConfig.current[:name] == "Bangladesh" %>
7-
Last updated 26-Mar-2024. For feedback, email us: <%= Rails.application.config.help_email_id %>
8-
<% else %>
9-
Last updated 12-Dec-2023. For feedback, email us: <%= Rails.application.config.help_email_id %>
10-
<% end %>
11-
</p>
12-
<% if CountryConfig.current[:name] == "Bangladesh" %>
1+
<div class="p-20px px-20px mx-0px bg-white d-lg-flex fd-lg-column
2+
justify-lg-between h-lg-full w-lg-full mt-lg-0 pb-inside-avoid b-print-black w-print-16cm p-relative pb-24px bs-small br-4px">
3+
<div class="d-flex jc-space-between ai-center mb-4px">
4+
<h3>
5+
Recent updates
6+
</h3>
7+
<p class="c-grey-dark o-85">
8+
Last updated 13-Nov-2025
9+
</p>
10+
</div>
11+
<div class="d-flex flex-column mb-12px gap-12px" >
1312
<section class="update">
1413
<div class="update-date">
15-
Mar <b class="d-block">2024</b>
14+
Nov <b class="d-block">2025</b>
1615
</div>
1716
<p>
18-
<b>External partnerships</b>: Other hypertension programs in Bangladesh are now sending their data into <%= Rails.application.config.application_brand_name %>.
19-
</p>
20-
<p>
21-
<b>Data dissaggregation</b>: <%= Rails.application.config.application_brand_name %> is now exporting hypertension data dissaggregated by age and gender into DHIS2.
17+
<b>Statins nudge</b>: The <%= Rails.application.config.application_brand_name %> Android app now estimates a patient’s cardiovascular disease risk score and alerts healthcare workers to refer high-risk patients to doctors for statin treatment.
2218
</p>
2319
</section>
24-
<% end %>
25-
<section class="update">
26-
<div class="update-date">
27-
Dec <b class="d-block">2023</b>
28-
</div>
29-
<p>
30-
<b>Patient data protection agreement:</b>
31-
A new user agreement requiring users to protect patient data is being rolled out in the <%= Rails.application.config.application_brand_name %> app. Please ask healthcare workers who use <%= Rails.application.config.application_brand_name %> to read the data protection agreement in full before accepting. If you have any questions please speak to your manager.
32-
</p>
33-
<p>
34-
<b>Improved security in <%= Rails.application.config.application_brand_name %> app:</b>
35-
The <%= Rails.application.config.application_brand_name %> app has an increased level of security through encryption, if you experience any issues while using the app please contact us.
36-
</p>
37-
<% if CountryConfig.current[:name] == "Ethiopia" || CountryConfig.current[:name] == "Sri Lanka" %>
38-
<p>
39-
<b>Improved titration reports:</b>
40-
Titration reports have been improved and more accurately capture when anti-hypertensive medications are titrated.
41-
</p>
42-
<% end %>
43-
</section>
44-
<% if CountryConfig.current[:name] != "India" %>
4520
<section class="update">
4621
<div class="update-date">
47-
Aug <b class="d-block">2023</b>
22+
Oct <b class="d-block">2025</b>
4823
</div>
4924
<p>
50-
<b>Goal lines:</b>
51-
Goals are now calculated using an average of 3 months. Established facilities will have a goal calculated using an average of Q4 performance (Oct, Nov, Dec) in the previous year.
25+
<b>Diabetes dashboard</b>: The <%= Rails.application.config.application_brand_name %> diabetes dashboard has an improved design and now follows the HEARTS360 standard.
5226
</p>
5327
</section>
54-
<% end %>
55-
<section class="update">
56-
<div class="update-date">
57-
Jul <b class="d-block">2023</b>
58-
</div>
59-
<p>
60-
<b>Overdue patients that returned to care:</b>
61-
An additional chart has been added to the 'Overdue' section in the hypertension dashboard. You can now track the number of overdue patients returning to care within 15 days of receiving a call. View return rates for all patients that were called and return rates for each individual call result - 'Agreed to visit', 'Remind to call' and 'Removed from overdue list'.
62-
</p>
63-
<p class="d-block bg-grey-lightest br-4px" style="margin-top: 8px; padding: 6px 10px;">
64-
This <a href="https://docs.google.com/document/d/1aM6LZnlm249ULH1o69oUHProPOlK7cy8U-cn30WIfGY/edit?usp=sharing">SOP document</a> explains how to use the new returned to care chart.
65-
</p>
66-
<p class="d-block bg-grey-lightest br-4px" style="margin-top: 8px; padding: 6px 10px;">
67-
This updated <a href="https://docs.google.com/document/d/1mStFvMENQNSyfKcIAMpJKh3R_29V29Wl5UhuO8TNPIg/edit?usp=sharing">SOP document</a> explains all charts and tables in the overdue section including the new 'return to care' chart.
68-
</p>
69-
</section>
70-
<section class="update">
71-
<div class="update-date">
72-
Jun <b class="d-block">2023</b>
73-
</div>
74-
<p>
75-
<b>Overdue patients:</b>
76-
New overdue patients reports have been added to the hypertension dashboard. You can now track the number of overdue patients, see how many have been called, and see user and region call activity.
77-
</p>
78-
<p class="d-block bg-grey-lightest br-4px" style="margin-top: 8px; padding: 6px 10px;">
79-
This <a href="https://docs.google.com/document/d/1mStFvMENQNSyfKcIAMpJKh3R_29V29Wl5UhuO8TNPIg/edit?usp=sharing">SOP document</a> explains how to use the new charts.
80-
</p>
81-
<p>
82-
<b>Goal lines:</b>
83-
New goal lines have been added to the hypertension dashboard for 'BP controlled', 'BP not controlled,' and 'Missed visit' charts. Goals are set annually every January. Note: goals are not present for everyone, this is individual on a country basis.
84-
</p>
85-
<p class="d-block bg-grey-lightest br-4px" style="margin-top: 8px; padding: 6px 10px;">
86-
This <a href="https://docs.google.com/document/d/1JaWs5zdXp__VmH5mflIpWXHIci_so5LftBsSQr4Yl3k/edit?usp=sharing">SOP document</a> explains more detail on goal lines.
87-
</p>
88-
</section>
89-
<section class="update">
90-
<div class="update-date">
91-
May <b class="d-block">2023</b>
92-
</div>
93-
<p>
94-
<b><%= Rails.application.config.application_brand_name %> app:</b>
95-
<%= Rails.application.config.application_brand_name %> has the ability to report and track clinical supplies such as BP passports and glucometer strips to help ensure services can run effectively. Please reach out to the <%= Rails.application.config.application_brand_name %> team for a demo and how it could be used in your state or country.
96-
</p>
97-
</section>
98-
<section class="update">
99-
<div class="update-date">
100-
Apr <b class="d-block">2023</b>
101-
</div>
102-
<p>
103-
<b><%= Rails.application.config.application_brand_name %> app:</b>
104-
<%= Rails.application.config.application_brand_name %> now has the ability to report aggregate monthly screening data for hypertension, diabetes, and cancers. Please reach out to the <%= Rails.application.config.application_brand_name %> team for a demo and how it could be used in your state or country.
105-
</p>
106-
<a href="https://docs.google.com/presentation/d/1_qJX90VlkjWOyDZ20ggFfQL2eUUCP0T-s9pXTJK0AnA/edit#slide=id.p" class="d-flex align-center p-3 fs-16px br-8px bg-blue-light" style="border: 0px rgba(0, 117, 235, 0.5) solid; grid-gap: 20px; margin-top:8px;">
107-
<span style="max-width: 40px; padding: 4px; width: 100%; margin-left:12px; margin-top:4px; fill: #0075eb;">
108-
<i class="fa-light fa-file" style="font-size: 36px; display: block; text-align: center;" title="Document link"></i>
109-
</span>
110-
<span>
111-
Tracking HTN, DM & cancer screening with <%= Rails.application.config.application_brand_name %>
112-
<span class="d-block tt-uppercase tt-bold fw-bold" style="font-size: 10px; margin-top:4px;">
113-
Google docs <i class="fa-solid fa-up-right-from-square" style="margin-left:4px;"></i>
114-
</span>
115-
</span>
116-
</a>
117-
</section>
118-
<% if CountryConfig.current[:name] != "Bangladesh" %>
119-
<section class="update">
120-
<div class="update-date">
121-
Feb <b class="d-block">2023</b>
122-
</div>
123-
<p>
124-
<b><%= Rails.application.config.application_brand_name %> dashboard:</b>
125-
Estimated hypertension population coverage has been added to the dashboard. Viewable inside 'Hypertension indicators' table.
126-
</p>
127-
</section>
128-
<% end %>
28+
</div>
29+
<p class="c-grey-dark m-0px">
30+
For feedback, email us: <%= Rails.application.config.help_email_id %>
31+
</p>
12932
</div>

app/views/my_facilities/index.html.erb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
<h1 class="page-header">
55
Home
66
</h1>
7-
<div class="d-flex row">
8-
<div class="col-lg-6">
7+
<div class="d-grid grid-2-cols gap-16px">
8+
<div>
99
<%= render "shared/user_approvals" %>
1010
</div>
11-
<div class="col-lg-6">
11+
<div class="d-flex flex-column gap-16px grid-col-2">
12+
<%= render "recent_updates" %>
1213
<%= render 'shared/my_facilities/facilities_by_size' %>
1314
<%= render 'shared/my_facilities/inactive_facilities' %>
15+
<%#= render "upcoming_improvements" %>
1416
</div>
1517
</div>

app/views/shared/_user_approvals.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="card d-flex mb-2">
1+
<div class="card card-margin-0 d-flex">
22
<% if @users_requesting_approval.any? %>
33
<h2>Users to review</h2>
44
<p>Contact these users promptly. Check that they are approved to access patient data at their facility.</p>
@@ -44,6 +44,6 @@
4444
<%= paginate @users_requesting_approval %>
4545
<% else %>
4646
<h2>All users reviewed</h2>
47-
<p class="mt-20px mb-20px"><i class="fas fa-check"></i> All user approvals are complete. Nice work.</p>
47+
<p class="mt-8px mb-8px"><span class="mr-8px" style="color: green;"><i class="fas fa-solid fa-check"></i></span>All user approvals are complete. Nice work.</p>
4848
<% end %>
4949
</div>

app/views/shared/my_facilities/_facilities_by_size.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="card mb-3">
1+
<div class="card card-margin-0">
22
<h2>
33
Facilities using <%= Rails.application.config.application_brand_name %>
44
</h2>

app/views/shared/my_facilities/_inactive_facilities.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<% if @inactive_facilities.any? %>
2-
<div class="card mt-4">
2+
<div class="card card-margin-0">
33
<h2>
44
Inactive facilities
55
</h2>

0 commit comments

Comments
 (0)