From 391b3a9fd3b71db8cfc1183524af87d45d488e26 Mon Sep 17 00:00:00 2001 From: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 09:51:14 +0000 Subject: [PATCH] =?UTF-8?q?chore(web):=20audit-css.mjs=20=E2=80=94=20detec?= =?UTF-8?q?t=20true=20(selector+context+body)=20duplicates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extends the script with a strict-duplicate detector that distinguishes real Pattern G dead code (same selector + same @media context + same body, where everything but the LAST occurrence in cascade order has no effect) from descendant-selector counts (which were mostly noise in the previous report). The new detector surfaced 29 dead rules in the prior commit (14398af); it now reports 0 — the cleanup is complete and future regressions will show up immediately. Also wires the duplicate-rule data into the --json output for tooling. Updates docs/ui/UI_AUDIT.md §5 #7 with the consolidation metrics. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- docs/ui/UI_AUDIT.md | 6 +++- web/scripts/audit-css.mjs | 67 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 67 insertions(+), 6 deletions(-) diff --git a/docs/ui/UI_AUDIT.md b/docs/ui/UI_AUDIT.md index 13d8715..95d4732 100644 --- a/docs/ui/UI_AUDIT.md +++ b/docs/ui/UI_AUDIT.md @@ -253,7 +253,11 @@ Quick Actions block fixed in commit `343ffb4`. 28 inline-style blocks remain — - `bytelyst-trading/grid-needs-minmax` — fires on bare `Nfr` in gridTemplateColumns. Caught + fixed 2 additional violations on first run. - `bytelyst-trading/no-button-with-stacked-children` — fires on `