From 9d83a06300863942dcf10c66817846f4dbdd70a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Sat, 10 Oct 2026 01:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=20=E6=97=A0=E9=9A=9C?= =?UTF-8?q?=E7=A2=8D=E6=89=B9=E6=AC=A1(=E5=8F=AF=E7=82=B9=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E9=94=AE=E7=9B=98=E5=8C=96=20+=20icon-only=20aria-lab?= =?UTF-8?q?el)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - P2-2 命名 4 处可点容器键盘可达: ToolCard 卡头 / MessageList 轨迹卡头 / AuditLog audit-row(tr) / conv-list-item —— tabindex+keydown 复用原 handler, div 类加 role=button+aria-expanded; tr 因 role=button 会抹掉行语义故不加 role - P3-2 3 处 icon-only 按钮补 aria-label(EnrichmentPanel 关闭 / ProjectDetail 编辑·删除),复用同 :title 的 i18n key,零新增键 - 硬约束执行: 4 个并行子代理按文件分区,零跨文件改动;主代理独立核查 diff 后修正一处语义缺陷(tr role) - 看板同步: P2-2 销账 / P3-2 部分完成(~12 处待续) / 残留诊断代码 authz_debug 已清销账 / G6 标题泄漏(title.rs sanitize_title_source 双路径)销账 - 验收: bunx vue-tsc --noEmit EXIT 0 + node scripts/check-i18n.cjs 0 失败 --- docs/todo.md | 8 ++++---- src/components/ToolCard.vue | 10 +++++++++- src/components/ai/EnrichmentPanel.vue | 2 +- src/components/ai/MessageList.vue | 10 +++++++++- src/views/AuditLog.vue | 4 ++-- src/views/ProjectDetail.vue | 4 ++-- 6 files changed, 27 insertions(+), 11 deletions(-) diff --git a/docs/todo.md b/docs/todo.md index 1b2c81e..8911ca5 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -24,8 +24,8 @@ > 背景:src 43 个 .vue 文件 UI 规范缺口全量合规走查(Vercel Web Interface Guidelines 适用子集)+ 审批/aichat/项目知识审计三域子代理分组审。质量中上无阻断,缺口集中 4 类系统性模式,其中 2 类可全局样式一刀切收敛。 > 详情:[05-代码审查/UX走查-Web规范合规-2026-10-05.md](./05-代码审查/UX走查-Web规范合规-2026-10-05.md) -- [ ] P2-2 高频可点 div 键盘化:ToolCard:11 卡头/MessageList:1423 轨迹头/AuditLog:67,119 审计行(@click div 全仓 56 处,去 mask 合规项约 20 真缺口,高频改 button 其余 tabindex+keydown) -- [ ] P3-2 icon-only 按钮缺 aria-label ~15 处(title 非等价读屏补偿;EnrichmentPanel 关闭钮/ProjectDetail:185,189 编辑删除钮等)+剩余 div 键盘化 +- [x] P2-2 高频可点 div 键盘化:ToolCard:11 卡头/MessageList:1423 轨迹头/AuditLog:67,119 审计行(@click div 全仓 56 处,去 mask 合规项约 20 真缺口,高频改 button 其余 tabindex+keydown) ✅ **2026-10-10 完成(named 高频点)**:四面包裹处均补 `role="button" tabindex="0"` + `@keydown.enter/.space.prevent` 复用原 handler(带展开态的补 `:aria-expanded`;AuditLog 的 `
{{ enrichmentDetailText }}
diff --git a/src/components/ai/MessageList.vue b/src/components/ai/MessageList.vue
index 19cf885..8d67b3d 100644
--- a/src/components/ai/MessageList.vue
+++ b/src/components/ai/MessageList.vue
@@ -1507,7 +1507,15 @@ defineExpose({
每轮思考 pill + 工具卡;头部聚合行含调用/耗时/全程 token 汇总) -->