Commit Graph
7005 Commits
Author SHA1 Message Date
vicrodh c17f932d6c test: require the listen_log suite in the gate
cargo-test.sh and test-crates.yml assert qbz-app::listen_log lists at
least 25 tests and passes, so a refactor that drops the module's tests
fails loudly instead of shrinking coverage. Bounded: the binary is
already built by the workspace run.

cc
2026-08-28 20:30:43 -06:00
vicrodh 9b14740e32 feat(settings): Listening history toggle and clear; history read gate
Settings > Integrations > PRIVACY: a Listening history toggle (default
ON; the state lives in the per-user listen_meta, so it follows the
account) and a confirmed Clear (DELETE + VACUUM). Strings in all eight
catalogs; README names where the data lives.

ScrobblerSettings::history_read_allowed(service) = *_active(): the
scrobbling switch now governs reading a service's history for
Recommendations as well as sending to it, and its Settings text says
so. recommendations_qt uses it instead of *_is_authed().

cc
2026-08-28 20:30:43 -06:00
vicrodh 3e060d6535 feat(qbzd): listen log subscriber beside the scrobbler
A CoreEvent-bus sibling of scrobble_engine WITHOUT its enabled gate: the
log is local and on by default, so a headless streamer finally records
history. TrackStarted opens a row and closes the previous one with an
inferred reason (natural within 2 s of the end, skip otherwise — nobody
emits TrackEnded); PositionUpdated feeds the accumulator; Stopped closes
with the same inference. origin_id = qbzd:<hostname>; the shutdown path
aborts the task and closes the open row.

cc
2026-08-28 20:30:43 -06:00
vicrodh b38cb34f08 feat(qt): listen log tracker on the playback poll loop
listen_log_qt binds the per-user ListenLogger at login/restore/offline
entry and drops it at logout. Hooks: the de-duped track edge opens a row
(closing the previous as skip), every 1 Hz tick feeds the accumulator,
the natural end-of-track predicate closes as natural, the stream-failure
toast closes as error, three consecutive empty ticks are the stop, and
main.rs closes the row in flight as shutdown after the event loop (and
on the Windows session-commit path). Cast and peer QConnect stay out.
Ephemeral ids never reach the log (same guard as recently_qt).

cc
2026-08-28 20:30:43 -06:00
vicrodh ef665dcc5c feat(models): QueueTrack carries isrc/recording_mbid; Track models audio_info
QueueTrack gains two additive, serde-default identity keys (the ISRC and
the MusicBrainz recording id) that the listen log stamps; every
constructor in the workspace sets them (Qobuz-backed ones from
Track.isrc, local ones from the scanned tags, the rest None). They are
JOIN keys, not the row identity: numeric ids collide across sources, so
(source, native item id) stays the identity.

Track.audio_info (replaygain_track_gain / peak on DiscoverAudioInfo) is
modelled from the captured search envelopes; no reader yet and no
popularity field (0 in every sample).

cc
2026-08-28 20:30:42 -06:00
vicrodh 5bd1009ca1 feat(listen-log): per-user listen event store, tracker and reading rules
New qbz-app::listen_log (contract §12.1): listen_events with PK = event
(never the track), snapshot text per row, source + native item id,
context, stream facts; listen_meta with schema_version, origin_id,
paused, retention_days (unlimited). The tracker is a pure state machine:
played_ms accumulates only while playing from monotonic deltas <= 5 s,
so pauses, seeks and stalls add nothing; flush every 10 s of play; rows
close as natural/skip/stop/error/shutdown and orphans close as shutdown
on the next open. No threshold at write time: is_play / is_skip are
pure reader rules with boundary tests. ListenLogger is the async facade
(spawn_blocking everywhere); paused writes nothing, clear is
DELETE + VACUUM + checkpoint. 29 tests.

cc
2026-08-28 20:30:00 -06:00
vicrodh 6caab7b71a feat(reco): identity guardrail replaces the genre blocklist; rank by score
- INCOMPATIBLE_GENRES / INCOMPATIBLE_TITLE_KEYWORDS removed: a global
  blocklist papered over an identity bug (name search returning a
  homonym) and punished every user's taste for it.
- artist_guardrail: ArtistLookup seam (mockable), id before text
  (qobuz:{id} nodes resolve by id; MBIDs hit the mb_qobuz_artist_match
  cache before search_artists), validation relative to the playlist
  seeds (shared level-1 genre root or a shared MusicBrainz tag), homonym
  tie-break by seed neighbourhood / label, reject when no signal exists.
- suggestions: stable sort by similarity_score desc, dedup keeping the
  higher score, THEN truncate (the shuffle threw the score away and the
  dedup kept the first hit while claiming the best).
- Eight network-free tests cover the rules; rand is now unused here.

cx
2026-08-28 20:30:00 -06:00
vicrodh 6587201a1c fix(qbzd): log loudly when the artist-vector store fails to open
The boot comment claimed suggestions work un-cached without the store;
suggestions.rs and builder.rs both answer "No active session" when it
is None. Warn on failure and say what the symptom will be.

