Commit Graph
100 Commits
Author SHA1 Message Date
vicrodh aabbe8ea67 fix(radio): pass album_id and artist_id for track navigation
Add album_id and artist_id fields to QueueTrack struct so that
radio tracks have proper navigation metadata. This enables
clicking artist/album in the main player to navigate correctly
when playing tracks from artist or track radio.

Changes:
- Add album_id/artist_id to Rust QueueTrack struct
- Update track_to_queue_track to extract IDs from Qobuz Track
- Add fields to frontend BackendQueueTrack interface
- Pass IDs in ArtistDetailView radio playback
- Pass IDs in playQueueTrack to playTrack service
2026-01-23 03:14:42 -06:00
vicrodh 8eed63deb0 fix(search): pause icon visibility in tracks tab
Replace Lucide Pause component with inline SVG wrapped in span.
The Lucide component's rendered SVG doesn't receive Svelte's scoped
CSS attribute, so the CSS rules for .pause-icon weren't applying.
Now consistent with the "All" tab implementation.
2026-01-23 03:03:46 -06:00
vicrodh 49914af083 fix: add missing Play and Pause icon imports in SearchView 2026-01-23 02:55:22 -06:00
vicrodh fcf1397cc0 fix: apply canonical names to album and track grouping by artist
Use canonical names (from Qobuz/Discogs) when grouping albums and
tracks by artist to merge variants like "Alice in Chains" and
"Alice In Chains" into a single group.

