Commit Graph
5263 Commits
Author SHA1 Message Date
vicrodh 6de6dbc400 fix(virtualization): improve grid layout for virtualized rows 2026-01-23 00:04:28 -06:00
vicrodh ff91eaf204 fix(library): update virtualization state when albums load 2026-01-23 00:04:04 -06:00
vicrodh a74cc28f1e feat(library): add virtualized album list component
Implement VirtualizedAlbumList.svelte for rendering large album
collections efficiently:

- Only renders items visible in viewport + buffer
- Supports both grid and list view modes
- Handles grouped albums with headers
- Alpha index integration for quick navigation
- Absolute positioning with calculated heights
- ResizeObserver for dynamic container sizing

Integration with LocalLibraryView:
- Import and use virtualization store settings
- Conditionally render virtualized vs standard list
- Performance mode activates when album count exceeds threshold
- Subscribe to performance settings changes

CSS additions:
- Virtualized container with proper height calculation
- Smooth scrolling support

Part of #13 - LocalLibrary performance optimization
2026-01-23 00:03:44 -06:00
vicrodh b86effe4e9 perf(library): optimize artists and search queries
Extend SQL-based filtering to artists and search:
- Add get_artists_with_filter() method that filters source and
  network folders directly in SQL
- Replace library_get_artists N+1 loop that was calling
  db.search(artist.name, 10000) for EACH artist
- Add search_with_filter() method for optimized track search
- Replace library_search post-query filtering with SQL predicates

These changes eliminate thousands of redundant database queries
when browsing large libraries with network folders or Qobuz downloads.

Part of #13 - LocalLibrary performance optimization
2026-01-22 23:56:42 -06:00
vicrodh befe93e619 perf(library): fix N+1 query and reduce logging overhead
Backend performance improvements for large libraries:
- Change per-album INFO logging to DEBUG level (was logging every
  album during deserialization, causing 10k+ log lines)
- Add get_albums_with_full_filter() method that filters network
  folders directly in SQL instead of N+1 query pattern
- Replace library_get_albums N+1 loop with single SQL query
  (was doing 1 + N queries for N albums when excluding network folders)

Frontend infrastructure:
- Add libraryPerformanceStore.ts with feature flags for:
  - virtualizationEnabled (default: true)
  - thumbnailsEnabled (default: false, for future use)
  - optimizedNetworkFilter (default: true)
  - albumSearchDebounceMs (default: 150)
  - performanceModeThreshold (default: 500 albums)
  - forcePerformanceMode (default: false)

Part of #13 - LocalLibrary performance optimization
2026-01-22 23:55:16 -06:00
vicrodh 4c4b35bce9 merge: PR #18 add album to playlist 2026-01-22 23:21:56 -06:00
vicrodh 45d31159d0 docs: clarify internal vs external branch naming
cx
2026-01-22 23:20:50 -06:00
vicrodh 7d7614e338 docs: add contributing and PR workflow
cx
2026-01-22 23:14:11 -06:00
vicrodh 1fdd4d9711 Merge PR #18: add album to playlist 2026-01-22 23:12:19 -06:00
Joel C 05fcd7ad5e Update label for add to playlist toast 2026-01-22 23:27:18 +01:00
Joel C edbe812d66 Simplify addAlbumToPlaylist functions 2026-01-22 23:25:38 +01:00
Joel C 6415991792 Use add to playlist on AlbumCards on ArtistDetailView 2026-01-22 23:11:15 +01:00
Joel C 8a68952658 Use add to playlist on AlbumCards on SearchView 2026-01-22 23:02:27 +01:00
Joel C 23ce992372 Use add to playlist on AlbumCards on HomeView 2026-01-22 22:56:51 +01:00
Joel C 1c89d8df57 Use Add to playlist option in AlbumDetailView 2026-01-22 22:18:59 +01:00
Joel C 3f0f75a9f2 Add to playlist option in AlbumMenu 2026-01-22 22:18:06 +01:00
vicrodh b80b21bf97 fix(ui): close track menu on outside click reliably
cx
2026-01-22 12:41:04 -06:00
vicrodh 99dfd4f0a3 fix(ui): close track menu on outside click and idle timeout
cx
2026-01-22 12:24:44 -06:00
vicrodh 9cf345921e ui: keep caret shadow behind menu panel
cx
2026-01-22 12:20:59 -06:00
vicrodh df9798c8d8 ui: keep caret shadow outside menu only
cx
2026-01-22 12:11:08 -06:00
vicrodh bed6c83192 ui: improve track menu caret contrast and alignment
cx
2026-01-22 12:08:00 -06:00
vicrodh 08be1c21f3 ui: make track menu caret larger and more visible
cx
2026-01-22 12:04:46 -06:00
vicrodh 96b31f6e25 fix(ui): render track menu caret reliably
cx
2026-01-22 12:02:49 -06:00
vicrodh e45d899437 ui: show track menu caret outside and visible
cx
2026-01-22 11:57:45 -06:00
vicrodh bcd3ac0456 ui: align track menu and add caret indicator
cx
2026-01-22 11:45:38 -06:00
vicrodh be508ca75c ui: show downloaded tracks with green CloudOff icon
cx
2026-01-22 11:43:49 -06:00
vicrodh f35f83fbb7 ui: offset track menu to avoid action column
cx
2026-01-22 11:41:49 -06:00
vicrodh 5162315d41 fix(ui): ensure only one track menu open globally
cx
2026-01-22 11:39:18 -06:00
vicrodh 945d0f4ca5 fix(ui): prevent PostCSS parsing FolderSettingsModal as CSS
cx
2026-01-22 11:37:39 -06:00
vicrodh 170158da3f fix(ui): prevent multiple track menus open
cx
2026-01-22 11:25:48 -06:00
vicrodh db1957bedd ui: rename download to save for offline
cx
2026-01-22 11:21:04 -06:00
vicrodh 73cc935d99 fix: remove open-folder action from download menus
cx
2026-01-22 11:14:51 -06:00
vicrodh 2a8b7c6d55 feat: Qobuz™ compliance, subscription gating, and settings cleanup
cx
2026-01-22 10:33:45 -06:00
vicrodh ee515573a2 fix: ARM64 workflow version extraction from tag/input 2026-01-20 22:42:26 -06:00
vicrodh b2e05b701b fix: Add tag trigger to ARM64 workflow to publish releases 2026-01-20 22:30:12 -06:00
vicrodh 52def4b7e8 fix: Restore Music category in tauri.conf.json (AudioVideo is invalid for Tauri) 2026-01-20 22:15:19 -06:00
vicrodh 6260b2f66c chore: Bump version to 1.1.6 for release 2026-01-20 22:00:40 -06:00
vicrodh 25aa16cbff feat: Add ARM64 (aarch64) support to AUR package
- Update PKGBUILD to support both x86_64 and aarch64 architectures
- Use architecture-specific sources and checksums
- Update AUR workflow to download and checksum both tarballs
- Add smart wait logic for both release assets (max 10 minutes)
- Homologize workflow naming for consistency
- Package function now detects architecture and uses correct tarball

