Подстроки под родителем, пустые строки детализации свёрнуты (#34, AURORA-1527) #35

Merged
aep merged 2 commits from feat/34-subline-parent into test 2026-10-16 18:35:40 +03:00
Showing only changes of commit 85e1b86bb1 - Show all commits

View File

@ -8,6 +8,8 @@ export const failureText = (f: FailedCheckOut) =>
type Props = { checks: ChecksOut; editable: boolean; dirty: boolean; onAccept: (comment: string) => Promise<void> };
// soft_failed — мягкие соотношения §7 (2400, 2500, «сумма подстрок = родитель») и жёсткие в пределах округления;
// подтверждение они не блокируют
// длинный список нарушений (OCR) не должен выталкивать таблицу формы за экран
const failureList = (list: FailedCheckOut[]) => (
<div style={{ maxHeight: 120, overflowY: 'auto' }}>
@ -45,7 +47,7 @@ export function ChecksPanel({ checks, editable, dirty, onAccept }: Props) {
<Alert type='error' showIcon title={`Нарушения (${checks.failed.length})`} description={failureList(checks.failed)} />
)}
{checks.soft_failed.length > 0 && (
<Alert type='warning' showIcon title='Расхождения в пределах округления' description={failureList(checks.soft_failed)} />
<Alert type='warning' showIcon title={`Предупреждения проверок (${checks.soft_failed.length})`} description={failureList(checks.soft_failed)} />
)}
{checks.cross_form && (
<Alert