Skip to content

Conversation

@MikeO7
Copy link

@MikeO7 MikeO7 commented Oct 20, 2025

Changes Made
Frontend (frontend/static/js/new-main.js)
✅ Added "Grabs Today" metric - Now displays daily successful grabs alongside searches
✅ Removed "Total Searches" metric - Eliminated confusing duplicate that showed same value as "Searches Today"
✅ Simplified Success Rate colors - Changed from 3-tier threshold (80%/60%/error) to simple binary: green if > 0%, red if 0%
✅ Removed dead code - Deleted unused loadProwlarrStats() and updateProwlarrStatsDisplay() functions (62 lines) that referenced non-existent HTML elements

Frontend CSS (frontend/templates/components/home_section.html)
✅ Fixed Success Rate card visibility - Label was being cut off due to insufficient height
✅ Standardized card sizing - All stat cards now uniform height (60px) with consistent padding (10px 12px)
✅ Adjusted typography - Reduced label font-size to 0.7em and value font-size to 1.3em for better fit
✅ Added explicit overrides - Used !important on Prowlarr stats to prevent inherited padding/margin issues
✅ Improved alignment - Added align-items: center for consistent vertical centering

Backend (src/primary/apps/prowlarr_routes.py)
✅ Removed total_api_calls tracking - No longer calculated or stored in stats
✅ Removed unnecessary API calls - Deleted code attempting to fetch lifetime totals from Prowlarr
✅ Added grabs_today to stats - Now properly tracked and returned in API responses
✅ Cleaned up logging - Removed references to total_api_calls from debug messages
✅ Updated indexer stats endpoint - Returns grabs_today instead of total_api_calls

Updated Statistics:
image

… Redundant Metrics

Changes Made
Frontend (frontend/static/js/new-main.js)
✅ Added "Grabs Today" metric - Now displays daily successful grabs alongside searches
✅ Removed "Total Searches" metric - Eliminated confusing duplicate that showed same value as "Searches Today"
✅ Simplified Success Rate colors - Changed from 3-tier threshold (80%/60%/error) to simple binary: green if > 0%, red if 0%
✅ Removed dead code - Deleted unused loadProwlarrStats() and updateProwlarrStatsDisplay() functions (62 lines) that referenced non-existent HTML elements
Frontend CSS (frontend/templates/components/home_section.html)
✅ Fixed Success Rate card visibility - Label was being cut off due to insufficient height
✅ Standardized card sizing - All stat cards now uniform height (60px) with consistent padding (10px 12px)
✅ Adjusted typography - Reduced label font-size to 0.7em and value font-size to 1.3em for better fit
✅ Added explicit overrides - Used !important on Prowlarr stats to prevent inherited padding/margin issues
✅ Improved alignment - Added align-items: center for consistent vertical centering
Backend (src/primary/apps/prowlarr_routes.py)
✅ Removed total_api_calls tracking - No longer calculated or stored in stats
✅ Removed unnecessary API calls - Deleted code attempting to fetch lifetime totals from Prowlarr
✅ Added grabs_today to stats - Now properly tracked and returned in API responses
✅ Cleaned up logging - Removed references to total_api_calls from debug messages
✅ Updated indexer stats endpoint - Returns grabs_today instead of total_api_calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant