Skip to content

feat: Add torrent health indicator - #1374

Open
Raphael005 wants to merge 1 commit into
jesec:masterfrom
Raphael005:feat/health-indicator
Open

feat: Add torrent health indicator#1374
Raphael005 wants to merge 1 commit into
jesec:masterfrom
Raphael005:feat/health-indicator

Conversation

@Raphael005

Copy link
Copy Markdown

Summary

Implement a visual health indicator for torrents based on seeder availability.

Changes

Backend

  • 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

  • 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

Level Color Seeders
Critical Red 0
Poor Orange 1-2
Fair Yellow 3-5
Good Light Green 6-10
Excellent Green 10+

Testing

  • All TypeScript type checks pass (pnpm run check-types)
  • All ESLint checks pass (pnpm run lint)
  • Unit tests pass (integration tests require torrent client binaries)

Co-Authored-By: Warp agent@warp.dev

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

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 40.62500% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.41%. Comparing base (914a82b) to head (dfbd3ca).
⚠️ Report is 163 commits behind head on master.

Files with missing lines Patch % Lines
shared/util/torrentHealth.ts 28.00% 15 Missing and 3 partials ⚠️
server/services/Deluge/clientGatewayService.ts 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@trim21

trim21 commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

please fix ci, otherwize I'll close this

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.

2 participants