fix(web): 收敛控制台列表主按钮、报警可读性与焦点环

按 UI 评审闭环 UI-02~UI-07(查询降权、对象/处理人可读化、筛选分层、数据源名映射、焦点外环);概览与登录壳按约定暂缓。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
unknownandCursor committed 2026-11-19 19:04:54 +08:00
1 parent c7a23837f4
commit 9dffeae667
25 files changed
+1057 -94

No files matched your search

@@ -0,0 +1,41 @@
{
"dsButtons": {
"search": {
"testId": "datasource-filter-search",
"classes": "el-button",
"isPrimary": false
},
"create": {
"testId": "datasource-create",
"classes": "el-button el-button--primary",
"isPrimary": true
}
},
"qButtons": {
"search": {
"testId": "query-filter-search",
"classes": "el-button",
"isPrimary": false
},
"create": {
"testId": "query-create",
"classes": "el-button el-button--primary",
"isPrimary": true
}
},
"focusStyles": {
"outline": "3px none rgb(15, 23, 42)",
"boxShadow": "rgb(2, 132, 199) 0px 0px 0px 1px inset, oklab(0.587604 -0.0652444 -0.122562 / 0.28) 0px 0px 0px 3px"
},
"dsCellSample": "demo-alarm-ds-3231b644",
"alarms": {
"moreVisible": true,
"moduleHiddenBeforeMore": true,
"moduleVisibleAfterMore": true,
"objectText": "DEMO-298ce536",
"objectTitle": "identity:v1:{\"serial\":\"DEMO-298ce536\"}",
"identityText": "DEMO-298ce536",
"identityTitle": "identity:v1:{\"serial\":\"DEMO-298ce536\"}",
"handlerText": "eb4c9494…"
}
}
@@ -0,0 +1,60 @@
# UI Recheck — Watchman 控制台(修复后)
## 范围与条件
- 对照:`docs/evidence/ui-review/2026-11-19-console-full/report.md` 中 UI-02~UI-07(UI-01 / UI-08 按用户指示不改)
- 页面分类:`admin`
- 环境:本地 API + Vite `127.0.0.1:5173`;真实 Casdoor 登录;Playwright Chromium
- 视口:`1440×900`
- 数据边界:本地库真实/演示数据;只读浏览
- 证据:`screenshots/` + `recheck-notes.json`
## 方法
设计复评(非完整 E2E 断言、非像素基线)。对修复点做 DOM/样式/截图核对。
## 总评
**已修项均在真实登录界面上成立。** UI-02~UI-07 无明显回退。概览仍为空壳(UI-01 占位)、登录壳未动(UI-08),符合约定。未发现新的 `P0`/`P1`。
## Finding 闭环对照
| ID | 原优先级 | 复评结果 | 证据 |
|---|---|---|---|
| UI-02 | P2 | **CLOSED**:「查询」非 primary,「新建」为 primary(数据源/查询) | `recheck-notes.json` `dsButtons`/`qButtons`;`datasources-*-02.png`、`queries-*-04.png` |
| UI-03 | P1 | **CLOSED**:对象列显示 `DEMO-298ce536`,title 保留完整 identity | `alarms-*-default-06.png`;notes.objectText/Title |
| UI-04 | P2 | **CLOSED**:默认无模块/对象;点「更多筛选」后出现 | `alarms-*-default-06.png`、`alarms-*-more-07.png`;notes.moduleHidden/Visible |
| UI-05 | P2 | **CLOSED**:详情首屏状态/场景/对象;处理人 `eb4c9494…`;原文次行 | `alarm-detail-*-08.png`;notes.identity/handler |
| UI-06 | P2 | **CLOSED**:查询「数据源」列样例为名称 `demo-alarm-ds-3231b644`(非 UUID) | `queries-*-04.png`;notes.dsCellSample |
| UI-07 | P2 | **CLOSED**:焦点 `box-shadow` 含 1px inset + 3px 外环(主色) | `datasources-*-focus-03.png`;notes.focusStyles |
| UI-01 | P2 | **DEFERRED**(占位,用户要求不改) | `home-*-01.png` |
| UI-08 | P3 | **DEFERRED**(用户要求不改) | — |
## 残余观察(非回归,可选后续)
### R1 数据源表右缘 fixed 列叠影(既有观感)
- 截图:`datasources-1440x900-02.png`
- 描述:`最近测试` / `操作` 固定列附近偶发白条叠层感。
- 优先级:P3;判断:主观;验证:SCREENSHOT_ONLY
- 建议:单独查 `ElTable` fixed + 横向滚动样式,不纳入本轮修复验收失败。
### R2 已关闭状态灰标签对比偏弱
- 截图:`alarms-1440x900-default-06.png`
- 描述:「已关闭 · 误报」浅灰底浅灰字,扫读弱于「待处理」。
- 优先级:P3;判断:主观;验证:VERIFIED_BROWSER
- 建议:关闭态可用更深 `info` 或增加图标形状区分。
## NOT_RUN
- 写操作(停用/接手/关闭)
- 业务页完整暗色巡检
- 760px 移动断面
- HMI / 大屏
## 结论与建议
1. **本轮修复可验收通过**(UI-02~UI-07)。
2. 用户确认后可收口任务或排 R1/R2 / UI-01 / UI-08。
3. 口令勿入库;截图含显示名,外传请遮蔽。