From 602b36fc7a7937047a1f8b41aac75d4222e08562 Mon Sep 17 00:00:00 2001 From: b1rdmania <102524336+b1rdmania@users.noreply.github.com> Date: Mon, 29 Dec 2025 16:32:07 +0000 Subject: [PATCH] Add feedback when search clicked with empty input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously clicking Search with no input silently did nothing. Now shows "Enter a song name to search." and focuses the input. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index e51f67c..5c1d0ce 100644 --- a/src/main.ts +++ b/src/main.ts @@ -292,7 +292,11 @@ class MotifApp { private async handleSearch(): Promise { const songName = this.songInput.value.trim(); - if (!songName) return; + if (!songName) { + this.updateStatus('Enter a song name to search.'); + this.songInput.focus(); + return; + } // Stop any playing Motif audio this.handleMotifStop();