From b837d7654f5712a52bd3b4e2f0928ee49e59f0df Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Sat, 20 Dec 2025 01:00:52 -0800 Subject: [PATCH] style: add skeleton loading and card animations, increase shows limit --- backend/routers/shows.py | 2 +- frontend/app/shows/page.tsx | 45 ++++++++++++++++++++++++----- frontend/components/ui/skeleton.tsx | 15 ++++++++++ 3 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 frontend/components/ui/skeleton.tsx diff --git a/backend/routers/shows.py b/backend/routers/shows.py index 38bc785..c7e37bf 100644 --- a/backend/routers/shows.py +++ b/backend/routers/shows.py @@ -19,7 +19,7 @@ def create_show(show: ShowCreate, session: Session = Depends(get_session), curre @router.get("/", response_model=List[ShowRead]) def read_shows( offset: int = 0, - limit: int = Query(default=100, le=100), + limit: int = Query(default=2000, le=5000), venue_id: int = None, tour_id: int = None, year: int = None, diff --git a/frontend/app/shows/page.tsx b/frontend/app/shows/page.tsx index 0a78d7d..0469391 100644 --- a/frontend/app/shows/page.tsx +++ b/frontend/app/shows/page.tsx @@ -5,6 +5,7 @@ import { getApiUrl } from "@/lib/api-config" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import Link from "next/link" import { Calendar, MapPin } from "lucide-react" +import { Skeleton } from "@/components/ui/skeleton" interface Show { id: number @@ -22,7 +23,7 @@ export default function ShowsPage() { const [loading, setLoading] = useState(true) useEffect(() => { - fetch(`${getApiUrl()}/shows/?limit=50`) + fetch(`${getApiUrl()}/shows/?limit=2000`) .then(res => res.json()) .then(data => { // Sort by date descending @@ -35,10 +36,38 @@ export default function ShowsPage() { .finally(() => setLoading(false)) }, []) - if (loading) return
@@ -48,11 +77,11 @@ export default function ShowsPage() {