Repository navigation
feat(player): let the queue remove the playing video from its playlist - #876
Merged
Merged
Conversation
A-EDev
force-pushed
the
feat/queue-remove-playing
branch
from
December 5, 2026 20:39
4edb22b to
10c6ee4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
leavingQueueIdanddetachFromPlaylist.playQueueItemandplayPreviousdrop the leaving video, and fix the index, when playback moves off it. Every queue reset clears it.followPlaylistRemoval).Related issue
Refs #868 (the comment asking for the queue's remove button on the playing video). #875 closed the issue.
Change type
Validation
pnpm test: 617 files, 3504 tests passed (new cases inusePlayerStore.test.tsandqueuePlaylistEdits.test.ts)pnpm build: tsc and vite build passedcargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check: cleancargo 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)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
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.