From b52d96b645af9565fca2ceb3bc7534e095d3fcb4 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sat, 21 Jun 2025 11:14:24 +0800 Subject: [PATCH] feat(analysis): wrap analysis panel with PanelLayout and ScrollArea --- .../problems/analysis/components/panel.tsx | 90 ++++++++++--------- 1 file changed, 50 insertions(+), 40 deletions(-) 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} +

+
+ + + + + ); };