Commit Graph
2676 Commits
Author SHA1 Message Date
vicrodh 309c4b2cc2 fix: clear reco meta caches when image cache is cleared
When the user clears the image cache from settings, also clear
reco_album_meta, reco_track_meta, and reco_artist_meta tables.
This forces re-resolution from Tier 2/3 with the correct (small)
image URLs instead of keeping stale large (600px) URLs in Tier 1.
2026-03-08 12:56:35 -06:00
vicrodh 63b1161afe perf: optimize ML/reco module for home view loading
- Add composite indexes on reco_events for GROUP BY + ORDER BY queries
  (event_type + album_id/track_id/artist_id + created_at DESC)
- Add composite index on reco_scores for scored lookups
  (score_type + item_type + score DESC)
- Eliminate duplicate fallback queries in get_home_seeds_internal
  by inlining the empty check into the scored branch
- Parallelize resolve_favorites with recent albums, tracks, and
  artists (4-way tokio::try_join instead of 3 + sequential)
- Batch cache writes: collect all Tier 3 API results first, then
  write to API cache and reco meta with single lock acquisitions
  instead of locking per-item inside spawned tasks
2026-03-08 12:52:52 -06:00
vicrodh 8a2c12ee41 perf: parallelize artist resolution and use small images for cards
Resolve albums, tracks, and artists concurrently with tokio::try_join
instead of sequentially. Artists were waiting behind album/track
resolution unnecessarily. Also change get_image() to prefer small
(230px) over large (600px) for card contexts, reducing download size.
2026-03-08 12:41:00 -06:00
vicrodh f95620ba12 fix: apply home settings changes immediately without reload
Add loadHome({ showSkeletons: false }) to the settings subscription
callback so visibility toggles, reordering, and limit changes are
reflected in real-time instead of requiring a page reload.
2026-03-08 12:28:38 -06:00
vicrodh 070589427b feat: apply image cache to all artist image components
Use cachedSrc action for artist images in SearchView, HomeView,
ArtistDetailView, VirtualizedFavoritesArtistGrid, and
VirtualizedFavoritesArtistList. Use size-aware image selection
(small instead of large) for grid/card contexts. Add opacity
transition for smooth placeholder-to-image loading.
2026-03-08 12:20:26 -06:00
vicrodh 8379227a0e fix: hide image during cache resolution to show placeholder
Image is hidden (opacity 0) until the cached URL resolves, preventing
broken image icons. The disc placeholder shows through while loading.
Adds a subtle 150ms fade-in transition when the image appears.
2026-03-08 10:57:23 -06:00
vicrodh 6b87554dbb feat: frontend image cache with size-aware loading and settings UI
- getQobuzImageForSize(): picks small (230px) for grids, large for hero
- cachedSrc Svelte action: resolves images through backend disk cache
- imageCacheService: in-memory URL map with dedup for pending requests
- AlbumCard uses cachedSrc action for artwork rendering
- Settings UI: Toggle for cache on/off, numeric input for max size (MB),
  stats display, clear button — uses existing Toggle and input styles
