feat(react): add toasts, loading states, skeletons, animations, and mobile responsiveness

- Toast notifications (sonner): success/error toasts on all mutations
- Loading spinners: EntryCard add/remove, ConfirmDialog, EntrySeenDialog, favorite/refresh buttons
- Page skeletons: 13 page-specific Suspense fallbacks replacing generic skeleton
- CSS animations: card-enter (staggered), page-enter, slide-up-fade keyframes
- Mobile layout: hamburger menu with sheet sidebar, responsive entry details
- Mobile controls: separate compact filter/sort popovers for Library and Watchlist
- Desktop sort: popover menu replacing Select dropdown on Library and Watchlist
- Filter ranges: year 1950-2100, rating 0-10
This commit is contained in:
Mohammed Abad committed 2026-04-02 03:00:49 +01:00
1 parent ae67663623
commit d60d142d17
29 files changed
+1008 -226

No files matched your search

+10 -4
View File
@@ -27,7 +27,7 @@ export function HomePage() {
const isSearching = searchQuery.length > 0;
return (
<div className="space-y-8">
<div className="space-y-8 animate-page-enter">
{/* Search */}
<div className="relative max-w-md">
<Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
@@ -47,9 +47,15 @@ export function HomePage() {
{searchEntries.length === 0 && !searchResults.isLoading ? (
<p className="text-muted-foreground">No results found.</p>
) : (
<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-7">
{searchEntries.map((entry) => (
<EntryCard key={entry.id} tmdbEntry={entry} />
<div className="grid grid-cols-2 gap-3 sm:gap-4 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-7">
{searchEntries.map((entry, index) => (
<div
key={entry.id}
className="animate-card-enter"
style={{ animationDelay: `${Math.min(index * 30, 300)}ms` }}
>
<EntryCard tmdbEntry={entry} />
</div>
))}
</div>
)}