Skip to content

Added an info button for torrent seed percent/leach#35

Merged
taylorcox75 merged 1 commit into
mainfrom
bugfix/#34
Feb 18, 2026
Merged

Added an info button for torrent seed percent/leach#35
taylorcox75 merged 1 commit into
mainfrom
bugfix/#34

Conversation

@taylorcox75
Copy link
Copy Markdown
Owner

Add info button for torrent seed/peer completion details

Summary

Adds an info button next to Seeds and Peers in torrent details that opens a modal showing connected peers and their completion percentages (e.g., 100%, 59%, 22%).

Changes

Torrent details view (app/torrent/[hash].tsx):

  • Info button next to Seeds and Peers in the Details section
  • Modal listing connected peers with progress, IP, and client
  • Peers sorted by progress (seeds first, then leeches by %)

TorrentDetails component (components/TorrentDetails.tsx):

  • Same info button and modal next to Seeds/Peers StatCards

API:

  • Uses existing syncApi.getTorrentPeers() (qBittorrent /api/v2/sync/torrentPeers)
  • Uses progress from the API for completion %

UX

  • Info icon next to Seeds and Peers
  • Tapping opens a bottom-sheet modal titled "Connected Peers"
  • Each peer shows XX.X% | IP:Port plus client name when available
  • Loading state while fetching
  • Empty state when there are no peers

Files modified

  • app/torrent/[hash].tsx — peer modal, handler, styles
  • components/TorrentDetails.tsx — peer modal, handler, styles

Testing

  • Open a torrent with active seeds/peers and tap the info button; modal shows peers and %
  • Open a torrent with no peers; modal shows empty state
  • Matches peer info shown in the qBittorrent WebUI

@taylorcox75 taylorcox75 merged commit 7aefb8e into main Feb 18, 2026
@taylorcox75 taylorcox75 deleted the bugfix/#34 branch February 18, 2026 00:21
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