fix(#240): accessibility, color consistency, and reviewedPct denominator
- TranscriptionColumn progress bar: add aria-hidden="true" (the block count text above already communicates the value to screen readers) - TranscriptionColumn weekly pulse: text-ink → text-ink-2 (matches SegmentationColumn, same semantic element) - ReadyColumn reviewedPct: align denominator to annotationCount so the displayed percentage matches the SQL threshold used to classify "ready" - page.svelte.spec.ts: add missing segmentationDocs/transcriptionDocs/ readyDocs/weeklyStats to emptyData fixture Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,8 +27,8 @@ function formatDate(dateStr: string): string {
|
||||
}
|
||||
|
||||
function reviewedPct(doc: TranscriptionQueueItemDTO): number {
|
||||
if (doc.textedBlockCount === 0) return 0;
|
||||
return Math.round((doc.reviewedBlockCount / doc.textedBlockCount) * 100);
|
||||
if (doc.annotationCount === 0) return 0;
|
||||
return Math.round((doc.reviewedBlockCount / doc.annotationCount) * 100);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user