diff --git a/src/components/app/ProblemCard.tsx b/src/app/problems/components/ProblemCard.tsx similarity index 100% rename from src/components/app/ProblemCard.tsx rename to src/app/problems/components/ProblemCard.tsx diff --git a/src/app/problems/page.tsx b/src/app/problems/page.tsx index 57764bd..35b15cd 100644 --- a/src/app/problems/page.tsx +++ b/src/app/problems/page.tsx @@ -3,7 +3,7 @@ import { Search, Grid, List } from "lucide-react"; import { useState } from "react"; -import ProblemCard from "@/components/app/ProblemCard"; +import ProblemCard from "@/app/problems/components/ProblemCard"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; diff --git a/src/app/problems/components/RunChat.tsx b/src/app/run/components/RunChat.tsx similarity index 100% rename from src/app/problems/components/RunChat.tsx rename to src/app/run/components/RunChat.tsx diff --git a/src/app/problems/components/RunTimer.tsx b/src/app/run/components/RunTimer.tsx similarity index 100% rename from src/app/problems/components/RunTimer.tsx rename to src/app/run/components/RunTimer.tsx diff --git a/src/app/run/page.tsx b/src/app/run/page.tsx index 5bf9146..52e573a 100644 --- a/src/app/run/page.tsx +++ b/src/app/run/page.tsx @@ -5,8 +5,8 @@ import CodeMirror, { EditorState } from "@uiw/react-codemirror"; import { vscodeDark } from "@uiw/codemirror-theme-vscode"; import { Card, CardContent } from "@/components/ui/card"; -import RunTimer, { RunInfo } from "../problems/components/RunTimer"; -import RunChat, { ChatMessage } from "../problems/components/RunChat"; +import RunTimer, { RunInfo } from "./components/RunTimer"; +import RunChat, { ChatMessage } from "./components/RunChat"; export default function Run() { const runInfo: RunInfo = { diff --git a/src/components/app/SplitRow.tsx b/src/components/app/SplitRow.tsx deleted file mode 100644 index 9762457..0000000 --- a/src/components/app/SplitRow.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { Check, Minus } from "lucide-react"; - -interface SplitRowProps { - problemName: string; - splitTime: string; - delta?: string; - isCompleted: boolean; - isCurrent?: boolean; - pbTime?: string; -} - -const SplitRow = ({ problemName, splitTime, delta, isCompleted, isCurrent, pbTime }: SplitRowProps) => { - const getDeltaColor = (delta?: string) => { - if (!delta) return "text-muted-foreground"; - if (delta.startsWith("-")) return "text-emerald-400"; - if (delta.startsWith("+")) return "text-red-400"; - return "text-muted-foreground"; - }; - - return ( -