Skip to content

Commit 56894ae

Browse files
authored
Merge pull request #2374 from GSA/main
03/05/2025 Production Deploy
2 parents 525482c + f6952b2 commit 56894ae

26 files changed

+803
-435
lines changed

.ds.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
527527
"filename": "tests/app/main/views/test_accept_invite.py",
528528
"hashed_secret": "07f0a6c13923fc3b5f0c57ffa2d29b715eb80d71",
529529
"is_verified": false,
530-
"line_number": 643,
530+
"line_number": 631,
531531
"is_secret": false
532532
}
533533
],
@@ -684,5 +684,5 @@
684684
}
685685
]
686686
},
687-
"generated_at": "2025-02-03T17:01:06Z"
687+
"generated_at": "2025-02-26T18:19:37Z"
688688
}

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
cmd_options: "-I"
178178

179179
a11y-scan:
180-
runs-on: ubuntu-20.04
180+
runs-on: ubuntu-latest
181181
steps:
182182
- uses: actions/checkout@v4
183183
- uses: ./.github/actions/setup-project

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
## Non user files allowed to be commited
1717
!app/assets/pdf/tcpa_overview.pdf
18+
!app/assets/pdf/investing-notifications-tts-public-benefits-memo.pdf
19+
!app/assets/pdf/out-of-pilot-announcement.pdf
20+
!app/assets/pdf/studio-research-snapshot-2022-07-external.pdf
21+
!app/assets/pdf/TCPA-Overview.pdf
1822
!tests/test_pdf_files/no_eof_marker.pdf
1923
!tests/test_pdf_files/multi_page_pdf.pdf
2024
!tests/test_pdf_files/big.pdf

.pa11yci

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"defaults": {
33
"standard": "WCAG2AA",
4-
"runners": ["htmlcs"],
4+
"runners": ["htmlcs"],
5+
"chromeLaunchConfig": {
6+
"executablePath": "/usr/bin/google-chrome"
7+
},
58
"concurrency": 1,
69
"hideElements": [
710
"nav > ol a",

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,8 @@ upload-static:
162162
# @cf map-route notify-admin ${DNS_NAME} --hostname www
163163
# @cf unmap-route notify-admin-failwhale ${DNS_NAME} --hostname www
164164
# @echo "Failwhale is disabled"
165+
166+
.PHONY: test-single
167+
test-single: export NEW_RELIC_ENVIRONMENT=test
168+
test-single: ## Run a single test file
169+
poetry run pytest $(TEST_FILE)

app/assets/javascripts/activityChart.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,13 @@
216216
return;
217217
}
218218

219-
var url = type === 'service' ? `/services/${currentServiceId}/daily-stats.json` : `/services/${currentServiceId}/daily-stats-by-user.json`;
219+
var userTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
220+
221+
var url = type === 'service'
222+
? `/services/${currentServiceId}/daily-stats.json?timezone=${encodeURIComponent(userTimezone)}`
223+
: `/services/${currentServiceId}/daily-stats-by-user.json`;
224+
225+
220226
return fetch(url)
221227
.then(response => {
222228
if (!response.ok) {

app/assets/javascripts/totalMessagesChart.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
var chartTitle = document.getElementById('chartTitle').textContent;
77

88
// Access data attributes from the HTML
9-
var sms_sent = parseInt(chartContainer.getAttribute('data-sms-sent'));
10-
var sms_remaining_messages = parseInt(chartContainer.getAttribute('data-sms-allowance-remaining'));
11-
var totalMessages = sms_sent + sms_remaining_messages;
9+
var messagesSent = parseInt(chartContainer.getAttribute('data-messages-sent'));
10+
var messagesRemaining = parseInt(chartContainer.getAttribute('data-messages-remaining'));
11+
var totalMessages = messagesSent + messagesRemaining;
1212

1313
// Update the message below the chart
14-
document.getElementById('message').innerText = `${sms_sent.toLocaleString()} sent / ${sms_remaining_messages.toLocaleString()} remaining`;
14+
document.getElementById('message').innerText = `${messagesSent.toLocaleString()} sent / ${messagesRemaining.toLocaleString()} remaining`;
1515

1616
// Calculate minimum width for "Messages Sent" as 1% of the total chart width
17-
var minSentPercentage = (sms_sent === 0) ? 0 : 0.02;
17+
var minSentPercentage = (messagesSent === 0) ? 0 : 0.02;
1818
var minSentValue = totalMessages * minSentPercentage;
19-
var displaySent = Math.max(sms_sent, minSentValue);
19+
var displaySent = Math.max(messagesSent, minSentValue);
2020
var displayRemaining = totalMessages - displaySent;
2121

2222
var svg = d3.select("#totalMessageChart");
@@ -48,7 +48,7 @@
4848
.attr("width", 0) // Start with width 0 for animation
4949
.on('mouseover', function(event) {
5050
tooltip.style('display', 'block')
51-
.html(`Messages Sent: ${sms_sent.toLocaleString()}`);
51+
.html(`Messages Sent: ${messagesSent.toLocaleString()}`);
5252
})
5353
.on('mousemove', function(event) {
5454
tooltip.style('left', `${event.pageX + 10}px`)
@@ -66,7 +66,7 @@
6666
.attr("width", 0) // Start with width 0 for animation
6767
.on('mouseover', function(event) {
6868
tooltip.style('display', 'block')
69-
.html(`Remaining: ${sms_remaining_messages.toLocaleString()}`);
69+
.html(`Remaining: ${messagesRemaining.toLocaleString()}`);
7070
})
7171
.on('mousemove', function(event) {
7272
tooltip.style('left', `${event.pageX + 10}px`)
@@ -115,9 +115,9 @@
115115
var tbodyRow = document.createElement('tr');
116116

117117
var tdMessagesSent = document.createElement('td');
118-
tdMessagesSent.textContent = sms_sent.toLocaleString(); // Value for Messages Sent
118+
tdMessagesSent.textContent = messagesSent.toLocaleString(); // Value for Messages Sent
119119
var tdRemaining = document.createElement('td');
120-
tdRemaining.textContent = sms_remaining_messages.toLocaleString(); // Value for Remaining
120+
tdRemaining.textContent = messagesRemaining.toLocaleString(); // Value for Remaining
121121

122122
tbodyRow.appendChild(tdMessagesSent);
123123
tbodyRow.appendChild(tdRemaining);

app/assets/pdf/TCPA-Overview.pdf

247 KB
Binary file not shown.
Binary file not shown.
494 KB
Binary file not shown.

0 commit comments

Comments
 (0)