cc
2026-08-28 19:54:47 -06:00
vicrodh 6ca219d90e fix(history): prune Most Played on folder removal; GC stale radio sessions
Removing a library folder pruned Recently Played but not
album_play_history.db, so Most Played kept cards onto deleted tracks.
radio_history had no delete path at all; sessions idle for more than
30 days (by last played_at, so a running radio is never pulled) are
dropped on open.

cc
2026-08-28 19:54:47 -06:00
vicrodh 6a99539537 fix(playlist-manager): read play counts from playlist_play_history.db
playlist_stats.play_count had no writer anywhere in the workspace
(increment_playlist_play_count: zero callers), so the badge and the
Play Count sort were 0 for everyone. Derive the counts from the store
the track-start edge actually writes; the library table is untouched.

cc
2026-08-28 19:54:47 -06:00
vicrodh ae9306988e fix(offline-cache): touch last_accessed_at when a cached track plays
OfflineCacheDb::touch had no caller, so LRU eviction ordered by the
download date and evicted the most-played tracks first. Touch in
resolve_offline_bytes, the one resolver every offline play goes through.

cc
2026-08-28 19:54:47 -06:00
vicrodh e0a9f60336 fix(scrobble): stamp started_at and time the threshold by audible position
The delayed scrobble used unix_now() when it fired (up to 240 s late on
a long track) and slept on wall-clock, so a track paused two minutes in
still scrobbled. Capture started_at on the track edge and wait on the
player's own position while it is playing: pause holds the scrobble, a
stop drops it, a newer track edge still self-cancels via the generation.
Same rule qbzd's scrobble_engine already applies.

cc
2026-08-28 19:54:47 -06:00
vicrodh 924af24e91 fix(reco): route Recommendations MusicBrainz lookups through the core client
recommendations_qt and external_reco_qt built private MusicBrainzClient
instances, which start enabled and ignore the musicbrainz_enabled
opt-out that integrations_qt applies to the core's client. Expose the
core's Arc<MusicBrainzClient> and borrow it instead, so a disabled
MusicBrainz sends zero requests from Discover > Recommendations. The tag
editor's three private clients stay: those are explicit manual lookups
the user triggers by hand.

cc
2026-08-28 19:54:47 -06:00
vicrodh 136f4d77ad merge: integrate local library Qt workflows
cx
2026-08-28 18:50:36 -06:00
vicrodh c7a3012955 feat(local-library): complete catalog and metadata workflows
Add bounded native library models, complete grouping rails and scan progress. Bring source-aware metadata editing, media information and collection offline preflight to Qt, and repair inherited Plex album artwork without overriding healthy tokens.

cx
2026-08-28 18:50:05 -06:00
vicrodh 353ed7fff8 test(windows): verify both URL protocols in MSI smoke
cx
2026-08-28 10:13:17 -06:00
vicrodh 351f9786a9 ci(storage): shorten preflight artifact retention
cx
2026-08-28 10:12:08 -06:00
vicrodh 05cc0c815f ci(windows): add fast MSI authoring preflight
cx
2026-08-28 09:44:25 -06:00
vicrodh 783dbb964e fix(windows): make MSI authoring valid on WiX 5
cx
2026-08-28 09:44:25 -06:00
vicrodh 6ad7bd05ce ci(cache): reuse qbzd builds across Linux packaging
cx
2026-08-28 09:44:25 -06:00
vicrodh d9fadfdb7c ci(cache): seed release caches from pre-release
cx
2026-08-28 09:44:25 -06:00
vicrodh 9d8af4b59d docs(ci): update qmllint parity note
cx
2026-08-28 09:44:25 -06:00
vicrodh bf7a071073 ci(packaging): add safe AUR and Gentoo dry runs
cx
2026-08-28 09:44:25 -06:00
vicrodh d987aaa798 fix(ci): preserve macdeployqt failures
cx
2026-08-28 09:44:25 -06:00
vicrodh aaf9573c57 fix(ci): harden Gentoo overlay publishing
cx
2026-08-28 09:44:25 -06:00
vicrodh ac506e4d6c fix(ci): harden AUR release publishing
cx
2026-08-28 09:44:25 -06:00
vicrodh ecd4fd05c3 fix(ci): refuse partial updater manifests
cx
2026-08-28 09:44:25 -06:00
vicrodh 3e3c5ffc2a fix(ci): allow PR retargeting from forks
cx
2026-08-28 09:44:25 -06:00
vicrodh 2a2c2fb2ea fix(ci): make Snap preflights safe and reproducible
cx
2026-08-28 09:44:25 -06:00
vicrodh dc7b1ba02b fix(ci): make macOS release failures authoritative
cx
2026-08-28 09:44:25 -06:00
vicrodh c79a8ab54f fix(ci): build requested release refs consistently
cx
2026-08-28 09:44:25 -06:00
vicrodh bf710fb7eb ci(qml): share qmllint gate across Linux and Windows
cx
2026-08-28 09:44:25 -06:00
vicrodh 9a0dbd60c2 fix(ci): use pre-OSMF WiX for Windows packaging
cx
2026-08-28 09:44:25 -06:00
vicrodh 0b7fa6da93 test(audio): honor platform support in direct-route assertions
cx
2026-08-28 09:44:25 -06:00
vicrodh bc4e8e6d7a fix(ci): make Windows preflight executable
Teach qmllint about statically registered native QML types and enforce metadata parity. Pin release builds to the MSVC 2022 runner and force Cargo to use the Visual Studio linker instead of Git for Windows link.exe.

