You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(web): add duplicate playlist flow under the New nav button
Adds a "Duplicate Playlist" secondary action to the sidebar's New (+)
popup menu. Opens a modal where the user pastes any public Audius
playlist URL, sees a preview of the source playlist (title, description,
cover art), and toggles per-field switches to customize what should
differ in the copy. The duplicated playlist is created as private by
default (enforced by the existing optimisticallySavePlaylist saga).
Scope:
- Metadata-only duplication for now. Tracks are not copied — a follow-up
PR will support full duplicate including track contents. The modal
surfaces this with a helper line so users know they need to add tracks
separately.
- Reuses the existing createPlaylist saga: when artwork is not
customized, we pass the source playlist's cover_art_sizes CID through
so the saga reuses the cover instead of treating it as a new upload.
Implementation:
- New `DuplicatePlaylistModal` Redux modal slice (createModal helper).
- New `DuplicatePlaylistModal` component (Harmony Modal + TextInput +
Switch + TextArea + Artwork + UploadArtwork).
- Resolves pasted URL → permalink via `getPathFromPlaylistUrl`, then
loads the source via `useCollectionByPermalink`.
- Wires "Duplicate Playlist" into `CreatePlaylistLibraryItemButton`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments