learning_ai_invt_trdg/web/scripts
Devin c10de34a11 chore(web): add CSS audit script for duplicate selectors (UI audit #7)
Adds web/scripts/audit-css.mjs — surfaces classes that appear in many
rules (likely targets of style drift) and per-class !important counts
(specificity-fight indicators). Implements the script suggested by
docs/ui/UI_AUDIT.md §5 #7 / Pattern G.

Run: pnpm --filter @bytelyst/trading-web run audit:css
     (or: cd web && npm run audit:css)

Initial run on src/index.css + src/App.css + src/layout-fixes.css
exposes the top hotspots:
  - .positions-tab     22 rules, 26 !important
  - .trade-plans-page  20 rules, 25 !important
  - .history-tab       17 rules, 22 !important
  - .trading-sidebar-logo  9 rules, 20 !important

These are the targets for the future Pattern G consolidation pass.
The script supports --threshold N and --json for tooling.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 09:24:07 +00:00
..
audit-css.mjs chore(web): add CSS audit script for duplicate selectors (UI audit #7) 2026-05-10 09:24:07 +00:00