- groupAlbumsOptimized uses canonical names for artist key
- groupAlbums uses canonical names for sorting and grouping
- groupTracks uses canonical names for artist sorting and grouping
2026-01-23 02:17:47 -06:00
vicrodh dbde6378a9 fix: track alpha index navigation and horizontal scroll
- Use VirtualizedTrackList's scrollToGroup method instead of DOM queries
- Add overflow: hidden to track-sections and virtualized-container
- Fix navigation not working with virtualized lists
2026-01-23 02:16:04 -06:00
vicrodh b5bde8cdaa feat: extend VirtualizedTrackList for Favorites support
Add optional accessor functions and props to support different track
data structures (FavoriteTrack vs LocalTrack). Includes:
- Customizable track property accessors (id, number, title, artist, etc.)
- Download status/progress support
- Additional menu actions (share, download, go to album/artist)
- isLocal, hideFavorite, isFavoriteOverride options
2026-01-23 02:10:57 -06:00
vicrodh 4c6473ac3a fix: prevent duplicate group keys from slugify collisions
Use encodeURIComponent instead of slugify for group IDs to preserve
case sensitivity. This prevents collisions like "Aki" and "AKI" both
becoming "aki" which caused each_key_duplicate errors.
2026-01-23 02:10:50 -06:00
vicrodh d9fa302b3e perf: always use virtualization for all library tabs
- Remove non-virtualized fallbacks for albums, artists, and tracks
- Virtualization now based on max(albums, tracks) count
- Standardize BUFFER_ITEMS to 5 across all virtualized components
- Reduces code by ~280 lines of duplicate rendering logic
- Ensures consistent performance regardless of library size
2026-01-23 01:59:12 -06:00
vicrodh 9504294907 fix: remove track limit completely from library search
- Backend now supports limit=0 meaning "no limit"
- Frontend passes limit=0 to fetch all tracks
- Search now works across entire library regardless of size
- Virtualization handles rendering efficiently
2026-01-23 01:53:37 -06:00
vicrodh 3dc2e94002 fix: album grid gap and remove 1000 track cap
- Remove max-width constraint on album cards to fill grid cells
- Increase GRID_ROW_HEIGHT to 270px for better row spacing
- Remove 1000 track limit (now 100000) for large libraries
2026-01-23 01:50:32 -06:00
vicrodh 58badcc64b fix: improve app identification in task managers
Set GTK_APPLICATION_ID for proper WM_CLASS and add desktop template
with StartupWMClass for correct process identification on Linux.
Also add window label for Tauri window configuration.
2026-01-23 01:50:27 -06:00
vicrodh 967969e3c8 style: adjust album grid gaps (30px row, 22px column) 2026-01-23 01:36:23 -06:00
vicrodh 2edd544c23 fix: album grid layout to fill available width
Use CSS Grid with auto-fill instead of flexbox to eliminate the
persistent gap on the right side of the album grid.
2026-01-23 01:36:02 -06:00
vicrodh 66d6ffb6ed feat: add canonical artist name normalization
- 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.
2026-01-23 01:35:55 -06:00
vicrodh 223cf481f1 fix: prevent API flooding in artist image fetching
- 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)
2026-01-23 01:27:45 -06:00
vicrodh eec512a3f9 fix: address UI and performance issues in LocalLibrary
- 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
2026-01-23 01:20:55 -06:00
vicrodh 16817b72b8 feat(thumbnails): integrate thumbnail service in LocalLibrary 2026-01-23 01:09:51 -06:00
vicrodh fc03bee9b1 feat(thumbnails): add backend thumbnail generation system 2026-01-23 01:07:16 -06:00
vicrodh 12011577d7 feat(artists): add virtualized list view component 2026-01-23 01:02:13 -06:00
vicrodh a3ecbe6617 feat(artists): add virtualization with grouping, alpha index, and list view 2026-01-23 01:00:58 -06:00
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
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
vicrodh 4bceda90c8 wip: Fix Radio Engine Tauri commands compilation errors
Still has Send trait issues due to RadioDb not being thread-safe
2026-01-20 17:51:17 -06:00
vicrodh e1818faa90 feat: Wire up Track Radio callback in ArtistDetailView 2026-01-20 17:44:16 -06:00
vicrodh 597018e846 feat: Add Track Radio menu item to TrackMenu component 2026-01-20 17:43:55 -06:00
vicrodh 1cf23f0e86 feat: Add Artist Radio button and Track Radio function to ArtistDetailView 2026-01-20 17:43:09 -06:00
vicrodh 343b82d772 feat: Add radio icon with pulse animation to StackIcon component 2026-01-20 17:41:53 -06:00
vicrodh ba4f7af909 feat: Add Radio context type to backend playback context system 2026-01-20 17:41:17 -06:00
vicrodh 04cd97385a feat: Add radio context type to frontend playback context store 2026-01-20 17:40:36 -06:00
vicrodh ed3a9cf8cb feat: Add Radio Engine Tauri commands for artist and track radio 2026-01-20 17:39:37 -06:00
vicrodh 2a8087ecb2 fix: Pause button now only appears on hover for playing tracks
- Replace Lucide Pause icon with solid SVG pause icon
- Pause button only shows when hovering over currently playing track
- Playing indicator (animated bars) shows when track is playing
- Play button shows for all non-playing tracks on hover
- Fixes issue where pause appeared on all tracks on hover
2026-01-20 17:33:19 -06:00
vicrodh 4a79493776 fix: Add xdg-utils dependency for ARM64 AppImage build 2026-01-20 16:28:21 -06:00
vicrodh 4748cef7df chore: Bump version to 1.1.6-rc and add ARM64 workflow
- Update version to 1.1.6-rc for release candidate testing
- Add Linux ARM64/aarch64 build workflow
- Uses ubuntu-24.04-arm GitHub runner (free for public repos)
- Builds .deb, .rpm, .AppImage, and AUR tarball for ARM64
- Workflow isolated with continue-on-error to not block x86_64 builds
2026-01-20 16:04:35 -06:00
vicrodh 2579c1990d Remove offline playlist integration
- Hide Playlists section entirely in offline mode
- Disable 'Show Partial Playlists' setting temporarily
- Simplifies offline UX - playlists not functional yet
2026-01-20 15:34:31 -06:00
vicrodh 7497a60a64 feat: Add Radio Engine backend
- Deterministic track selection with artist spacing
- SQLite-backed session persistence
- Pool construction from Qobuz public API
- 100% test coverage on core logic
2026-01-20 15:33:15 -06:00
vicrodh 9ca22f52ac Disable playlist management in offline mode
- Add shouldHidePlaylistFeatures() helper function
- Hide 'Add to playlist' button in TrackMenu when offline
- Add informational banner in Local Library view
- Users can still play tracks in offline mode
- Implements Option 2 from OFFLINE_PLAYLIST_FEATURE_OPTIONS.md
2026-01-20 15:20:02 -06:00
vicrodh f86bc826b8 test(radio): add spacing and long-run stability tests
cx
2026-01-20 15:07:32 -06:00
vicrodh baade9949c test(radio): add deterministic selection tests
cx
2026-01-20 15:07:09 -06:00
vicrodh b8d78a9003 feat(radio): expand pool with playlists and similar artists
cx
2026-01-20 15:06:39 -06:00
vicrodh 029e4a07df feat(radio): add pool builder and artist tracks endpoint
cx
2026-01-20 15:05:52 -06:00
vicrodh da1384fbcc feat(radio): add zero-weight selection fallback
cx
2026-01-20 15:05:02 -06:00
vicrodh eab57dc4cd feat(radio): add deterministic next-track selection
cx
2026-01-20 15:04:38 -06:00
vicrodh fab21cbf8e feat(radio): add pool/history counters
cx
2026-01-20 15:04:12 -06:00
vicrodh 334dc4f1b5 feat(radio): add radio DB schema and sessions
cx
2026-01-20 15:03:52 -06:00
vicrodh 9ec6d49f3e Fix PlaylistModal not detecting offline state reactively
Problem: When creating a playlist in offline mode, the modal would
create it in Qobuz instead of as a pending playlist because it read
the offline state only once at modal open time.

