From 8949d0b8c67daf7349199c673f9427aa0e61e354 Mon Sep 17 00:00:00 2001 From: Brandon Haney <121782102+Brandon-Haney@users.noreply.github.com> Date: Fri, 5 Jun 2026 08:48:14 -0500 Subject: [PATCH] Priority report: align badge color thresholds with tier definitions The score badges in the priority report, storage breakdown, file table, and eviction simulator colored scores with stale cutoffs (>=70 high, >=40 medium), so the badge color disagreed with the Priority Distribution legend and the backend tier counts. Use the canonical boundaries (>=90 high, >=70 medium, <70 low) so badges match the distribution cards, the footer summary, and eviction behavior. --- web/templates/cache/partials/eviction_simulation.html | 2 +- web/templates/cache/partials/file_table.html | 2 +- web/templates/cache/partials/priorities_content.html | 2 +- web/templates/cache/partials/storage_stats.html | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/templates/cache/partials/eviction_simulation.html b/web/templates/cache/partials/eviction_simulation.html index e11b9d84..44ffd6a5 100644 --- a/web/templates/cache/partials/eviction_simulation.html +++ b/web/templates/cache/partials/eviction_simulation.html @@ -38,7 +38,7 @@ {{ file.filename }} {{ file.size_display }} - + {{ file.priority_score }} diff --git a/web/templates/cache/partials/file_table.html b/web/templates/cache/partials/file_table.html index e21e0f01..08ffd306 100644 --- a/web/templates/cache/partials/file_table.html +++ b/web/templates/cache/partials/file_table.html @@ -17,7 +17,7 @@ {% if eviction_enabled %} - + {{ file.priority_score }} diff --git a/web/templates/cache/partials/priorities_content.html b/web/templates/cache/partials/priorities_content.html index 822fd9e3..7f5bf035 100644 --- a/web/templates/cache/partials/priorities_content.html +++ b/web/templates/cache/partials/priorities_content.html @@ -166,7 +166,7 @@

Item Priority Details

- + {{ file.priority_score }} diff --git a/web/templates/cache/partials/storage_stats.html b/web/templates/cache/partials/storage_stats.html index 784f7a65..af9d4573 100644 --- a/web/templates/cache/partials/storage_stats.html +++ b/web/templates/cache/partials/storage_stats.html @@ -325,7 +325,7 @@

Largest Items

{% if data.config.eviction_enabled %} - + {{ file.priority_score }} @@ -391,7 +391,7 @@

Oldest Cached Items

{% if data.config.eviction_enabled %} - + {{ file.priority_score }} @@ -467,7 +467,7 @@

Recently Cached

{% if data.config.eviction_enabled %} - + {{ file.priority_score }} @@ -546,7 +546,7 @@

Watchlist Expiring Soon

{% if data.config.eviction_enabled %} - + {{ item.file.priority_score }}