feat(init): initialize playback context and preferences stores

- Call initPlaybackContextStore() on app mount
- Call initPlaybackPreferences() on app mount
- Load backend state into frontend stores
- Phase 3 backend + UI complete
- Wiring for track actions pending (will be done per-page)

cp
This commit is contained in:
vicrodh committed 2026-01-18 00:58:26 -06:00
1 parent 1ed541c4ac
commit 9d4a269d36
1 file changed
+8
+8
View File
@@ -25,6 +25,10 @@
type Toast as ToastData type Toast as ToastData
} from '$lib/stores/toastStore'; } from '$lib/stores/toastStore';
// Playback context and preferences
import { initPlaybackContextStore } from '$lib/stores/playbackContextStore';
import { initPlaybackPreferences } from '$lib/stores/playbackPreferencesStore';
// UI state management // UI state management
import { import {
subscribe as subscribeUI, subscribe as subscribeUI,
@@ -1579,6 +1583,10 @@
initDownloadStates(); initDownloadStates();
startDownloadEventListeners(); startDownloadEventListeners();
// Initialize playback context and preferences stores
initPlaybackContextStore();
initPlaybackPreferences();
// Note: loadFavorites() is called in handleLoginSuccess after login is confirmed // Note: loadFavorites() is called in handleLoginSuccess after login is confirmed
// This prevents API calls before authentication is complete // This prevents API calls before authentication is complete