From 0969436abda8edd691f759e9cf00cce257571357 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:04:33 +0000 Subject: [PATCH] feat(ui): add ARIA attributes for accessibility improvements Add aria-hidden="true" to decorative Font Awesome icons across templates, aria-label to icon-only buttons, aria-live to dynamic content regions, aria-labelledby to modals, aria-expanded to toggle buttons, scope="col" to table headers, and aria-label to tables. Also improve alt text on 500.html error image and add aria-label to password toggle buttons. Templates updated: settings.html, credentials.html, status_dashboard.html, file_view.html, file_detail.html, index.html, queue_dashboard.html, audit_log.html, 500.html Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- frontend/templates/500.html | 2 +- frontend/templates/audit_log.html | 22 +++++------ frontend/templates/credentials.html | 27 ++++++------- frontend/templates/file_detail.html | 46 ++++++++++++---------- frontend/templates/file_view.html | 49 +++++++++++++----------- frontend/templates/index.html | 34 ++++++++-------- frontend/templates/queue_dashboard.html | 24 ++++++------ frontend/templates/settings.html | 19 ++++----- frontend/templates/status_dashboard.html | 12 +++--- 9 files changed, 122 insertions(+), 113 deletions(-) diff --git a/frontend/templates/500.html b/frontend/templates/500.html index 90dc65d2..523c5b08 100644 --- a/frontend/templates/500.html +++ b/frontend/templates/500.html @@ -7,7 +7,7 @@
Server Explosion
diff --git a/frontend/templates/audit_log.html b/frontend/templates/audit_log.html index 067cc0b7..2655b955 100644 --- a/frontend/templates/audit_log.html +++ b/frontend/templates/audit_log.html @@ -14,7 +14,7 @@ - Back to Settings + Back to Settings @@ -29,16 +29,16 @@ {% if entries %}
- +
- - - - - - - + + + + + + + @@ -78,7 +78,7 @@ class="inline-flex items-center px-2 py-1 text-xs font-medium rounded border border-gray-300 text-gray-700 bg-white hover:bg-yellow-50 hover:border-yellow-400 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-yellow-400 disabled:opacity-50 disabled:cursor-not-allowed" title="Revert '{{ entry.key }}' to the value in this log entry" > - Rollback + RollbackWorking… @@ -89,7 +89,7 @@ {% else %}
- +

No configuration changes recorded yet.

Changes you make on the Settings page will appear here.

diff --git a/frontend/templates/credentials.html b/frontend/templates/credentials.html index 081829ad..b137c976 100644 --- a/frontend/templates/credentials.html +++ b/frontend/templates/credentials.html @@ -7,7 +7,7 @@
- +

Credential Audit

@@ -20,7 +20,7 @@

- +
{{ total }}
@@ -29,7 +29,7 @@
- +
{{ configured_count }}
@@ -38,7 +38,7 @@
- +
{{ unconfigured_count }}
@@ -49,7 +49,7 @@
-

Legend

+

Legend

DB @@ -85,7 +85,7 @@
-
WhenChanged BySetting KeyActionOld ValueNew ValueRollbackWhenChanged BySetting KeyActionOld ValueNew ValueRollback
+
@@ -143,11 +143,11 @@ @@ -177,13 +178,13 @@ - Manage Settings + Manage Settings - Raw JSON (API) + Raw JSON (API) diff --git a/frontend/templates/file_detail.html b/frontend/templates/file_detail.html index a39077a3..f329b6c2 100644 --- a/frontend/templates/file_detail.html +++ b/frontend/templates/file_detail.html @@ -958,8 +958,8 @@ {% block content %}
- - + + Back to File List @@ -979,15 +979,15 @@ {% set main_completed = step_summary.main.success + step_summary.main.skipped %} {% set uploads_completed = step_summary.uploads.success + step_summary.uploads.skipped %} {% if file.is_duplicate %} - Duplicate + Duplicate {% elif step_summary.main.failure > 0 or step_summary.uploads.failure > 0 %} - Failed + Failed {% elif step_summary.main["in_progress"] > 0 or step_summary.uploads["in_progress"] > 0 %} - Processing + Processing {% elif step_summary.total_main_steps > 0 and main_completed == step_summary.total_main_steps and step_summary.main.failure == 0 %} - Completed + Completed {% else %} - Pending + Pending {% endif %}
@@ -1066,11 +1066,11 @@ {% if original_file_exists %} - File exists + File exists {% else %} - File not found + File not found {% endif %} @@ -1086,11 +1086,11 @@ {% if processed_file_exists %} - File exists + File exists {% else %} - File not found + File not found {% endif %} @@ -1196,7 +1196,7 @@
- +

