Skip to content

feat(player): let the queue remove the playing video from its playlist - #876

Merged
A-EDev merged 2 commits into
mainfrom
feat/queue-remove-playing
Dec 5, 2026
Merged

A-EDev merged 2 commits into
mainfrom
feat/queue-remove-playing

Conversation

@A-EDev

@A-EDev A-EDev commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • The queue's remove button on the playing video now works when the queue plays your own playlist or Watch Later. The video leaves the playlist and keeps playing, then leaves the queue once playback moves on. The toast offers Undo.
  • Player store: leavingQueueId and detachFromPlaylist. playQueueItem and playPrevious drop the leaving video, and fix the index, when playback moves off it. Every queue reset clears it.
  • Taking a video out of the playing playlist from the Save sheet now updates the queue the same way (followPlaylistRemoval).
  • The button reads "Remove from playlist" on the playing row, with Android's translations.

Related issue

Refs #868 (the comment asking for the queue's remove button on the playing video). #875 closed the issue.

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Documentation
  • Build, packaging, or CI

Validation

  • pnpm test: 617 files, 3504 tests passed (new cases in usePlayerStore.test.ts and queuePlaylistEdits.test.ts)
  • pnpm build: tsc and vite build passed
  • cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check: clean
  • cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-features: passed (existing warnings only)
  • cargo test --manifest-path src-tauri/Cargo.toml --all-targets --all-features: 2350 passed, 0 failed (no Rust changes in this PR)
  • I smoke-tested the affected desktop behavior.

Scripted in a macOS dev build on a test profile with a three-video Watch Later queue: the playing row's button was enabled and labelled Remove from playlist; clicking it removed the video from Watch Later, kept it playing, showed the Undo toast and dropped the count to 2; Next removed it from the queue and played the second video at index 0. Undo, Previous, shuffle and repeat all were covered by store tests, not in the app.

Screenshots or recordings

Risk and compatibility

  • No new secrets, private data, telemetry, or broad Tauri permissions were introduced.
  • User-facing documentation was updated where needed.
  • Dependency and lockfile changes are intentional and limited to this PR.
  • Breaking changes and upgrade steps are clearly documented.

Touches the player store's queue navigation, which autoplay, shuffle and the pop-out window rely on. No change to playback itself, and no migrations, database, network or background work. Android still disables this button, so this goes beyond the Android app.

Base automatically changed from fix/save-sheet-toggle to main December 5, 2026 20:37
@A-EDev
A-EDev force-pushed the feat/queue-remove-playing branch from 4edb22b to 10c6ee4 Compare December 5, 2026 20:39
@A-EDev
A-EDev merged commit ef1d515 into main Dec 5, 2026
11 checks passed
@A-EDev
A-EDev deleted the feat/queue-remove-playing branch December 5, 2026 20:57
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