20 Commits
Author SHA1 Message Date
yuriy.pandClaude Opus 5.5 28e273c31e Merge branch 'menubar-mini-player'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.2.0
2026-10-15 22:41:43 +06:00
yuriy.pandClaude Opus 5.5 e48219b569 feat: menu bar mini player while the window is minimised
A monochrome status item with previous, play/pause, next and the track
appears when the window is miniaturised and goes away when it comes back.
The buttons feed the media-key command channel; clicking the track
restores the window. Bumps the version to 0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:38:04 +06:00
Yuriy Panov 33c48de638 Merge branch 'russian-locale' 2026-10-15 21:57:12 +06:00
Yuriy Panov 24aa41e8fb refactor: drop the dead REST play-queue sync
POST /queues answers every create with the placeholder id 000000000000000000000000
and GET /queues lists nothing, so publishing the queue never reached another
device. Remove create_queue/update_queue_position, QueueContext, the
QueueStarted/QueueMoved effects and the app's server_queue state.

Yandex's apps sync through Ynison instead, but Ynison answers this account
with 503 "temporary unavailable" (code 500140000) and the phone app offers no
device handoff, so there is no working replacement yet.
2026-10-15 21:55:24 +06:00
Yuriy Panov ff41887f30 feat: Russian interface language
Adds an i18n module: strings stay in English in the code and are looked
up as tr("…") or trf("… {} …", args), with Russian in i18n/ru.rs.
Includes Russian plurals, genitive month names, "4,1 млн"-style
compact numbers and localised durations. A test scans the sources and
fails on any string without a Russian entry.

A Language setting (match system, English, Русский) defaults to the
system's first preferred language. Yandex's own titles (genres, Home
blocks, station names) switch with it, through a client rebuilt in that
language. Long genre names now wrap instead of spilling over the next
tile. The app bundle declares en and ru localisations.
2026-10-15 21:49:01 +06:00
Yuriy Panov 52ad4a2e90 feat: play similar tracks from the track menu
"Play similar tracks" in any track's menu asks Yandex for tracks like it
(about 20) and plays them as a list, saying how many it found or that
there were none. The probe example prints history and similar tracks.
2026-10-15 18:55:43 +06:00
Yuriy Panov b099946fb3 feat: recently played tracks on Home
Home lists the last ten different tracks played on any device, read
from the listening history and re-read on each visit. A failed reload
keeps the previous list, and a failed first load hides the section.
2026-10-15 18:54:17 +06:00
Yuriy Panov 51e7a4f465 feat: music video clips on artist pages and in Collection
Artist pages list the artist's clips and Collection gets a Clips tab with
the liked ones. A clip opens on the Yandex Music website, since there's
no video player in the app; the heart on each card likes it. Clips are
read from raw JSON because the artist block calls the id `id` where
/clips says `clipId`. Snapshot runs can open `artist:<id>`.
2026-10-15 18:50:50 +06:00
Yuriy Panov 2ef7aa9da9 fix: drop the placeholder id the queues endpoint returns
Yandex answers POST /queues with 000000000000000000000000 and lists no
queues afterwards, with the default or a stable device header alike;
phones sync through Ynison now. Treat the placeholder as no queue so
position updates aren't sent to a queue that doesn't exist.
2026-10-15 18:44:25 +06:00
Yuriy Panov 24ff874d34 feat: lossless (FLAC) streaming
Adds a Lossless streaming quality that asks /get-file-info for FLAC and
decrypts its encraw stream in memory. FLAC and FLAC-in-MP4 decode
through symphonia. When Yandex grants no FLAC, its lossy reply is played
as is, except HE-AAC, which falls back to the MP3 path. The player bar
badge shows the codec actually served and turns accent-coloured for
FLAC. Adds a read-only stream_probe example.
2026-10-15 18:33:04 +06:00
Yuriy Panov c85f5785fd chore: singing 2026-10-15 18:15:27 +06:00
Yuriy Panov 60156aba94 feat: media keys, device recovery, settings and a macOS app bundle
- Media keys and Now Playing (souvlaki): title, artist, album, cover and
  position published on track and state changes; play/pause/toggle,
  next/previous and seeking from the OS controls
- Audio engine reopens the default output when the device changes or
  disappears, reloading the current track at the same position; with no
  device it keeps looking and resumes when one appears. Underruns are
  ignored rather than treated as device loss
- Settings screen: streaming quality (Best, Balanced <=192 kbps, Data
  saver <=128 kbps), appearance (system/light/dark), clear cover cache;
  quality, appearance and volume persist as JSON in the config folder
- Bitrate cap chooses the best variant within it, or the smallest above
- Lyrics failures get a retry button
- App icon drawn by tool/make_icon.py; tool/bundle-macos.sh builds an
  ad-hoc signed Musyx.app (--install copies it to /Applications)
- Release profile: thin LTO and stripped symbols
2026-10-15 16:28:07 +06:00
Yuriy Panov e2312f2d40 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
2026-10-15 16:09:12 +06:00
Yuriy Panov 99f795b500 fix: play stations through the rotor session API so feedback is accepted
The old /rotor/station/{id}/feedback endpoint answered every event,
radioStarted included, with "condition is not met". Stations now run
on /rotor/session: a session starts with seeds (My Wave settings travel
as settingMoodEnergy/Diversity/Language seeds), batches continue it with
recent track ids, and feedback posts JSON events with millisecond ISO
timestamps and trackId:albumId to /rotor/session/{id}/feedback.