AUR users on ARM64 devices (Raspberry Pi, etc.) can now install qbz-bin.
2026-01-20 21:05:04 -06:00
vicrodh 43ed44daf7 chore: Improve desktop integration and AppImage metadata for release
- Add Comment field to all .desktop files for app launcher descriptions
- Change category from Music to AudioVideo for better categorization
- Add Keywords for improved searchability (audiophile, hifi, streaming)
- Enhance metainfo.xml with detailed feature list and links
- Configure AppImage bundle settings in tauri.conf.json
- Update workflows to generate improved .desktop files

AppImage now includes embedded icon via Tauri icon configuration.
App will now appear in Multimedia category with proper description in all Linux app launchers.
2026-01-20 21:03:07 -06:00
vicrodh da67eebb3c fix: Add index to playlist track key to handle duplicate tracks
Include idx in each block key to prevent duplicate key errors when
the same track appears multiple times in a playlist
2026-01-20 20:57:08 -06:00
vicrodh 7a99ac6e92 feat: Force first track to be from seed artist/track in radio
Artist radio: Generate 20 tracks, find first from seed artist (distance 0), move to position 0
Track radio: Generate 20 tracks, find seed track itself, move to position 0
This ensures radio always starts with a relevant track
2026-01-20 20:51:51 -06:00
vicrodh 95647e288f fix: Sync playback context after creating radio
Call getPlaybackContext() to sync radio context from backend to frontend
This ensures the Radio icon appears in NowPlayingBar
2026-01-20 20:47:44 -06:00
vicrodh 4fc8c04bc1 fix: Use playQueueIndex for complete track data and add animated loading states
- Use playQueueIndex(0) instead of reading from queue store to get full track data
- Fixes missing artwork, duration, and seekbar for first track
- Add animated pill button with loading messages during radio creation
- Add glowing blue effect on radio icon after successful creation
- Loading messages: preparing, fetching artists, experimental notice
2026-01-20 20:45:54 -06:00
vicrodh 6c3ff71cdd fix: Sync queue state before reading in radio creation
Call syncQueueState() to fetch queue from backend before attempting playback
2026-01-20 20:34:12 -06:00
vicrodh b2c413b3fd Revert: Remove first track forcing logic
Keep only the weight and pool size improvements
2026-01-20 20:22:05 -06:00
vicrodh 9dcc23c478 fix: Correct track radio first track logic
Use RadioEngine selection for all tracks instead of manually prepending seed track
2026-01-20 20:19:38 -06:00
vicrodh 240c5e013a fix: Improve radio playback and session handling
- Fix radio playback initiation using onTrackPlay callback
- Fix sampling rate display for Qobuz tracks (already in kHz)
- Disable session restore to prevent local/Qobuz ID conflicts
2026-01-20 20:16:42 -06:00
vicrodh 484c27417a feat: Improve radio algorithm to favor seed artist
- Increase weight for seed artist tracks from 3 to 6 (doubles probability)
- Reduce similar artists pool: 12 -> 8 artists, 40 -> 30 tracks per artist
- Force first track in artist radio to always be from the seed artist
- Force first track in track radio to always be the seed track itself
2026-01-20 20:16:37 -06:00
vicrodh 76d1ddd007 fix: Start playback automatically when creating radio
- Import playQueueIndex from queueStore
- Call playQueueIndex(0) after radio creation to start playing
- Applies to both artist radio and track radio
2026-01-20 18:22:00 -06:00
vicrodh 40eba46e60 fix: Resolve Radio Engine compilation errors
- Add Clone impl for QobuzClient to enable thread-safe usage
- Use spawn_blocking for RadioDb operations to avoid Send trait issues
- Fix track.hires type mismatch (bool vs Option<bool>)
- Compilation now succeeds with no errors
2026-01-20 17:59:56 -06:00