cx
2026-08-28 09:44:25 -06:00
vicrodh fbc8e9fa31 docs(contributors): credit luukvanderduim for filter indicators
cx
2026-08-28 07:57:31 -06:00
vicrodh acc0e33028 docs(contributors): credit fengalin for crypto test coverage
Preserve attribution for PR #678 after its solution was superseded by the current crate-local implementation. Make the About grouping test grow with the contributor list.

cx
2026-08-28 07:43:55 -06:00
vicrodh e993bc1e4d merge: integrate PR #724 hotkeys and Vim keymap
Resolve translation conflicts against pre-release and harden miniplayer dispatch, direct-output volume locks, preset collision state, and Spanish labels during review.

cx
2026-08-28 07:02:33 -06:00
vicrodh 912638c387 merge: integrate Windows port from PR #725
cx
2026-08-28 04:18:06 -06:00
vicrodh 6f99bd6cf9 merge: integrate backend reliability round
cx
2026-08-28 02:58:29 -06:00
vicrodh 2df2dafe67 fix(audio): make ALSA transitions capability-aware
cx
2026-08-28 02:58:04 -06:00
vicrodh 0f69895f15 fix(qt): stabilize Japanese font fallback
cx
2026-08-28 02:57:48 -06:00
vicrodh 3da21c2752 fix(local): refresh availability after source changes
Reject stale availability probes across first-folder and last-folder mutations.

Refs #723

cx
2026-08-28 02:57:22 -06:00
vicrodh 3d0ee66708 fix(playback): harden idle queue and gapless transitions
cx
2026-08-28 02:57:09 -06:00
vicrodh 97f9b85d7f fix(linux): restore notification lifecycle
cx
2026-08-28 02:56:57 -06:00
Niklas Herder 56be744637 fix(qt): Escape must free the header search field
focusSearch() force-focuses the search input and nothing in HeaderBar ever
released it: the Escape arm only fired while the cortinilla was open, and
even then it dismissed the dropdown and left focus in the field. Since the
central dispatcher refuses every binding while a text input holds focus
(AppShell.qml:133-139), the field was a keyboard dead end whose only way out
was a mouse click.

Escape now always dismisses the dropdown if open, accepts, and hands focus
to the shell root via the same isQbzShellRoot duck-walk the modals use.
Clearing focus alone would not do: a null activeFocusItem passes the gate
but leaves AppShell's Keys handler receiving nothing at all.

Reachable from Ctrl+f since the port; the Vim keymap's `/` puts it one
keystroke from the reflex that expects Escape to work, which is how it
surfaced.
2026-08-28 07:57:48 +02:00
Niklas Herder b781ed283f feat(hotkeys): selectable Vim keymap preset
The preset swaps the BASE shortcut table underneath the user's overrides
instead of rewriting them, so Default <-> Vim is lossless. Vim binds single
modifier-free keys: n/p, h/l, Shift+J/K, /, and Ctrl+o / Ctrl+i for the jump
list; rows with no vim idiom keep their defaults.

j and k are deliberately left UNBOUND. They belong to a per-list cursor,
which QBZ has no notion of yet, and a global action bound there now would
have to be taken back the day one lands. A test holds them free.

Where an override has already claimed a shortcut the new base wants, that
action goes unbound rather than double-binding a combo that
action_for_shortcut would otherwise resolve by BTreeMap id order.

Seven new tests, including a gate that fails if any preset ever binds one
shortcut to two actions.
2026-08-28 07:27:43 +02:00
Niklas Herder 04f9afe83f feat(hotkeys): Spotify-parity playback actions
Eight Playback actions the table never had, on Spotify's desktop defaults:
volume up/down (Ctrl+Up/Down), mute (M), shuffle (Ctrl+S), repeat (Ctrl+R),
like (Alt+Shift+B), and a surface-independent seek (Ctrl+Shift+Left/Right).

Each reuses an existing transport seam, and the immersive bare-arrow seek
rows are untouched. Volume honours the player bars' volLocked predicate, so
the hotkey cannot move the slider on an ALSA-Direct hw path where the engine
documents the write as a no-op. Like rides a QML seam, as nav.search does,
because the track id is a QbzPlayer property rather than part of the Rust
now-playing model.

Two new tests; labels added to all eight catalogs.
2026-08-28 07:27:03 +02:00
vicrodh 975c00282b fix(snap): ship PipeWire routing tools
cx
2026-08-27 20:18:18 -06:00
vicrodh 7316f42896 test(cast): pin repeat at renderer queue edge
cx
2026-08-27 20:07:57 -06:00