fix(reviews): map failed_count to warning, always show not-applicable badge
- failed_count should be 'warning' not 'error' for scored eval - Show '未涉及' badge always, not only when count > 0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -746,18 +746,14 @@ export function ReviewPointsList({
|
||||
<span className="text-xs text-gray-500 ml-2">错误</span>
|
||||
</button>
|
||||
</div>
|
||||
{/* 未涉及数量(仅在有未涉及评查点时显示,仅统计展示不支持过滤) */}
|
||||
{notApplicableToShow > 0 && (
|
||||
<>
|
||||
<div className="h-8 border-r border-gray-200"></div>
|
||||
<div className="flex items-center">
|
||||
<div className="px-3 h-7 bg-blue-50 rounded-md flex items-center justify-center">
|
||||
<span className="text-sm font-semibold text-blue-500">{notApplicableToShow}</span>
|
||||
<span className="text-xs text-gray-500 ml-2">未涉及</span>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{/* 未涉及数量 */}
|
||||
<div className="h-8 border-r border-gray-200"></div>
|
||||
<div className="flex items-center">
|
||||
<div className="px-3 h-7 bg-blue-50 rounded-md flex items-center justify-center">
|
||||
<span className="text-sm font-semibold text-blue-500">{notApplicableToShow}</span>
|
||||
<span className="text-xs text-gray-500 ml-2">未涉及</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -238,8 +238,8 @@ export async function loader({ request }: LoaderFunctionArgs) {
|
||||
statistics: {
|
||||
total: unifiedData.summary?.total_points || 0,
|
||||
success: unifiedData.summary?.passed_count || 0,
|
||||
error: unifiedData.summary?.failed_count || 0,
|
||||
warning: 0,
|
||||
warning: unifiedData.summary?.failed_count || 0,
|
||||
error: 0,
|
||||
notApplicable: unifiedData.summary?.not_applicable_count || 0,
|
||||
score: unifiedData.summary?.total_score || 0
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user