Repository navigation
(fix): music-lyrics-share-and-header-truncation - #880
Open
Captain-Vikram wants to merge 6 commits into
Open
Captain-Vikram wants to merge 6 commits into
Captain-Vikram wants to merge 6 commits into
Conversation
…e-and-header-truncation
This branch has not been deployed
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
This PR bundles five targeted stability, UI, settings UX, and performance fixes across the music player, DASH playback teardown, settings layout, and Rust IPC filtering:
Prevent
LyricsShareDialogcrash on track auto-advance (src/components/music/lyrics/LyricsShareDialog.tsx):song,lines, andplayingIndexon dialog open (matching the picker's "read once" intent) and guardedselectedindex lookups viaflatMap."style"step cleareduseLyricsStoreunderneathselected, throwingTypeError: Cannot read properties of undefined (reading 'text').src/components/music/lyrics/LyricsShareDialog.test.ts.Fix
"Playing from ..."header pill vertical clipping (src/components/music/sheet/FullLayer.tsx):line-clamp-1withtruncate(whitespace-nowrap overflow-hidden text-ellipsis) on the"Playing from ..."<p>element.line-clamp-1withpy-2allowed a wrapped second line of a long title to peek into and clip inside the bottom padding of the pill.Abort pending
dash.jsXHRs before destroy (src/components/player/Player.tsx):XMLHttpRequestinstances viaRequestModifier.modifyRequestHeaderand aborted them during effect cleanup before callingplayer.destroy(), preventingdash.jsmanifest callbacks from throwing an unhandledTypeError: Cannot read properties of null (reading 'load')during rapid video switches or unmount.Surface Shorts & Music visibility toggles at the top of Settings (
src/components/settings/tabs/ContentTab.tsx,src/components/settings/tabs/MusicTab.tsx):Show Shorts,Show Music) appear before dependent toggles (Shorts shelf,Home Shorts shelf,Hide watched Shorts).Show Music(music_content_enabled) to the top of the Music settings tab for direct discoverability.Filter disabled Shorts & Music content on the backend before IPC (
src-tauri/src/db/settings.rs,src-tauri/src/db/watch_history.rs,src-tauri/src/commands/db.rs,src-tauri/src/commands/youtube.rs):db::settings::is_enabledanddb::watch_history::get_filtered_watch_history(filteringis_short = 0/is_music = 0in SQLite forget_watch_history, with a newfilters_shorts_and_music_in_sqlunit test).is_shortitems fromsearch_videosandget_subscription_rss_feed/stream_subscription_rss_feedresponses whenshorts_content_enabledis off (after recordingknown_shorts), and cleareddescription_extras.musicinget_video_detailswhenmusic_content_enabledis off.Related issue
Closes #804
Change type
Validation
Ran on Windows 11 (x64):
pnpm test(vitest run:SettingsLayout.test.ts4/4 passed after final Settings edit;LyricsShareDialog.test.ts6/6 and full 503-file / 2912-test suite passed after the earlier frontend fixes)pnpm build(tsc --noEmit+vite buildpassed after final frontend edit)cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check(passed after final Rust edit)cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-features(cargo clippy --lib --testscompiled with 0 errors;--all-targets --all-featuresnot run)cargo test --manifest-path src-tauri/Cargo.toml --all-targets --all-features(db::watch_historycompiled cleanly; local Windows test runner hit0xc0000139 STATUS_ENTRYPOINT_NOT_FOUNDin shell)Screenshots or recordings
Before (
"Playing from ..."pill wrapping & clipping"Only"into bottom padding):Risk and compatibility
No database migrations or schema changes;
get_filtered_watch_historyuses existingis_shortandis_musiccolumns.Existing internal callers of
db::watch_history::get_watch_history(such asshorts_engine.rs) remain unchanged.known_shortsandhome_feedcaches continue to record Shorts metadata before IPC filtering.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.