feat(rapport/eo): support 5 critères × /4 — Phonologie (Sprint 4.8 frontend)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hermann_Kitio 2026-04-26 03:30:31 +03:00
parent 3ce91aaa7b
commit 04019f8348
11 changed files with 273 additions and 10 deletions

View file

@ -19,15 +19,17 @@ import type { Critere, ErreurCode } from '@/entities/report/types'
interface Props {
critere: Critere
erreursCodes: ErreurCode[]
/** Sprint 4.8 — échelle par critère : 4 (EO 5 critères) ou 5 (EE / EO legacy 4 critères). */
maxScore?: 4 | 5
}
export function CritereCard({ critere, erreursCodes }: Props) {
export function CritereCard({ critere, erreursCodes, maxScore = 5 }: Props) {
return (
<Card variant="default" className="space-y-3 p-4">
<div className="flex items-start justify-between gap-3">
<h3 className="text-sm font-semibold text-ink-primary">{critere.nom}</h3>
<Badge variant="nclc" className="shrink-0 tabular-nums">
{critere.score}/5
{critere.score}/{maxScore}
</Badge>
</div>