Skip to content

fix(playlists): choosing a playlist the video is in takes it out - #875

Merged
A-EDev merged 3 commits into
mainfrom
fix/save-sheet-toggle
Dec 5, 2026
Merged

A-EDev merged 3 commits into
mainfrom
fix/save-sheet-toggle

Conversation

@A-EDev

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

Copy link
Copy Markdown
Collaborator

Summary

  • The Save sheet shows a bookmark on each playlist, filled when the video is in it. Choosing a playlist that holds the video takes it out, as on Flow for Android.
  • Rows toggle and the sheet stays open. The change shows at once and is put back, with a Retry toast, if the write fails.
  • New src/lib/playlistMembership.ts (which playlists hold a video, add or remove) and useVideoPlaylistMembership hook. The sheet reuses the existing playlist library writes.
  • The sheet is titled "Save to", with Android's translations, and Escape closes it.
  • Changelog line under a new LIBRARY AND PLAYLISTS section.

Related issue

Closes #868

Change type

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

Validation

  • pnpm test: 617 files, 3496 tests passed (new: playlistMembership.test.ts, useVideoPlaylistMembership.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, 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 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.

No migrations or schema changes. Removals use the same user_playlists write 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 old playlist_add_modal_title string is replaced by playlist_save_modal_title in all locales (Android has no translation for si, sl, ta and ur, so those fall back to English).

@A-EDev
A-EDev merged commit 35ec126 into main Dec 5, 2026
11 checks passed
@A-EDev
A-EDev deleted the fix/save-sheet-toggle branch December 5, 2026 20:37
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.

[Bug]: Add to playlist/"Saved" button doesn't behave like on Android

1 participant