Map confidence fields in mapJobListResponse

The API was returning confidence_high/moderate/low/total_output_rows but
mapJobListResponse was dropping them, so the JobCard never rendered the
confidence bar.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
DJP 2026-04-10 20:32:25 -04:00
parent 5681ca4acf
commit a3f00a5fcd

View file

@ -190,6 +190,10 @@ function mapJobListResponse(data: any): Job {
total_lines: 0,
total_token_usage: data.total_token_usage || 0,
total_estimated_cost: data.total_estimated_cost || 0,
confidence_high: data.confidence_high || 0,
confidence_moderate: data.confidence_moderate || 0,
confidence_low: data.confidence_low || 0,
total_output_rows: data.total_output_rows || 0,
};
}
/* eslint-enable @typescript-eslint/no-explicit-any */