diff --git a/src/components/PlayerBar.tsx b/src/components/PlayerBar.tsx index 190db3b0..e289bb4f 100644 --- a/src/components/PlayerBar.tsx +++ b/src/components/PlayerBar.tsx @@ -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'; diff --git a/src/features/album/utils/deriveAlbumHeaderArtistRefs.ts b/src/features/album/utils/deriveAlbumHeaderArtistRefs.ts index bb5bec4c..1dc58d5b 100644 --- a/src/features/album/utils/deriveAlbumHeaderArtistRefs.ts +++ b/src/features/album/utils/deriveAlbumHeaderArtistRefs.ts @@ -1,5 +1,5 @@ import type { SubsonicAlbum, SubsonicOpenArtistRef, SubsonicSong } from '@/lib/api/subsonicTypes'; -import { coerceOpenArtistRefs } from '@/features/artist'; +import { coerceOpenArtistRefs } from '@/lib/api/openArtistRefs'; function nonEmpty(refs: SubsonicOpenArtistRef[]): refs is SubsonicOpenArtistRef[] { return refs.length > 0; diff --git a/src/features/artist/index.ts b/src/features/artist/index.ts index ec53dacf..4928cd58 100644 --- a/src/features/artist/index.ts +++ b/src/features/artist/index.ts @@ -27,7 +27,6 @@ export * from './store/artistAlbumYearSortStore'; export * from './store/artistBrowseSessionStore'; export * from './store/artistLayoutStore'; export * from './utils/artistsHelpers'; -export * from './utils/openArtistRefs'; export * from './utils/runArtistDetailActions'; export * from './utils/runArtistDetailPlay'; export * from './utils/sortArtistAlbums'; diff --git a/src/features/artist/utils/openArtistRefs.test.ts b/src/lib/api/openArtistRefs.test.ts similarity index 88% rename from src/features/artist/utils/openArtistRefs.test.ts rename to src/lib/api/openArtistRefs.test.ts index 5cceed4c..702d02b2 100644 --- a/src/features/artist/utils/openArtistRefs.test.ts +++ b/src/lib/api/openArtistRefs.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest'; -import { coerceOpenArtistRefs } from '@/features/artist/utils/openArtistRefs'; +import { coerceOpenArtistRefs } from '@/lib/api/openArtistRefs'; describe('coerceOpenArtistRefs', () => { it('returns an empty array for nullish input', () => { diff --git a/src/features/artist/utils/openArtistRefs.ts b/src/lib/api/openArtistRefs.ts similarity index 100% rename from src/features/artist/utils/openArtistRefs.ts rename to src/lib/api/openArtistRefs.ts diff --git a/src/utils/playback/songToTrack.ts b/src/utils/playback/songToTrack.ts index f1de11c2..70bc21f1 100644 --- a/src/utils/playback/songToTrack.ts +++ b/src/utils/playback/songToTrack.ts @@ -1,6 +1,6 @@ import type { SubsonicSong } from '@/lib/api/subsonicTypes'; import type { Track } from '../../store/playerStoreTypes'; -import { coerceOpenArtistRefs } from '@/features/artist'; +import { coerceOpenArtistRefs } from '@/lib/api/openArtistRefs'; import { activeServerProfileId } from './trackServerScope'; export function songToTrack(song: SubsonicSong): Track { diff --git a/src/utils/playback/trackArtistRefs.ts b/src/utils/playback/trackArtistRefs.ts index b49898a4..3eb39c0e 100644 --- a/src/utils/playback/trackArtistRefs.ts +++ b/src/utils/playback/trackArtistRefs.ts @@ -1,6 +1,6 @@ import type { SubsonicOpenArtistRef } from '@/lib/api/subsonicTypes'; import type { Track } from '../../store/playerStoreTypes'; -import { coerceOpenArtistRefs } from '@/features/artist'; +import { coerceOpenArtistRefs } from '@/lib/api/openArtistRefs'; type TrackArtistFields = Pick;