mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
refactor(decouple): move coerceOpenArtistRefs to lib/api (off artist feature)
First step of decoupling the audio core from feature imports. coerceOpenArtist Refs is a pure Subsonic-response normalizer (one-object-vs-array quirk) that was mis-membered in features/artist but consumed by the audio core (songToTrack, trackArtistRefs) and others. Relocate it beside its SubsonicOpenArtistRef type in lib/api/; drop the artist-barrel re-export; repoint the 4 barrel consumers. Removes the @/features/artist runtime edge from the audio core (utils/playback) entirely. tsc 0, lint 0/0, suite 319/2353 green. (composerBrowseSessionStore's ALL_SENTINEL import from @/features/artist remains — that's a non-audio global browse store, separate from this decouple.)
This commit is contained in:
@@ -22,7 +22,7 @@ import PlaybackDelayModal from './PlaybackDelayModal';
|
||||
import { usePlaybackScheduleRemaining } from '../utils/format/playbackScheduleFormat';
|
||||
import { usePreviewStore } from '../store/previewStore';
|
||||
import { usePerfProbeFlags } from '../utils/perf/perfFlags';
|
||||
import { coerceOpenArtistRefs } from '@/features/artist';
|
||||
import { coerceOpenArtistRefs } from '@/lib/api/openArtistRefs';
|
||||
import { resolveTrackArtistRefs } from '../utils/playback/trackArtistRefs';
|
||||
import { PlayerTrackInfo } from './playerBar/PlayerTrackInfo';
|
||||
import { PlayerTransportControls } from './playerBar/PlayerTransportControls';
|
||||
|
||||
Reference in New Issue
Block a user