- Removed unused Artwork Thumbnails section (never showed data)
- i18n: added image cache keys to all 4 locales (en/es/de/fr)
2026-03-08 10:52:35 -06:00
vicrodh e8d6aa4f4f feat: add image cache backend with LRU eviction
- ImageCacheService: disk-based cache keyed by MD5 hash of URL
- LRU eviction by last-access time (not creation time)
- ImageCacheSettings: configurable max size (default 200MB), can disable
- v2 commands: get_cached_image, get/set settings, stats, clear cache
- Cache stored at ~/.cache/qbz/images/ with SQLite metadata
2026-03-08 10:37:42 -06:00
vicrodh 7cec1101d1 fix: make currentNavItemId reactive with $state()
Without $state(), Svelte 5 doesn't track changes to currentNavItemId,
so the scroll reset $effect never re-fires on same-view item changes.
2026-03-08 10:17:45 -06:00
vicrodh 3c783973b1 fix: reset scroll to top on forward navigation between same-view items
When navigating from album(1) to album(2), the view type stays 'album'
so the scroll reset effect didn't trigger. Now tracks currentNavItemId
changes too, and explicitly scrolls to top for forward navigation while
preserving scroll restore on back/forward.
2026-03-08 10:12:02 -06:00
vicrodh 150d80dfac feat: granular navigation history with per-item scroll position
Navigation history now tracks itemId per entry (album, artist, playlist,
label, musician, purchase-album) so back/forward restores the exact page.
Scroll positions are saved per view+itemId key and restored on back/forward.
2026-03-08 10:05:45 -06:00
vicrodh c4b25b2b94 fix: remove unused .experimental-inline CSS selector 2026-03-08 09:49:08 -06:00
vicrodh 57702afc37 fix: respect force_dmabuf as full GPU opt-in for compositing too (#127)
When user enables Force DMA-BUF in Developer Settings, skip the
NVIDIA+Wayland compositing disable. This setting signals "I want
full GPU acceleration" and should grant both DMA-BUF and compositing.
2026-03-08 09:43:57 -06:00
vicrodh 4a4a9a4213 fix: defensive graphics fixes for Flatpak Wayland blur stutter (#127)
- Detect Flatpak sandbox at startup and log it
- In Flatpak on Wayland, unset DISPLAY to prevent WebKitGTK from
  falling back to XWayland internally (causes CPU-GPU texture
  round-trips that degrade CSS blur performance)
- Per-GPU Wayland paths: only disable compositing and DMA-BUF for
  NVIDIA on Wayland. AMD/Intel get full GPU acceleration on native
  Wayland (compositing enabled, DMA-BUF enabled)
- Change GitHub Releases Flatpak manifest from --socket=x11 to
  --socket=fallback-x11 to match Flathub and prevent XWayland
  on Wayland sessions
2026-03-08 09:32:56 -06:00
vicrodh df37b2c15d fix: only re-categorize download group items, not other/compilation (#149)
The "other" group contains podcast episodes with release_type "album"
that should stay in Others, not be moved to Albums. Only "download"
group items should be re-categorized since download is a distribution
channel, not a content classification.
2026-03-07 23:07:10 -06:00
vicrodh 6bcfaa8f90 fix: label releases search bar grows from right, fixed nav height, homologate back button 2026-03-07 23:03:42 -06:00
vicrodh d9d3054921 ci: trigger APT repo update on release publish 2026-03-07 23:03:42 -06:00
vicrodh 5ae5543cda fix: remove position recall from session restore, always start from beginning
Position restore was unreliable (always showed 0:01). Session restore
now loads the track ready to play from start without seeking.
2026-03-07 23:03:28 -06:00
vicrodh 6baae44327 fix: map epSingle type and re-categorize items from download/other groups (#149)
The Qobuz artist/page API returns release groups with type "epSingle"
(not "ep" or "single"), and groups like "download" and "other" contain
mixed items (singles, albums) that should be re-categorized by each
item's individual release_type field.
2026-03-07 23:03:20 -06:00
vicrodh 765287817b fix: backfill EPs & Singles when artist/page omits them (#149)
The Qobuz artist/page endpoint sometimes excludes the EP/single
release group from its response. When this happens, fetch them
explicitly via get_releases_grid as a non-blocking backfill.
2026-03-07 22:20:49 -06:00
vicrodh cffbce9faa fix: faster session restore and remember playback position
Move session restore to run immediately after playback preferences
load, before network-heavy initializations (favorites, offline
status, recommendation scores). This eliminates the multi-second
"No track playing" gap on slow storage.

Also restore the saved playback position visually and on first play
(seek to saved position, no auto-play).
2026-03-07 22:01:18 -06:00
vicrodh 6b67594842 docs: add APT repository install instructions to README 2026-03-06 16:25:54 -06:00
vicrodh 976fa201d5 docs: update README and link resolver comment for Spotify embed scraping
Remove Spotify API credential setup from README since playlist import
now uses embed scraping. Update resolve_via_odesli_and_search doc
comment to reflect the new Spotify data path.
2026-03-06 13:33:36 -06:00
vicrodh 727e5288e7 refactor(spotify): remove API dependency, use embed scraping only
Spotify client_credentials API access ends 2026-03-06. Remove all
API token/proxy code and the paginated fetch_playlist_with_token
function. Playlist imports now go straight to embed page scraping
(limited to ~50 tracks, no ISRC/album data).

Link resolver for Spotify tracks/albums also switched from API to
embed page scraping via new fetch_embed_metadata function.

Remove Spotify credentials from .env.example since they are no
longer needed.
2026-03-06 13:30:44 -06:00
vicrodh 9c841365f8 Revert "feat(theme): add System (Dark / Light) theme and rename System to Match Colors"
This reverts commit 82e358208a.
2026-03-06 12:46:32 -06:00
vicrodh 82e358208a feat(theme): add System (Dark / Light) theme and rename System to Match Colors
Add a new "System (Dark / Light)" theme option that toggles between
Dark and Light themes based on OS prefers-color-scheme, with a live
matchMedia listener for instant switching. Rename old "System" (auto
palette generation) to "Match Colors" for clarity.

Applies to main window, miniplayer, and bootstrap.

Closes #148
2026-03-06 11:27:14 -06:00
vicrodh 786ce883ac fix(library): extract track/disc number from file tags during backfill import
insert_qobuz_cached_track_direct was hardcoding track_number to 0,
causing all imported tracks to show wrong numbers. Now accepts
track_number and disc_number params, and both callers (backfill
downloads and offline cache sync) extract metadata from the audio
file via MetadataExtractor before inserting.

Also fix LocalLibraryView to use || instead of ?? for track_number
fallback, so 0 correctly falls back to index-based numbering.

Closes #147
2026-03-06 11:08:32 -06:00
vicrodh 36d5ff65b7 fix(search): add right-click context menu to search result tracks
Wire up oncontextmenu handlers to track rows in SearchView so
TrackMenu opens on right-click, matching behavior of other views.
2026-03-06 09:02:15 -06:00
vicrodh 5b9f5a75c2 feat(ui): add explicit content badge across entire app
Display parental_warning badge (E icon) next to track titles in all
views: TrackRow, QueuePanel, NowPlayingBar, ImmersivePlayer with all
13 visualizer panels, MiniPlayer surfaces, and AlbumDetailView.

Propagate parental_warning field through the full data chain from
Rust backend (qbz-models, queue, commands_v2, session_store, API
server) to frontend stores, adapters, and UI components. Badge uses
CSS mask technique with explicit.svg for theme compatibility.
2026-03-06 08:48:51 -06:00
vicrodh 6685566091 feat(label): add group-by-artist toggle and performance improvements
Add artist grouping option for Label Releases view and remove
expensive loadAllAlbums() call. Use v2_get_label_page for richer
label image data. Add groupByArtist i18n keys to all 4 locales.
2026-03-06 08:48:36 -06:00
vicrodh 4e6a52e453 feat(label): redesign Label Releases view with logo, sorting, and filters
- Replace generic icon with circular label logo (matches LabelView)
- Fix double close button in search: single X that clears and closes
- Add sort options: newest, oldest, title A-Z/Z-A, artist A-Z
- Add Hi-Res filter toggle
- Load all albums automatically when sorting/filtering
- i18n: add labelReleases keys to all 4 locales
- Search bar now replaces title area instead of floating separately

API analysis: Qobuz label endpoints have no server-side sort/filter
params, so all sorting and filtering is done client-side after
paginated fetch.
2026-03-05 14:33:42 -06:00
vicrodh 97f42f4fea fix(settings): remove gapless restrictions for DAC Passthrough and ALSA Direct
Gapless now works on all backends, so the UI constraints that disabled
it for DAC Passthrough and ALSA Direct are removed. Only streaming-only
mode still disables gapless (no cache available). Removed experimental
badge. Cleaned up unused i18n keys.
2026-03-05 12:20:15 -06:00
vicrodh 01fc32e611 feat(audio): enable gapless playback on ALSA Direct and default ON
ALSA Direct playback thread now supports gapless via mpsc channel:
when current source ends, it checks for a queued next source and
transitions seamlessly without draining the PCM buffer.

Format mismatch still blocks gapless (bit-perfect has priority).
Gapless now defaults to enabled for all backends.
2026-03-05 11:45:32 -06:00
vicrodh f1e2c99b5b fix(audio): hot-reload gapless and normalization settings to player
v2_set_audio_gapless_enabled, v2_set_audio_normalization_enabled, and
v2_set_audio_normalization_target now call player.reload_settings()
after writing to SQLite, so changes take effect immediately without
requiring an app restart.
2026-03-05 11:19:50 -06:00
vicrodh 5fae14d68d fix(audio): stop updating live gain during refinement passes
Only write to gain atomic on initial measurement. Refinements now
update the cache only, preventing audible volume changes within a
single track. Inter-track normalization still works via cached values.
2026-03-05 11:16:05 -06:00
vicrodh ec6c4c56ac fix(lastfm): use user-scoped storage for session restore on startup
bootstrap.ts used raw localStorage.getItem() while settings saved with
user-scoped setUserItem(), causing session key mismatch. Closes #143
2026-03-05 11:14:42 -06:00
vicrodh 87321a0ea6 fix(library): detect qobuz_purchase source on scan and clean stale downloads
insert_track() now checks downloaded_purchases table to set source.
get_downloaded_purchase_track_ids() verifies file existence and
auto-removes stale entries. Closes #115
2026-03-05 11:13:59 -06:00
vicrodh fa747ecf8b feat(library): add qobuz_purchase source badge with gold Qobuz icon
Distinguishes purchased downloads from offline cache and regular
library items with a gold-tinted Qobuz logo badge on album cards.
2026-03-05 11:13:52 -06:00
vicrodh 43df8a40e4 fix(purchases): restructure download paths to Artist/Album [FORMAT][Quality]/track
Embeds quality in album folder name instead of subfolder, so each
quality variant appears as a separate album in the local library.
Adds download error toast and fixes format labels to bracket notation.
Closes #116
2026-03-05 11:12:39 -06:00
vicrodh 3c50c1c14e feat(immersive): replace Tunnel visualizer icon with cube SVG 2026-03-05 11:12:04 -06:00
vicrodh 90018c6518 chore: remove AUR git and source workflow files
Keep only release-aur.yml (qbz-bin). The git and source
PKGBUILD variants don't need CI workflows.
2026-03-04 20:24:16 -06:00
vicrodh 955f5edd05 fix(svelte): resolve all remaining a11y and real warnings
Key discovery: Svelte 5 requires commas between svelte-ignore codes,
not spaces. Fixed separator in all multi-code ignore comments.

Additional fixes across 36 files:
- TrackMenu/AlbumMenu: add role="menu" and ignore comments to menus
- LocalLibraryTagEditorModal: link labels to inputs with for/id
- TrackReplacementModal/DACSetupWizard: fix dialog a11y
- BookletViewer: fix reactivity ($state for bookletLoaded)
- StackIcon/SearchPlaylistCard/QobuzPlaylistCard/FavoritePlaylistCard:
  fix state_referenced_locally with $derived()
- CoverflowPanel/HomeSettingsModal/FavoritesEditModal: fix reactivity
- ImmersiveHeader/FolderEditModal: replace deprecated svelte:component
- Toggle: add aria-label prop
- Various modals: add tabindex="-1" and role to dialogs
- Dropdown/DeviceDropdown: add proper listbox roles

Build output: 0 Svelte warnings (down from ~200)
2026-03-04 20:20:40 -06:00
vicrodh d50b2cf03a fix(svelte): resolve warnings in 26 components
Phase 1 (real warnings):
- SearchView: add $state() to searchInput and scrollContainer
- DiscoverBrowseView: use $derived() for genreContext
- FavoritesView: replace deprecated svelte:component
- CastPicker: replace deprecated svelte:component (2 instances)
- NowPlayingBar: remove unused .section-separator CSS
- SettingsView: remove unused nested .experimental-badge CSS
- PlaylistDetailView: remove unused .playlist-api-image CSS
- PurchaseAlbumDetailView: remove unused .download-done CSS
- DiscoverPlaylistsBrowseView: fix nested buttons (outer to div)
- AlbumCreditsModal: fix nested button (inner to div)

Phase 2 (a11y warnings):
- Add tabindex="-1" to dialog/menu elements (7 files)
- Add svelte-ignore for autofocus (3 files)
- Add onkeydown handlers to role="button" elements (5 files)
- Add role/svelte-ignore to onclick divs (6 files)
- Add role="menu" to dropdown menus (4 files)
- Add svelte-ignore for drag handlers (3 files)
- Fix label a11y: add aria-label, convert decorative labels to spans
2026-03-04 19:55:32 -06:00
vicrodh 94f26ce665 fix(aur): force ld.bfd linker to fix ring crate linking
Arch's rust package defaults to rust-lld which causes ring crate's
native C/ASM symbols to be missing at link time. Force traditional
ld.bfd via RUSTFLAGS.
2026-03-04 15:17:30 -06:00
vicrodh c08d13b2c5 fix(aur): remove nasm and clang from makedepends
nasm is not needed (ring uses .S files on Linux, not .asm).
clang is not needed (gcc provides cc).
2026-03-04 14:38:23 -06:00
vicrodh d1244a883c fix(aur): add perl and nasm to makedepends for ring crate 2026-03-04 14:32:28 -06:00
vicrodh 347928876c fix(aur): use system sqlite instead of bundled
The bundled feature compiles sqlite3.c from source but fails to
link on Arch. Use system sqlite package instead, which is the
proper distro packaging approach. Also add missing deps: sqlite,
dbus, cmake, gcc.
2026-03-04 12:59:36 -06:00
vicrodh e39eb6fa6f feat(aur): add qbz and qbz-git source-build packages
Add PKGBUILDs and GitHub Actions workflows for:
- qbz: compiles from release source tarball
- qbz-git: compiles from main branch (updates on push)
Fix --bundles none -> --no-bundle for Tauri 2.0 CLI
2026-03-04 12:45:10 -06:00
vicrodh 18b7bcaf31 ui: increase custom titlebar height by 4px (36 -> 40)
Search input in titlebar also grows 4px (24 -> 28) for better
readability. Layout calculations updated in page, sidebar, and store.
2026-03-04 09:02:06 -06:00
vicrodh 6badccdb27 fix(snap): declare mpris as slot instead of plug
MPRIS was declared as a plug (control other players) but QBZ needs to
register as an MPRIS media player (be controlled by media keys). Change
to a slot with name "qbz" so snapd exposes org.mpris.MediaPlayer2.qbz
on the session bus.
2026-03-04 08:30:54 -06:00