Commit Graph
5280 Commits
Author SHA1 Message Date
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
vicrodh 3613dd5fdb Fix create new playlist option conflicting with pending playlist IDs
- Use CREATE_NEW_PLAYLIST (-999999) instead of -1
- Prevents conflict with negative pending playlist IDs (-1, -2, etc.)
- Fixes add to playlist showing name input when selecting existing pending playlist
2026-01-20 09:21:38 -06:00
vicrodh e877f6fdd9 Fix isOffline variable not defined in Sidebar
- Add isOffline as derived state from offlineStatus.isOffline
- Fixes ReferenceError when loading playlists in offline mode
2026-01-20 09:14:23 -06:00
vicrodh 239a1f54a9 Improve pending playlist sync error handling and logging
- Add detailed logging for each local track being added
- Catch and re-throw errors when adding local tracks fails
- Prevent marking playlist as synced if any operation fails
- Show error details in toast notifications
- Ensures playlists will retry sync on next online transition if failed
- Fixes playlists being marked synced without local tracks added
2026-01-20 08:48:16 -06:00
vicrodh f4867deeb0 Show pending playlists in sidebar during offline mode
- Detect offline mode in loadUserPlaylists
- Load pending playlists instead of calling get_user_playlists API
- Convert PendingPlaylist to Playlist format for UI compatibility
- Use negative IDs to distinguish pending playlists
- Add  to reload playlists when offline status changes
- Fixes playlists not appearing when offline real (cable disconnected)
2026-01-20 08:42:29 -06:00
vicrodh 85f1b2da6f Implement offline playlist creation with local tracks
- Update createPendingPlaylist to accept localTrackIds parameter
- Modify PlaylistModal to separate Qobuz and local tracks in offline mode
- Implement syncPendingPlaylists function to sync playlists when back online
- Register sync callback in bootstrap to auto-sync on online transition
- Properly adds both Qobuz tracks and local tracks to synced playlists
- Shows toast notifications for successful/failed syncs
2026-01-20 08:24:00 -06:00