diff --git a/app/(main)/challenges/page.tsx b/app/(main)/challenges/page.tsx
index 0d65d58..48cf35f 100644
--- a/app/(main)/challenges/page.tsx
+++ b/app/(main)/challenges/page.tsx
@@ -2,11 +2,8 @@ import { all } from "better-all";
import { Trophy } from "lucide-react";
import type { Metadata } from "next";
import { cacheLife, cacheTag } from "next/cache";
-import { Suspense } from "react";
-import { ErrorBoundary } from "react-error-boundary";
import { ChallengesQuickStartCTA } from "@/components/challenges-quick-start-cta";
import { ChallengesView } from "@/components/challenges-view";
-import { UserStats } from "@/components/user-stats";
import { generateMetadata as generateSEOMetadata } from "@/lib/seo";
import { getChallenges } from "@/server/db/queries";
import { HydrateClient, prefetch, trpc } from "@/trpc/server";
@@ -72,21 +69,6 @@ async function ChallengesPageContent() {
- {/* Stats Cards - Client-side component handles auth check */}
- Error loading user statistics.}>
-
-
-
-
-
- }
- >
-
-
-
-
{/* Quick Start CTA - Only shown to unauthenticated users */}
diff --git a/components/user-stats.tsx b/components/user-stats.tsx
deleted file mode 100644
index 47d998c..0000000
--- a/components/user-stats.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-"use client";
-
-import { useQuery } from "@tanstack/react-query";
-import { Award, Flame, Star } from "lucide-react";
-import { authClient } from "@/lib/auth-client";
-import { useTRPC } from "@/trpc/client";
-
-export function UserStats() {
- const trpc = useTRPC();
- const { data: session, isPending } = authClient.useSession();
-
- // Only fetch stats if user is authenticated
- const { data: completionData } = useQuery({
- ...trpc.userProgress.getCompletionPercentage.queryOptions(),
- enabled: !!session,
- });
- const { data: xpAndRank } = useQuery({
- ...trpc.userProgress.getXpAndRank.queryOptions(),
- enabled: !!session,
- });
- const { data: streak } = useQuery({
- ...trpc.userProgress.getStreak.queryOptions(),
- enabled: !!session,
- });
-
- // Don't render if not authenticated or still loading
- if (
- isPending ||
- !session ||
- !completionData ||
- !xpAndRank ||
- streak === undefined
- ) {
- return null;
- }
-
- return (
-
- {/* Challenges Completed Card */}
-
-
-
-
- {completionData.completedCount}
-
-
-
- Challenges completed
-
-
- {completionData.percentageCompleted}% done
-
-
-
- {/* Rank Card */}
-
-
-
-
-
-
- {xpAndRank.rank}
-
-
-
- Rank
-
-
- {xpAndRank.xpEarned} xp earned
-
-
-
- {/* Streak Card */}
-
-
-
- Day Streak
-
-
- {streak === 0 ? "Start your journey! 🔥" : "Keep it up! 🔥"}
-
-
-
- );
-}