feat(reviews): add not-applicable count display in evaluation statistics

- Add notApplicable field to Statistics interface
- Show blue "未涉及" badge when count > 0 (display only, no filter)
- Map backend not_applicable_count to frontend statistics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-20 18:27:41 +08:00
parent 60d7d9a33b
commit 48f605a5c4
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -72,6 +72,7 @@ interface Statistics {
success: number;
warning: number;
error: number;
notApplicable: number;
score: number;
}
@@ -239,6 +240,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
success: unifiedData.summary?.passed_count || 0,
error: unifiedData.summary?.failed_count || 0,
warning: 0,
notApplicable: unifiedData.summary?.not_applicable_count || 0,
score: unifiedData.summary?.total_score || 0
},
comparison_document: ('comparison_document' in reviewData && !('error' in reviewData)) ? reviewData.comparison_document : null,