diff --git a/spotizerr-ui/src/routes/home.tsx b/spotizerr-ui/src/routes/home.tsx index f969a5e..0ac2815 100644 --- a/spotizerr-ui/src/routes/home.tsx +++ b/spotizerr-ui/src/routes/home.tsx @@ -6,6 +6,7 @@ import type { TrackType, AlbumType, SearchResult } from "@/types/spotify"; import { QueueContext } from "@/contexts/queue-context"; import { SearchResultCard } from "@/components/SearchResultCard"; import { indexRoute } from "@/router"; +import { Music, Disc, User, ListMusic } from "lucide-react"; // Utility function to safely get properties from search results const safelyGetProperty = (obj: any, path: string[], fallback: T): T => { @@ -164,19 +165,33 @@ export const Home = () => { type="text" value={query} onChange={(e) => setQuery(e.target.value)} - placeholder="Search for a track, album, or artist" + placeholder="Search for a track, album, artist, or playlist" className="flex-1 p-2 border bg-input-background dark:bg-input-background-dark border-input-border dark:border-input-border-dark rounded-md focus:outline-none focus:ring-2 focus:ring-input-focus" /> - +
+ {["track", "album", "artist", "playlist"].map((typeOption) => ( + + ))} +
{ {isLoading ? (

Loading results...

) : ( - <> - {resultComponent} -
- {isLoadingMore &&

Loading more results...

} - + <> + {resultComponent} +
+ {isLoadingMore &&

Loading more results...

} + )}