This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/sbp by this push:
     new ec267b80 Style files with blocking check results more consistently
ec267b80 is described below

commit ec267b804424ad68c8ed335f36db855a1866b378
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Feb 13 19:24:15 2026 +0000

    Style files with blocking check results more consistently
---
 atr/static/css/atr.css                       |  5 +++++
 atr/templates/check-selected-path-table.html | 14 +++++++++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/atr/static/css/atr.css b/atr/static/css/atr.css
index 3ab05d90..0949be3f 100644
--- a/atr/static/css/atr.css
+++ b/atr/static/css/atr.css
@@ -607,3 +607,8 @@ td.atr-shrink {
     border-color: rgb(111 0 193 / 75%);
     color: #ffffff;
 }
+
+/* We use rgb for the purple so it can easily be compared to "/ N%" versions */
+.atr-text-blocker {
+    color: rgb(111 0 193) !important;
+}
diff --git a/atr/templates/check-selected-path-table.html 
b/atr/templates/check-selected-path-table.html
index fd960e0f..eb01eb71 100644
--- a/atr/templates/check-selected-path-table.html
+++ b/atr/templates/check-selected-path-table.html
@@ -4,6 +4,7 @@
     <tbody>
       {% for path in paths %}
         {% set has_errors = info and (info.errors[path]|length > 0) %}
+        {% set has_blockers = has_errors and 
(info.errors[path]|selectattr("status.value", "equalto", "blocker")|list|length 
> 0) %}
         {% set has_warnings = info and (info.warnings[path]|length > 0) %}
         {% set row_id = path|string|slugify %}
 
@@ -14,14 +15,18 @@
         {% endif %}
 
         {% set path_style_class = "" %}
-        {% if has_errors %}
+        {% if has_blockers %}
+          {% set path_style_class = "atr-text-blocker" %}
+        {% elif has_errors %}
           {% set path_style_class = "text-danger" %}
         {% elif has_warnings %}
           {% set path_style_class = "text-warning" %}
         {% endif %}
 
         {% set icon_class = "text-success" %}
-        {% if has_errors %}
+        {% if has_blockers %}
+          {% set icon_class = "atr-text-blocker" %}
+        {% elif has_errors %}
           {% set icon_class = "text-danger" %}
         {% elif has_warnings %}
           {% set icon_class = "text-warning" %}
@@ -68,7 +73,10 @@
                 <a href="{{ as_url(get.sbom.report, project=project_name, 
version=version_name, file_path=path) }}"
                    class="btn btn-sm btn-outline-secondary">SBOM report</a>
               {% endif %}
-              {% if has_errors %}
+              {% if has_blockers %}
+                <a href="{{ as_url(get.report.selected_path, 
project_name=project_name, version_name=version_name, rel_path=path) }}"
+                   class="btn btn-sm atr-btn-outline-blocker"><i class="bi 
bi-exclamation-triangle me-1"></i> Show {{ info.errors[path]|length }} {{ 
"error" if info.errors[path]|length == 1 else "errors" }}</a>
+              {% elif has_errors %}
                 <a href="{{ as_url(get.report.selected_path, 
project_name=project_name, version_name=version_name, rel_path=path) }}"
                    class="btn btn-sm btn-outline-danger"><i class="bi 
bi-exclamation-triangle me-1"></i> Show {{ info.errors[path]|length }} {{ 
"error" if info.errors[path]|length == 1 else "errors" }}</a>
               {% elif has_warnings %}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to