test(observability): add UI regression guard
Some checks failed
CD Pipeline / deploy (push) Failing after 1m39s

This commit is contained in:
OoO
2026-05-05 15:04:21 +08:00
parent fa3e0884ad
commit 07c9e200d0
3 changed files with 171 additions and 0 deletions

View File

@@ -36,6 +36,24 @@ AI 觀測台是「AI 中樞控制室」,不是 Bootstrap 報表頁。任何新
## 驗收指令
### 1. Repo 靜態 UI guard
先跑本地 guard避免把已知 UI/UX 回歸重新帶進 repo
```bash
python3 scripts/check_observability_ui.py
```
Guard 會檢查:
- Times / Georgia 等非規範標題字型。
- SQL/Jinja exception 文案外露。
- 圖表 `style="height:..."` 與靜態 `style="width:..."`
- 過大標題 clamp 與純白 hover/card surface。
- 觀測台 CSS 必要 token / utility class 是否仍存在。
### 2. Production 10 頁 HTTP 巡檢
```bash
python3 - <<'PY'
import urllib.request