From 4d139f78a070174e2bde006d52d10450bf8aba52 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 26 Jan 2026 14:47:55 -0600 Subject: [PATCH] refactor(ui): move Discogs results into artwork panel cx --- .../components/views/LocalLibraryView.svelte | 222 ++++++++++++------ 1 file changed, 144 insertions(+), 78 deletions(-) diff --git a/src/lib/components/views/LocalLibraryView.svelte b/src/lib/components/views/LocalLibraryView.svelte index f9b163e93..0acd0359f 100644 --- a/src/lib/components/views/LocalLibraryView.svelte +++ b/src/lib/components/views/LocalLibraryView.svelte @@ -3175,89 +3175,102 @@
-
- {#if selectedAlbum.artwork_path} - Current artwork - {:else} -
- +
+
+
+ {#if selectedAlbum.artwork_path} + Current artwork + {:else} +
+ +
+ {/if} +
+ + +
- {/if} -
- - +
+ +
+
+
Select Artwork from Discogs
+ {#if discogsImageOptions.length > IMAGES_PER_PAGE} + + {/if} +
+ + {#if discogsImageOptions.length === 0} +
+ {#if fetchingDiscogsImages} + Fetching... + {:else} + Click “Fetch from Discogs” to show results here. + {/if} +
+ {:else} +
+ {#each paginatedDiscogsImages as option, i} + + {/each} +
+ {/if} +

Click a cover to select it, then Save.

- {#if discogsImageOptions.length > 0} -
-
- - {#if discogsImageOptions.length > IMAGES_PER_PAGE} - - {/if} -
-
- {#each paginatedDiscogsImages as option, i} - - {/each} -
-

Click an image to select it, then click Save

-
- {/if} -