- ym-api posts JSON itself (yamuse keeps its JSON POST private), with the
  same client header; YmClient's Debug no longer prints anything
- Player keeps the session id, sends radioStarted with the first batch,
  and starts a new session when settings change
2026-10-15 15:30:59 +06:00
Yuriy Panov 03aa180840 feat: My Wave and stations with feedback, play reporting and animated hero
- ym-api: stations, station settings (mood/character/language), track
  batches, rotor feedback (started, track started/finished, skip) and
  play-audio reports
- Play reports send millisecond ISO timestamps: yamuse's default drops
  the milliseconds and /play-audio rejects it
- Player: station mode tops up the queue when two tracks remain, waits
  instead of ending when a batch runs dry, ignores shuffle and batches
  from other stations, and reports every track left (finished or
  skipped with time played); feedback names the batch each track came in
- Queue can grow (radio batches) and drop upcoming items (new settings)
- My Wave screen with settings chips and station tiles; Home and My Wave
  hero draws drifting lines on a canvas, animated only while My Wave plays
- Genre pages get a Play radio button
2026-10-15 15:17:04 +06:00
Yuriy Panov e7726aac3a feat: search, home landing, chart, genres and podcasts
- ym-api: search by kind with paging and best match, suggestions, landing
  (personal playlists, new releases and playlists) plus the full chart
  with movement, genres, tag playlists and featured podcasts
- Tag playlist ids are parsed from raw JSON: yamuse types them as strings
  but the API sends {uid, kind} objects
- Featured podcasts capped at 48 (the API lists thousands)
- Search screen: debounced suggestions floating under the field, tabs with
  totals, top result card, Show more paging, genre browsing when empty
- Home with personal playlists, top-10 chart, new releases and playlists,
  genre tiles; Chart page; Genre pages with sub-genres; Podcasts page
- Chart lists show position movement; top-N lists are built once so
  cached rows survive playback ticks
- Snapshot mode can sign in live; api_probe example for discovery calls
2026-10-15 15:04:37 +06:00
Yuriy Panov 3b934df8cc feat: cover art cache, Collection tabs, and album, artist and playlist pages
- ym-api: album/artist/playlist summaries and pages, liked albums and
  artists, own and liked playlists (batch-resolved from like ids),
  playlist tracks with missing ones looked up, image download
- Cover cache: fetched when a cover nears the viewport (sensor), at most
  eight at once, kept in memory and on disk; arrivals are batched every
  150 ms so cached lists rebuild once per batch
- Collection tabs for liked tracks, albums, artists and playlists, each
  loading on first visit with a retry on failure
- Album, Artist and Playlist routes with cover headers, Play/Shuffle and
  track lists; pages cached per session; sidebar lists playlists
- Shared lazy track list keyed on contents, playing track, likes and
  cover version; card grid that wraps
2026-10-15 14:51:51 +06:00
Yuriy Panov b73af1f870 feat: playback of liked tracks with audio engine, queue and player bar
- ym-api: Track/Stream models, liked tracks, signed download URLs (full MP3
  over AAC over previews, highest bitrate) and in-memory fetch
- Audio thread on rodio, driven by commands and reporting through an iced
  subscription; generation ids drop stale events
- Opens the default output with a buffer clamped to the device's range:
  rodio's 2048-frame default fails on Bluetooth headphones that cap at 1024
- Queue with shuffle, repeat off/all/one, back/advance and jump; player
  state machine with prefetch of the next track, replay from memory, and
  skipping unplayable tracks (stops after three in a row)
- Working player bar (seek, volume, mute, quality badge), queue drawer,
  Collection screen with a lazily built liked-tracks list
- audio_probe example lists and test-opens output devices
2026-10-15 14:38:33 +06:00
Yuriy Panov 43e8f86a5d feat: Yandex sign-in with device code, keychain storage and account status
- ym-api wraps yamuse: device-code flow, token refresh, account status,
  and its own Error type that the UI acts on (expired, denied, network)
- Credentials live in the system keychain, never print their tokens, and
  refresh when within a week of expiry; a rejected token is forgotten
- Sign-in screen with code, QR, copy/open-in-browser, countdown and a
  pasted-token fallback; restoring/unreachable screens on startup
- Sidebar account chip and Settings account card with Plus status and
  sign-out; Settings re-reads the account when opened
- Live device-code test behind --ignored
2026-10-15 14:25:45 +06:00
Yuriy Panov c4928ae7fe feat: workspace scaffold with iced shell, theme and design system
Two-crate workspace (ym-api for the API client, musyx for the iced app).
The app has the sidebar, top bar, Queue/Lyrics drawer and player bar from
the approved mockup, plus signed-out states for every screen.

- DESIGN.md records the mockup tokens; ui/theme.rs mirrors them for dark
  and light, and the app follows the system appearance
- Bundles Onest/Unbounded (OFL) and Lucide 0.460 icons (ISC)
- Back-stack navigator, player bar toggles (shuffle, repeat, volume, mute)
- snapshot feature renders a screen to PNG via iced's window screenshot
2026-10-15 13:52:55 +06:00