fix(DocumentReview): label переключателя пустых строк связан через htmlFor (#36, AURORA-1527)

biome lint/a11y/noLabelWithoutControl остановил перенос в arm-core (sync-web, arm-core #120):
<label> обёртывал antd Switch. Switch получил id, подпись — label htmlFor. Заодно Prettier
переформатировал строку заголовка в ChecksPanel (длиннее 140).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andrey Epifancev 2026-10-16 19:40:08 +04:00
parent e252135c3b
commit a4f54818cf
2 changed files with 12 additions and 5 deletions

View File

@ -47,7 +47,12 @@ 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={`Предупреждения проверок (${checks.soft_failed.length})`} description={failureList(checks.soft_failed)} />
<Alert
type='warning'
showIcon
title={`Предупреждения проверок (${checks.soft_failed.length})`}
description={failureList(checks.soft_failed)}
/>
)}
{checks.cross_form && (
<Alert

View File

@ -199,10 +199,12 @@ export function StatementReview({ document, onChanged }: { document: DocumentOut
/>
)}
{emptySublines.size > 0 && (
<label style={{ display: 'inline-flex', alignItems: 'center', gap: 8, cursor: 'pointer' }}>
<Switch size='small' checked={showEmptySublines} onChange={setShowEmptySublines} />
<span>Показать пустые строки детализации ({emptySublines.size})</span>
</label>
<span style={{ display: 'inline-flex', alignItems: 'center', gap: 8 }}>
<Switch id='show-empty-sublines' size='small' checked={showEmptySublines} onChange={setShowEmptySublines} />
<label htmlFor='show-empty-sublines' style={{ cursor: 'pointer' }}>
Показать пустые строки детализации ({emptySublines.size})
</label>
</span>
)}
<StatementTable
documentType={statement.document.document_type}