feat(web): favicon + toast feedback (polish)
Add a vinyl-record favicon (icon.svg) — fixes the favicon.ico 404 console error. Lightweight toast system (ToastHost + toast()) fired on request, wanted add, search, follow, and want actions so submits give explicit feedback. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import { StatTiles } from "./_ui/stat-tiles";
|
||||
import { SectionHeader } from "./_ui/section-header";
|
||||
import { JobRow } from "./_ui/job-row";
|
||||
import { PressedList } from "./_ui/pressed-list";
|
||||
import { toast } from "./_ui/toast";
|
||||
|
||||
type Row = {
|
||||
id: string;
|
||||
@@ -53,11 +54,13 @@ export function Queue() {
|
||||
async function submit(e: React.FormEvent) {
|
||||
e.preventDefault();
|
||||
if (!artist.trim() || !album.trim()) return;
|
||||
const label = album.trim();
|
||||
await fetch("/api/requests", {
|
||||
method: "POST",
|
||||
headers: { "content-type": "application/json" },
|
||||
body: JSON.stringify({ artist, album }),
|
||||
});
|
||||
toast(`Queued ${label}`);
|
||||
setArtist("");
|
||||
setAlbum("");
|
||||
refresh();
|
||||
|
||||
Reference in New Issue
Block a user