diff --git a/docs/ui/UI_AUDIT.md b/docs/ui/UI_AUDIT.md index 8f7adf8..d1b407a 100644 --- a/docs/ui/UI_AUDIT.md +++ b/docs/ui/UI_AUDIT.md @@ -1,121 +1,185 @@ # Trading Web UI Audit > **Last updated:** 2026-05-10 -> **Scope:** `learning_ai_invt_trdg/web/src` (~13,000 lines of UI code across views/tabs/components) -> **Method:** Pattern-based grep audit + manual inspection of fixed components +> **Scope:** `learning_ai_invt_trdg/web/src` (~13,000 lines: 25 tabs/views + 60+ components) +> **Method:** Pattern-based grep audit, manual inspection of recently fixed components, source review of `@bytelyst/ui` Button primitive. +> **Audience:** Engineers maintaining the trading web app and reviewers of `web/src/layout-fixes.css`. -This doc catalogs UI issues by **pattern** (so you fix root causes, not symptoms), tells you **which files are affected**, and recommends **concrete fixes**. +This doc catalogs UI issues by **pattern** (so you fix root causes, not symptoms), points at **specific file:line locations**, and recommends **concrete fixes**. Every metric below was verified against the working tree at commit `3949062`. --- -## 1. Summary — what's the state of the codebase? +## 1. Summary — current state -| Metric | Count | Note | -|---|---|---| -| Files using `style={{...}}` inline blocks | 25 | A few have 50–72 blocks each — major drift source | -| `!important` declarations in `index.css` | 122 | Indicates repeated style-override fights | -| `