From 9df8a255ce53d252e68eb8573b5ccb23810fed6c Mon Sep 17 00:00:00 2001 From: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 08:32:25 +0000 Subject: [PATCH] =?UTF-8?q?docs(ui):=20tighten=20UI=20audit=20=E2=80=94=20?= =?UTF-8?q?verified=20counts,=20real=20Button=20root=20cause,=20file:line?= =?UTF-8?q?=20refs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Pattern A: corrected root cause (whitespace-nowrap + fixed h-{size}, not "block-children-as-flex-items"), verified against @bytelyst/ui Button source - Pattern E: reframed as UX/discoverability (truncate doesn't hide from screen readers; full text is in DOM) - Pattern H: narrowed to only the one real vw bug (index.css:1620); 1791/1798/1822/1832 are inside clamp() and fine - Pattern F: confirmed 5 inline 1fr-1fr instances with file:line; confirmed 2 bare-1fr CSS instances - Section 1: replaced fuzzy metric ("31 files use Button primitive") with verified counts and source of truth - Section 5: every recommendation now has concrete file:line - Section 6: NEW — how to verify a UI fix (5-viewport check, body scrollWidth probe, build/typecheck) - Section 7: fixed broken pixel-width regex ([,$] -> [,;]?\s*$); added bare-1fr-in-css command - Section 8: NEW — open questions / things to investigate (asChild slot inheritance, mobile, light theme) 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 | 344 ++++++++++++++++++++++++++++---------------- 1 file changed, 221 insertions(+), 123 deletions(-) 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 | -| `