From c3adc753002602337c65de26518df99a6a595b02 Mon Sep 17 00:00:00 2001 From: master3395 Date: Sun, 25 Jan 2026 22:25:21 +0100 Subject: [PATCH] Add NEW/Stale badges to Plugin Store and fix intermittent display issues - Added NEW badge for plugins updated within last 3 months (90 days) - Added Stale badge for plugins not updated in last 2 years (730 days) - Removed Author, Status, and Active columns from Plugin Store view - Fixed intermittent old table display with cache-busting v7 - Added column count validation to ensure correct 8-column structure - Added tooltips for NEW and Stale badges with descriptive messages - Cleared plugin store cache to prevent stale data display - Updated cache-busting version to v7 to force browser refresh --- .../templates/pluginHolder/plugins.html | 59 +++++++++++- pluginHolder/views.py | 95 ++++++++++++++++++- 2 files changed, 148 insertions(+), 6 deletions(-) diff --git a/pluginHolder/templates/pluginHolder/plugins.html b/pluginHolder/templates/pluginHolder/plugins.html index 303866854..1da5d079e 100644 --- a/pluginHolder/templates/pluginHolder/plugins.html +++ b/pluginHolder/templates/pluginHolder/plugins.html @@ -206,6 +206,32 @@ border: 1px solid #ffeaa7; } + /* NEW and Stale badges */ + .plugin-status-badge { + display: inline-block; + padding: 3px 8px; + border-radius: 4px; + font-size: 11px; + font-weight: 600; + text-transform: uppercase; + margin-left: 8px; + vertical-align: middle; + cursor: help; + position: relative; + } + + .plugin-status-badge.new { + background: #ffc107; + color: #000; + box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3); + } + + .plugin-status-badge.stale { + background: #dc3545; + color: white; + box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3); + } + .paid-badge { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); @@ -1249,7 +1275,7 @@