Solution: Subscribe to offline state changes reactively using $effect
and update a reactive offlineMode variable that the modal uses instead
of calling isOffline() directly.

This ensures the modal always has the current offline state, even if
the user toggles offline mode while the modal is open.
2026-01-20 14:44:29 -06:00
vicrodh c749b7d932 chore: Update tauri-plugin-dialog to 2.6.0
Fixes version mismatch warning between Rust crate (2.5.0) and
NPM package (@tauri-apps/plugin-dialog 2.6.0)
2026-01-20 14:34:18 -06:00
vicrodh b0d70b390a Security: Remove email from credential logs and add live smoke test
credentials/mod.rs:
- Remove email from log messages (privacy/security best practice)
- Logs still indicate success without exposing PII

tests/qobuz_live_smoke.rs:
- Add ignored live smoke test for Qobuz API
- Requires explicit opt-in via QBZ_RUN_QOBUZ_LIVE_TESTS=1
- Uses local credentials from keyring (no hardcoded secrets)
- Basic test: login + get_favorites endpoint
- Safe for repository (no credentials exposed)
2026-01-20 14:07:52 -06:00
vicrodh c1d32b4181 Rewrite offline playlist system to use file paths instead of IDs
Problem: Pending playlists created offline used auto-increment track IDs,
which change on library re-scans, causing FOREIGN KEY errors and data loss.

Solution: Store file_path instead of IDs for local tracks. Paths are stable
identifiers that only change if files are moved/renamed.

Backend changes:
- Add local_track_paths TEXT column to pending_playlist_sync table
- Update PendingPlaylist struct to include local_track_paths field
- Modify create/add functions to accept paths instead of IDs
- Add get_track_by_path command to resolve paths to current IDs
- Keep local_track_ids for backward compatibility

Frontend changes:
- Update PendingPlaylist interface with localTrackPaths field
- Fetch file paths from track IDs before creating pending playlists
- Implement path-to-ID resolution in sync function
- Gracefully handle missing files (log warning and skip)
- Backward compatible with old ID-based pending playlists

Testing:
- Simulated playlist creation with 3 local tracks (IDs 197-199)
- Simulated re-scan by changing IDs to 1500-1502
- Verified path resolution finds tracks with new IDs correctly
- Verified missing files are handled gracefully

This makes the offline playlist system robust and production-ready.
2026-01-20 13:30:10 -06:00
vicrodh 8a6816d8d3 Fix pending playlist local content detection in offline mode
- Populate localTrackCounts map with pending playlist local track counts
- Set tracks_count to only Qobuz tracks for correct filtering logic
- Store pending playlists metadata in pendingPlaylistsMap
- Fixes all_local vs some_local detection for pending playlists
- Playlists with only local tracks now correctly show as fully available offline
2026-01-20 10:15:16 -06:00
vicrodh 59cf94e7ca Support adding tracks to pending playlists in offline mode
Backend:
- Add add_tracks_to_pending_playlist method to OfflineStore
- Reads current track lists, appends new tracks, updates DB
- Add corresponding Tauri command and register in lib.rs

Frontend:
- Detect pending playlists by negative ID in handleAddToPlaylist
- Call add_tracks_to_pending_playlist for pending playlists
- Properly separate Qobuz and local tracks before adding
- Fixes error trying to call playlist_add_local_track with negative ID
2026-01-20 10:11:07 -06:00