examples: channels demo - transfer controls, add-magnet, open-folder, fix clipped Peers column#26
Draft
SethMorrowSoftware wants to merge 1 commit into
Draft
examples: channels demo - transfer controls, add-magnet, open-folder, fix clipped Peers column#26SethMorrowSoftware wants to merge 1 commit into
SethMorrowSoftware wants to merge 1 commit into
Conversation
… 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
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.
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
btPause/btResume/btRemoveTorrent). Remove asks Keep Files vs Delete Files vs Cancel, so deleting from disk is always a deliberate choice.pausedin the State column (btTorrentStatus["isPaused"]) and go grey, so a stopped transfer is obvious at a glance.Open Folder (+ double-click)
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
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)
tabStopsplaced 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
tools/check-livecodescript.py: 5 files OK.launch documentopens 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