Commit Graph
5272 Commits
Author SHA1 Message Date
vicrodh 496255744a fix(virtualization): add proper height for virtualized track list container 2026-01-23 00:38:03 -06:00
vicrodh 73f36d5e23 perf(library): memoize track grouping computation 2026-01-23 00:36:38 -06:00
vicrodh bb2cb56f5a feat(library): add virtualized track list component 2026-01-23 00:35:17 -06:00
vicrodh af4c51daae perf(library): integrate virtualized artist grid 2026-01-23 00:31:58 -06:00
vicrodh 3ec201f330 perf(virtualization): use binary search for visible items O(log n) 2026-01-23 00:29:02 -06:00
vicrodh c8b3531ef1 perf(library): memoize album filtering and grouping
- Create derived state `filteredAndGroupedAlbums` that caches results
- Add `matchesAlbumSearchFast` inline function to reduce overhead
- Add `groupAlbumsOptimized` that avoids unnecessary array copies
- Sort albums within groups instead of pre-sorting entire array
- Remove inline computation in template, use memoized results

This prevents repeated filtering and grouping on every render cycle.

Part of #13 - LocalLibrary performance optimization
2026-01-23 00:23:30 -06:00
vicrodh ae1f892e02 perf(library): add debounce for artist search (150ms) 2026-01-23 00:22:04 -06:00
vicrodh e1495d578f perf(AlbumCard): remove per-card ResizeObserver for large libraries
Previously each AlbumCard created a ResizeObserver on mount to detect
text overflow for the ticker/marquee effect. With 10,000 cards, this
meant 10,000+ active observers causing significant overhead.

Changes:
- Remove ResizeObserver creation in onMount
- Measure overflow only on first mouseenter/focus event
- Reset measurement state when title/artist props change
- Ticker effect still works but only activates when user hovers

This significantly reduces CPU and memory overhead for large album
grids while preserving the visual effect when users interact with cards.

Part of #13 - LocalLibrary performance optimization
2026-01-23 00:15:58 -06:00
vicrodh da653d48fc perf(library): add debounce for album search and memoize artwork URLs
- Add 150ms debounce for album search to prevent filtering on every
  keystroke (matches track search behavior)
- Memoize getArtworkUrl() with Map cache to avoid repeated
  convertFileSrc() calls for the same artwork path
- Clear debounce timer and state when search is closed

Part of #13 - LocalLibrary performance optimization
2026-01-23 00:15:16 -06:00
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