fix(observability): serve CSS from Flask static path
All checks were successful
CD Pipeline / deploy (push) Successful in 1m34s

This commit is contained in:
OoO
2026-05-05 22:14:47 +08:00
parent 6d015c5b6b
commit 15f7c8660d
4 changed files with 900 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ Guard 會檢查:
- Topbar 是否仍載入觀測台 CSS 與健康 indicator。
- 10 個觀測頁的 `active_page`、側欄 URL、側欄 label、`momo-observability-mode` 掛載清單是否一一對齊。
- 10 個側欄 URL 是否都在 `routes/admin_observability_routes.py` 有對應 Flask route。
- `static/css/observability-system.css` 與實際 Flask static 服務用的 `web/static/css/observability-system.css` 必須一致。
### 2. Production 10 頁 HTTP 巡檢
@@ -84,6 +85,7 @@ python3 scripts/check_observability_pages.py
- 不得出現 framework / database exception 文案。
- 每頁必須包含自己的核心標題與內容 marker。
- 每頁必須載入 `momo-observability-mode``observability-system.css` 與 topbar AI 觀測台 indicator。
- `/static/css/observability-system.css` 必須能線上 200 載入,且包含核心觀測台 token/class。
- HTML 不能小到像空殼頁或錯誤 fallback。
```bash