修正時間到上船數據問題

This commit is contained in:
2025-10-12 01:52:25 +08:00
parent cf40e937a1
commit 6f7ed92a8a
14 changed files with 528 additions and 41 deletions

View File

@@ -12,6 +12,7 @@ interface CombinedAnalysisProps {
balanceScore: number
level: string
description: string
isTimeout?: boolean
logicBreakdown?: any
creativityBreakdown?: any
// 個別測試結果的詳細資料
@@ -34,6 +35,7 @@ export function CombinedAnalysis({
balanceScore,
level,
description,
isTimeout = false,
logicBreakdown,
creativityBreakdown,
// 個別測試結果的詳細資料
@@ -120,11 +122,18 @@ export function CombinedAnalysis({
>
<span className="text-3xl font-bold text-white">{overallScore}</span>
</div>
<CardTitle className="text-3xl mb-2"></CardTitle>
<CardTitle className="text-3xl mb-2">
{isTimeout ? '(時間到)' : ''}
</CardTitle>
<div className="flex items-center justify-center gap-2 mb-4">
<Badge variant="secondary" className="text-lg px-4 py-1 bg-gradient-to-r from-blue-500 to-teal-500 text-white">
{level}
</Badge>
{isTimeout && (
<Badge variant="destructive" className="text-lg px-4 py-1">
</Badge>
)}
</div>
<p className="text-lg text-muted-foreground mb-3">{description}</p>
</CardHeader>