refactor(artist): co-locate artist feature into features/artist

This commit is contained in:
Psychotoxical
2026-06-30 01:27:01 +02:00
parent 17ea96dcdb
commit 9ffc42688c
103 changed files with 301 additions and 254 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ import { getAlbumInfo2 } from './subsonicAlbumInfo';
import { getStarred } from './subsonicStarRating';
import { search } from './subsonicSearch';
import { getAlbum, getMusicDirectory, getMusicFolders, getMusicIndexes, getRandomSongs, getSong } from './subsonicLibrary';
import { getArtists, getTopSongs } from './subsonicArtists';
import { getArtists, getTopSongs } from '@/features/artist';
import { useAuthStore } from '@/store/authStore';
import { resetAuthStore } from '@/test/helpers/storeReset';
+2 -2
View File
@@ -1,12 +1,12 @@
import { beforeEach, describe, expect, it, vi } from 'vitest';
vi.mock('./subsonicArtists', () => ({ getArtist: vi.fn() }));
vi.mock('@/features/artist', () => ({ getArtist: vi.fn() }));
vi.mock('./subsonicLibrary', () => ({ getAlbum: vi.fn() }));
vi.mock('../utils/network/subsonicNetworkGuard', () => ({
shouldAttemptSubsonicForActiveServer: vi.fn(() => true),
}));
import { getArtist } from './subsonicArtists';
import { getArtist } from '@/features/artist';
import { invalidateEntityUserRatingCaches, prefetchArtistUserRatings } from './subsonicRatings';
beforeEach(() => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { getArtist } from './subsonicArtists';
import { getArtist } from '@/features/artist';
import { getAlbum } from './subsonicLibrary';
import { shouldAttemptSubsonicForActiveServer } from '../utils/network/subsonicNetworkGuard';