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
+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
},