You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web): repoint and harden rotted frontend audit targets
Five of the ten failing audits were not code defects, they were audit rot.
PR #64 (refactor/filters) renamed or deleted several pages these audits point
at, and the audits silently skipped the very files they exist to guard.
Path rot:
- audit-inline-help: the notification-channels target pointed at a deleted
NotificationChannelsView.tsx. Repointed at components/channels/ so further
decomposition cannot rot it again. Coverage went 22 -> 27 (min 25) from the
repoint alone, meaning the audit had been passing vacuously.
- audit-virtualization, audit-export-adoption: repointed post-rename paths.
Logic bugs:
- audit-deferred-filter grepped the *page* file for React.memo on a row
component defined elsewhere, so an already-memoised DriveCard read as a
violation. Targets now carry rowComponentPath and the check reads the
component's defining file, accepting `export const X = memo(XImpl, ...)`.
- audit-filterbar-chips did not skip co-located *.test.tsx, contradicting its
own documented __tests__ skip intent.
Anti-rot: stale PENDING_MIGRATION paths in audit-virtualization and
audit-export-adoption now hard-fail instead of printing "(file missing)" and
exiting 0. A path that no longer exists is now a build break, not a silent
pass, so this class of decay cannot recur unnoticed.
Also adds two justified allow-list entries: RadioCard.tsx to audit-sr-only
(identical `peer sr-only` case to the already-exempt Checkbox.tsx, where
VisuallyHidden would break the peer sibling relationship) and lib/cn.test.ts
to auditMotionTokens (the test asserts on raw duration-* strings by design).
Every change here was mutation-verified: break the rule -> exit 1,
restore -> exit 0.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments