Skip to content

feat: Save play queue as new or existing playlist#792

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-playlist-options
Draft

feat: Save play queue as new or existing playlist#792
Copilot wants to merge 2 commits intomainfrom
copilot/add-playlist-options

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

Users had no way to persist the current play queue as a playlist. This adds a "Save as playlist" button to the play queue toolbar that lets users either create a new playlist from the queue or append all queue items to an existing one.

Changes

  • PlayQueueViewModel — Added PlaylistsContext constructor dependency and SaveQueueAsNewPlaylistAsync(string) method that creates a PlaylistViewModel from all current queue items, persists it, and inserts it into the shared context.

  • PlayQueueControl.xaml — Added "Save as playlist" button (enabled only when queue is non-empty) with a MenuFlyout. Updated Minimal visual state to collapse the label and show a tooltip, consistent with the other toolbar buttons.

  • PlayQueueControl.xaml.csSaveAsPlaylistFlyout_OnOpening dynamically builds the flyout on each open:

    • Create new playlist — shows CreatePlaylistDialog, then calls SaveQueueAsNewPlaylistAsync
    • Existing playlists — one item per playlist; each invokes playlist.AddItemsCommand with a snapshot of the current queue items
  • en-US/Resources.resw — Added SaveAsPlaylist string ("Save as playlist").

Original prompt

implement options to convert the current play queue into a new playlist or add into an existing playlist.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Add a 'Save as playlist' button to the play queue toolbar that allows
users to either create a new playlist from all current queue items or
add all queue items to an existing playlist.

- Add SaveAsPlaylist localization string to en-US/Resources.resw
- Add PlaylistsContext dependency and SaveQueueAsNewPlaylistAsync method
  to PlayQueueViewModel to create persistent playlists from the queue
- Add Save as playlist button with dynamic MenuFlyout to PlayQueueControl
  that shows Create new playlist plus all existing playlists
- Update Minimal visual state to collapse label and show tooltip

Co-authored-by: huynhsontung <31434093+huynhsontung@users.noreply.github.com>
Copilot AI changed the title [WIP] Add options to convert play queue to playlist feat: Save play queue as new or existing playlist Mar 1, 2026
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