Removed polling logic from status page and added button instead

This commit is contained in:
Alex Janousek
2025-09-26 16:21:50 -04:00
parent 80065c8200
commit 5b4a1820a9
2 changed files with 9 additions and 2 deletions

View File

@@ -12,7 +12,13 @@
{{ page_header("Message status") }}
{% if not job.finished_processing %}
<p class="max-width-full">This page refreshes automatically to show the latest message activity delivery rates, details, and reports.<br>You can watch it in progress or check back later.</p>
<p class="max-width-full">This page no longer refreshes automatically. Use the refresh button below to check the latest message status.</p>
<form method="get" style="display: inline-block;">
<button type="submit" class="usa-button usa-button--outline">
Refresh Status
</button>
</form>
<br><br>
{% endif %}
<div data-job-id="{{ job.id }}" data-host="{{ api_public_url }}">
{% if not job.finished_processing and FEATURE_SOCKET_ENABLED %}

View File

@@ -79,7 +79,7 @@ const javascripts = () => {
paths.src + 'javascripts/activityChart.js',
paths.src + 'javascripts/sidenav.js',
paths.src + 'javascripts/validation.js',
paths.src + 'javascripts/job-status-polling.js',
// paths.src + 'javascripts/job-status-polling.js', // Disabled for manual refresh mode
paths.src + 'javascripts/scrollPosition.js',
])
.pipe(plugins.prettyerror())
@@ -105,6 +105,7 @@ const copySetTimezone = () => {
return src(paths.src + 'js/setTimezone.js').pipe(dest(paths.dist + 'js/'));
};
// Task to copy images
const copyImages = () => {
return src(paths.src + 'images/**/*', { encoding: false }).pipe(