"use client" import { WeeklyProgressReport } from "@/components/AI/WeeklyProgressReport" import { Target, TrendingUp, Calendar, Zap, ArrowRight, BookOpen, CheckCircle2 } from "lucide-react" import { Card, CardContent } from "@/components/ui/card" import Link from "next/link" import { useActiveUser, isDemoUser } from "@/hooks/useActiveUser" const DEMO_STATS = [ { label: "Avg. Accuracy", value: "85%", delta: "+6%", positive: true }, { label: "Days Active", value: "7 / 7", delta: "Perfect week", positive: true }, { label: "Questions Solved", value: "214", delta: "+38 vs last week", positive: true }, { label: "Topics Covered", value: "12", delta: "3 remaining", positive: false }, ] const ZERO_STATS = [ { label: "Avg. Accuracy", value: "0%", delta: "Baseline", positive: true }, { label: "Days Active", value: "0 / 7", delta: "Day 1 Active", positive: true }, { label: "Questions Solved", value: "0", delta: "0 vs last week", positive: true }, { label: "Topics Covered", value: "0", delta: "0 completed", positive: false }, ] const DEMO_SYLLABUS_PROGRESS = [ { subject: "Physics", completed: 42, total: 60, percentage: 70, color: "bg-blue-500", text: "text-blue-500" }, { subject: "Chemistry", completed: 35, total: 55, percentage: 63, color: "bg-amber-500", text: "text-amber-500" }, { subject: "Mathematics", completed: 50, total: 65, percentage: 76, color: "bg-purple-500", text: "text-purple-500" }, { subject: "Biology", completed: 20, total: 40, percentage: 50, color: "bg-emerald-500", text: "text-emerald-500" }, ] const ZERO_SYLLABUS_PROGRESS = [ { subject: "Physics", completed: 0, total: 60, percentage: 0, color: "bg-blue-500", text: "text-blue-500" }, { subject: "Chemistry", completed: 0, total: 55, percentage: 0, color: "bg-amber-500", text: "text-amber-500" }, { subject: "Mathematics", completed: 0, total: 65, percentage: 0, color: "bg-purple-500", text: "text-purple-500" }, { subject: "Biology", completed: 0, total: 40, percentage: 0, color: "bg-emerald-500", text: "text-emerald-500" }, ] export default function WeeklyProgressPage() { const { userId } = useActiveUser() const isDemo = isDemoUser(userId) const stats = isDemo ? DEMO_STATS : ZERO_STATS const syllabusProgress = isDemo ? DEMO_SYLLABUS_PROGRESS : ZERO_SYLLABUS_PROGRESS return (
Track your syllabus completion goals, study streaks, and weekly milestones at a glance.
{stat.label}
{stat.value}
{stat.delta}