feat: likes, track actions, playlist editing, lyrics and queue sync

- ym-api: like/unlike tracks, albums, artists and playlists; dislike
  tracks; liked ids for drawing state; create, rename, publish/hide and
  delete playlists; add, remove and move tracks (fresh revision per edit);
  lyrics (LRC parsed, plain text fallback); server queues
- Hearts on every track row, the player bar and album, artist and
  playlist pages, applied at once and re-read if Yandex refuses
- Track menu: Play next (moves a queued track up rather than duplicating
  it; the playing track's menu offers Next track instead), Add to queue,
  like, Add to playlist or a new one, Go to album/artist, Don't recommend,
  and Move up/down/Remove on the user's own playlists
- New playlist from the sidebar; Rename, Make public/private and Delete
  (confirmed) on own playlist pages; short status messages for every edit
- Lyrics panel highlights and follows the sung line and seeks on click
- Lists played are published as Yandex queues and their position kept
- lyricsInfo decides lyrics availability (the old flag over-reports)
- MUSYX_TRACE=1 logs user actions with the resulting queue
- Headless UI tests (iced_test) click through menus over the full window
This commit is contained in:
Yuriy Panov committed 2026-10-15 16:09:12 +06:00
1 parent 99f795b500
commit e2312f2d40
22 files changed
+1733 -34

No files matched your search

+6 -1
View File
@@ -60,7 +60,12 @@ impl Track {
available: t.available.unwrap_or(true),
explicit: t.explicit.unwrap_or(false)
|| t.content_warning.as_deref() == Some("explicit"),
lyrics_available: t.lyrics_available.unwrap_or(false),
// `lyricsInfo` is the current, per-account answer; the old flag can say yes
// when the lyrics endpoint then says no.
lyrics_available: match &t.lyrics_info {
Some(i) => i.has_available_sync_lyrics.unwrap_or(false) || i.has_available_text_lyrics.unwrap_or(false),
None => t.lyrics_available.unwrap_or(false),
},
})
}