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,71 @@
# Context Pack — ui-playwright-review fixes
## Task goal
按 UI 评审报告修复 UI-02~UI-07;**不改** UI-01(概览占位)、UI-08(登录壳)。
## Requirement source
- `docs/evidence/ui-review/2026-11-19-console-full/report.md`
- 用户确认:`U1先不用改;UI-08先不改;其他的可以进行修复`
## Implementation source
本 context-pack;切片一次落地(前端 console 为主)。
## Involved modules
- `web/apps/console` 列表按钮、报警列表/详情、查询列表数据源名、EP 焦点桥接
- `web/design/tokens.css`(可选只读)、`element-theme.css`
- `web/apps/console/locales/*`
## Loaded rules / docs
- `.cursor/rules/element-admin-ui.mdc`
- `docs/current/frontend-ui.md`
- `standards://frontend/element-plus?version=1.0.2`
- `standards://frontend/frontend-stack?version=2.1.0`
- `standards://frontend/visual-ux?version=2.0.1`
## Allowed modification scope
- `web/apps/console/src/datasources/DatasourceList.vue`
- `web/apps/console/src/queries/QueryList.vue`
- `web/apps/console/src/mappings/MappingList.vue`
- `web/apps/console/src/alarms/*`(format、List、Detail、相关单测)
- `web/apps/console/src/shared/styles/element-theme.css`
- `web/apps/console/locales/{zh-CN,zh-TW,en,th}/common.json`
- 必要的 unit / e2e 适配
- 任务产物与证据报告备注
## Forbidden modification scope
- 概览/Home 业务内容(UI-01)
- 登录页品牌壳(UI-08)
- 后端 API 契约变更(除非前端无法解析 identity;本轮仅前端解析)
- 密钥、`.env.local`
## Current approved slice
`S-fix-ui-02-07`:一次修复 UI-02~UI-07;`gateClass: standard`;`risk_score: 2`
## Validation commands
```powershell
cd web
pnpm --filter @watchman/console test:unit
pnpm --filter @watchman/console typecheck
```
可选:相关 e2e alarms/queries/datasources。
## Assumptions
- 「新建」保留 primary;「查询」降为默认按钮(报警列表无新建,查询保持 primary)。
- identity 形如 `identity:v1:{"serial":"..."}`;解析失败则回退原文。
- 处理人无目录服务:UUID 截断展示 + title 全文。
## Stop conditions
- 需改后端字段或权限模型
- 用户推翻「查询降权 / 新建保留 primary」选择