Loading PDF...

@@ -1205,11 +1205,11 @@ onclick="loadAndShowText('original', {{ file.id }})" style="margin-top: 0.5rem; background-color: #4299e1; color: white; padding: 0.5rem 1rem; border: none; border-radius: 0.25rem; cursor: pointer; font-weight: 600; width: 100%;" > - View Extracted Text + View Extracted Text {% else %}
- +

Original file not available

{% endif %} @@ -1227,7 +1227,7 @@
- +

Loading PDF...

@@ -1236,11 +1236,11 @@ onclick="loadAndShowText('processed', {{ file.id }})" style="margin-top: 0.5rem; background-color: #48bb78; color: white; padding: 0.5rem 1rem; border: none; border-radius: 0.25rem; cursor: pointer; font-weight: 600; width: 100%;" > - View Extracted Text + View Extracted Text {% else %}
- +

Processed file not available yet

{% endif %} @@ -1259,14 +1259,16 @@ id="original-copy-btn" onclick="copyTextToClipboard('original')" style="background-color: #4299e1; color: white; padding: 0.5rem 1rem; border: none; border-radius: 0.25rem; cursor: pointer; font-weight: 600;" + aria-label="Copy extracted text" > - Copy + Copy @@ -1288,14 +1290,16 @@ id="processed-copy-btn" onclick="copyTextToClipboard('processed')" style="background-color: #4299e1; color: white; padding: 0.5rem 1rem; border: none; border-radius: 0.25rem; cursor: pointer; font-weight: 600;" + aria-label="Copy extracted text" > - Copy + Copy diff --git a/frontend/templates/file_view.html b/frontend/templates/file_view.html index 7bb40047..0aaa77fd 100644 --- a/frontend/templates/file_view.html +++ b/frontend/templates/file_view.html @@ -100,8 +100,8 @@ {% elif file %} - - Back to Files + + Back to Files
@@ -121,23 +121,23 @@
{% if file.is_duplicate %} - Duplicate + Duplicate {% elif step_summary %} {% set main_completed = step_summary.main.success + step_summary.main.skipped %} {% if step_summary.main.failure > 0 or step_summary.uploads.failure > 0 %} - Failed + Failed {% elif step_summary.main["in_progress"] > 0 or step_summary.uploads["in_progress"] > 0 %} - Processing + Processing {% elif step_summary.total_main_steps > 0 and main_completed == step_summary.total_main_steps and step_summary.main.failure == 0 %} - Completed + Completed {% else %} - Pending + Pending {% endif %} {% endif %} - Processing Details + Processing Details
@@ -149,7 +149,7 @@
{% if gpt_metadata %}
-
Document Metadata
+
Document Metadata
{% if gpt_metadata.document_type %}
@@ -221,7 +221,7 @@
-
File Info
+
File Info
Uploaded {{ file.created_at.strftime('%Y-%m-%d %H:%M') if file.created_at else 'N/A' }} @@ -246,25 +246,25 @@
-
Actions
+
Actions
{% if processed_file_exists %} - Download (processed) + Download (processed) {% endif %} {% if original_file_exists %} - Download (original) + Download (original) {% endif %} {% if processed_file_exists %} - Open processed + Open processed {% elif original_file_exists %} - Open original + Open original {% endif %}
@@ -274,7 +274,7 @@
-
Preview
+
Preview
{% if processed_file_exists %}
@@ -130,11 +130,11 @@ {% if cred.configured %} - Configured + Configured {% else %} - Missing + Missing {% endif %} {% if cred.source == 'db' %} - DB + DB {% elif cred.source == 'env' %} - ENV + ENV {% else %} @@ -158,9 +158,10 @@ - +