From 771abf62e2c656868bd4e3495feaba6caf515c54 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 30 Apr 2026 22:08:26 +0100 Subject: [PATCH] feat: Refactor series tag consistency modal with improved UI and analysis functionality Co-authored-by: Copilot --- .../partials/_series_tag_consistency.html | 289 ++++++++++++------ atlas/templates/atlas/series_viewer.html | 19 +- atlas/views.py | 2 + 3 files changed, 204 insertions(+), 106 deletions(-) diff --git a/atlas/templates/atlas/partials/_series_tag_consistency.html b/atlas/templates/atlas/partials/_series_tag_consistency.html index bbd8be34..66ebc3de 100644 --- a/atlas/templates/atlas/partials/_series_tag_consistency.html +++ b/atlas/templates/atlas/partials/_series_tag_consistency.html @@ -1,107 +1,194 @@ {% load django_htmx %} -
-
- +
+ + + - {% if analyze_requested %} -
- Same: {{ same_tags|length }} - Different: {{ different_tags|length }} - Missing in some: {{ partial_tags|length }} -
- -
- Different tags (highlighted) -
- - - - - - - - - - {% for row in different_tags %} - - - - - - {% empty %} - - - - {% endfor %} - -
TagUnique valuesSample values
{{ row.tag_name }}{{ row.unique_count }}{{ row.sample_values|join:", " }}
No tags vary across all images.
-
-
- -
- Same tags -
- - - - - - - - - {% for row in same_tags %} - - - - - {% empty %} - - - - {% endfor %} - -
TagValue
{{ row.tag_name }}{{ row.sample_values.0 }}
No uniform tags found across all images.
-
-
- -
- Missing in some images -
- - - - - - - - - - {% for row in partial_tags %} - - - - - - {% empty %} - - - - {% endfor %} - -
TagPresent inUnique values
{{ row.tag_name }}{{ row.present_count }}/{{ image_count }}{{ row.unique_count }}
All scanned tags were present in every image.
-
-
- {% else %} -

Run analysis to quickly highlight tags that are the same or different across the series.

- {% endif %} +
+ + diff --git a/atlas/templates/atlas/series_viewer.html b/atlas/templates/atlas/series_viewer.html index e58947c4..3b7d1d66 100755 --- a/atlas/templates/atlas/series_viewer.html +++ b/atlas/templates/atlas/series_viewer.html @@ -195,11 +195,14 @@ hx-swap="outerHTML"> Loading split controls…
-
- Loading tag analysis controls... -
+
@@ -244,6 +247,12 @@ + +