diff --git a/app/admin/results/detail/[testResultId]/page.tsx b/app/admin/results/detail/[testResultId]/page.tsx
index a11d489..5b87167 100644
--- a/app/admin/results/detail/[testResultId]/page.tsx
+++ b/app/admin/results/detail/[testResultId]/page.tsx
@@ -10,6 +10,7 @@ import { Progress } from "@/components/ui/progress"
import { CheckCircle, XCircle, Brain, Lightbulb, BarChart3, ArrowLeft, Loader2 } from "lucide-react"
import Link from "next/link"
import { CreativeAnalysis } from "@/components/creative-analysis"
+import { CombinedAnalysis } from "@/components/combined-analysis"
interface User {
id: string
@@ -286,32 +287,32 @@ function AdminResultDetailContent() {
// combined
if (score >= 90) return {
level: "全能高手",
- color: "bg-purple-600",
+ color: "bg-gradient-to-r from-purple-500 to-blue-500",
description: "邏輯與創意完美結合,是團隊中的全能型人才!",
suggestion: "繼續保持這種平衡,並嘗試帶領團隊解決複雜問題。"
}
if (score >= 80) return {
level: "綜合專家",
- color: "bg-green-500",
+ color: "bg-gradient-to-r from-blue-500 to-green-500",
description: "邏輯思維和創意能力都很出色,能夠勝任各種挑戰。",
suggestion: "繼續精進兩種能力,成為更全面的專業人才。"
}
- if (score >= 60) return {
+ if (score >= 70) return {
level: "平衡發展者",
- color: "bg-blue-500",
+ color: "bg-gradient-to-r from-green-500 to-yellow-500",
description: "邏輯和創意能力都有一定水準,正在朝全面發展邁進。",
suggestion: "針對較弱的能力進行重點提升,達到更好的平衡。"
}
- if (score >= 40) return {
+ if (score >= 50) return {
level: "潛力新星",
- color: "bg-yellow-500",
+ color: "bg-gradient-to-r from-yellow-500 to-orange-500",
description: "有發展潛力,需要更多練習來提升綜合能力。",
suggestion: "制定學習計劃,系統性地提升邏輯和創意能力。"
}
return {
- level: "成長中",
- color: "bg-red-500",
- description: "正在學習階段,需要更多時間和練習來提升能力。",
+ level: "待提升",
+ color: "bg-gradient-to-r from-orange-500 to-red-500",
+ description: "綜合能力有待提升,建議系統性訓練邏輯思維和創意能力。",
suggestion: "從基礎開始,逐步建立邏輯思維和創意思維。"
}
}
@@ -457,29 +458,18 @@ function AdminResultDetailContent() {
- {/* Combined Test Details */}
+ {/* Combined Test Analysis */}
{result.type === 'combined' && result.details && (
-
-
- 綜合能力分析
-
-
-
-
-
邏輯思維
-
{result.details.logicScore}
-
-
-
創意能力
-
{result.details.creativeScore}
-
-
-
能力平衡
-
{result.details.abilityBalance}
-
-
-
-
+
)}
{/* Creative Analysis for Creative Tests */}
diff --git a/components/combined-analysis.tsx b/components/combined-analysis.tsx
new file mode 100644
index 0000000..9760596
--- /dev/null
+++ b/components/combined-analysis.tsx
@@ -0,0 +1,185 @@
+"use client"
+
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
+import { Badge } from "@/components/ui/badge"
+import { Progress } from "@/components/ui/progress"
+import { Brain, Lightbulb, Target, TrendingUp, Search, Star } from "lucide-react"
+
+interface CombinedAnalysisProps {
+ overallScore: number
+ logicScore: number
+ creativityScore: number
+ balanceScore: number
+ level: string
+ description: string
+ logicBreakdown?: any
+ creativityBreakdown?: any
+}
+
+export function CombinedAnalysis({
+ overallScore,
+ logicScore,
+ creativityScore,
+ balanceScore,
+ level,
+ description,
+ logicBreakdown,
+ creativityBreakdown
+}: CombinedAnalysisProps) {
+
+ // 獲取等級顏色
+ const getLevelColor = (score: number) => {
+ if (score >= 90) return "bg-gradient-to-r from-purple-500 to-blue-500"
+ if (score >= 80) return "bg-gradient-to-r from-blue-500 to-green-500"
+ if (score >= 70) return "bg-gradient-to-r from-green-500 to-yellow-500"
+ if (score >= 60) return "bg-gradient-to-r from-yellow-500 to-orange-500"
+ return "bg-gradient-to-r from-orange-500 to-red-500"
+ }
+
+ // 獲取能力狀態
+ const getAbilityStatus = (score: number) => {
+ if (score >= 80) return { text: "表現優秀", color: "text-green-600" }
+ if (score >= 60) return { text: "表現良好", color: "text-blue-600" }
+ if (score >= 40) return { text: "需要提升", color: "text-yellow-600" }
+ return { text: "需要加強", color: "text-red-600" }
+ }
+
+ // 獲取平衡狀態
+ const getBalanceStatus = (score: number) => {
+ if (score >= 80) return { text: "非常均衡", color: "text-green-600" }
+ if (score >= 60) return { text: "相對均衡", color: "text-blue-600" }
+ if (score >= 40) return { text: "需要平衡", color: "text-yellow-600" }
+ return { text: "失衡嚴重", color: "text-red-600" }
+ }
+
+ // 生成發展建議
+ const getRecommendations = () => {
+ const recommendations = []
+
+ if (logicScore < 70) {
+ recommendations.push("建議加強邏輯思維訓練,多做推理題和數學題")
+ recommendations.push("學習系統性思維方法,如思維導圖、流程圖等")
+ }
+
+ if (creativityScore < 70) {
+ recommendations.push("建議參與更多創意活動,如頭腦風暴、設計思維工作坊")
+ recommendations.push("培養好奇心,多接觸不同領域的知識和經驗")
+ }
+
+ const scoreDiff = Math.abs(logicScore - creativityScore)
+ if (scoreDiff > 20) {
+ if (logicScore > creativityScore) {
+ recommendations.push("您的邏輯思維較強,建議平衡發展創意能力")
+ } else {
+ recommendations.push("您的創意能力較強,建議平衡發展邏輯思維")
+ }
+ }
+
+ if (logicScore >= 80 && creativityScore >= 80) {
+ recommendations.push("您具備優秀的綜合能力,建議承擔更多挑戰性工作")
+ recommendations.push("可以考慮擔任需要創新和分析並重的領導角色")
+ }
+
+ return recommendations.length > 0 ? recommendations : ["繼續保持現有的學習節奏,持續提升各方面能力"]
+ }
+
+ const recommendations = getRecommendations()
+ const logicStatus = getAbilityStatus(logicScore)
+ const creativityStatus = getAbilityStatus(creativityScore)
+ const balanceStatus = getBalanceStatus(balanceScore)
+
+ return (
+
+ {/* 綜合評估概覽 */}
+
+
+
+ {overallScore}
+
+ 綜合評估完成!
+
+
+ {level}
+
+
+ {description}
+
+
+
+
+
+
+ {/* 能力分析 */}
+
+
+
+
+ 能力分析
+
+
+
+
+ {/* 邏輯思維 */}
+
+
+
+
+
邏輯思維
+
{logicScore}分
+
{logicStatus.text}
+
+
+
+ {/* 創意能力 */}
+
+
+
+
+
創意能力
+
{creativityScore}分
+
{creativityStatus.text}
+
+
+
+ {/* 能力平衡 */}
+
+
+
+
+
能力平衡
+
{balanceScore}分
+
{balanceStatus.text}
+
+
+
+
+
+
+ {/* 發展建議 */}
+
+
+
+
+ 發展建議
+
+
+
+
+ {recommendations.map((recommendation, index) => (
+
+
+ {index + 1}
+
+
+ {recommendation}
+
+
+ ))}
+
+
+
+
+ )
+}