Repository navigation
fix(playlists): choosing a playlist the video is in takes it out - #875
Merged
Merged
Conversation
10 of 15 tasks
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
src/lib/playlistMembership.ts(which playlists hold a video, add or remove) anduseVideoPlaylistMembershiphook. The sheet reuses the existing playlist library writes.Related issue
Closes #868
Change type
Validation
pnpm test: 617 files, 3496 tests passed (new:playlistMembership.test.ts,useVideoPlaylistMembership.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, from the watch page's Save button: add to Watch Later (row filled, button reads Saved, sheet stays open), create a playlist (new row filled), remove from both (rows empty, button reads Save), Escape closes the sheet and leaves theater mode alone. A failed write was covered by the hook test, not in the app.
Screenshots or recordings
Risk and compatibility
No migrations or schema changes. Removals use the same
user_playlistswrite the playlist page's remove uses, so sync sees the same change it already handles. The success toast after each choice is gone; a failed write still shows one. The oldplaylist_add_modal_titlestring is replaced byplaylist_save_modal_titlein all locales (Android has no translation for si, sl, ta and ur, so those fall back to English).