Add feedback when search clicked with empty input

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 <noreply@anthropic.com>
This commit is contained in:
b1rdmania
2025-12-29 16:32:07 +00:00
parent 5b51527e86
commit 602b36fc7a
+5 -1
View File
@@ -292,7 +292,11 @@ class MotifApp {
private async handleSearch(): Promise<void> {
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();