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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user