Skip to content

Add sample torrents bottom sheet for quick testing#10

Merged
jpcottin merged 1 commit into
masterfrom
feature/sample-torrents
May 31, 2026
Merged

Add sample torrents bottom sheet for quick testing#10
jpcottin merged 1 commit into
masterfrom
feature/sample-torrents

Conversation

@jpcottin

Copy link
Copy Markdown
Owner

Summary

Add a curated sample torrents library for quick testing without needing to manually enter magnet links.

  • Displays 4 public domain / Creative Commons films (Big Buck Bunny, Cosmos Laundromat, Sintel, Tears of Steel)
  • One-tap "Add" button to queue torrents for download
  • Bottom sheet UI that integrates seamlessly with existing magnet input flow

Testing

  • ✅ Unit tests: all passing
  • ✅ UI tests on phone portrait: 23/23 passed
  • ✅ UI tests on phone landscape: 23/23 passed
  • ✅ UI tests on unfolded foldable: 23/23 passed
  • ✅ UI tests on tablet: 23/23 passed
  • ✅ Manual testing: no ANR, sheet opens/closes smoothly

Changes

  • app/src/main/java/com/jpcottin/simpletorrent/data/SampleTorrents.kt: New data class and list
  • app/src/main/java/com/jpcottin/simpletorrent/ui/main/MainScreen.kt: Added SampleTorrentsSheet composable, integrated with MagnetInputBar
  • app/src/screenshotTest/kotlin/com/jpcottin/simpletorrent/ScreenshotTests.kt: Updated preview tests
  • README.md: Added feature description and updated project structure

- New SampleTorrents.kt with curated list of 4 public domain/CC films
- Sample Torrents button (playlist icon) in MagnetInputBar
- Bottom sheet dialog displaying torrents with one-tap 'Add' functionality
- Each torrent shows title, description, and add button
- Dismiss sheet before adding magnet to prevent ANR
- Updated MagnetInputBar signature with onSampleTorrents callback
- Updated all related composable previews and screenshot tests
- Updated README with new feature and project structure
- Comprehensive testing: 23/23 unit + UI tests passed on phone portrait/landscape, unfolded foldable, and tablet
@jpcottin jpcottin merged commit 081cc68 into master May 31, 2026
4 checks passed
@jpcottin jpcottin deleted the feature/sample-torrents branch May 31, 2026 04:34
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