Prowlarr Statistics UI Improvements: Fixed Display Issues and Removed Redundant Metrics #740
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.
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:
