From fa3e070bce4dfb3791fc8d66ddfa97c6015be64e Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 25 Jan 2026 22:30:47 -0600 Subject: [PATCH] feat: add loading toast for musician resolution Show "Looking up {name}..." toast when clicking on musician links to provide feedback while the backend resolves the musician. Also show error toast if lookup fails. --- src/routes/+page.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ef65896f6..9c666dd33 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -522,6 +522,7 @@ * - Weak (1), None (0): Show Informational Modal */ async function handleMusicianClick(name: string, role: string) { + showToast(`Looking up ${name}...`, 'info'); try { const musician = await invoke('resolve_musician', { name, role }); console.log('Resolved musician:', musician); @@ -552,6 +553,7 @@ } } catch (err) { console.error('Failed to resolve musician:', err); + showToast('Could not look up musician info', 'error'); // Fallback: open modal with basic info musicianModalData = { name,