[CL-REACT-DOCTOR-COMPLIANCE] refactor(AdminComplianceDashboard): чистим 19 react-doctor warnings + smoke-test #113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/claude-admin-compliance-warnings-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Что сделано
h-X w-X→size-X(Shield h1 icon + StatCard icons во всех 5 секциях) — ruledesign-no-redundant-size-axesSKELETON_KEYS_GDPR,SKELETON_KEYS_ERASURE,SKELETON_KEYS_KYCconst string arrays — ruleno-array-index-as-key×3font-bold(h1 имеет bold weight by default) — ruledesign-no-bold-headingЗачем
Phase 2 react-doctor hygiene #3 после Lightbox PR #104 и AiRebalancingModal PR #111. Из 21 warnings на
app/src/pages/admin/AdminComplianceDashboard.tsxзакрываем 19 (90.5%). GitNexus impact: LOW risk, 0 upstream callers — leaf admin page.План тестирования
cd app && npx tsc --noEmit— cleancd app && npx eslint src/pages/admin/AdminComplianceDashboard.tsx --max-warnings 0— cleancd app && npx vitest run src/pages/admin/__tests__/AdminComplianceDashboard.test.tsx— 7/7 PASScd app && npm run test:i18n-usage— Missing: 0cd app && npx react-doctor . --offline --lint -y --json→ AdminCompliance 21 → 2 warnings, app errors=0Где могу ошибаться
no-giant-component×1 — 330-line file, нужен split на section-level subcomponents (4-5 файлов вместо 1)rendering-hydration-mismatch-time×1 —new Date(evt.createdAt).toLocaleDateString()на L224 (audit event timestamp) — locale-dependent, нуженsuppressHydrationWarningили fixed-formatfont-boldremoved — browser default h1 weight = 700 (bold), визуальный результат идентичен