- Add canonical_name column to artist_images table (migration)
- Store canonical names from Qobuz when fetching artist images
- Display canonical names (properly capitalized) in artist views
- Group and sort artists by canonical name when available
- Source priority: Qobuz -> Discogs -> Metadata
This ensures "Alice in chains" displays as "Alice In Chains" based on
Qobuz's authoritative naming.
- Add guard to prevent concurrent executions
- Make requests sequential (1 per second) instead of parallel batches
- Limit to 50 artists per session
- Disable Discogs fallback (caused rate limiting issues)
- Add abort flag on component destroy
- Update state less frequently (every 5 artists)
- Fix asset protocol scope for thumbnails in tauri.conf.json
- Homologate artist view controls to match album controls pattern
- Make artist grouping optional with dropdown (Off, A-Z)
- Change grid/list to single toggle button for artists
- Allow 3 lines for artist names in grid view
- Fix album card width to prevent title overflow
- Add throttling to artist image fetch to avoid rate limiting
- 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
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
- 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
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
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