From f20f673e766543122f05eb198d927e920e8a3daa Mon Sep 17 00:00:00 2001 From: HIsheR Date: Mon, 26 Oct 2026 23:09:41 +0800 Subject: [PATCH] =?UTF-8?q?chore(backlog):=20=E8=AE=B0=E5=BD=95=20g283=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ua/backlog.json | 9 +++++++++ .ua/iterations.log | 1 + 2 files changed, 10 insertions(+) diff --git a/.ua/backlog.json b/.ua/backlog.json index dbfb661..64f1e64 100644 --- a/.ua/backlog.json +++ b/.ua/backlog.json @@ -2933,6 +2933,15 @@ "status": "done", "domain": "tune", "notes": "折行与行号对齐是互斥的:折行后一个逻辑行占多行,行号列只会贴在最左一列上——所以这条不能做成缺省,必须让调用方明确选择「读得下」还是「对得齐」。CSS 用 pre-wrap 而不是 pre-line:缩进是代码语义的一部分,折行不能顺手把行首缩进吃掉。" + }, + { + "id": "g283", + "title": "减少动效补齐第三类:旋转 / 缩放过渡", + "motivation": "audit:motion 只守两类——无限循环动画与悬停位移。可空间动效其实有三类:折叠箭头的 90° 旋转、按压缩放(scale)、抽屉滑入的 transform 过渡都属于第三类,它们在减少动效下仍会「动」,而前两类门禁完全看不见。g273 之前的 jsonViewer 折叠箭头就是典型:transition: rotate 一条都没被任何门禁盯住。", + "acceptance": "ui.css 末尾补一条通配降级:prefers-reduced-motion 下把 ua- 类的 transition-property 收窄成颜色类属性(color / background-color / border-color / box-shadow / opacity / fill / stroke),空间变换即时到位;audit:motion 增加第三段审计(识别 transition 里提到 rotate / scale / transform 的规则,要求存在通配 transition-property 收窄兜底),缺失即退出码 1 并列出缺口;报告与 --json 输出同步;AGENTS.md 的动效门禁说明补第三类;npm run check 全绿(当前 35 处全部覆盖)", + "status": "done", + "domain": "visual", + "notes": "关键取舍是「收窄过渡属性」而不是「关掉全部过渡」:颜色 / 阴影 / 透明度变化不产生空间位移,砍掉它们会把状态反馈一起砍没(用户看不到 hover 变色的反馈,反而更困惑)。审计的兜底形态也随之改成「存在一条通配 transition-property 规则即视为全站覆盖」,避免要求 35 处各自补一条——通配一条的好处是新增组件不必记得补。踩坑:给 formatMotionReport 加第三段时只改了函数体没改解构签名,运行时报 spatial is not defined——函数签名和返回值是一对,加字段两处都要动。" } ] } \ No newline at end of file diff --git a/.ua/iterations.log b/.ua/iterations.log index ade68f4..af88336 100644 --- a/.ua/iterations.log +++ b/.ua/iterations.log @@ -327,3 +327,4 @@ {"ts":"2026-10-26T23:06:22+08:00","id":"g280","result":"done","commit":"865477c","summary":"formItem 增加 visible:隐藏即清错误态并退出同步 / 异步校验"} {"ts":"2026-10-26T23:07:50+08:00","id":"g281","result":"done","commit":"82e69df","summary":"抽出 diffKit 纯逻辑 + 皮肤冒烟 8 条断言并入 check 链,smoke 变三段"} {"ts":"2026-10-26T23:08:29+08:00","id":"g282","result":"done","commit":"c98f98e","summary":"codeBlock 增加 wrap:折行时保留缩进、行号仍贴首行,缺省行为不变"} +{"ts":"2026-10-26T23:09:41+08:00","id":"g283","result":"done","commit":"0c57015","summary":"减少动效补第三类:旋转/缩放过渡用通配 transition-property 收窄(35 处),audit:motion 增第三段"}