Skip to content

refactor(C9): migrate create-playlist tracks to domain TrackInfo type#322

Merged
LargeModGames merged 1 commit into
multi-sourcefrom
worktree-agent-a19be24d7823b302c
Jun 22, 2026
Merged

refactor(C9): migrate create-playlist tracks to domain TrackInfo type#322
LargeModGames merged 1 commit into
multi-sourcefrom
worktree-agent-a19be24d7823b302c

Conversation

@LargeModGames

Copy link
Copy Markdown
Owner

Summary

  • Replaces Vec<FullTrack> with Vec<TrackInfo> for create_playlist_tracks and create_playlist_search_results in App
  • Network layer (search_tracks_for_playlist) now maps fetched FullTrack results to TrackInfo before storing, keeping rspotify types confined to infra/network/
  • UI (create_playlist.rs) and handler (create_playlist.rs) updated to read domain fields (TrackInfo.name, TrackInfo.artists: Vec<String>)
  • Dispatch site rebuilds Vec<TrackId> from TrackInfo.id (base62 strings) when submitting the playlist to the API; residual rspotify at the dispatch site is expected per the slice spec

Test plan

  • cargo clippy --no-default-features --features telemetry -- -D warnings passes clean
  • cargo test --no-default-features --features telemetry passes (261 tests)
  • cargo build (full build with streaming) passes
  • cargo fmt --all applied

Replace Vec<FullTrack> with Vec<TrackInfo> for create_playlist_tracks and
create_playlist_search_results in App. The network layer now maps fetched
FullTrack results to TrackInfo before storing, keeping rspotify types confined
to infra/network. The dispatch site rebuilds Vec<TrackId> from TrackInfo.id
strings when submitting the playlist to the API.
@LargeModGames LargeModGames merged commit 11caa41 into multi-source Jun 22, 2026
5 checks passed
@LargeModGames LargeModGames deleted the worktree-agent-a19be24d7823b302c branch June 22, 2026 12:37
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