Skip to content

examples: channels demo - transfer controls, add-magnet, open-folder, fix clipped Peers column#26

Draft
SethMorrowSoftware wants to merge 1 commit into
mainfrom
claude/relaxed-cerf-816pyn
Draft

examples: channels demo - transfer controls, add-magnet, open-folder, fix clipped Peers column#26
SethMorrowSoftware wants to merge 1 commit into
mainfrom
claude/relaxed-cerf-816pyn

Conversation

@SethMorrowSoftware

Copy link
Copy Markdown
Owner

Four easy-win upgrades to the (now fully working) DHT channels demo, all using handlers the binding already exposes. Keeps the two-column 720p layout.

Transfers becomes an interactive client

  • Pause / Resume / Remove act on the selected transfer (btPause / btResume / btRemoveTorrent). Remove asks Keep Files vs Delete Files vs Cancel, so deleting from disk is always a deliberate choice.
  • Paused rows show paused in the State column (btTorrentStatus["isPaused"]) and go grey, so a stopped transfer is obvious at a glance.

Open Folder (+ double-click)

  • Open Folder opens the selected transfer's download folder in the OS file manager (btTorrentStatus["savePath"] + launch document, try-wrapped; the path is always logged as a fallback). Double-clicking a transfer row does the same. Closes the loop after a download.

Add Magnet

  • A box + button to paste any magnet link or 40/64-char info-hash and download it directly (btAddMagnet), not only releases from channels you follow. Bare info-hashes are wrapped into a magnet URI.

Fix the clipped Peers column (the visible glitch)

  • The transfers tabStops placed Peers under the vertical scrollbar, so it was invisible. Pulled the columns in (26,250,340,470) and trimmed the Name to 32 chars so a long name never shoves the other columns right. Peers now shows.

Layout

Right column reflowed to fit the magnet row and the action-button row above the file-detail panel; still two columns, still fits a 720p (1280x720) screen. Tooltips, in-app help, and the header doc updated.

Verification

  • Examples only — no shim/ABI change.
  • tools/check-livecodescript.py: 5 files OK.
  • Verified statically; wants an OXT pass for the look and to confirm launch document opens the folder on the target platform (the path is logged either way).

🤖 Generated with Claude Code

https://claude.ai/code/session_01371AXB4CUUke7enHHS8okc


Generated by Claude Code

… peers fix

Four easy-win upgrades to the (now working) DHT channels demo, all using
handlers the binding already exposes:

- Transfer controls: Pause / Resume / Remove act on the selected transfer
  (btPause / btResume / btRemoveTorrent). Remove asks Keep Files vs Delete
  Files vs Cancel. Paused rows show "paused" (btTorrentStatus isPaused) and
  go grey, so the read-only dashboard is now an interactive client.
- Open Folder: opens the selected transfer's download folder in the OS file
  manager (btTorrentStatus savePath + launch document, try-wrapped, and the
  path is always logged). Double-clicking a transfer row does the same.
- Add Magnet: a box + button to paste any magnet link or 40/64-char
  info-hash and download it directly (btAddMagnet), not only channel
  releases. Bare info-hashes are wrapped into a magnet URI.
- Fix the clipped Peers column: the transfers tabStops put Peers under the
  vertical scrollbar so it was invisible. Pulled the columns in
  (26,250,340,470) and trimmed the Name to 32 chars so it never shoves the
  others right; Peers now shows.

Right column reflowed to fit the magnet + action rows above the file-detail
panel; still two columns, still fits 720p. Tooltips + in-app help + header
doc updated. Examples only - no shim/ABI change. Verified statically
(check-livecodescript: 5 files OK); needs an OXT pass for the look + the
launch-document folder open.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01371AXB4CUUke7enHHS8okc
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