Priority report: fix badge colors to match tier definitions#177
Merged
StudioNirin merged 1 commit intoJun 5, 2026
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #175
Problem
On the Priority Report (and the storage breakdown, file table, and eviction simulator), the per-item score badges were colored with outdated thresholds —
>= 70for green/high and>= 40for orange/medium. The Priority Distribution legend and the backend tier counts use90-100high,70-89medium,0-69low. As a result the badge color contradicted the legend: a score of 85 or 70 showed green (when the legend marks them medium), and a 60 showed orange (when the legend marks it low/eviction).Fix
Align the badge color thresholds in the four templates with the canonical tier boundaries already used by the backend (
cache_service.py):>= 90-> high (green)>= 70-> medium (orange)< 70-> low (red)This makes the list badges match the Priority Distribution cards, the footer summary badges, and the actual eviction behavior.
Test steps
--show-priorities).