From 4044ef3786161135165a85bc25a4c1401e4f1c13 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Mon, 1 Jun 2026 12:41:24 +0200 Subject: [PATCH] feat: pre-populate upload title with filename when no IGDB matches When a game ZIP is selected and IGDB returns no matches, the search box is now pre-filled with the filename (minus .zip extension) so the user can edit it rather than typing from scratch. --- frontend/src/pages/Library.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Library.svelte b/frontend/src/pages/Library.svelte index 73b68a8..c43a1fc 100644 --- a/frontend/src/pages/Library.svelte +++ b/frontend/src/pages/Library.svelte @@ -130,7 +130,7 @@ const name = file.name.replace(/\.zip$/i, ""); pendingFile = file; pendingFileName = name; - pendingTitle = ""; + pendingTitle = name; igdbResults = null; searching = true; searchError = ""; @@ -369,12 +369,12 @@ {/if} {:else} -

No matches found. Enter a title to search IGDB:

+

No matches found. Edit the title below and search IGDB:

{/if}
e.key === "Enter" && handleManualSearch()}