Commit Graph
1348 Commits
Author SHA1 Message Date
vicrodh 16adbd4682 refactor(ui): move alpha-index inline in LocalLibrary albums and tracks tabs 2026-01-29 21:22:52 -06:00
vicrodh fcde0a90b3 refactor(ui): redesign Favorites header layout with inline alpha-index 2026-01-29 21:14:36 -06:00
vicrodh 0ca6d923a2 fix(ui): compact Favorites header, move alpha-index to horizontal position 2026-01-29 20:30:04 -06:00
vicrodh 6935aeb552 fix(ui): vertically center action buttons in Favorites 2026-01-29 20:18:07 -06:00
vicrodh c0fdfbc6a6 fix(ui): fix double scrollbar in Favorites tracks tab, replace Play All with circle buttons 2026-01-29 20:15:51 -06:00
vicrodh a401327ab3 fix(ui): remove unwanted fixed track-list-header from FavoritesView 2026-01-29 20:10:10 -06:00
vicrodh fae962d59b feat(ui): add ViewTransition to LocalLibraryView and all tabs
- Outer view slides down on initial mount (200ms, 12px)
- Each tab content (albums, artists, tracks) slides up on tab change
- Uses {#key activeTab} to re-trigger transition on tab switch
- Simple transition without spinner fadeout logic
2026-01-29 20:07:39 -06:00
vicrodh f910b222d3 fix(ui): add slide-down transition to spinner on tab change in FavoritesView
When switching tabs, the loading spinner now animates with slide-down
transition (200ms, 12px) using {#key activeTab} to re-trigger on tab change.
This completes the animation flow: spinner slides down -> fadeout -> content slides up
2026-01-29 20:02:08 -06:00
vicrodh df17f859e0 feat(ui): add ViewTransition to PlaylistDetail and PlaylistManager views
- PlaylistDetailView: outer slide-down (200ms), spinner fadeout, content slide-up
- PlaylistManagerView: outer slide-down (200ms), spinner fadeout, content slide-up
- Matches the FavoritesView transition pattern
2026-01-29 19:58:06 -06:00
vicrodh 4ce7694290 fix(ui): add initial slide-down transition to FavoritesView
Wrap entire FavoritesView in ViewTransition with direction="down" so the
initial view (header + spinner) slides down on first load.

Complete flow:
0. Initial view appears with slide-down transition (200ms, 12px)
1. Loading spinner shows while syncing
2. When sync completes, spinner fades out (200ms)
3. Content appears with slide-up transition (200ms, 12px)
2026-01-29 19:54:39 -06:00
vicrodh b5a437d0d0 feat(ui): add ViewTransition to Album and Favorites views
- Add ViewTransition wrapper to AlbumDetailView (200ms, 12px slide up)
- Add ViewTransition to FavoritesView content sections (tracks, albums, artists, playlists)
- Add spinner fadeout animation (200ms) before content transition in FavoritesView
- Both loading spinner and playlists loading spinner now fade out smoothly
2026-01-29 19:50:46 -06:00
vicrodh 4c606e029e feat(favorites): implement local SQLite persistence for favorites
This ensures favorites sync properly across all views (album detail,
continue listening, etc.) by using local persistence as the source
of truth for UI, with API calls for actual operations.

Backend (Rust):
- Add favorites_cache.rs module with SQLite tables:
  - favorite_tracks (track_id INTEGER PRIMARY KEY)
  - favorite_albums (album_id TEXT PRIMARY KEY)
  - favorite_artists (artist_id INTEGER PRIMARY KEY)
- Add Tauri commands for cache operations:
  - get_cached_favorite_* - read from local cache
  - cache_favorite_* / uncache_favorite_* - add/remove single items
  - sync_cached_favorite_* - bulk sync from API data
  - clear_favorites_cache - for logout

Frontend:
- Rewrite favoritesStore.ts to use persistence:
  - loadFavorites(): Load from cache first, then sync from API
  - toggleFavorite(): API call first → update cache on success
  - No optimistic updates - UI shows loading state until confirmed
- Rewrite albumFavoritesStore.ts with same pattern
- Create artistFavoritesStore.ts for artist favorites
- Update +page.svelte to load all favorites on login
- Update FavoritesView to sync cache when loading from API

Sync strategy:
- On login: Fetch from Qobuz API → sync to local cache
- On toggle: API call → on success → update local cache → notify UI
- FavoritesView reads from API and syncs local cache
- All other views read from local cache (instant UI)
2026-01-29 19:42:04 -06:00
vicrodh defd2f0fe1 fix(favorites): ensure favorites sync with Qobuz API and show loading state
Issues fixed:
- playbackService was bypassing the favorites store, causing UI desync
- Album favorites weren't loaded on login (only track favorites were)
- No visual feedback while favorite API call was in progress

Changes:
- Add toggling state tracking to favoritesStore and albumFavoritesStore
- Add isTrackToggling() and isAlbumToggling() exports
- Prevent double-toggle while API call is in progress
- Update TrackRow and AlbumCard to show pulse animation while toggling
- Update playbackService to use store's toggle (centralized API calls)
- Load both track and album favorites on login
2026-01-29 19:24:13 -06:00
vicrodh 4858faa696 fix(ui): adjust UserCard icon sizes
- Increase settings gear icon from 14px to 18px
- Increase QBZ logo from 28px to 30px
- Remove border-radius from logo (was clipping the icon)
2026-01-29 19:12:19 -06:00
vicrodh 8db47aaee0 fix(ui): remove flicker-causing effect and add view transition to Settings
- Remove problematic $effect that ran loadPlaybackPreferences() on every
  render, causing a state update loop and visual flicker
- The function is already called in onMount, so the duplicate was redundant
- Add ViewTransition wrapper for consistent subtle animation (200ms fade+slide)
2026-01-29 19:09:01 -06:00
vicrodh 65ffabbf1d feat(ui): navigate to search on 3rd char + add subtle view transition
- Only navigate to search page after 3 characters typed
- Sync still happens immediately from 1st character
- Remove auto-navigate on focus (let user type first)
- Add ViewTransition component for reusable subtle animations
- Apply 200ms fade+slide transition to SearchView

cc
2026-01-29 19:04:29 -06:00
vicrodh a13f153a63 feat(ui): convert sidebar search button to synced input field
- Replace search button with actual text input in sidebar
- Add X button to clear search when text is present
- Sync sidebar input 1:1 with SearchView input (bidirectional)
- Typing in sidebar navigates to search page and triggers search
- Clearing sidebar input resets search page to standby state
- Add subscribeSearchQuery and setSearchQuery to searchState store

cc
2026-01-29 18:52:06 -06:00
vicrodh 6a756a7aeb fix(ui): use fixed positioning to eliminate scroll flash
Redesigned dropdown architecture:
- Menu uses position:fixed instead of absolute
- Menu rendered outside dropdown container (sibling, not child)
- Position calculated in pixels before menu opens
- Completely removes menu from document flow

This eliminates the momentary scroll flash that occurred when
dropdowns opened and temporarily expanded the page.

cc
2026-01-29 17:34:47 -06:00
vicrodh 669e9dbf4a fix(ui): use dynamic item height for compact mode dropdowns
Account for 36px items in compact mode vs 40px in normal mode when
calculating menu max-height and options container height.

cc
2026-01-29 17:03:25 -06:00
vicrodh 5421bb9eb1 fix(ui): rewrite Dropdown with smart positioning and search
- Add search input when options > 5
- Implement smart positioning to dodge viewport edges
- Fixed height showing 4 items when searchable
- Add scroll snap for clean item display
- Recalculate position on scroll/resize

cc
2026-01-29 16:57:04 -06:00
vicrodh fb0ab88b51 fix: refresh theme palettes and names
cx
2026-01-29 16:33:45 -06:00
vicrodh 21b1950857 feat: add Mira theme and reorder list
cx
2026-01-29 13:57:23 -06:00
vicrodh 0056d74824 chore: update theme slugs
cx
2026-01-29 13:54:10 -06:00
vicrodh 7f9a580a8c feat: rename new theme labels
cx
2026-01-29 13:30:32 -06:00
Victor RH 374e5fdeb4 Merge branch 'pre-release' into fix/general-debug-1.1.7 2026-01-29 12:53:09 -06:00
Victor RH cbbe86f231 Merge branch 'feature/playlist-suggestions' into pre-release 2026-01-29 12:52:47 -06:00
vicrodh 56c61499d9 fix: move track header outside virtualized container
- Header now outside .track-sections.virtualized (like LocalLibraryView)
- Use calc() height for virtualized section to give explicit dimensions
- Removes complex flex/absolute positioning that was breaking layout
2026-01-29 12:05:46 -06:00
vicrodh c1e6bd1a92 fix: virtualized track list height using absolute positioning 2026-01-29 12:03:21 -06:00
vicrodh 3163a893c6 fix: track list layout in Favorites Tracks view
- Fix virtualized container not showing tracks
- Remove conflicting height: 100% properties
- Add overflow: hidden to prevent extra scrollbar
- Add flex-shrink: 0 to header to prevent compression
2026-01-29 11:58:47 -06:00
vicrodh cd84f15ee2 feat: add Album column and header to Favorites Tracks view
- Add track list header with columns: #, Title, Album, Duration,
  Quality, Favorite icon, Download icon
- Album column is hidden when grouping by album (redundant)
- Add getTrackAlbum and showAlbum props to VirtualizedTrackList
- Style matches PlaylistDetailView for consistency
2026-01-29 11:51:53 -06:00
vicrodh 19d84326b8 fix: enable resume for streaming tracks
Previously, streaming tracks could not be resumed after pause timeout
because current_audio_data was never set for streaming playback.

Changes:
- Store BufferedMediaSource in current_streaming_source for streaming tracks
- On resume, check if streaming source has complete data and use it
- Clear streaming source on Stop and when switching to non-streaming play
- Log buffered bytes when streaming not complete yet

This allows users to pause streaming tracks and resume them after the
download completes, instead of getting "no audio data available" error.
2026-01-29 11:23:58 -06:00
vicrodh 873895709a fix: dropdown positioning in Favorites view
- Add z-index: 1000 to dropdown-container to appear above sidebar
- Change dropdown alignment from right: 0 to left: 0 for natural
  left-to-right opening
- Affects all tabs: Albums, Tracks, Artists
2026-01-29 10:21:56 -06:00
vicrodh 7269642464 fix: dropdown z-index and volume persistence
- Fix Favorites Albums group dropdown appearing behind sidebar
  (z-index 10 -> 100)
- Persist volume level to localStorage between sessions
- Allow changing volume when nothing is playing (volume
  applies when playback starts)
2026-01-29 10:12:34 -06:00
vicrodh af55c9a0fa chore: update android icons in static folder (UserCard, AboutModal) 2026-01-29 08:57:03 -06:00
vicrodh 56faddf2dc chore: update app logo to v3
New logo design with vinyl/gear motif, replacing old GPT-generated logo.
Updated all icon sizes for Tauri, Windows Store, favicon, and static assets.
2026-01-29 01:22:05 -06:00
vicrodh e570caa115 fix(playlist): increase sort dropdown min-width to 200px 2026-01-28 23:02:16 -06:00
vicrodh a75addbb42 fix(playlist): increase sort dropdown min-width to 180px 2026-01-28 23:01:21 -06:00
vicrodh 84f8b5f8c9 fix(playlist): align sort dropdown caret to right edge 2026-01-28 23:00:35 -06:00
vicrodh 9e44dad677 fix(playlist): prevent text wrapping in sort dropdown 2026-01-28 22:59:44 -06:00
vicrodh f0fa6a1e26 fix(suggestions): prevent layout jump during animations with fixed height 2026-01-28 22:56:30 -06:00
vicrodh 48cdb2750f chore(suggestions): remove debug artist count text 2026-01-28 21:36:13 -06:00
vicrodh f1b0b85119 feat(suggestions): smooth animations for add/dismiss tracks
- Add fade/slide transitions when tracks are added or dismissed
- Show success state (checkmark + green highlight) before fade out
- Add track to local state without page reload
- Update sidebar counts via callbacks
- Disable buttons during adding animation
2026-01-28 21:28:26 -06:00
vicrodh 95fcb4ed4e feat(suggestions): adaptive artist selection and duplicate filtering
- Add extractAdaptiveArtists() for dynamic seed artist count based on playlist size
- Mix 60% top artists (coherence) + 40% random (discovery) for variety
- Filter duplicates by title+artist, not just track ID
- Catches same song from compilations, live albums, remasters, etc.
- Deduplicate within suggestion pool itself
2026-01-28 21:14:32 -06:00
vicrodh 591b194b25 Fix quality badges to match TrackRow simple text style
- Fix qobuzAdapters to use formatQuality for track quality (was showing Hi-Res)
- Update QualityBadge compact mode to simple text style:
  - font-size: 12px
  - color: #666666 (uniform gray)
  - width: 80px (fixed)
  - No background, border, or special hires styling
2026-01-28 19:42:53 -06:00
vicrodh c0e9a94f98 Refactor quality badges to use QualityBadge component with compact mode
- Add compact prop to QualityBadge for inline usage in track lists
- Compact mode shows simple text (24bit/96kHz or CD Quality)
- Use golden gradient for hires badges in compact mode
- Update ArtistDetailView to use QualityBadge compact
- Update FavoritesView to use QualityBadge compact
- Update SearchView to use QualityBadge compact
- Remove duplicate CSS and getQualityLabel functions
- LocalLibrary views keep custom format showing codec (FLAC 24/96)
2026-01-28 19:28:43 -06:00
vicrodh af74ee8cb8 Fix SearchView track-quality badge styling to match other components 2026-01-28 19:16:49 -06:00
vicrodh aa224d7167 Standardize quality badges and fix header favorite button
- Use golden gradient (#fbbf24 to #b8860b) with dark text for hires badges
- Increase min-width to 90px for consistent sizing across all badges
- Rename track-row favorite button to avoid CSS conflict with header button
- Header favorite button now properly circular like radio and network buttons
2026-01-28 19:14:52 -06:00
vicrodh eef89f904c Fix quality badge and favorite button styling in ArtistDetailView
- Use correct quality badge colors (alpha variables, orange gradient for hires)
- Fix favorite button to match TrackRow component styling (opacity-based)
2026-01-28 19:04:14 -06:00
vicrodh 0354917221 Add search re-focus, quality badges in artist view, fix favorites quality label
1. Search: Re-clicking Search button in sidebar scrolls to top and focuses input
   - Added triggerSearchFocus mechanism in searchState store
   - SearchView subscribes to focus trigger for scroll + focus

2. ArtistDetailView: Added quality badge and favorite button to Popular Tracks
   - Added getQualityLabel function with bit depth/sample rate
   - Added quality-badge element with hires styling
   - Added favorite button in track actions

3. FavoritesView: Fixed getAlbumQualityLabel to show detailed format
   - Now shows "24bit/96kHz" instead of generic "Hi-Res"
2026-01-28 18:45:21 -06:00
vicrodh 5b380ba7da Fix sticky header gap and scrollbar layout shift
- Change overflow-y to scroll to always reserve scrollbar space
- Fix sticky header top position to -24px to eliminate gap with window edge
- Add proper padding-top compensation when scrolled
2026-01-28 18:31:04 -06:00