feat: Add torrent health indicator - #1374
Open
Raphael005 wants to merge 1 commit into
Open
Conversation
Implement a visual health indicator for torrents based on seeder availability. Backend changes: - Add TorrentHealth enum (CRITICAL to EXCELLENT) to shared/types/Torrent.ts - Create calculateTorrentHealth utility in shared/util/torrentHealth.ts - Update all 5 client adapters (rTorrent, qBittorrent, Transmission, Deluge, Neptune) to compute and include health in torrent properties Frontend changes: - Add health column to TorrentListColumns - Add i18n strings for health labels (Critical, Poor, Fair, Good, Excellent) - Create Health icon (heart-shaped SVG) - Create HealthIndicator component with color-coded labels - Update TorrentListCell to render health column - Add health-indicator SCSS styles with color variations - Update FloodSettings schema with default health column configuration Health levels: - Critical (red): No seeders - Poor (orange): 1-2 seeders - Fair (yellow): 3-5 seeders - Good (light green): 6-10 seeders - Excellent (green): 10+ seeders Co-Authored-By: Warp <agent@warp.dev>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1374 +/- ##
==========================================
+ Coverage 56.05% 56.41% +0.36%
==========================================
Files 96 96
Lines 4223 4304 +81
Branches 860 874 +14
==========================================
+ Hits 2367 2428 +61
- Misses 1655 1665 +10
- Partials 201 211 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
|
please fix ci, otherwize I'll close this |
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.
Summary
Implement a visual health indicator for torrents based on seeder availability.
Changes
Backend
TorrentHealthenum (CRITICAL to EXCELLENT) toshared/types/Torrent.tscalculateTorrentHealthutility inshared/util/torrentHealth.tsFrontend
Health Levels
Testing
pnpm run check-types)pnpm run lint)Co-Authored-By: Warp agent@warp.dev