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:
2026-03-20 19:08:33 +08:00
parent 401097536e
commit b13e758db1
2 changed files with 10 additions and 14 deletions
+8 -12
View File
@@ -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>
);
+2 -2
View File
@@ -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
},