diff --git a/src/features/problems/analysis/components/panel.tsx b/src/features/problems/analysis/components/panel.tsx index cdb393c..c8c54aa 100644 --- a/src/features/problems/analysis/components/panel.tsx +++ b/src/features/problems/analysis/components/panel.tsx @@ -7,7 +7,12 @@ import { CardFooter, } from "@/components/ui/card"; import prisma from "@/lib/prisma"; -import { ChartDataPoint, CodeAnalysisRadarChart } from "./radar-chart"; +import { + ChartDataPoint, + CodeAnalysisRadarChart, +} from "@/features/problems/analysis/components/radar-chart"; +import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; +import { PanelLayout } from "@/features/problems/layouts/panel-layout"; export const description = "A server component to fetch code analysis data."; @@ -68,46 +73,51 @@ export const AnalysisPanel = async ({ submissionId }: AnalysisPanelProps) => { ]; return ( - - - - Code Analysis - - - Detailed evaluation of your code submission - - - - - + + + + + + Code Analysis + + + Detailed evaluation of your code submission + + + + + - - - - Overall Score - - {codeAnalysisData.overallScore ?? "N/A"} - /100 - - - - - - + + + + Overall Score + + {codeAnalysisData.overallScore ?? "N/A"} + /100 + + + + + + - - Feedback - - {codeAnalysisData.feedback} - - - - + + Feedback + + {codeAnalysisData.feedback} + + + + + + + ); };
- {codeAnalysisData.feedback} -
+ {codeAnalysisData.feedback} +