diff --git a/docs/index.md b/docs/index.md index ce0b0bb..ee29ef2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -10,7 +10,7 @@ - [UI Web Agent Skill generation](../scripts/build-agent-skills.md) - [仓库开发约定](../AGENTS.md)与[组件维护指南](../packages/web/src/components/AGENTS.md) - [Token 源与维护入口](../tokens/tokens.md)、[Token 生成说明](../scripts/build-tokens.md) -- [UI 基础能力工作包](../tasks/ui-foundations/packet.md):当前任务的分组、决策和证据 +- [UI 2.0 交付与消费者验收记录](https://github.com/InKCre/ui/tree/9b7b4b06/tasks/ui-foundations)(历史证据) Public component and styling facts are owned by source, package exports, generated declarations, stories, and the package consumer skill. Delivery diff --git a/tasks/ui-foundations/b3-design-contracts.md b/tasks/ui-foundations/b3-design-contracts.md deleted file mode 100644 index 16cd50c..0000000 --- a/tasks/ui-foundations/b3-design-contracts.md +++ /dev/null @@ -1,134 +0,0 @@ -# B3 设计角色与响应契约 - -状态:B3.1—B3.3 已完成。本文保留 B3 的初始候选;随后授权的 [B4 场景验证](b4-validation.md) 已完成,具体取舍与修订以 B4 记录为准。用户已授权执行 B3;本片交付设计决定、具体候选和实验条件,未修改生产 Token、生成器、组件或消费者。既有行为与处理清单见 [角色盘点](b3-role-inventory.md),执行边界见 [L1 方案](plan-l1-token-system.md)。 - -下文“决定”是本片确定的设计责任和约束;“候选”是供 B4 比较的具体默认实现。候选名称采用现有路径的最小扩展,不表示已经成为公开 API。B4 可以依据观察调整数值和必要命名,但不能无说明地改变角色用途、覆盖责任或内容可用性要求。 - -## 共同决定与默认消费顺序 - -先使用已有组件和默认组合;需要表达自己的文本或容器时,按用途选择公开角色与基础尺度;局部几何由组件或宿主 CSS 表达。只有存在共同设计决定或稳定配置需求时才增加共享角色。直接数值、固定尺度和断点可以合理存在,采用它们需要对应清楚的用途,而不是仅因同值 Token 存在就被禁止。 - -默认设置页候选采用 InkForm 的 col 布局、带自身 label/error 的 InkInput,以及明确 nativeType 的提交按钮;页面标题先试 title-lg,普通说明 body-md,字段帮助/错误 body-sm。普通主操作用 primary,危险动作明确使用 danger,处理结果提供文字反馈。宿主负责将自己的普通正文绑定 text.base/surface.base,库不通过全局 reset 强行改写消费者 body 样式。 - -这次保留 ref 的构建基础、sys 的主题/历史消费入口及确有作用的 comp 角色,不把命名空间等同于强制的三层依赖。`sys.space` 等已有尺度投影有消费兼容与运行时读取责任,但不能仅凭这个前缀宣称它已经表达字段或页面的语义。 - -新增角色由实际调用支持:普通与辅助正文、介于小标题和醒目大标题之间的页面标题,以及成功/警告/信息反馈。暂不建立完整状态表面矩阵、通用 density、流式排版引擎或跨平台表达式格式。 - -## T:文本角色、字体与内容尺寸 - -**T1 决定:** 普通 UI 文本和代码文本采用两个明确的字体来源。候选默认沿用现有 ref 的 system-ui 栈与 mono 栈,通过公开的 `sys.typo.family.sans/mono` 统一引用。组件和两个样式入口不再隐含切换 Inter、Roboto、JetBrains Mono 和 IBM Plex Mono。宿主需要指定品牌字体时,在根级公共字体入口设置自己的已加载字体栈;库不下载字体、不改写 html 的根字号,也不把任意祖先的 font-family 当成整库定制接口。 - -默认使用 sans;日志、JSON、技术 ID 与明确的品牌标题可以显式选择 mono。普通 Textarea 不因“多行输入”就天然属于代码文本。自定义代码用途应有明确的样式选择;普通内容与代码编辑的区分要在 B4 比较其现有消费者,B5 再落地最小接口,不预建新的编辑器组件。 - -**T2 候选默认:** 下表是 B4 的初始对照。字号用 rem,表中的 px 只表示根字号为 16px 时的结果;行高采用表中比例,无额外容器宽度输入。 - -| 角色/候选路径 | 字号/行高,16px 根字号下 | 字重 | 默认用途与迁移选择 | -| --- | --- | --- | --- | -| label-lg | 14/20,.875rem,10/7 | 400 | 普通 Button、Input、Dropdown、Picker;比较现有 14/16,关注中文与垂直对齐。 | -| label-md | 12/16,.75rem,4/3 | 400 | 显式紧凑按钮、短元数据;长说明优先 body-sm。 | -| body-sm(新增) | 14/20,.875rem,10/7 | 400 | 字段说明/错误、卡片摘要等辅助正文。与 label-lg 同值不意味着以后必须共同改行高。 | -| body-md(新增) | 16/24,1rem,1.5 | 400 | 普通正文、空态说明和需要阅读的设置说明;输入仍按控件用途选择 label-lg 或显式较大输入。 | -| body-lg | 18/24,1.125rem,4/3 | 400 | 突出的导语/短正文;保留已有数值作比较。 | -| title-sm | 22/28,1.375rem,14/11 | 400 | 弹层、小节与组件标题。 | -| title-lg(新增) | 28/36,1.75rem,9/7 | 400 | 普通页面标题,回应 peerList 的实际需求。 | -| headline-lg | 36/48,2.25rem,4/3 | 400 | 醒目的页面主标题;容器变窄先换行,不自动降字号。 | - -比例表达允许在实现时用足够精度的无量纲数或既有编译计算,不需要新公式系统。B4 如发现字体回退导致阅读或对齐问题,先比较该角色的行高;不能为了保住固定控件高度而全局缩字。 - -`label-sm` 的 10/14 不再是普通信息的推荐默认。它的旧公开入口需要迁移记录;时间、状态、加载提示和 Switch 标签先试 label-md。小尺寸中的必要内容放不下时,应让几何增长或选择合适尺寸,不能靠恢复 10px 保住演示外观。是否保留一个明确用途的微型样式,由 B4 的实际场景决定,不能因此新增没有用途的角色。 - -**T3 决定:** 字体角色共同控制字号、行高、字重和字距;默认 sans/mono 选择独立于大小角色。常规字距候选为 0,特殊品牌 tracking 由实际标题样式明确拥有。underline 是显式装饰;命名为 underlined 的旧入口若仍提供就必须兑现装饰。Sass 与 Uno 对同一选择输出相同的显式属性,包括必要的零字距和 none 装饰重置,防止嵌套继承偶然改变结果。现有 mono 参数与 `*-mono` 旧名应收敛到同一规则;不把错误的 `apply-font('title', 'lg')` 解释成新语法。 - -**T4 决定:** 标签和错误信息允许按内容增加高度;单行输入保留原生单行编辑及必要的内部滚动,不能要求输入值像段落一样换行。按钮普通文本可换行;代码/不可断内容采用适合其用途的局部滚动或折行。是否显示省略号需要提供完整内容的访问方式,不能作为所有溢出的默认处理。Form 的列数及显式 row/col 模式由宿主决定,组件不因推测 viewport 自动改写调用者选择。 - -## S:空间、图标与控件几何 - -**S1 决定:** 保留 4/8/16/32/56 的基础空间尺度,默认静态;它们表达整体节奏,未承诺都随根字号或容器变化。语义上必须跟随文字的关系可以在组件中使用 em,页面留白可以由宿主随容器变化,两者都不创建全局缩放系数。 - -| 关系 | B4 的初始候选 | 依赖与边界/维护者 | -| --- | --- | --- | -| 标签→输入→错误 | 标签和输入间保留 4px 起点;错误前保留 4px,采用 body-sm;比较随文字的 .25em | 字段负责排布;标签、说明可增加高度,不以固定行高容器裁切。 | -| 同一表单字段组 | 默认 16px 间距 | Form 拥有;宿主可以按公开尺度调整,不能由不相关的按钮尺寸变化联动。 | -| 普通输入/下拉/Picker | 保留 36px 作为最小高度基线,内部有真实上下留白;比较固定留白与 .25em 的上下留白 | 随字体/内容需要增长;文字滚动和弹层列表分别处理。36px 是起点,不是不可超过的高度。 | -| 普通按钮 | md 最小高度以 36px 与控件对齐;上下 .5em、左右 16px 作为候选,sm 比较现有紧凑规格 | 随标签增长,保留尺寸 prop 的意义;如果新几何没有改善且更难对齐,采用更简单的留白。 | -| 按钮图标与文字 | .5em 间距候选;图形比较现有 glyph 刻度与 1em | 图形可以跟随文字,点击区域由按钮维护;当前 size.icon 与 iconfont 不是同一角色。 | -| 图标按钮/分页/Switch | 保留现有 size prop 与几何作对照;Switch 的文字、滑块宽度和位移共同复核 | 几何关系留在组件,不能只改一个高度 Token 而假设所有宽度与位移都会正确更新。 | -| 页面留白 | 先保留宿主现有规则;在侧栏场景比较固定 16/32px 与有界容器规则 | 页面拥有。仅在内容空间确有改善时选择动态方案;不能用 viewport 代替未定义的宿主容器。 | -| 图像/长列表/代码区域 | 尊重媒体比例或有界滚动区域 | 不把文字控件的最小高度政策套到内容视口,不把全部 px 替换为 rem。 | - -**S2 决定:** radius、阴影与断点先保留当前设计。圆角 full 表达全圆意图,断点用于构建布局条件,阴影是整体效果;不承诺它们与文字成比例。Loading 图形与运动参数保留独立的局部责任,不能借“统一 opacity”改变所有状态表现。 - -## C:前景背景配对与状态优先级 - -**C1 决定:** 普通工作表面使用 text.base,次要信息使用可读的 text.subtle;text.muted 的实际普通文本用法归入次要前景。强动作和选中项使用 surface.primary+text.on-primary,危险动作使用 surface.danger+text.on-danger。这两组 on-* 分别由现有 text.primary 和 text.danger-on 澄清而来;普通表面标题不得使用反色前景。 - -选中项的次要描述也必须使用适配该选中表面的前景;初始候选与主要文字使用同一个 on-primary,再用字号或排布区分。只有确有视觉收益且所有合法配对可读时才增加 on-primary-subtle。surface.muted 保留迁移记录,不把一个尚无明确使用责任的第三表面推广给新代码。 - -**C2 决定与候选值:** 保留现有中性/品牌方向,先调整已确认的配对缺口。以下值用于 B4,而非已批准的视觉发布结果。 - -| 角色 | 浅色候选 | 深色候选 | 依据 | -| --- | --- | --- | --- | -| text.subtle/旧 muted 的普通文本 | 保留 #5e5e5e | 保留 #c6c6c6 | 当前普通表面上的对比度分别约 6.48 和 5.44。 | -| border.base,必要控件边界 | #777777(neutral.50) | #ababab(neutral.70) | 在现有浅色 subtle 表面约 4.25,在深色 base 约 4.05;实际必要边界与焦点分别验收。 | -| border.subtle,装饰分隔 | 保留 #c6c6c6 | 保留 #5e5e5e | 不承担辨认控件的唯一线索;旧 border.muted 按用途归并。 | -| border.strong,焦点/强调 | 保留 #070707 | 保留 #c6c6c6 | 焦点要有实际可见的轮廓,不能仅给一个 border:none 的内部输入换色。 | -| surface.danger-hover | #92001e(danger.30) | #a80324(danger.35) | 保持 on-danger 的对比度;B4 再判断状态区分和视觉方向。 | -| surface.base-hover | 保留 #eeeeee | #5e5e5e(neutral.40) | 深色候选避免与当前 base 完全同值,检查键盘高亮与选中态。 | -| feedback.error | 保留 #b9192f | #ffb3b1(danger.80) | 深色 base 上约 5.46;不能把在 subtle 上通过推广到所有表面。 | -| feedback.success(新增) | #176b39 | #75d69a | Job/连接状态的文字需求;base 上约 6.57/5.24。 | -| feedback.warning(新增) | #7a4b00 | #ffd27a | 等待/警告状态文字;base 上约 7.41/6.53。 | -| feedback.info(新增) | #005c8a | #8bceff | 运行/信息状态文字;base 上约 7.25/5.47。 | - -新反馈前景先直接作为主题语义值,不为其虚构完整 primitive 色阶。状态容器默认用 surface.subtle;现有下游请求的 success.surface/danger.surface/light 先用这个组合验证,需要额外色彩容器时再给出具体理由。错误/成功的含义仍由文字或图形表达,不能只用色相传递。 - -**C3 决定:** normal 是基本配对;selected 改变基本配对,hover/pressed 在该配对内变化;focus 独立显示,不被 selected 或 error 覆盖。disabled/pending 停止交互性的 hover/pressed 反馈,pending 另外呈现忙碌状态。error 可以保留错误边界,同时用独立轮廓保留键盘焦点。原生焦点表现符合要求时可以保留。每个组件只实现适用状态,不枚举没有含义的组合。 - -Button 的整体 opacity 不再作为所有动作主题的统一 hover 规则;颜色合成必须针对其实际前景背景检查。Switch 保留单色 comp 角色与位置/文字状态,不强制随 primary 主题值变化。公共遮罩候选为 `color.overlay.scrim`,保留黑色 .5 的初始值,供 Popup 与 Scrim 共同使用并保留 alpha;Image 的反色标题需要自己有明确的深色底板或经验证的遮罩组合,不能假设白字在任意半透明遮罩和图片上都可读。 - -颜色阈值采用 [文字对比度](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html) 与 [必要非文本线索](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html) 的适用条件。没有“任意颜色都保证适配任意背景”的承诺。B3 的静态计算只证明列出的不透明组合,B4 负责真实合成、主题和状态。 - -## O:维护责任、覆盖与求值 - -**O1 决定:** Git 中经评审的 `inkcre.tokens.json` 是发布的规范源,Figma 是设计值的编辑和提议入口,Web 局部响应规则由组件或宿主 CSS 维护。设计者与工程维护者通过同一变更评审决定角色和默认值;不要求响应公式都进入 Figma,也不另存一套人工同步的规范源。 - -导入的目标契约是“更新已有角色的候选值”,而非“来一个导出就重建公开 API”。B5 采用受限的已知路径更新:保留仓库维护的描述与导出未包含的角色;路径新增/删除、类型或 alias 关系改变需明确的契约迁移,不能由缺少某个节点推断删除。输入描述与规范源冲突应报告,不能默默覆盖;非法值在写入前拒绝。这里只需要针对现有 Token 结构的值更新,不建立通用 JSON 合并框架。 - -先取消无条件推断 patch 的发布分类。导入可以准备候选 PR,但 Changeset 级别由维护者显式声明,并接受既有检查和评审;自动导入成功不代表视觉兼容。B3 未连接实际 Figma 文件或修改发送端,B5 须以真实导出 payload 验证这个边界,缺少发送端信息时不能声称端到端更新已交付。 - -**O2 候选公开覆盖表:** 以下限定 B4/B5 要兑现的传播关系,不把技术上能修改任意 CSS 属性等同于库承诺支持的配置。 - -| 入口/作用域 | 允许的覆盖及优先级 | 输出与传播 | -| --- | --- | --- | -| html 的 data-theme | light/dark 显式选择优先;system/省略跟随系统 | 保留 B1/B2 契约,CSS 与所有颜色工具类一致,Teleport 到 body 的浮层也取根主题。 | -| html 上的 sys 语义颜色变量 | 按合法配对覆盖;需要分主题时给对应主题定义。根节点显式内联值优先,应用样式覆盖需采用匹配的主题选择器并在库后加载 | Sass helper 和 Uno 颜色均读取运行时变量;不能承诺只改背景而任何旧前景都仍合适。 | -| html 上的 sys.typo.family 与 sys.font 角色属性 | 指定字体栈或完整相关字体属性;根字号由宿主/用户拥有 | 两个入口保留相同变量依赖。默认 rem 字号响应根字号,比例行高响应角色字号;修改一个角色不隐含修改另一个同值角色。 | -| html 上的历史 sys.space、sys.radius | 允许有意调整共享尺度;必须接受使用该尺度的全部位置变化 | 将现有通用 CSS/Sass 与 Uno 对应工具统一为变量读取,修正 p-md 的传播差异。这是显式调整共享节奏,不是自动密度算法;组件的局部 em 关系只响应自己声明的字体依赖。 | -| html 上的现有 Switch comp 三个颜色 | 按 track、handle、label 的结构成组检查 | 仅影响 Switch;不强制响应不相关的 sys.primary 覆盖。 | -| 组件 props 与实际渲染元素 class/style | size 等公开 props 仍有效;局部 CSS 负责实例或宿主布局 | 不传播成全局主题。局部祖先的变量不会自动穿过 Teleport,暂不提供子树多主题/密度上下文。 | -| ref maps、断点、一般 size/icon/elevation 配置 | 维护者在构建源中修改并检查实际消费 | 编译配置可以是常量。保留旧 CSS 输出的兼容记录,但不新增任意 primitive 在运行期自动改写整条依赖链的承诺。 | - -半透明颜色和组合值要保持信息;Sass 静态 map 与 CSS 运行入口的求值时机可以不同,但文档必须区分。B4 以颜色、字体和一个空间覆盖为代表检查传播,不用全变量快照证明所有语义成立。 - -## B4 移交:已确定的实验与裁决方式 - -| 编号 | 具体输入与候选 | 要作出的决定/失败条件 | -| --- | --- | --- | -| T-A | Form/Input/Field 的现有 14/16 与候选 14/20;320/480/800 CSS px;长中文标签、长英文、多行错误 | 行高与最小高度选择;文字裁切/相邻字段覆盖即失败。label-md 与 body-sm 的说明用途由阅读和层级比较确定。 | -| T-B | 默认 system-ui、宿主显式 Inter(仅已加载时)、无该字体时回退;mono ID/代码;根字号变化及实际 200% 文字放大 | 字体来源、回退和小标签迁移;不能把根字号翻倍当成所有文字放大已通过。Switch 小尺寸如失败须调整几何,不靠缩字。 | -| T-C | 同一 label-lg、显式 mono/underline、嵌套了非零字距/装饰的宿主,经 Sass 与 Uno 分别输出 | 检查家族、装饰和零值重置一致;同时验证旧后缀与新明确选择的迁移方式。 | -| T-D | peerList/设置页/卡片正文的实际层级,比较 22/28/36 标题和 14/16/18 正文组合 | 检查三个新增候选的独立用途;如果现有相邻角色已经满足同一设计意图,就合并迁移,不因调用了未定义名称而一定新增字号。 | -| C-A | DoubleCheck 普通表面标题、Dropdown selected 说明,浅深主题及选中+hover/键盘高亮 | 用 base/on-primary 正确配对;标题或选中说明不可读即失败,不能只检查变量存在。 | -| C-B | 三种 Button 主题、Input/Textarea error+focus、disabled/pending;Job 状态和 peer 状态的现有结构 | 验证候选颜色、必要边界与状态优先级;明显视觉取舍需给实际对照,数值通过不代表视觉已接受。 | -| C-C | Image 标题,最亮背景与明暗复杂图像;现有 .5 遮罩,比较局部深色底板 | 保证文字可读且图片仍可理解;若加底板即可成立,保留通用遮罩初始值。 | -| S-A | 普通/图标按钮、分页和 Switch;原 glyph 刻度与 1em,默认及较大文字 | 判断图形是否跟随文字更合理,点击区域、滑块与位移单独验证,不把不同角色强行求相等。 | -| S-B | info-base/list 或同结构临时消费页,放入窄侧栏与宽主区;当前 viewport 留白、固定 16/32px 与一个容器候选 | 只有内容空间/层次有改善才选择新规则。比较容器方案时先明确祖先;无改善则保留较简单方案。 | -| O-A | 根主题、根 sans/mono、一个字体角色,以及 sys.space.md 从 16px 改为 24px;普通页面与 body 浮层 | 已承诺的 CSS/Sass/Uno 读取一致。实例局部 CSS 只影响其实际后代,验证文档没有暗示穿透 Teleport。 | -| O-B | 仅给随包候选指南,完成设置表单及成功/错误反馈 | 默认选择无需读生产源码、创造系数或误用同值 Token;不新增 Agent 基础设施。 | - -这些实验有候选默认与明确裁决依据,B3 不留只有“待定”而没有验证路径的决定。B4 若只发现某一角色有问题,局部修订该角色;相同效果选择依赖更少的方案。通过后由 B5 落实完整迁移,范围覆盖全部受影响组件与已知调用,不能止于本表的演示对象。 - -## B3 完成核对 - -已完成全部源族及 11 个现有字体样式、19 个每主题 sys 颜色角色、Switch comp 角色的处理清单;已把下游未定义需求与调用错误分开;三类候选给出默认值、输入条件、边界和维护者;覆盖和导入责任有明确决定;每项未定视觉选择都有 B4 实验。 - -B3 的证据是源码与调用核对、隔离生成差异、颜色组合计算以及文档一致性检查。未执行 B4 的浏览器实验,未改变现行发布契约;extension registry 与真实 Figma 发送端的核实分别归 G 与 B5 的集成验证。候选不能作为“已支持”的说明写入随包 Skill,最终长期契约在 B5 更新原有权威入口。 diff --git a/tasks/ui-foundations/b3-role-inventory.md b/tasks/ui-foundations/b3-role-inventory.md deleted file mode 100644 index ba6dbb0..0000000 --- a/tasks/ui-foundations/b3-role-inventory.md +++ /dev/null @@ -1,107 +0,0 @@ -# B3 角色盘点与处理清单 - -本文件记录 2026-09-13 的实际输入、引用和处理结论;拟定行为见 [B3 候选契约](b3-design-contracts.md)。当前事实不等于目标规范,候选值也不代表已经更新生产源。 - -## 基线与覆盖范围 - -生产者 HEAD 为 `c5b230af2461d401fa9dc3ac8d5b356c20b89c46`,分支为 `feat/ui-foundations-components`,包含此前未提交的 B1/B2、C、D、E 改动。Token 源 SHA-256 为 `49bdab143e095749f1ff8e4d6265de111af8ab91432ba49f7225144eb698507f`;生成器为 `117c037b0a0b90341198f75dac0c006ac7f416a9d776219ca547774223490bda`。B3 开始时记录了 234 个工作包之外的非忽略文件哈希,用于结束时确认没有改动生产文件。 - -盘点覆盖 [manifest](../../packages/web/component-manifest.json) 的全部 21 个组件及其样式、源码中的内联样式与工具类、Sass/Uno 生成入口和随包指南。消费者只读检查本地 `../client-web/apps/client-web`:其仓库 HEAD 为 `367ace98bfb7e9880c002e7971eb397a25c9ef84`,package 声明为 `@inkcre/ui-web@1.4.0`。这里检查的是 checkout 中的调用对本次生产者源码的需求,未重新安装其锁定发布包,不能断言线上产物存在同样缺陷。extension registry 的实际消费位置仍未核实,交给 G 继续定位。 - -源共有 237 个 `type/value` 叶节点:ref 69、sys 38、comp 6、effect 3、typography 121;后者组成 11 个字体样式。所有叶节点均没有非空 description。静态扫描发现组件代码使用 5 种现有基础字体角色(另有 mono 参数),下游还请求 3 种未定义角色。数量不包含对生成物和 Story 的重复计数,字符串扫描后已人工核对下面的代表调用。 - -## 字体角色 - -数值为源中的字号/行高,单位按当前生成器输出为 px;普通样式字重为 400。这里的名称是现有名称。用在标签上的 `label-*` 与用于段落的 `body-*` 即使最终采用相同值,也保留不同的用途。 - -| 当前角色 | 源默认与字体 | 实际用途/代表调用 | 处理结论 | -| --- | --- | --- | --- | -| label-lg | 14/16,Inter | Button md、Input、Dropdown、Picker、Textarea、Tooltip、JsonEditor;client-web 扩展 ID | 保留控件/短标签角色;统一字体来源,将行高 20 作为 B4 候选。 | -| label-md | 12/16,Inter | Button sm、Field col 标签、Dropdown 说明、Pagination;下游状态和日期 | 保留紧凑标签角色;多行说明不因此都使用 12px,迁往实际正文/辅助文本角色。 | -| label-sm | 10/14,Roboto,700,字距 0.7 | Dropdown loading/empty、必填星号、Switch;下游日期、块类型 | 从普通内容的推荐集合中移出;有效信息优先试 label-md,保留旧入口的迁移记录,不能直接删除所有调用。 | -| label-lg-underlined | 14/16,Inter,underline | 在已检查生产代码未发现调用;现有公开 Uno 与 Sass 支持不一致 | 合并为 label-lg 加显式装饰;若保留旧入口,必须完整兑现 underline,不能只返回字号。 | -| label-lg-mono | 14/16,JetBrains Mono | 直接名称未见调用;下游多处实际调用 `apply-font(label-lg, mono)` | 合并为 label-lg 加 mono 选择,统一两种路径;保留旧名称迁移。 | -| label-sm-mono | 10/14,JetBrains Mono,700,字距 0.4 | 直接名称未见调用;Switch 与下游日志/ID 使用第二参数 mono 或 true | 与 label-sm 一起处理;普通代码/ID 不默认采用 10px。 | -| title-sm | 22/28,Inter | Dialog、Header、Image、Placeholder;下游配置弹层标题 | 保留小标题角色及初始数值。 | -| title-sm-mono | 22/28,IBM Plex Mono,字距 0.66 | Header 使用 `apply-font(title-sm, mono)`,实际取 ref 的 mono 栈,并未使用这个字体记录 | 合并为 title-sm 加 mono;无需另建一个字号相同但家族隐含变化的标题角色。 | -| body-lg | 18/24,Inter | Dialog 副标题、Placeholder 说明、DoubleCheck 标题;下游搜索输入/空态 | 保留较突出正文角色;是否该处应使用普通正文须按用途迁移。 | -| body-lg-mono | 18/24,JetBrains Mono | 已检查的直接调用中未发现使用 | 归为 body-lg 加 mono,不能仅因未使用就静默删除公开入口。 | -| headline-lg | 36/48,Inter | client-web info-base/list 页面标题 | 保留醒目页面标题角色,窄容器先换行/调整布局。 | -| body-md(缺失) | 无 | client-web 的 LogsViewer 空态/错误、RecallSearch 输入等共 6 个 helper 调用 | 新增普通正文候选,16/24;其中输入用途要先判断是否应使用控件标签。 | -| body-sm(缺失) | 无 | extensionCard 名称/提示/错误等共 6 个 helper 调用 | 新增辅助正文候选,14/20;避免替换为行高紧凑的标签样式。 | -| title-lg(缺失) | 无 | peerList 页面标题 | 新增页面小标题候选,28/36,与已有 22 和 36 两种用途比较。 | - -另有 settings 的 `apply-font('title', 'lg')`。现有第二参数是 mono 开关,并非字号;此调用既引用不存在的 `title` 角色,还会因 Sass 非空字符串为真而进入 mono 分支。它属于迁移时须显式纠正的调用,不能通过增加一个无明确用途的 `title` Token 掩盖。 - -[apply-font](../../packages/web/styles/_mixins.scss) 默认不输出 font-family/text-decoration;[Uno 字体规则](../../packages/web/styles/uno/preset-ink.ts) 输出家族与非 none 的装饰,并省略零字距重置。因此差异还涉及嵌套后的继承,不能只比较默认截图。Textarea 和 JsonEditor 另硬编码 Monaco/Courier New;`ref.typo.family.sans` 为 system-ui 栈,`mono` 为 SF Mono/Monaco/Roboto Mono 栈,角色记录则出现 Inter、Roboto、JetBrains Mono、IBM Plex Mono。应先确定统一职责,再决定保留哪些字体选择。 - -## 颜色角色与合法配对 - -以下颜色移除了源中的不透明 alpha 后展示。默认对是浅色/深色;使用位置是实际样式声明,不是浏览器已渲染证据。 - -| 当前 sys.color 角色 | 默认浅/深 | 使用与处理结论 | -| --- | --- | --- | -| text.base | #070707 / #f9f9f9 | 普通文本;保留,默认配中性普通表面。 | -| text.subtle | #5e5e5e / #c6c6c6 | 标签、说明、Dialog 副标题;保留次要前景,禁止自动用于反色动作表面。 | -| text.muted | #919191 / #f9f9f9 | 下游小字号说明、eyebrow、设置通知;合并到可读的次要前景,不将 muted 当成可降低对比度的豁免。 | -| text.primary | #fbfcff / #0b1220 | Button primary、Pagination selected、Dropdown selected;澄清为 on-primary。DoubleCheck 普通表面标题是错误配对,应使用 text.base。 | -| text.danger-on | #fff8f7 / #fff8f7 | danger 按钮前景;保留用途,统一命名为 on-danger。 | -| surface.base | #ffffff / #474747 | 页面、Popup、Tooltip、输入、列表;保留普通工作表面,不宣称它代表所有平台的同一海拔。 | -| surface.subtle | #f9f9f9 / #1f1f1f | Header、subtle 按钮、只读区域、反馈背景;保留分组/内嵌表面。 | -| surface.muted | #e2e2e2 / #131313 | 已检查生产调用未见直接使用;保留兼容记录,不给新内容推荐第三种用途,也不自动删除。 | -| surface.primary | #121928 / #c8cee3 | 强调动作、选中项;保留,与 on-primary 共同维护。 | -| surface.primary-hover | #474e5f / #9198ac | Dropdown 已使用,Button 使用整体透明度;保留候选状态配对,统一状态责任。 | -| surface.danger | #a80324 / #b9192f | 危险动作背景;保留,与 on-danger 配对。 | -| surface.danger-hover | #ff7073 / #b9192f | Button 未使用这个值;浅色值无法承载当前 on-danger 普通文字,重选状态值。 | -| surface.base-hover | #eeeeee / #474747 | Dropdown hover;保留状态角色,深色等于默认值,需要在 B4 检查状态线索。 | -| surface.subtle-hover | #eeeeee / #5e5e5e | subtle Button、Pagination;保留状态角色及初始值,检查与前景的配对。 | -| border.base | #303030 / #5e5e5e | 控件与容器边界;明确为需辨认的控件边界,与装饰分隔线分开。 | -| border.strong | #070707 / #c6c6c6 | Picker active、Textarea focus 声明;保留强调/焦点候选,不因 Token 有值就认定焦点可见。 | -| border.subtle | #c6c6c6 / #5e5e5e | Input/Dropdown 等当前用于必要边界;明确为装饰分隔用途,必要边界迁往 control/base 规则。 | -| border.muted | #919191 / #5e5e5e | 下游侧栏、日志和来源内容分隔;归并装饰分隔,不增设第三种控制边界。 | -| feedback.error | #b9192f / #ff525c | AutoForm、Field、Placeholder;保留错误前景角色,深色普通表面上的数值需要调整。 | - -组件级 `comp.switch.track-bg/handle-bg/label-color` 在浅色为 #070707/#f9f9f9/#070707,深色反转;用途是 Switch 的单色结构,保留三个组件角色,不强制经过与其用途不符的 surface.primary。开关状态主要由位置与文字表达。Image 标题直接使用 neutral.98,Scrim 和 Popup 遮罩直接使用 rgba(0,0,0,.5),应明确前景/遮罩配对;Loading 的 neutral.70/80 与脉冲透明度属于状态图形,不能将其当成普通文本层级。 - -下游已存在但当前源没有的需求: - -| 请求 | 实际用途 | B3 处理 | -| --- | --- | --- | -| color.success.base、warning.base、info.base | JobCard 和任务详情的完成/等待/运行文字,peerCard 连通状态 | 新增 feedback.success/warning/info 的主题前景候选,状态还必须有文字或图形含义;不为三个角色建立完整色阶。 | -| color.danger.base | 错误文字、错误边界 | 映射到反馈错误;需要危险动作背景时另选 action/surface,不能都叫 danger.base。 | -| color.success.surface、danger.surface、danger.light | peerCard 状态与 LogsViewer 错误背景 | 首选 surface.subtle 加相应反馈前景;是否确需有色容器由 B4 状态场景判断,不批量补齐所有状态的表面矩阵。 | -| color.border.primary | 焦点、选中节点与连线 | 分别归入焦点/选中规则;它们可能共享初始色,但不能混为主品牌边框。 | -| color.surface.hover | JobCard 行悬停 | 依据实际普通表面选 base-hover,不新增同义角色。 | - -client-web 源中未发现补充这些变量的自定义属性声明;其 Uno 配置也未使用 presetInk。这里确定的是源码需求与当前源的缺口,消费者正式安装状态归 G 验证。 - -## 空间、尺寸及其余基础值 - -| 当前族/全部范围 | 代表使用与实际职责 | 处理结论与默认边界 | -| --- | --- | --- | -| space xs/sm/md/lg/xl = 4/8/16/32/56 | Field 标签间距、Form 组间距、Button 内边距、页面留白均复用 | 保留作为有意选择的基础尺度;跟随文字的局部关系与页面容器规则单独表达,不按数值相等推导联动。 | -| size xs/sm/md/lg/xl = 18/24/36/48/58 | Switch 高度、方按钮、分页、Dropdown/Picker | 保留兼容尺度,澄清控件最小尺寸与固定几何;普通输入固定 36px 是组件当前选择,不能与所有 size.md 调整隐式绑定。 | -| size.icon sm/md/lg = 20/24/36 | Pagination 点击区域、居中图标盒;Uno iconsize 类直接设置宽高 | 澄清图形盒/点击区域;不能默认等同 glyph。 | -| size.iconfont sm/md/lg = 8/12/18 | apply-icon 设置 font-size,间接影响 1em 的 mask 图形 | 保留为比较基线;B4 比较固定 glyph 和跟随文字的 1em,点击目标独立保障。 | -| radius none/xs/sm/md/lg/full = 0/4/8/16/32/999 | 分页/Tooltip 方角、AutoForm 反馈、下游容器 | 保留,大小不需要跟随字体自动变化;full 表示全圆意图,不将 999 当成跨平台固定半径。 | -| effect.elevation.raised low/md/high | 低/中/高阴影,当前 Tooltip 用 md | 保留阴影作为整体设计效果及其 alpha;下游 `shadow.lg` 应按浮层用途选择 apply-elevation,不能仅因 lg 接近 high 就机械替换。 | -| typo.family sans/mono | 公共栈与角色家族并存,当前 Sass 仅 mono 显式使用 | 合并字体来源,候选契约给出一个 UI 栈、一个 mono 栈及明确覆盖入口。 | -| breakpoint mobile/tablet/desktop = 768/1024/1280 | client-web 的 mobile/tablet/desktop Sass mixin 实际使用前两个阈值 | 保留构建时边界;角色名称不是设备检测。不同阈值是否调整不属于本次响应规则的默认动作。 | -| opacity muted/medium/strong = .72/.84/.92 | Button loading overlay 用 strong;另有 .9/.8/.4 局部状态值 | 保留公共旧值,明确为无量纲;状态透明度由其合成结果负责,不能用整组 opacity 统一实现所有反馈。 | -| ref.color:neutral 14、brand 13、danger 10、tertiary 2 | 主题映射及少量直接图形使用 | 保留色阶;直接取 primitive 要有明确局部用途。运行时改一个 ref 值不承诺自动改写所有语义角色。 | -| ref.layout(生成器空映射) | 源中无对应 Token,是生成器占位 | 归为清理候选;先检查公开 Sass 兼容,不据此建设布局框架。 | - -## 配对计算与证据边界 - -以源中的不透明 sRGB 值按 [WCAG 相对亮度与对比度定义](https://www.w3.org/TR/WCAG22/#dfn-relative-luminance) 计算;以下不是浏览器全场景验收。普通文字通常需要达到 [4.5:1](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html),必要非文本线索另按其适用条件检查;装饰分隔线与禁用控件不能机械套用同一阈值。 - -| 源中配对 | 浅/深对比度 | 说明 | -| --- | --- | --- | -| text.primary / surface.base | 1.03 / 2.02 | DoubleCheck 普通表面标题误用了反色前景。 | -| text.subtle / surface.primary | 2.71 / 1.09 | Dropdown selected 的说明文字需要同动作背景相配的前景。 | -| text.muted / surface.base | 3.15 / 8.82 | 同名角色在浅色普通文字和深色层级上的意义不一致。 | -| on-danger / danger-hover | 2.56 / 6.17 | 浅色 hover 候选值不宜直接接入;当前 Button 使用 opacity,不能把这个结果报告为现有按钮 hover 的实测。 | -| feedback.error / surface.base | 深色 2.93 | 当前错误色在 subtle 上为 5.19,但不能推广为所有普通表面均可用。 | -| border.subtle / surface.base | 1.71 / 1.43 | 若边界是辨认输入控件所必需,则需要另选边界规则;本行不宣称所有使用该线色的容器都违规。 | - -生成器、Sass/Uno 的复核与源哈希一同保留在工作包;静态计算用于淘汰不合适的候选和安排 B4,不能替代实际字体、透明度合成、内容布局及交互检查。 diff --git a/tasks/ui-foundations/b4-evidence/README.md b/tasks/ui-foundations/b4-evidence/README.md deleted file mode 100644 index 9de6fc9..0000000 --- a/tasks/ui-foundations/b4-evidence/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# B4 实验证据 - -结论与边界见 [B4 场景验证](../b4-validation.md)。截图是实际浏览器输出;只保留能解释取舍的代表样本,未把所有排列复制进仓库。 - -| 文件 | 说明 | -| --- | --- | -| [form.png](form.png) | 320px 内容区的候选表单;长标签、错误和说明换行。 | -| [text200.png](text200.png) | Firefox 原生 textZoom=2 的表单,固定 px 哨兵的放大证据在归档 JSON。 | -| [hierarchy.png](hierarchy.png) | 自上而下比较 22/28/36px 标题和 14/16/18px 正文;卡片内容一致。 | -| [selected-before.png](selected-before.png)、[selected-after.png](selected-after.png) | 深色选中项说明的配对修订。 | -| [error-focus-dark.png](error-focus-dark.png) | 深色错误边界、文字和独立焦点轮廓。 | -| [states-dark.png](states-dark.png) | 每行分别为可用、禁用、加载;保留文字与忙碌提示。 | -| [confirm-large.png](confirm-large.png) | 320px 视口、32px 根字号下的确认弹层;取消/确认操作可用。 | -| [image.png](image.png) | 窄视口的复杂图像与完整标题;局部深色底板。 | -| [spacing.png](spacing.png) | 同一窄内容区,自上而下比较 viewport、固定 16px、固定 32px、容器候选。 | - -[experiment.tar.gz](experiment.tar.gz) 保存本次隔离页面、候选样式、Sass/Uno 原型构造、指南走读、一次性浏览器旅程和 JSON 测量结果。SHA-256:`3c0b75f38a95d4a93100f57c2a31b8abc28ed0485533555f33237258d72ff593`。该归档是执行证据,不是新的组件测试套件、公开样式包或生产代码来源。 - -## 在本工作区复跑 - -需要既有依赖与 B—E tarball:`tmp/inkcre-ui-web-1.4.0.tgz`,SHA-256 为 `255bf8b311bf79e4cccd4e921b52834af7c36a2b8d7533426eefc744c86f247a`。B4 开始/结束对 234 个非 task 文件做哈希核对,没有新增差异。若未来已经执行 B5,应使用归档对应的旧 tarball 作基线,不能把新生成包误当成原对照。 - -从仓库根运行;解压会写入专用的忽略目录,若已有同名实验需要保留,先另存该目录。 - -```sh -mkdir -p packages/web/tmp/packed -mkdir -p packages/web/tmp/b4 -tar -xzf tmp/inkcre-ui-web-1.4.0.tgz -C packages/web/tmp/packed -tar -xzf tasks/ui-foundations/b4-evidence/experiment.tar.gz -C packages/web/tmp -node packages/web/tmp/b4/build-probes.mjs -pnpm --filter @inkcre/ui-web exec vite --host 127.0.0.1 --port 5199 -``` - -Vite 在单独终端保持运行;对照入口为 `http://127.0.0.1:5199/tmp/b4/review.html`。在另一个终端执行需要复核的具体旅程: - -```sh -node packages/web/tmp/b4/run.mjs -node packages/web/tmp/b4/check-results.mjs -node packages/web/tmp/b4/edges.mjs -node packages/web/tmp/b4/overrides.mjs -node packages/web/tmp/b4/color-entries.mjs -node packages/web/tmp/b4/final-overlay.mjs -node packages/web/tmp/b4/run-firefox.mjs -``` - -脚本目前引用本机 `client-web` 已安装的 Playwright 1.61.1,以及缓存中的 Firefox 151.0;移到其他机器时要改这两个环境路径。它们没有新增 package.json 依赖。Firefox 脚本创建自己的 `/tmp/inkcre-b4-firefox-*` profile,使用本机端口 2830 的 Marionette 连接及浏览器自带 ZoomManager,结束时关闭自己的进程。运行前确保该专用端口空闲。不要让它连接日常浏览器 profile。 - -主要 JSON 为 `measurements.json`(尺寸、配色、入口)、`contrast.json`(从实际样式计算)、`firefox.json`(原生缩放及操作)、`edges.json`(间距比较、窄屏与指南)、`overrides.json`、`color-entries.json`、`final-overlay.json`。归档中的候选 CSS 有试验期间的覆盖层,最终选择以 B4 报告为准。B5 必须从正式源建立一致实现,再用最终产物复核。 - -本轮通过上述场景检查及 `git diff --check`。生产源码未变,因此没有重复执行此前 B—E 已通过的整库 `pnpm check`;B5 正式迁移仍按方案执行完整检查。 diff --git a/tasks/ui-foundations/b4-evidence/confirm-large.png b/tasks/ui-foundations/b4-evidence/confirm-large.png deleted file mode 100644 index 8bf32e0..0000000 Binary files a/tasks/ui-foundations/b4-evidence/confirm-large.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/error-focus-dark.png b/tasks/ui-foundations/b4-evidence/error-focus-dark.png deleted file mode 100644 index 90b2bb2..0000000 Binary files a/tasks/ui-foundations/b4-evidence/error-focus-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/experiment.tar.gz b/tasks/ui-foundations/b4-evidence/experiment.tar.gz deleted file mode 100644 index d354380..0000000 Binary files a/tasks/ui-foundations/b4-evidence/experiment.tar.gz and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/form.png b/tasks/ui-foundations/b4-evidence/form.png deleted file mode 100644 index 59622e0..0000000 Binary files a/tasks/ui-foundations/b4-evidence/form.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/hierarchy.png b/tasks/ui-foundations/b4-evidence/hierarchy.png deleted file mode 100644 index 1bac6b4..0000000 Binary files a/tasks/ui-foundations/b4-evidence/hierarchy.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/image.png b/tasks/ui-foundations/b4-evidence/image.png deleted file mode 100644 index 24e7349..0000000 Binary files a/tasks/ui-foundations/b4-evidence/image.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/selected-after.png b/tasks/ui-foundations/b4-evidence/selected-after.png deleted file mode 100644 index 00cd72e..0000000 Binary files a/tasks/ui-foundations/b4-evidence/selected-after.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/selected-before.png b/tasks/ui-foundations/b4-evidence/selected-before.png deleted file mode 100644 index 2ed103c..0000000 Binary files a/tasks/ui-foundations/b4-evidence/selected-before.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/spacing.png b/tasks/ui-foundations/b4-evidence/spacing.png deleted file mode 100644 index 3d47797..0000000 Binary files a/tasks/ui-foundations/b4-evidence/spacing.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/states-dark.png b/tasks/ui-foundations/b4-evidence/states-dark.png deleted file mode 100644 index 4616ff3..0000000 Binary files a/tasks/ui-foundations/b4-evidence/states-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-evidence/text200.png b/tasks/ui-foundations/b4-evidence/text200.png deleted file mode 100644 index 3737821..0000000 Binary files a/tasks/ui-foundations/b4-evidence/text200.png and /dev/null differ diff --git a/tasks/ui-foundations/b4-validation.md b/tasks/ui-foundations/b4-validation.md deleted file mode 100644 index b8a98f3..0000000 --- a/tasks/ui-foundations/b4-validation.md +++ /dev/null @@ -1,70 +0,0 @@ -# B4 场景验证与已选规则 - -B4 已完成。2026-09-13 用户要求“做 b4”后,本轮在隔离消费页比较 B—E 的实际打包实现和 B3 候选,完成 T-A—T-D、C-A—C-C、S-A—S-B、O-A—O-B 的裁决。本文是 B5 的实施输入;[B3 候选契约](b3-design-contracts.md) 保留最初假设,以本文的修订结果为准。生产 Token、生成器、组件、随包指南及消费者尚未应用这些规则。 - -## 实验身份与证据边界 - -实验使用分支 `feat/ui-foundations-components` 的既有 B—E tarball,版本标记仍为 `1.4.0`,不是已经发布的新版本。生产者 HEAD 为 `c5b230af2461d401fa9dc3ac8d5b356c20b89c46`;tarball SHA-256 为 `255bf8b311bf79e4cccd4e921b52834af7c36a2b8d7533426eefc744c86f247a`。候选通过最后加载的隔离 CSS、一个受限的 Sass/Uno 字体原型和 Switch 的隐藏尺寸占位实现,没有重写正式生成链路。重复的根 class 只用于让实验覆盖已打包的 scoped CSS,不是推荐的生产选择器。 - -浏览器为 macOS 上的 Chromium `149.0.7827.55`、Firefox `151.0`,Playwright `1.61.1`。Firefox 仅下载至本机浏览器缓存,没有新增项目依赖。字体比较覆盖 system-ui、明确不存在的首选字体后回退 system-ui、已安装的 Georgia,以及独立 mono 栈;未加载 Inter,没有把未加载的字体名当成 Inter 渲染通过。页面结构参考本地 client-web 的设置、peerList、Job 状态与 info-base/list,没有修改消费者仓库,也不表示消费者已经升级。 - -[证据目录](b4-evidence/) 保留代表截图及实验归档,归档内有源文件、测量 JSON 和复跑命令。本轮没有建立常驻测试套件或 CI 矩阵。截图经过实际查看,尺寸与状态检查不能替代视觉判断。正文中的对比度只证明列出的合法组合,不宣称整库已通过全部无障碍标准。 - -## 实验裁决 - -| 编号 | 观察结果 | 交给 B5 的规则 | -| --- | --- | --- | -| T-A | 320px 内容区内,旧长标签宽约 556px,超出字段约 236px;候选在 320/480/800px 均无字段横向溢出。14/20 的中文/英文标签和多行错误能完整排布,单行输入保留原生内部滚动。 | 控件文字与普通字段标签用 label-lg 14/20,帮助/错误用 body-sm 14/20;允许长标签及错误换行,不用 nowrap 或省略号兜底。移除字段错误段落的默认 margin,由字段 gap 控制关系。 | -| T-B | rem 根字号变化和 Firefox 原生文字放大分别通过;放大后 320px 内容区的表单、Switch 标签可用,实际提交与切换成功。原 Switch 的中文及 Enabled/Disabled 在 xs 滑块内裁切;新几何容纳两种文字。 | 统一 sans/mono 两个来源;普通 Textarea 用 sans,代码用途明确选择 mono。普通信息不再默认用 10px。固定 px 的基础空间不承担文字缩放责任。 | -| T-C | 旧 Sass 继承宿主 serif,Uno 指定 Inter;旧 Uno 继承 3px 字距,underlined 输出也不一致。原型的三个入口得到相同字号、行高、字体、零字距;Sass/Uno 的 mono 和 underline 一致。 | 统一角色与修饰输出,旧 mono/underlined 名称若保留,必须指向同一选择。**修订 B3:none 只能重置当前元素的装饰声明,不能取消祖先绘制的下划线**;不承诺任意装饰祖先下都无下划线。 | -| T-D | 22px 页面标题与卡片 22px 标题缺乏层级差;36px 在窄列表中占据明显更多空间。28px 能与卡片标题拉开层次;16px 正文适合连续说明,14px 卡片摘要/字段帮助保持次级阅读层次。 | 保留新增 title-lg 28/36、body-md 16/24、body-sm 14/20。原 title-sm 22/28 用于小节/弹层,headline-lg 36/48 用于醒目页头,body-lg 18/24 用于突出导语。尺寸相同不合并用途不同的 label-lg 与 body-sm。 | -| C-A | DoubleCheck 普通表面标题改用 base 后可读;Dropdown 选中说明改用 on-primary 后,浅深主题、鼠标及键盘高亮都可读。旧键盘高亮没有应用 selected-hover,浏览器复现了该差异。 | 采用 B3 的前景/表面配对;选中描述与标签共用 on-primary,用排布区分,不新增 on-primary-subtle。修正键盘与鼠标的选中高亮选择器。 | -| C-B | 三种按钮主题的默认/hover/pressed 配对通过;禁用与 pending 的 hover 不改背景。Input、Textarea 同时显示错误边界和独立焦点轮廓。Job/连接的四类反馈在普通表面与 subtle 容器上可读。 | 保留 B3 候选色值;非加载的禁用按钮采用现有 subtle 前景/表面与装饰边界,降低强调而保留文字可读性。hover 与 pressed 可共用已验收颜色,不新增 pressed 色阶。焦点用独立 2px 轮廓、2px 偏移。加载按钮保留可读文字并在旁边显示忙碌图形,不继续用近乎不透明的底色覆盖文字。 | -| C-C | 最亮底面上,黑色 .5 遮罩不能保证普通大小的浅色标题可读;局部 #070707 底板配 #f9f9f9 标题可读。复杂明暗图像仍保持原图内容,窄视口长标题可完整换行。 | 保留公共黑色 .5 遮罩;Image 标题拥有自己的不透明深色底板,不通过进一步压暗整张图解决标题问题。标题容器有最大宽度并允许换行,媒体仍保持比例。 | -| S-A | 1em 图形比原 sm 8px/md 12px glyph 更清楚,并能随文字增长;点击区域独立保持下限。第一次 Switch 自适应候选随 ON/OFF 改变宽度,放大时 xs 约 104→76px;加入两种标签的共同尺寸占位后不再跳动。 | 普通按钮图标 1em、图文 gap .5em;md 最小 36px,sm 最小 24px。Switch 两个等宽区域由两种状态文字共同决定宽度,滑块位移为自身区域宽度,保留尺寸 prop 的最小几何意义。 | -| S-B | 同为 1000px 视口,320px 侧栏的 viewport 规则左右各吃掉 70px,内容剩 178px;固定 16px 与容器候选均剩 286px。800px 主区中固定 32px 和容器候选分别剩 734/734.16px,无实质区别。 | 默认采用简单尺度:窄区 16px、宽主区按宿主用途选择 32px。撤回把本次容器曲线提升为共享 Token 的候选;不新增全局 density 或流式间距算法。 | -| O-A | 实际包 CSS/Sass/Uno 的颜色变量读取能共同响应根覆盖。旧 Uno p-md 仍为 16px,原型修正为根变量后与 CSS/Sass 同为 24px;字体大小/行高与家族也共同响应。浮层实际位于 body,得到根覆盖,而没有得到局部 wrapper 的 48px 间距。 | 保留 B3 根级覆盖边界;正式生成器必须兑现原型验证的依赖。局部变量不穿过 Teleport。主题 light/dark 优先于系统,system/省略跟随系统;Switch comp 颜色不随 primary 覆盖变化。 | -| O-B | 按随包 API 说明和候选指南完成设置页,验证原生提交、成功消息、服务器失败与字段关联。走读发现必须显式写 primary 主题,不能从“主操作”推断默认主题;默认主题实际为 subtle。 | B5 的默认配方明确写 `theme="primary"`、`native-type="submit"`、`layout="col"`、Input 自带 label/error,并给外置帮助文字说明。角色示例必须等正式输出存在后才能写成安装包可用能力。 | - -O-B 是参与过维护的当前执行者走读,存在已有上下文,不是独立 Agent 的盲测。它证明这份默认配方能够运行,不能证明所有 AI 都能无误消费。 - -## 已收敛的尺寸与内容关系 - -保留 14/20、12/16 及 B3 标题/正文候选值;字号用 rem、行高用比例。字体修改由公开角色入口表达,宿主不需要改写库的 html 根字号。常规标签用 sans,技术 ID/代码明确用 mono。原 Textarea 的无条件等宽没有得到普通说明场景支持;B5 应提供最小的显式代码样式选择,不新建编辑器体系。 - -字段内部 gap 选固定 4px,表单字段组 gap 仍为 16px。盒状 Input/Dropdown/Picker 选 min-height 36px、上下 4px 留白:在 28/40 文字下增长到约 50px;.25em 候选增长到 56px,未发现额外收益,因此撤回。这个决定不把 inline 输入/Picker 强行改成盒状控件。原生单行输入按内容滚动,Textarea 按多行内容和自身可滚动边界处理。 - -Button 采用 md 最小 36px、sm 最小 24px,上下 .5em、左右现有 16px;各主题保留一致的 1px 边框空间。默认 14/20 的 md 高度为 36px,较大文字和多行标签自然增长;图文 gap .5em,glyph 1em。图标按钮和分页也保留独立点击区域,不把 glyph 尺寸等同目标尺寸。按钮的动画属性应明确列举,避免旧的无逗号声明退回 all 后连焦点轮廓也发生过渡。 - -Switch 的 xs 下限从 60×18 调整为至少 60×24,sm/md/lg 维持 80×24、100×36、120×48 的最小几何。实际宽度允许因字体和两种标签增长;例如默认 OFF 的 xs 约 61.22px,三字中文约 90px,Enabled/Disabled 约 133.22px。放大后两个状态仍保持相同外宽,滑块不出轨。原型以隐藏且 aria-hidden 的两种文字占位验证;B5 可以把两个状态标签直接放在同一网格位置,只显示当前态,从而避免 JS 测量或全局系数。 - -窄视口实验还发现 DoubleCheck 的内外层重复留白,会把操作文字挤成逐字换行。B5 由 Popup 统一提供内边距,确认内容取消重复 padding;确认弹层采用不超过 400px 且受视口两侧 16px 留白约束的宽度,操作区允许换行。320px 视口和根字号 32px 下,标题、按钮内容与取消操作已复核。这里的视口约束属于 body 浮层,不应推广成普通侧栏的空间依据。 - -## 缩放、对比度和入口的实测要点 - -Firefox 通过本机临时 profile 的原生 `ZoomManager` 执行文字缩放,走的是浏览器自己的 textZoom 路径;并未通过 transform、截图拉伸或逐元素注入字号模拟。原生机制与 [Firefox 的文字缩放说明](https://support.mozilla.org/en-US/kb/font-size-and-zoom-increase-size-of-web-pages) 一致。本机 Firefox 自带的 `viewZoomOverlay.js` 也明确区分 textZoom 与 fullZoom。 - -| 操作 | 固定 13px 文字 | 固定 100px 方块 | CSS 视口 | 意义 | -| --- | --- | --- | --- | --- | -| 原始 | 13px;字框高 16px | 100px | 1000px | 对照 | -| Firefox textZoom=2、fullZoom=1 | **26px;字框高 32px** | **100px** | **1000px** | 实际文字放大 200%;表单提交和 Switch 切换仍可用 | -| Firefox textZoom=1、fullZoom=2 | 计算字号仍为 13px | 计算宽度仍为 100px | **500px** | 实际页面缩放;表单仍可使用,没有水平溢出 | -| Chromium 根字号 16→32px | 固定 px 不因此变大 | 100px | 不变 | 单位依赖实验;不能替代上一项文字放大证据 | - -Chromium 的 `setEmulatedOSTextScale` 和通过 Playwright 发给页面的 Firefox 缩放快捷键,在最初尝试中均未改变哨兵值;这些尝试没有计为通过。最终原生文字缩放的 13→26px 测量及实际操作保存在归档的 `firefox.json`。组合边界还覆盖 320px 视口(扣除宿主边距后内容区为 272px)与根字号 32px。 - -实际选中+高亮说明的对比度约为浅色 8.11、深色 6.50;确认标题与普通表面约为浅色 20.14、深色 8.82。危险按钮新的 hover 前景/背景约为浅色 8.93、深色 7.41。全部测量按未舍入结果验收,hover/pressed 可以同色,不把状态之间的色差误当成文字对比度要求。适用依据仍为 [WCAG 文字对比度](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html) 与 [必要非文本线索](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html)。 - -Sass/Uno 的字体原型验证了“共同读取变量”能够解决差异,**没有证明正式生成器已经修好**。根角色实验覆盖字号、行高和字体家族;正式迁移仍须检查角色内其他公开属性的依赖。相同元素声明下,零字距和 none 装饰结果一致;祖先下划线仍会绘制,截图和指南都保留这个限制。容器实验明确使用 `.host { container-type: inline-size }`;由于没有选择容器曲线进入正式规则,不再扩展无容器回退能力。 - -## B5 的输入与退出边界 - -B5 按 [既定实施方案](plan-l1-token-system.md) 迁移源、生成器、组件、指南和兼容说明,本轮不创建发布 Changeset。实施时重点保留这些约束: - -1. 从 Token 源生成统一角色和 CSS/Sass/Uno 输出;原型 class、额外占位和高优先级选择器不能原样转为公开 API。 -2. 全量复核 21 个组件的受影响文字、边界和几何。B4 的代表页不能替代 Tooltip、Loading、日期列表、AutoForm、JsonEditor 等全部受影响位置的正式迁移验收。 -3. 明确旧字体/颜色名称的迁移方向,恢复样式指南职责,并把已经跑通的默认配方写入现有 Skill 输入。不要把 task packet 的实验历史复制成消费指南。 -4. 重走本轮窄内容、长文本、真实文字放大、深色错误/加载和输出覆盖场景,并用最终 tarball 验证。B4 的临时原型通过不能替代最终产物通过。 -5. Figma 的真实 payload、受限导入和 Changeset 分类仍属于 B5;真实消费者接入由 G 继续核实。extension registry 的代码位置缺口保持未解决状态,Flutter/uniapp 输出继续按真实消费需求启动。 - -本轮仅修改工作包并建立隔离实验;未提交、推送、发布或修改消费者。生产及工程文件的哈希检查与开始 B4 时一致,未把已有 B—E 未提交改动纳入本轮新增改动。 diff --git a/tasks/ui-foundations/b5-evidence/README.md b/tasks/ui-foundations/b5-evidence/README.md deleted file mode 100644 index 126a6ef..0000000 --- a/tasks/ui-foundations/b5-evidence/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# B5 正式产物证据 - -本目录记录仓库内 B5 验收。最终消费页只加载新 tarball 的公开 JS/CSS、Sass helper 和 Uno preset,没有 B4 candidate.scss 或手工复制的候选角色值。 - -- 产物:本地 `@inkcre/ui-web@1.4.0` 标记的待发布构建;版本未提升,不能与 registry 已发布的同版本视为同一产物。tarball 位于 `tmp/b5-pack/inkcre-ui-web-1.4.0.tgz`,SHA-256 为 `f74c3d4161eef70676c27be3b481f78d7037d9236ada938982a03f57054484b8`。 -- 消费实验归档:[consumer-experiment.tar.gz](consumer-experiment.tar.gz),SHA-256 为 `cdff33ed37cf13e65c6527fb1f502057428288963a4aaa6f9382f1702abf55aa`。 -- 完整检查:[pnpm-check.log](pnpm-check.log),`pnpm check` exit 0;日志中循环引用报错属于导入 fixture 的预期失败。归档仅去除终端输出中的 NUL 字节和行尾空白。 -- 最终浏览器:Chromium 149.0.7827.55,默认根字号 16px;页面容器 320/480/800px,补充视口 320px。测量见 [basic-measurements.json](basic-measurements.json),38 个反馈/动作/选中前景配对最低对比度约 6.15,见 [basic-contrast.json](basic-contrast.json)。这不是整库完整可访问性认证。 -- 默认组合、代码字体、modifier 叠加、异步状态和其他组件见 [basic-extra.json](basic-extra.json)。Recipe 使用最终 Skill seed 的完整示例,仅将包导入定位到 tarball 公开入口,宿主模拟成功/拒绝保存。 - -[普通表单](form-production-320.png)、[深色状态](states-dark.png)、[默认 Dialog](dialog-root16.png)、[图片标题](image-production-mixed.png) 均已实际查看。Dialog 与 DoubleCheck 的单一内边距、可用宽度,Spinner 的相邻布局和标题底板经图像核对,不能只靠“没有横向溢出”的断言判断。 - -[firefox-before-scope-change.json](firefox-before-scope-change.json) 来自用户收敛范围前的中间构建,保留为历史观察。它验证过原生文字缩放与页面缩放的区别;不作为最终 tarball 的完整浏览器兼容证据。用户随后明确停止该专项,最后一轮仅复核基本契约,没有再运行 Firefox 专项或添加浏览器专属适配。 - -## 复核方法 - -归档解压到 `packages/web/tmp`,形成 `b5` 子目录。先在仓库根生成、构建并打包,用独立目录保存本轮产物,保留原 B4 tarball: - -```bash -pnpm generate -pnpm build -pnpm --filter @inkcre/ui-web pack --pack-destination "$PWD/tmp/b5-pack" -mkdir -p packages/web/tmp/b5-packed -tar -xzf tmp/b5-pack/inkcre-ui-web-1.4.0.tgz -C packages/web/tmp/b5-packed -node packages/web/tmp/b5/build-probes.mjs -``` - -用已有 Vue/Vite 环境将 `packages/web` 作为根目录在 `127.0.0.1:5199` 提供页面。验收脚本从本机相邻 client-web 的已安装 Playwright 1.61.1 导入 Chromium;异机运行时调整该工具路径,不需要给生产包新增依赖。依次运行 `basic.mjs`、`check-basic.mjs`、`basic-extra.mjs`;`inkcre-browser.mjs` 复核之前 C/D/E 的原生表单、焦点、日期和 schema 旅程。脚本及页面是隔离取证,不加入仓库 CI 套件。 - -实际发送端 payload、extension registry 的消费位置、client-web 的精确版本升级与远端 CI 尚未核验。生产者公开入口与模拟保存通过不能代替这些下游证据。 diff --git a/tasks/ui-foundations/b5-evidence/basic-contrast.json b/tasks/ui-foundations/b5-evidence/basic-contrast.json deleted file mode 100644 index 9bca6ea..0000000 --- a/tasks/ui-foundations/b5-evidence/basic-contrast.json +++ /dev/null @@ -1,216 +0,0 @@ -[ - { - "theme": "light", - "kind": "selected-keyboard", - "ratio": 8.113620607925712 - }, - { - "theme": "light", - "kind": "selected-hover", - "ratio": 8.113620607925712 - }, - { - "theme": "light", - "kind": "confirmation", - "ratio": 20.144005124323062 - }, - { - "theme": "light", - "kind": "primary", - "state": "normal", - "ratio": 17.12380689767856 - }, - { - "theme": "light", - "kind": "primary", - "state": "hover", - "ratio": 8.113620607925712 - }, - { - "theme": "light", - "kind": "primary", - "state": "pressed", - "ratio": 8.113620607925712 - }, - { - "theme": "light", - "kind": "primary", - "state": "loading", - "ratio": 17.12380689767856 - }, - { - "theme": "light", - "kind": "subtle", - "state": "normal", - "ratio": 19.13309332045187 - }, - { - "theme": "light", - "kind": "subtle", - "state": "hover", - "ratio": 17.362072129075298 - }, - { - "theme": "light", - "kind": "subtle", - "state": "pressed", - "ratio": 17.362072129075298 - }, - { - "theme": "light", - "kind": "subtle", - "state": "loading", - "ratio": 19.13309332045187 - }, - { - "theme": "light", - "kind": "danger", - "state": "normal", - "ratio": 7.406063158378641 - }, - { - "theme": "light", - "kind": "danger", - "state": "hover", - "ratio": 8.934637991735775 - }, - { - "theme": "light", - "kind": "danger", - "state": "pressed", - "ratio": 8.934637991735775 - }, - { - "theme": "light", - "kind": "danger", - "state": "loading", - "ratio": 7.406063158378641 - }, - { - "theme": "light", - "kind": "feedback success", - "ratio": 6.235911147345033 - }, - { - "theme": "light", - "kind": "feedback warning", - "ratio": 7.038289358454834 - }, - { - "theme": "light", - "kind": "feedback info", - "ratio": 6.883069374989896 - }, - { - "theme": "light", - "kind": "feedback error", - "ratio": 6.150599744790077 - }, - { - "theme": "dark", - "kind": "selected-keyboard", - "ratio": 6.500442902817579 - }, - { - "theme": "dark", - "kind": "selected-hover", - "ratio": 6.500442902817579 - }, - { - "theme": "dark", - "kind": "confirmation", - "ratio": 8.824939217282258 - }, - { - "theme": "dark", - "kind": "primary", - "state": "normal", - "ratio": 11.941421919984299 - }, - { - "theme": "dark", - "kind": "primary", - "state": "hover", - "ratio": 6.500442902817579 - }, - { - "theme": "dark", - "kind": "primary", - "state": "pressed", - "ratio": 6.500442902817579 - }, - { - "theme": "dark", - "kind": "primary", - "state": "loading", - "ratio": 11.941421919984299 - }, - { - "theme": "dark", - "kind": "subtle", - "state": "normal", - "ratio": 15.655791600925236 - }, - { - "theme": "dark", - "kind": "subtle", - "state": "hover", - "ratio": 6.158782092353131 - }, - { - "theme": "dark", - "kind": "subtle", - "state": "pressed", - "ratio": 6.158782092353131 - }, - { - "theme": "dark", - "kind": "subtle", - "state": "loading", - "ratio": 15.655791600925236 - }, - { - "theme": "dark", - "kind": "danger", - "state": "normal", - "ratio": 6.17400739521085 - }, - { - "theme": "dark", - "kind": "danger", - "state": "hover", - "ratio": 7.406063158378641 - }, - { - "theme": "dark", - "kind": "danger", - "state": "pressed", - "ratio": 7.406063158378641 - }, - { - "theme": "dark", - "kind": "danger", - "state": "loading", - "ratio": 6.17400739521085 - }, - { - "theme": "dark", - "kind": "feedback success", - "ratio": 9.294536920443825 - }, - { - "theme": "dark", - "kind": "feedback warning", - "ratio": 11.578636688468917 - }, - { - "theme": "dark", - "kind": "feedback info", - "ratio": 9.709506791394972 - }, - { - "theme": "dark", - "kind": "feedback error", - "ratio": 9.68171228214573 - } -] \ No newline at end of file diff --git a/tasks/ui-foundations/b5-evidence/basic-extra.json b/tasks/ui-foundations/b5-evidence/basic-extra.json deleted file mode 100644 index 67d7cc4..0000000 --- a/tasks/ui-foundations/b5-evidence/basic-extra.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "fonts": [ - { - "font": "system-ui, -apple-system, sans-serif", - "actual": { - "width": 302, - "height": 20, - "overflow": 0, - "font": "14px", - "family": "system-ui, -apple-system, sans-serif", - "line": "20px", - "decoration": "none" - } - }, - { - "font": "\"B5 Missing Font\", system-ui, sans-serif", - "actual": { - "width": 302, - "height": 20, - "overflow": 0, - "font": "14px", - "family": "\"B5 Missing Font\", system-ui, sans-serif", - "line": "20px", - "decoration": "none" - } - }, - { - "font": "Georgia, serif", - "actual": { - "width": 302, - "height": 20, - "overflow": 0, - "font": "14px", - "family": "Georgia, serif", - "line": "20px", - "decoration": "none" - } - } - ], - "inputScroll": "native horizontal editing retained", - "combined": { - "width": 272, - "height": 20, - "overflow": 0, - "font": "14px", - "family": "\"Courier New\", monospace", - "line": "20px", - "decoration": "underline" - }, - "switchPending": [ - 61.21875, - 80, - 100, - 120, - 90, - 133.21875 - ], - "recipe": "installed Skill recipe: success, rejected save, native submit and field error association", - "secondary": { - ".ink-header": { - "width": 272, - "height": 201, - "overflow": 0, - "font": "16px", - "family": "system-ui", - "line": "normal", - "decoration": "none" - }, - ".ink-placeholder": { - "width": 272, - "height": 308, - "overflow": 0, - "font": "16px", - "family": "system-ui", - "line": "normal", - "decoration": "none" - }, - ".ink-textarea": { - "width": 272, - "height": 118, - "overflow": 0, - "font": "14px", - "family": "system-ui, -apple-system, sans-serif", - "line": "20px", - "decoration": "none" - }, - ".cm-scroller": { - "width": 254, - "height": 100, - "overflow": 0, - "font": "14px", - "family": "\"Courier New\", monospace", - "line": "20px", - "decoration": "none" - }, - "tooltip": { - "width": 82.4375, - "height": 170, - "overflow": 0, - "font": "16px", - "family": "system-ui", - "line": "normal", - "decoration": "none" - }, - "dialog": { - "width": 288, - "height": 272, - "overflow": 0, - "font": "14px", - "family": "system-ui, -apple-system, sans-serif", - "line": "20px", - "decoration": "none" - } - }, - "errors": [] -} \ No newline at end of file diff --git a/tasks/ui-foundations/b5-evidence/basic-measurements.json b/tasks/ui-foundations/b5-evidence/basic-measurements.json deleted file mode 100644 index a5a2a1f..0000000 --- a/tasks/ui-foundations/b5-evidence/basic-measurements.json +++ /dev/null @@ -1,1557 +0,0 @@ -{ - "chromium": "149.0.7827.55", - "forms": [ - { - "mode": "production", - "width": 320, - "metrics": { - "width": 1000, - "main": { - "width": 320, - "height": 888.65625, - "font": "16px", - "line": "normal", - "family": "system-ui", - "gap": "normal", - "overflowX": 0 - }, - "pageOverflow": 0, - "fields": [ - { - "box": { - "width": 320, - "height": 166.65625, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 320, - "height": 62.65625, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": { - "width": 320, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - }, - { - "box": { - "width": 320, - "height": 80, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 320, - "height": 40, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - }, - { - "box": { - "width": 320, - "height": 206, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 170.6875, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": { - "width": 320, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - }, - { - "box": { - "width": 320, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 56, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - }, - { - "box": { - "width": 320, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 56, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - } - ], - "input": [ - { - "width": 320, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - { - "width": 320, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - ], - "button": [ - { - "width": 309.8125, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "7px", - "overflowX": 0 - }, - { - "width": 62, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "7px", - "overflowX": 0 - } - ] - } - }, - { - "mode": "production", - "width": 480, - "metrics": { - "width": 1000, - "main": { - "width": 480, - "height": 776.65625, - "font": "16px", - "line": "normal", - "family": "system-ui", - "gap": "normal", - "overflowX": 0 - }, - "pageOverflow": 0, - "fields": [ - { - "box": { - "width": 480, - "height": 126.65625, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 480, - "height": 42.65625, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": { - "width": 480, - "height": 40, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - }, - { - "box": { - "width": 480, - "height": 80, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 480, - "height": 40, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - }, - { - "box": { - "width": 480, - "height": 186, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 170.6875, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": { - "width": 480, - "height": 40, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - }, - { - "box": { - "width": 480, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 56, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - }, - { - "box": { - "width": 480, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 56, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - } - ], - "input": [ - { - "width": 480, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - { - "width": 480, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - ], - "button": [ - { - "width": 309.8125, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "7px", - "overflowX": 0 - }, - { - "width": 62, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "7px", - "overflowX": 0 - } - ] - } - }, - { - "mode": "production", - "width": 800, - "metrics": { - "width": 1000, - "main": { - "width": 800, - "height": 672.65625, - "font": "16px", - "line": "normal", - "family": "system-ui", - "gap": "normal", - "overflowX": 0 - }, - "pageOverflow": 0, - "fields": [ - { - "box": { - "width": 800, - "height": 86.65625, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 640.765625, - "height": 22.65625, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": { - "width": 800, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - }, - { - "box": { - "width": 800, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 602.234375, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - }, - { - "box": { - "width": 800, - "height": 166, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 170.6875, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": { - "width": 800, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - }, - { - "box": { - "width": 800, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 56, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - }, - { - "box": { - "width": 800, - "height": 60, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "4px", - "overflowX": 0 - }, - "label": { - "width": 56, - "height": 20, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - "error": null - } - ], - "input": [ - { - "width": 800, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - }, - { - "width": 800, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "normal", - "overflowX": 0 - } - ], - "button": [ - { - "width": 309.8125, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "7px", - "overflowX": 0 - }, - { - "width": 62, - "height": 36, - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "gap": "7px", - "overflowX": 0 - } - ] - } - } - ], - "geometry": [ - { - "mode": "production", - "root": 16, - "off": [ - { - "name": "xs", - "w": 61.21875, - "h": 24, - "label": 14.40625, - "handle": 29.609375, - "clips": false, - "escapes": false - }, - { - "name": "sm", - "w": 80, - "h": 24, - "label": 14.40625, - "handle": 39, - "clips": false, - "escapes": false - }, - { - "name": "md", - "w": 100, - "h": 36, - "label": 14.40625, - "handle": 49, - "clips": false, - "escapes": false - }, - { - "name": "lg", - "w": 120, - "h": 48, - "label": 14.40625, - "handle": 59, - "clips": false, - "escapes": false - }, - { - "name": "通知", - "w": 90, - "h": 24, - "label": 36, - "handle": 44, - "clips": false, - "escapes": false - }, - { - "name": "English state", - "w": 133.21875, - "h": 24, - "label": 50.421875, - "handle": 65.609375, - "clips": false, - "escapes": false - } - ], - "on": [ - { - "name": "xs", - "w": 61.21875, - "h": 24, - "label": 14.40625, - "handle": 29.609375, - "clips": false, - "escapes": false - }, - { - "name": "sm", - "w": 80, - "h": 24, - "label": 14.40625, - "handle": 39, - "clips": false, - "escapes": false - }, - { - "name": "md", - "w": 100, - "h": 36, - "label": 14.40625, - "handle": 49, - "clips": false, - "escapes": false - }, - { - "name": "lg", - "w": 120, - "h": 48, - "label": 14.40625, - "handle": 59, - "clips": false, - "escapes": false - }, - { - "name": "通知", - "w": 90, - "h": 24, - "label": 36, - "handle": 44, - "clips": false, - "escapes": false - }, - { - "name": "English state", - "w": 133.21875, - "h": 24, - "label": 50.421875, - "handle": 65.609375, - "clips": false, - "escapes": false - } - ] - } - ], - "probes": [ - { - "mode": "production", - "before": [ - { - "name": "probe-font-css", - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-font-sass", - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-font-uno", - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-underline-sass", - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "spacing": "normal", - "decoration": "underline", - "padding": "0px" - }, - { - "name": "probe-underline-uno", - "font": "14px", - "line": "20px", - "family": "system-ui, -apple-system, sans-serif", - "spacing": "normal", - "decoration": "underline", - "padding": "0px" - }, - { - "name": "probe-mono-sass", - "font": "14px", - "line": "20px", - "family": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-mono-uno", - "font": "14px", - "line": "20px", - "family": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-space-css", - "font": "16px", - "line": "normal", - "family": "system-ui", - "spacing": "normal", - "decoration": "none", - "padding": "16px" - }, - { - "name": "probe-space-sass", - "font": "16px", - "line": "normal", - "family": "system-ui", - "spacing": "normal", - "decoration": "none", - "padding": "16px" - }, - { - "name": "probe-space-uno", - "font": "16px", - "line": "normal", - "family": "system-ui", - "spacing": "normal", - "decoration": "none", - "padding": "16px" - } - ] - }, - { - "mode": "production", - "override": [ - { - "name": "probe-font-css", - "font": "20px", - "line": "30px", - "family": "Georgia, serif", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-font-sass", - "font": "20px", - "line": "30px", - "family": "Georgia, serif", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-font-uno", - "font": "20px", - "line": "30px", - "family": "Georgia, serif", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-underline-sass", - "font": "20px", - "line": "30px", - "family": "Georgia, serif", - "spacing": "normal", - "decoration": "underline", - "padding": "0px" - }, - { - "name": "probe-underline-uno", - "font": "20px", - "line": "30px", - "family": "Georgia, serif", - "spacing": "normal", - "decoration": "underline", - "padding": "0px" - }, - { - "name": "probe-mono-sass", - "font": "20px", - "line": "30px", - "family": "\"Courier New\", monospace", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-mono-uno", - "font": "20px", - "line": "30px", - "family": "\"Courier New\", monospace", - "spacing": "normal", - "decoration": "none", - "padding": "0px" - }, - { - "name": "probe-space-css", - "font": "16px", - "line": "normal", - "family": "system-ui", - "spacing": "normal", - "decoration": "none", - "padding": "24px" - }, - { - "name": "probe-space-sass", - "font": "16px", - "line": "normal", - "family": "system-ui", - "spacing": "normal", - "decoration": "none", - "padding": "24px" - }, - { - "name": "probe-space-uno", - "font": "16px", - "line": "normal", - "family": "system-ui", - "spacing": "normal", - "decoration": "none", - "padding": "24px" - } - ] - } - ], - "colors": [ - { - "theme": "light", - "mode": "production", - "kind": "selected-keyboard", - "option": { - "fg": "rgb(251, 252, 255)", - "bg": "rgb(71, 78, 95)", - "border": "rgb(251, 252, 255)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - }, - "description": { - "fg": "rgb(251, 252, 255)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(251, 252, 255)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "light", - "mode": "production", - "kind": "selected-hover", - "option": { - "fg": "rgb(251, 252, 255)", - "bg": "rgb(71, 78, 95)", - "border": "rgb(251, 252, 255)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - }, - "description": { - "fg": "rgb(251, 252, 255)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(251, 252, 255)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "light", - "mode": "production", - "kind": "confirmation", - "title": { - "fg": "rgb(7, 7, 7)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(7, 7, 7)", - "outline": "rgb(7, 7, 7) none 3px", - "offset": "0px", - "opacity": "1" - }, - "surface": { - "fg": "rgb(7, 7, 7)", - "bg": "rgb(255, 255, 255)", - "border": "rgb(7, 7, 7)", - "outline": "rgb(7, 7, 7) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "light", - "kind": "primary", - "normal": { - "fg": "rgb(251, 252, 255)", - "bg": "rgb(18, 25, 40)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - }, - "hover": { - "fg": "rgb(251, 252, 255)", - "bg": "rgb(71, 78, 95)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - }, - "pressed": { - "fg": "rgb(251, 252, 255)", - "bg": "rgb(71, 78, 95)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - }, - "focus": { - "fg": "rgb(251, 252, 255)", - "bg": "rgb(18, 25, 40)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(7, 7, 7) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "disabledBefore": { - "fg": "rgb(94, 94, 94)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(198, 198, 198)", - "outline": "rgb(94, 94, 94) none 3px", - "offset": "0px", - "opacity": "1" - }, - "disabledHover": { - "fg": "rgb(94, 94, 94)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(198, 198, 198)", - "outline": "rgb(94, 94, 94) none 3px", - "offset": "0px", - "opacity": "1" - }, - "loading": { - "fg": "rgb(251, 252, 255)", - "bg": "rgb(18, 25, 40)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(251, 252, 255) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "light", - "kind": "subtle", - "normal": { - "fg": "rgb(7, 7, 7)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(119, 119, 119)", - "outline": "rgb(7, 7, 7) none 3px", - "offset": "0px", - "opacity": "1" - }, - "hover": { - "fg": "rgb(7, 7, 7)", - "bg": "rgb(238, 238, 238)", - "border": "rgb(119, 119, 119)", - "outline": "rgb(7, 7, 7) none 3px", - "offset": "0px", - "opacity": "1" - }, - "pressed": { - "fg": "rgb(7, 7, 7)", - "bg": "rgb(238, 238, 238)", - "border": "rgb(119, 119, 119)", - "outline": "rgb(7, 7, 7) none 3px", - "offset": "0px", - "opacity": "1" - }, - "focus": { - "fg": "rgb(7, 7, 7)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(119, 119, 119)", - "outline": "rgb(7, 7, 7) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "disabledBefore": { - "fg": "rgb(94, 94, 94)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(198, 198, 198)", - "outline": "rgb(94, 94, 94) none 3px", - "offset": "0px", - "opacity": "1" - }, - "disabledHover": { - "fg": "rgb(94, 94, 94)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(198, 198, 198)", - "outline": "rgb(94, 94, 94) none 3px", - "offset": "0px", - "opacity": "1" - }, - "loading": { - "fg": "rgb(7, 7, 7)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(119, 119, 119)", - "outline": "rgb(7, 7, 7) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "light", - "kind": "danger", - "normal": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(168, 3, 36)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - }, - "hover": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(146, 0, 30)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - }, - "pressed": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(146, 0, 30)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - }, - "focus": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(168, 3, 36)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(7, 7, 7) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "disabledBefore": { - "fg": "rgb(94, 94, 94)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(198, 198, 198)", - "outline": "rgb(94, 94, 94) none 3px", - "offset": "0px", - "opacity": "1" - }, - "disabledHover": { - "fg": "rgb(94, 94, 94)", - "bg": "rgb(249, 249, 249)", - "border": "rgb(198, 198, 198)", - "outline": "rgb(94, 94, 94) none 3px", - "offset": "0px", - "opacity": "1" - }, - "loading": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(168, 3, 36)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "light", - "kind": "feedback", - "paints": [ - { - "name": "feedback success", - "fg": "rgb(23, 107, 57)", - "bg": "rgb(249, 249, 249)" - }, - { - "name": "feedback warning", - "fg": "rgb(122, 75, 0)", - "bg": "rgb(249, 249, 249)" - }, - { - "name": "feedback info", - "fg": "rgb(0, 92, 138)", - "bg": "rgb(249, 249, 249)" - }, - { - "name": "feedback error", - "fg": "rgb(185, 25, 47)", - "bg": "rgb(249, 249, 249)" - } - ] - }, - { - "theme": "light", - "kind": "error-focus", - "input": { - "fg": "rgb(7, 7, 7)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(185, 25, 47)", - "outline": "rgb(7, 7, 7) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "text": { - "fg": "rgb(185, 25, 47)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(185, 25, 47)", - "outline": "rgb(185, 25, 47) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "dark", - "mode": "production", - "kind": "selected-keyboard", - "option": { - "fg": "rgb(11, 18, 32)", - "bg": "rgb(145, 152, 172)", - "border": "rgb(11, 18, 32)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - }, - "description": { - "fg": "rgb(11, 18, 32)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(11, 18, 32)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "dark", - "mode": "production", - "kind": "selected-hover", - "option": { - "fg": "rgb(11, 18, 32)", - "bg": "rgb(145, 152, 172)", - "border": "rgb(11, 18, 32)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - }, - "description": { - "fg": "rgb(11, 18, 32)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(11, 18, 32)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "dark", - "mode": "production", - "kind": "confirmation", - "title": { - "fg": "rgb(249, 249, 249)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(249, 249, 249)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - }, - "surface": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(71, 71, 71)", - "border": "rgb(249, 249, 249)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "dark", - "kind": "primary", - "normal": { - "fg": "rgb(11, 18, 32)", - "bg": "rgb(200, 206, 227)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - }, - "hover": { - "fg": "rgb(11, 18, 32)", - "bg": "rgb(145, 152, 172)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - }, - "pressed": { - "fg": "rgb(11, 18, 32)", - "bg": "rgb(145, 152, 172)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - }, - "focus": { - "fg": "rgb(11, 18, 32)", - "bg": "rgb(200, 206, 227)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(198, 198, 198) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "disabledBefore": { - "fg": "rgb(198, 198, 198)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(94, 94, 94)", - "outline": "rgb(198, 198, 198) none 3px", - "offset": "0px", - "opacity": "1" - }, - "disabledHover": { - "fg": "rgb(198, 198, 198)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(94, 94, 94)", - "outline": "rgb(198, 198, 198) none 3px", - "offset": "0px", - "opacity": "1" - }, - "loading": { - "fg": "rgb(11, 18, 32)", - "bg": "rgb(200, 206, 227)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(11, 18, 32) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "dark", - "kind": "subtle", - "normal": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(171, 171, 171)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - }, - "hover": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(94, 94, 94)", - "border": "rgb(171, 171, 171)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - }, - "pressed": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(94, 94, 94)", - "border": "rgb(171, 171, 171)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - }, - "focus": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(171, 171, 171)", - "outline": "rgb(198, 198, 198) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "disabledBefore": { - "fg": "rgb(198, 198, 198)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(94, 94, 94)", - "outline": "rgb(198, 198, 198) none 3px", - "offset": "0px", - "opacity": "1" - }, - "disabledHover": { - "fg": "rgb(198, 198, 198)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(94, 94, 94)", - "outline": "rgb(198, 198, 198) none 3px", - "offset": "0px", - "opacity": "1" - }, - "loading": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(171, 171, 171)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "dark", - "kind": "danger", - "normal": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(185, 25, 47)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - }, - "hover": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(168, 3, 36)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - }, - "pressed": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(168, 3, 36)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - }, - "focus": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(185, 25, 47)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(198, 198, 198) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "disabledBefore": { - "fg": "rgb(198, 198, 198)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(94, 94, 94)", - "outline": "rgb(198, 198, 198) none 3px", - "offset": "0px", - "opacity": "1" - }, - "disabledHover": { - "fg": "rgb(198, 198, 198)", - "bg": "rgb(31, 31, 31)", - "border": "rgb(94, 94, 94)", - "outline": "rgb(198, 198, 198) none 3px", - "offset": "0px", - "opacity": "1" - }, - "loading": { - "fg": "rgb(255, 248, 247)", - "bg": "rgb(185, 25, 47)", - "border": "rgba(0, 0, 0, 0)", - "outline": "rgb(255, 248, 247) none 3px", - "offset": "0px", - "opacity": "1" - } - }, - { - "theme": "dark", - "kind": "feedback", - "paints": [ - { - "name": "feedback success", - "fg": "rgb(117, 214, 154)", - "bg": "rgb(31, 31, 31)" - }, - { - "name": "feedback warning", - "fg": "rgb(255, 210, 122)", - "bg": "rgb(31, 31, 31)" - }, - { - "name": "feedback info", - "fg": "rgb(139, 206, 255)", - "bg": "rgb(31, 31, 31)" - }, - { - "name": "feedback error", - "fg": "rgb(255, 179, 177)", - "bg": "rgb(31, 31, 31)" - } - ] - }, - { - "theme": "dark", - "kind": "error-focus", - "input": { - "fg": "rgb(249, 249, 249)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(255, 179, 177)", - "outline": "rgb(198, 198, 198) solid 2px", - "offset": "2px", - "opacity": "1" - }, - "text": { - "fg": "rgb(255, 179, 177)", - "bg": "rgba(0, 0, 0, 0)", - "border": "rgb(255, 179, 177)", - "outline": "rgb(255, 179, 177) none 3px", - "offset": "0px", - "opacity": "1" - } - } - ], - "spacing": [ - { - "width": 320, - "values": [ - { - "kind": "list-page viewport", - "width": 318, - "padding": "90px 70px", - "overflow": 0, - "content": 178 - }, - { - "kind": "list-page fixed16", - "width": 318, - "padding": "16px", - "overflow": 0, - "content": 286 - }, - { - "kind": "list-page fixed32", - "width": 318, - "padding": "32px", - "overflow": 0, - "content": 254 - }, - { - "kind": "list-page bounded", - "width": 318, - "padding": "16px", - "overflow": 0, - "content": 286 - } - ] - }, - { - "width": 800, - "values": [ - { - "kind": "list-page viewport", - "width": 798, - "padding": "90px 70px", - "overflow": 0, - "content": 658 - }, - { - "kind": "list-page fixed16", - "width": 798, - "padding": "16px", - "overflow": 0, - "content": 766 - }, - { - "kind": "list-page fixed32", - "width": 798, - "padding": "32px", - "overflow": 0, - "content": 734 - }, - { - "kind": "list-page bounded", - "width": 798, - "padding": "31.92px", - "overflow": 0, - "content": 734.16 - } - ] - } - ], - "images": [ - { - "mode": "production", - "which": "明亮背景图片", - "paint": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(7, 7, 7)", - "border": "rgb(249, 249, 249)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - }, - "metrics": { - "w": 402, - "scroll": 402, - "h": 36, - "whitespace": "normal" - } - }, - { - "mode": "production", - "which": "复杂明暗图片", - "paint": { - "fg": "rgb(249, 249, 249)", - "bg": "rgb(7, 7, 7)", - "border": "rgb(249, 249, 249)", - "outline": "rgb(249, 249, 249) none 3px", - "offset": "0px", - "opacity": "1" - }, - "metrics": { - "w": 716, - "scroll": 716, - "h": 36, - "whitespace": "normal" - } - } - ], - "teleport": { - "parent": "BODY", - "theme": "dark", - "padding": [ - "24px", - "24px", - "24px" - ], - "font": [ - "16px / 24px Georgia, serif", - "20px / 28.5714px Georgia, serif", - "20px / 28.5714px Georgia, serif" - ], - "localAncestor": false - }, - "errors": [] -} \ No newline at end of file diff --git a/tasks/ui-foundations/b5-evidence/consumer-experiment.tar.gz b/tasks/ui-foundations/b5-evidence/consumer-experiment.tar.gz deleted file mode 100644 index a318301..0000000 Binary files a/tasks/ui-foundations/b5-evidence/consumer-experiment.tar.gz and /dev/null differ diff --git a/tasks/ui-foundations/b5-evidence/dialog-root16.png b/tasks/ui-foundations/b5-evidence/dialog-root16.png deleted file mode 100644 index 34225e5..0000000 Binary files a/tasks/ui-foundations/b5-evidence/dialog-root16.png and /dev/null differ diff --git a/tasks/ui-foundations/b5-evidence/firefox-before-scope-change.json b/tasks/ui-foundations/b5-evidence/firefox-before-scope-change.json deleted file mode 100644 index 75f3897..0000000 --- a/tasks/ui-foundations/b5-evidence/firefox-before-scope-change.json +++ /dev/null @@ -1,250 +0,0 @@ -{ - "before": { - "font": "13px", - "height": 16, - "box": 100, - "viewport": 1000, - "root": "16px" - }, - "native": { - "text": 2, - "full": 1 - }, - "after": { - "font": "26px", - "height": 32, - "box": 100, - "viewport": 1000, - "root": "32px" - }, - "form": { - "viewport": 1000, - "overflow": -15, - "mainOverflow": 0, - "fonts": [ - { - "name": "ink-input__input", - "font": "28px", - "h": 40, - "w": 302 - }, - { - "name": "ink-input__input", - "font": "28px", - "h": 40, - "w": 302 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-primary ink-button--size-md", - "font": "28px", - "h": 150, - "w": 320 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-subtle ink-button--size-md", - "font": "28px", - "h": 70, - "w": 90 - } - ], - "submitResult": "已保存设置 Settings saved" - }, - "controls": { - "viewport": 1000, - "overflow": -15, - "mainOverflow": 0, - "fonts": [ - { - "name": "ink-button ink-button--type-default ink-button--theme-primary ink-button--size-md", - "font": "28px", - "h": 70, - "w": 146 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-primary ink-button--size-md", - "font": "28px", - "h": 70, - "w": 118 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-primary ink-button--size-md ink-button--loading", - "font": "28px", - "h": 70, - "w": 160 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-subtle ink-button--size-md", - "font": "28px", - "h": 70, - "w": 146 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-subtle ink-button--size-md", - "font": "28px", - "h": 70, - "w": 118 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-subtle ink-button--size-md ink-button--loading", - "font": "28px", - "h": 70, - "w": 160 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-danger ink-button--size-md", - "font": "28px", - "h": 70, - "w": 146 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-danger ink-button--size-md", - "font": "28px", - "h": 70, - "w": 118 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-danger ink-button--size-md ink-button--loading", - "font": "28px", - "h": 70, - "w": 160 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-subtle ink-button--size-md", - "font": "28px", - "h": 70, - "w": 188 - }, - { - "name": "ink-button ink-button--type-square ink-button--theme-subtle ink-button--size-md", - "font": "28px", - "h": 58, - "w": 58 - }, - { - "name": "ink-button ink-button--type-square ink-button--theme-subtle ink-button--size-sm", - "font": "24px", - "h": 38, - "w": 38 - }, - { - "name": "ink-button ink-button--type-square ink-button--theme-subtle ink-button--size-md ink-pagination__nav ink-pagination__nav--prev", - "font": "24px", - "h": 50, - "w": 50 - }, - { - "name": "ink-button ink-button--type-square ink-button--theme-subtle ink-button--size-md ink-pagination__nav ink-pagination__nav--next", - "font": "24px", - "h": 50, - "w": 50 - }, - { - "name": "ink-switch__label ink-switch__label--hidden", - "font": "24px", - "h": 32, - "w": 28.800003051757812 - }, - { - "name": "ink-switch__label", - "font": "24px", - "h": 32, - "w": 43.19999694824219 - }, - { - "name": "ink-switch__label ink-switch__label--hidden", - "font": "24px", - "h": 32, - "w": 28.79998779296875 - }, - { - "name": "ink-switch__label", - "font": "24px", - "h": 32, - "w": 43.20001220703125 - }, - { - "name": "ink-switch__label ink-switch__label--hidden", - "font": "24px", - "h": 32, - "w": 28.800003051757812 - }, - { - "name": "ink-switch__label", - "font": "24px", - "h": 32, - "w": 43.19999694824219 - }, - { - "name": "ink-switch__label ink-switch__label--hidden", - "font": "24px", - "h": 32, - "w": 28.800003051757812 - }, - { - "name": "ink-switch__label", - "font": "24px", - "h": 32, - "w": 43.19999694824219 - }, - { - "name": "ink-switch__label ink-switch__label--hidden", - "font": "24px", - "h": 32, - "w": 72 - }, - { - "name": "ink-switch__label", - "font": "24px", - "h": 32, - "w": 72 - }, - { - "name": "ink-switch__label ink-switch__label--hidden", - "font": "24px", - "h": 32, - "w": 100.80000305175781 - }, - { - "name": "ink-switch__label", - "font": "24px", - "h": 32, - "w": 115.19999694824219 - } - ], - "checked": "true" - }, - "overlay": { - "viewport": 1000, - "overflow": 0, - "mainOverflow": 0, - "fonts": [ - { - "name": "ink-button ink-button--type-default ink-button--theme-danger ink-button--size-md", - "font": "28px", - "h": 70, - "w": 202 - }, - { - "name": "ink-button ink-button--type-default ink-button--theme-subtle ink-button--size-md", - "font": "28px", - "h": 70, - "w": 146 - } - ] - }, - "pageZoom": { - "text": 1, - "full": 2 - }, - "pageZoomMetrics": { - "font": "13px", - "height": 16, - "box": 100, - "viewport": 500, - "root": "16px" - }, - "pageZoomForm": { - "viewport": 500, - "overflow": -7 - } -} \ No newline at end of file diff --git a/tasks/ui-foundations/b5-evidence/form-production-320.png b/tasks/ui-foundations/b5-evidence/form-production-320.png deleted file mode 100644 index 6807bdc..0000000 Binary files a/tasks/ui-foundations/b5-evidence/form-production-320.png and /dev/null differ diff --git a/tasks/ui-foundations/b5-evidence/image-production-mixed.png b/tasks/ui-foundations/b5-evidence/image-production-mixed.png deleted file mode 100644 index 60521ec..0000000 Binary files a/tasks/ui-foundations/b5-evidence/image-production-mixed.png and /dev/null differ diff --git a/tasks/ui-foundations/b5-evidence/pnpm-check.log b/tasks/ui-foundations/b5-evidence/pnpm-check.log deleted file mode 100644 index 88fac5d..0000000 --- a/tasks/ui-foundations/b5-evidence/pnpm-check.log +++ /dev/null @@ -1,648 +0,0 @@ -$ pnpm format:check && pnpm lint && pnpm check:generated && pnpm check:skills && pnpm check:stories && pnpm check:token-workflow && pnpm type-check && pnpm build && pnpm check:package && pnpm story -$ oxfmt --check .oxfmtrc.json package.json pnpm-workspace.yaml tsconfig.json scripts .github/workflows/*.yml README.md && pnpm --filter @inkcre/ui-web format:check -Checking formatting... - -All matched files use the correct format. -Finished in 159ms on 24 files using 10 threads. -$ oxfmt --check --config .oxfmtrc.json src stories styles .oxfmtrc.json .oxlintrc.json package.json skill.seed.json component-manifest.json component-manifest.schema.json tsconfig.json tsconfig.build.json tsconfig.check.json tsconfig.exports.json env.d.ts histoire.config.ts uno.config.ts vite.config.js vite.subpaths.config.js -Checking formatting... - -All matched files use the correct format. -Finished in 505ms on 149 files using 10 threads. -$ oxlint --deny-warnings scripts && pnpm --filter @inkcre/ui-web lint -$ oxlint --config .oxlintrc.json src stories histoire.config.ts uno.config.ts vite.config.js vite.subpaths.config.js -$ tsx scripts/check-generated.ts -$ tsx scripts/build-tokens.ts -🎨 Building design tokens... - -📖 Reading tokens from: /Volumes/WorkSSD/Development/InKCre/design/tokens/inkcre.tokens.json - -unocss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/uno/preset-ink.ts - -scss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/_ref.scss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/_sys.scss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/_comp.scss - -✅ Design tokens built successfully! - -📁 SCSS output: /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/ - - _ref.scss - - _sys.scss - - _comp.scss - -📁 UnoCSS output: /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/uno/ - - preset-ink.ts - -⏱️ Completed in 22ms -$ tsx scripts/build-package-metadata.ts -Generated registry, global types, and version for 21 public components. -$ pnpm --filter @inkcre/ui-web skill:generate -$ tsx ../../scripts/build-agent-skills.ts -Generated 27 files for @inkcre/ui-web#ui-web. -Generated files are current. -$ pnpm --filter @inkcre/ui-web skill:generate:check && pnpm --filter @inkcre/ui-web skill:validate -$ tsx ../../scripts/build-agent-skills.ts --check -Generated @inkcre/ui-web#ui-web skill is current. -$ intent validate -✅ Validated 1 skill files — all passed -$ tsx scripts/check-story-coverage.ts -Story coverage is complete for 21 public components. -$ tsx scripts/prepare-token-update.ts fixture -🎨 Building design tokens... - -📖 Reading tokens from: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-HM38Ck/tokens/inkcre.tokens.json - -unocss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-HM38Ck/packages/web/styles/uno/preset-ink.ts - -scss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-HM38Ck/packages/web/styles/tokens/_ref.scss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-HM38Ck/packages/web/styles/tokens/_sys.scss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-HM38Ck/packages/web/styles/tokens/_comp.scss - -✅ Design tokens built successfully! - -📁 SCSS output: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-HM38Ck/packages/web/styles/tokens/ - - _ref.scss - - _sys.scss - - _comp.scss - -📁 UnoCSS output: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-HM38Ck/packages/web/styles/uno/ - - preset-ink.ts - -⏱️ Completed in 29ms -🎨 Building design tokens... - -📖 Reading tokens from: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-workflow-csmKxF/cycle/tokens/inkcre.tokens.json - -❌ Error building design tokens: -Error: -Reference Errors: -Some token references (1) could not be found. -Use log.verbosity "verbose" or use CLI option --verbose for more details. -Refer to: https://styledictionary.com/reference/logging/ - -Error: -Reference Errors: -Some token references (1) could not be found. -Use log.verbosity "verbose" or use CLI option --verbose for more details. -Refer to: https://styledictionary.com/reference/logging/ - - at StyleDictionary._exportPlatform (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:551:15) - at async StyleDictionary.getPlatformTokens (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:399:26) - at async StyleDictionary.buildPlatform (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:891:24) - at async Promise.all (index 0) - at async StyleDictionary.buildAllPlatforms (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:940:7) - at async main (/Volumes/WorkSSD/Development/InKCre/design/scripts/build-tokens.ts:867:5) -Token import accepted a partial value update, preserved metadata, and rejected unsafe contract changes. -$ pnpm type-check:root && pnpm --filter @inkcre/ui-web type-check -$ tsc --noEmit - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -$ vue-tsc --noEmit -p tsconfig.check.json - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -$ pnpm --filter @inkcre/ui-web build -$ pnpm run clean && pnpm run type-check && pnpm run build:js && pnpm run build:subpaths && pnpm run build:subpath-types && pnpm run build:finalize && pnpm run build:skills -$ rimraf dist -$ vue-tsc --noEmit -p tsconfig.check.json - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -$ vite build -vite v7.2.7 building client environment for production... - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -transforming... -✓ 98 modules transformed. -rendering chunks... - -[vite:dts] Start generate declaration files... -computing gzip size... -dist/index.css 47.30 kB │ gzip: 6.80 kB -dist/index.js 300.24 kB │ gzip: 84.66 kB │ map: 169.24 kB -[vite:dts] Declaration files built in 591ms. - -✓ built in 1.39s -$ vite build --config vite.subpaths.config.js -vite v7.2.7 building client environment for production... -transforming... -✓ 7 modules transformed. -rendering chunks... -computing gzip size... -dist/locales/index.js 0.99 kB │ gzip: 0.50 kB -dist/utils/index.js 1.10 kB │ gzip: 0.48 kB -dist/uno/preset-ink.js 7.09 kB │ gzip: 1.50 kB -✓ built in 38ms -$ vue-tsc --declaration --emitDeclarationOnly --noEmit false --declarationMap false --composite false -p tsconfig.exports.json - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -$ tsx ../../scripts/finalize-package.ts -Finalized package declarations and global components. -$ pnpm run skill:generate:check -$ tsx ../../scripts/build-agent-skills.ts --check -Generated @inkcre/ui-web#ui-web skill is current. -$ tsx scripts/check-package-contract.ts && tsx scripts/check-package-contract.ts @inkcre/web-design -package: @inkcre/ui-web@1.4.0 -Tarball Contents -dist/App.vue.d.ts -dist/components.d.ts -dist/components/inkAutoForm/inkAutoForm.d.ts -dist/components/inkAutoForm/inkAutoForm.vue.d.ts -dist/components/inkButton/inkButton.d.ts -dist/components/inkButton/inkButton.vue.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.vue.d.ts -dist/components/inkDialog/inkDialog.d.ts -dist/components/inkDialog/inkDialog.vue.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.vue.d.ts -dist/components/inkDropdown/inkDropdown.d.ts -dist/components/inkDropdown/inkDropdown.vue.d.ts -dist/components/inkField/inkField.d.ts -dist/components/inkField/inkField.vue.d.ts -dist/components/inkForm/inkForm.d.ts -dist/components/inkForm/inkForm.vue.d.ts -dist/components/inkHeader/inkHeader.d.ts -dist/components/inkHeader/inkHeader.vue.d.ts -dist/components/inkImage/inkImage.d.ts -dist/components/inkImage/inkImage.vue.d.ts -dist/components/inkInput/inkInput.d.ts -dist/components/inkInput/inkInput.vue.d.ts -dist/components/inkJsonEditor/inkJsonEditor.d.ts -dist/components/inkJsonEditor/inkJsonEditor.vue.d.ts -dist/components/inkJsonEditor/jsonSchemaService.d.ts -dist/components/inkLoading/inkLoading.d.ts -dist/components/inkLoading/inkLoading.vue.d.ts -dist/components/inkPagination/inkPagination.d.ts -dist/components/inkPagination/inkPagination.vue.d.ts -dist/components/inkPicker/inkPicker.d.ts -dist/components/inkPicker/inkPicker.vue.d.ts -dist/components/inkPlaceholder/inkPlaceholder.d.ts -dist/components/inkPlaceholder/inkPlaceholder.vue.d.ts -dist/components/inkPopup/inkPopup.d.ts -dist/components/inkPopup/inkPopup.vue.d.ts -dist/components/inkScrim/inkScrim.d.ts -dist/components/inkScrim/inkScrim.vue.d.ts -dist/components/inkSwitch/inkSwitch.d.ts -dist/components/inkSwitch/inkSwitch.vue.d.ts -dist/components/inkTextarea/inkTextarea.d.ts -dist/components/inkTextarea/inkTextarea.vue.d.ts -dist/components/inkTooltip/inkTooltip.d.ts -dist/components/inkTooltip/inkTooltip.vue.d.ts -dist/composables/use-async-boolean.d.ts -dist/composables/use-field-control.d.ts -dist/composables/use-native-dialog.d.ts -dist/composables/use-optional-model.d.ts -dist/i18n.d.ts -dist/index.css -dist/index.d.ts -dist/index.js -dist/locales/en.d.ts -dist/locales/index.d.ts -dist/locales/index.js -dist/locales/zh-CN.d.ts -dist/main.d.ts -dist/public-components.d.ts -dist/router.d.ts -dist/uno/preset-ink.d.ts -dist/uno/preset-ink.js -dist/utils/index.d.ts -dist/utils/index.js -dist/utils/json.d.ts -dist/utils/token-types.d.ts -dist/utils/vue-props.d.ts -dist/version.d.ts -MIGRATION.md -package.json -README.md -skills/ui-web/references/common-mistakes.md -skills/ui-web/references/component-map.md -skills/ui-web/references/components/InkAutoForm.md -skills/ui-web/references/components/InkButton.md -skills/ui-web/references/components/InkDatetimePickerView.md -skills/ui-web/references/components/InkDialog.md -skills/ui-web/references/components/InkDoubleCheck.md -skills/ui-web/references/components/InkDropdown.md -skills/ui-web/references/components/InkField.md -skills/ui-web/references/components/InkForm.md -skills/ui-web/references/components/InkHeader.md -skills/ui-web/references/components/InkImage.md -skills/ui-web/references/components/InkInput.md -skills/ui-web/references/components/InkJsonEditor.md -skills/ui-web/references/components/InkLoading.md -skills/ui-web/references/components/InkPagination.md -skills/ui-web/references/components/InkPicker.md -skills/ui-web/references/components/InkPlaceholder.md -skills/ui-web/references/components/InkPopup.md -skills/ui-web/references/components/InkScrim.md -skills/ui-web/references/components/InkSwitch.md -skills/ui-web/references/components/InkTextarea.md -skills/ui-web/references/components/InkTooltip.md -skills/ui-web/references/composition-recipes.md -skills/ui-web/references/integration.md -skills/ui-web/references/styling-and-themes.md -skills/ui-web/SKILL.md -styles/_functions.scss -styles/_mixins.scss -styles/index.scss -styles/README.md -styles/tokens/_comp.scss -styles/tokens/_ref.scss -styles/tokens/_sys.scss -styles/uno/preset-ink.ts -Tarball Details -/var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-ui-contract-hUotyx/source-pack/inkcre-ui-web-1.4.0.tgz - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -Packed contract passed for @inkcre/ui-web@1.4.0. -package: @inkcre/ui-web@1.4.0 -Tarball Contents -dist/App.vue.d.ts -dist/components.d.ts -dist/components/inkAutoForm/inkAutoForm.d.ts -dist/components/inkAutoForm/inkAutoForm.vue.d.ts -dist/components/inkButton/inkButton.d.ts -dist/components/inkButton/inkButton.vue.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.vue.d.ts -dist/components/inkDialog/inkDialog.d.ts -dist/components/inkDialog/inkDialog.vue.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.vue.d.ts -dist/components/inkDropdown/inkDropdown.d.ts -dist/components/inkDropdown/inkDropdown.vue.d.ts -dist/components/inkField/inkField.d.ts -dist/components/inkField/inkField.vue.d.ts -dist/components/inkForm/inkForm.d.ts -dist/components/inkForm/inkForm.vue.d.ts -dist/components/inkHeader/inkHeader.d.ts -dist/components/inkHeader/inkHeader.vue.d.ts -dist/components/inkImage/inkImage.d.ts -dist/components/inkImage/inkImage.vue.d.ts -dist/components/inkInput/inkInput.d.ts -dist/components/inkInput/inkInput.vue.d.ts -dist/components/inkJsonEditor/inkJsonEditor.d.ts -dist/components/inkJsonEditor/inkJsonEditor.vue.d.ts -dist/components/inkJsonEditor/jsonSchemaService.d.ts -dist/components/inkLoading/inkLoading.d.ts -dist/components/inkLoading/inkLoading.vue.d.ts -dist/components/inkPagination/inkPagination.d.ts -dist/components/inkPagination/inkPagination.vue.d.ts -dist/components/inkPicker/inkPicker.d.ts -dist/components/inkPicker/inkPicker.vue.d.ts -dist/components/inkPlaceholder/inkPlaceholder.d.ts -dist/components/inkPlaceholder/inkPlaceholder.vue.d.ts -dist/components/inkPopup/inkPopup.d.ts -dist/components/inkPopup/inkPopup.vue.d.ts -dist/components/inkScrim/inkScrim.d.ts -dist/components/inkScrim/inkScrim.vue.d.ts -dist/components/inkSwitch/inkSwitch.d.ts -dist/components/inkSwitch/inkSwitch.vue.d.ts -dist/components/inkTextarea/inkTextarea.d.ts -dist/components/inkTextarea/inkTextarea.vue.d.ts -dist/components/inkTooltip/inkTooltip.d.ts -dist/components/inkTooltip/inkTooltip.vue.d.ts -dist/composables/use-async-boolean.d.ts -dist/composables/use-field-control.d.ts -dist/composables/use-native-dialog.d.ts -dist/composables/use-optional-model.d.ts -dist/i18n.d.ts -dist/index.css -dist/index.d.ts -dist/index.js -dist/locales/en.d.ts -dist/locales/index.d.ts -dist/locales/index.js -dist/locales/zh-CN.d.ts -dist/main.d.ts -dist/public-components.d.ts -dist/router.d.ts -dist/uno/preset-ink.d.ts -dist/uno/preset-ink.js -dist/utils/index.d.ts -dist/utils/index.js -dist/utils/json.d.ts -dist/utils/token-types.d.ts -dist/utils/vue-props.d.ts -dist/version.d.ts -MIGRATION.md -package.json -README.md -skills/ui-web/references/common-mistakes.md -skills/ui-web/references/component-map.md -skills/ui-web/references/components/InkAutoForm.md -skills/ui-web/references/components/InkButton.md -skills/ui-web/references/components/InkDatetimePickerView.md -skills/ui-web/references/components/InkDialog.md -skills/ui-web/references/components/InkDoubleCheck.md -skills/ui-web/references/components/InkDropdown.md -skills/ui-web/references/components/InkField.md -skills/ui-web/references/components/InkForm.md -skills/ui-web/references/components/InkHeader.md -skills/ui-web/references/components/InkImage.md -skills/ui-web/references/components/InkInput.md -skills/ui-web/references/components/InkJsonEditor.md -skills/ui-web/references/components/InkLoading.md -skills/ui-web/references/components/InkPagination.md -skills/ui-web/references/components/InkPicker.md -skills/ui-web/references/components/InkPlaceholder.md -skills/ui-web/references/components/InkPopup.md -skills/ui-web/references/components/InkScrim.md -skills/ui-web/references/components/InkSwitch.md -skills/ui-web/references/components/InkTextarea.md -skills/ui-web/references/components/InkTooltip.md -skills/ui-web/references/composition-recipes.md -skills/ui-web/references/integration.md -skills/ui-web/references/styling-and-themes.md -skills/ui-web/SKILL.md -styles/_functions.scss -styles/_mixins.scss -styles/index.scss -styles/README.md -styles/tokens/_comp.scss -styles/tokens/_ref.scss -styles/tokens/_sys.scss -styles/uno/preset-ink.ts -Tarball Details -/var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-ui-contract-iktMMo/source-pack/inkcre-ui-web-1.4.0.tgz -npm warn Unknown env config "manage-package-manager-versions". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. -npm notice -npm notice 📦 @inkcre/web-design@1.4.0 -npm notice Tarball Contents -npm notice 9.2kB MIGRATION.md -npm notice 3.2kB README.md -npm notice 331B dist/App.vue.d.ts -npm notice 1.4kB dist/components.d.ts -npm notice 2.3kB dist/components/inkAutoForm/inkAutoForm.d.ts -npm notice 1.8kB dist/components/inkAutoForm/inkAutoForm.vue.d.ts -npm notice 1.4kB dist/components/inkButton/inkButton.d.ts -npm notice 3.6kB dist/components/inkButton/inkButton.vue.d.ts -npm notice 1.7kB dist/components/inkDatetimePickerView/inkDatetimePickerView.d.ts -npm notice 2.6kB dist/components/inkDatetimePickerView/inkDatetimePickerView.vue.d.ts -npm notice 1.4kB dist/components/inkDialog/inkDialog.d.ts -npm notice 4.0kB dist/components/inkDialog/inkDialog.vue.d.ts -npm notice 592B dist/components/inkDoubleCheck/inkDoubleCheck.d.ts -npm notice 1.9kB dist/components/inkDoubleCheck/inkDoubleCheck.vue.d.ts -npm notice 2.2kB dist/components/inkDropdown/inkDropdown.d.ts -npm notice 5.0kB dist/components/inkDropdown/inkDropdown.vue.d.ts -npm notice 1.0kB dist/components/inkField/inkField.d.ts -npm notice 3.0kB dist/components/inkField/inkField.vue.d.ts -npm notice 1.5kB dist/components/inkForm/inkForm.d.ts -npm notice 1.3kB dist/components/inkForm/inkForm.vue.d.ts -npm notice 496B dist/components/inkHeader/inkHeader.d.ts -npm notice 1.7kB dist/components/inkHeader/inkHeader.vue.d.ts -npm notice 1.3kB dist/components/inkImage/inkImage.d.ts -npm notice 2.5kB dist/components/inkImage/inkImage.vue.d.ts -npm notice 1.8kB dist/components/inkInput/inkInput.d.ts -npm notice 4.9kB dist/components/inkInput/inkInput.vue.d.ts -npm notice 2.2kB dist/components/inkJsonEditor/inkJsonEditor.d.ts -npm notice 4.7kB dist/components/inkJsonEditor/inkJsonEditor.vue.d.ts -npm notice 434B dist/components/inkJsonEditor/jsonSchemaService.d.ts -npm notice 379B dist/components/inkLoading/inkLoading.d.ts -npm notice 998B dist/components/inkLoading/inkLoading.vue.d.ts -npm notice 513B dist/components/inkPagination/inkPagination.d.ts -npm notice 1.3kB dist/components/inkPagination/inkPagination.vue.d.ts -npm notice 2.0kB dist/components/inkPicker/inkPicker.d.ts -npm notice 3.4kB dist/components/inkPicker/inkPicker.vue.d.ts -npm notice 764B dist/components/inkPlaceholder/inkPlaceholder.d.ts -npm notice 2.0kB dist/components/inkPlaceholder/inkPlaceholder.vue.d.ts -npm notice 666B dist/components/inkPopup/inkPopup.d.ts -npm notice 2.1kB dist/components/inkPopup/inkPopup.vue.d.ts -npm notice 510B dist/components/inkScrim/inkScrim.d.ts -npm notice 1.9kB dist/components/inkScrim/inkScrim.vue.d.ts -npm notice 972B dist/components/inkSwitch/inkSwitch.d.ts -npm notice 2.5kB dist/components/inkSwitch/inkSwitch.vue.d.ts -npm notice 1.7kB dist/components/inkTextarea/inkTextarea.d.ts -npm notice 3.9kB dist/components/inkTextarea/inkTextarea.vue.d.ts -npm notice 403B dist/components/inkTooltip/inkTooltip.d.ts -npm notice 1.5kB dist/components/inkTooltip/inkTooltip.vue.d.ts -npm notice 221B dist/composables/use-async-boolean.d.ts -npm notice 472B dist/composables/use-field-control.d.ts -npm notice 161B dist/composables/use-native-dialog.d.ts -npm notice 645B dist/composables/use-optional-model.d.ts -npm notice 244B dist/i18n.d.ts -npm notice 47.3kB dist/index.css -npm notice 778B dist/index.d.ts -npm notice 300.2kB dist/index.js -npm notice 510B dist/locales/en.d.ts -npm notice 1.3kB dist/locales/index.d.ts -npm notice 988B dist/locales/index.js -npm notice 510B dist/locales/zh-CN.d.ts -npm notice 0B dist/main.d.ts -npm notice 91.6kB dist/public-components.d.ts -npm notice 357B dist/router.d.ts -npm notice 119B dist/uno/preset-ink.d.ts -npm notice 7.1kB dist/uno/preset-ink.js -npm notice 29B dist/utils/index.d.ts -npm notice 1.1kB dist/utils/index.js -npm notice 66B dist/utils/json.d.ts -npm notice 57B dist/utils/token-types.d.ts -npm notice 1.4kB dist/utils/vue-props.d.ts -npm notice 40B dist/version.d.ts -npm notice 5.4kB package.json -npm notice 3.4kB skills/ui-web/references/common-mistakes.md -npm notice 2.4kB skills/ui-web/references/component-map.md -npm notice 1.8kB skills/ui-web/references/components/InkAutoForm.md -npm notice 1.6kB skills/ui-web/references/components/InkButton.md -npm notice 1.2kB skills/ui-web/references/components/InkDatetimePickerView.md -npm notice 1.6kB skills/ui-web/references/components/InkDialog.md -npm notice 1.0kB skills/ui-web/references/components/InkDoubleCheck.md -npm notice 1.5kB skills/ui-web/references/components/InkDropdown.md -npm notice 1.2kB skills/ui-web/references/components/InkField.md -npm notice 1.2kB skills/ui-web/references/components/InkForm.md -npm notice 977B skills/ui-web/references/components/InkHeader.md -npm notice 1.2kB skills/ui-web/references/components/InkImage.md -npm notice 1.4kB skills/ui-web/references/components/InkInput.md -npm notice 1.5kB skills/ui-web/references/components/InkJsonEditor.md -npm notice 921B skills/ui-web/references/components/InkLoading.md -npm notice 1.1kB skills/ui-web/references/components/InkPagination.md -npm notice 1.5kB skills/ui-web/references/components/InkPicker.md -npm notice 1.2kB skills/ui-web/references/components/InkPlaceholder.md -npm notice 1.2kB skills/ui-web/references/components/InkPopup.md -npm notice 1.2kB skills/ui-web/references/components/InkScrim.md -npm notice 1.4kB skills/ui-web/references/components/InkSwitch.md -npm notice 1.2kB skills/ui-web/references/components/InkTextarea.md -npm notice 997B skills/ui-web/references/components/InkTooltip.md -npm notice 5.9kB skills/ui-web/references/composition-recipes.md -npm notice 1.5kB skills/ui-web/references/integration.md -npm notice 2.7kB skills/ui-web/references/styling-and-themes.md -npm notice 3.3kB skills/ui-web/SKILL.md -npm notice 1.6kB styles/_functions.scss -npm notice 1.8kB styles/_mixins.scss -npm notice 836B styles/index.scss -npm notice 6.4kB styles/README.md -npm notice 605B styles/tokens/_comp.scss -npm notice 3.7kB styles/tokens/_ref.scss -npm notice 2.7kB styles/tokens/_sys.scss -npm notice 8.2kB styles/uno/preset-ink.ts -npm notice Tarball Details -npm notice name: @inkcre/web-design -npm notice version: 1.4.0 -npm notice filename: inkcre-web-design-1.4.0.tgz -npm notice package size: 141.1 kB -npm notice unpacked size: 629.9 kB -npm notice shasum: a91de0717346217411f117544bee19fd43530fd5 -npm notice integrity: sha512-nMeYBHWkU2rR/[...]gpYg0jj0On3rg== -npm notice total files: 106 -npm notice -inkcre-web-design-1.4.0.tgz - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -Packed contract passed for @inkcre/web-design@1.4.0. -$ pnpm --filter @inkcre/ui-web story:build -$ histoire build -Using 9 threads for story collection -stories/feedback/inkLoading.story.vue 689ms (setup:34ms, execute:27ms, run:624ms) -stories/controls/inkHeader.story.vue 689ms (setup:54ms, execute:6ms, run:626ms) -stories/controls/inkSwitch.story.vue 691ms (setup:47ms, execute:13ms, run:627ms) -stories/controls/inkButton.story.vue 694ms (setup:49ms, execute:13ms, run:626ms) -stories/controls/inkPagination.story.vue 712ms (setup:42ms, execute:19ms, run:644ms) -stories/feedback/inkDialog.story.vue 711ms (setup:36ms, execute:25ms, run:645ms) -stories/feedback/inkPopup.story.vue 712ms (setup:42ms, execute:19ms, run:646ms) -stories/feedback/inkPlaceholder.story.vue 741ms (setup:48ms, execute:13ms, run:647ms) -stories/feedback/inkDoubleCheck.story.vue 745ms (setup:47ms, execute:14ms, run:661ms) -stories/feedback/inkTooltip.story.vue 190ms (setup:5ms, execute:0ms, run:173ms) -stories/forms/inkField.story.vue 198ms (setup:6ms, execute:0ms, run:190ms) -stories/forms/inkDropdown.story.vue 239ms (setup:5ms, execute:0ms, run:232ms) -stories/forms/inkTextarea.story.vue 176ms (setup:3ms, execute:0ms, run:169ms) -stories/specialized/inkDatetimePickerView.story.vue 48ms (setup:3ms, execute:0ms, run:42ms) -stories/forms/inkInput.story.vue 224ms (setup:6ms, execute:0ms, run:204ms) -stories/forms/inkPicker.story.vue 224ms (setup:6ms, execute:1ms, run:216ms) -stories/media/inkImage.story.vue 188ms (setup:3ms, execute:0ms, run:183ms) -stories/overlays/inkScrim.story.vue 65ms (setup:4ms, execute:0ms, run:57ms) -stories/forms/inkForm.story.vue 247ms (setup:6ms, execute:1ms, run:236ms) -stories/specialized/inkJsonEditor.story.vue 122ms (setup:4ms, execute:0ms, run:117ms) -stories/forms/inkAutoForm.story.vue 371ms (setup:8ms, execute:1ms, run:361ms) -vite v7.2.7 building client environment for development... -transforming... -[Optimize Shiki] Blocking in build mode: shiki -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (50:39): "setupVanilla" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (51:37): "setupVanilla" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (57:30): "setupVanilla" is not exported by "stories/histoire.setup.ts", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (58:28): "setupVanilla" is not exported by "stories/histoire.setup.ts", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js (47:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js (48:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js (83:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js (84:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js". -✓ 392 modules transformed. -rendering chunks... -computing gzip size... -.histoire/dist/assets/style-D9uc2JmO.css 111.42 kB │ gzip: 17.10 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkloading-story-vue-GySdTfbS.js 0.55 kB │ gzip: 0.32 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-specialized-inkdatetimepickerview-story-vue-D7GsV_KP.js 0.55 kB │ gzip: 0.30 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkloading-story-md-Cw1owKKA.js 0.58 kB │ gzip: 0.47 kB -.histoire/dist/assets/_plugin-vue_export-helper-Dx4B89mq.js 0.63 kB │ gzip: 0.26 kB -.histoire/dist/assets/use-optional-model-BUZ9gOib.js 0.68 kB │ gzip: 0.33 kB -.histoire/dist/assets/BaseEmpty.vue-qqKMlNFY.js 0.70 kB │ gzip: 0.42 kB -.histoire/dist/assets/jsonSchemaService-CAqck9sz.js 0.73 kB │ gzip: 0.43 kB -.histoire/dist/assets/use-async-boolean-BCmM9X7B.js 0.80 kB │ gzip: 0.37 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkheader-story-vue-wR8gawbb.js 0.85 kB │ gzip: 0.35 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkheader-story-md-DiBCALvJ.js 0.85 kB │ gzip: 0.66 kB -.histoire/dist/assets/use-native-dialog-yFbYcFT3.js 0.90 kB │ gzip: 0.42 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkpicker-story-vue-BBRMca5V.js 0.96 kB │ gzip: 0.51 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkpagination-story-md-BAcHG2Nm.js 0.96 kB │ gzip: 0.71 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkfield-story-md-CjJsgRm2.js 0.99 kB │ gzip: 0.71 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkdoublecheck-story-vue-4LbPaHdI.js 1.00 kB │ gzip: 0.50 kB -.histoire/dist/assets/__resolved__virtual_md_stories-media-inkimage-story-md-t1fmGsjf.js 1.06 kB │ gzip: 0.80 kB -.histoire/dist/assets/__resolved__virtual_md_stories-overlays-inkscrim-story-md-BN2-Wr3k.js 1.09 kB │ gzip: 0.81 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkform-story-md-A70qYQVs.js 1.09 kB │ gzip: 0.84 kB -.histoire/dist/assets/story-COqPwWTZ.js 1.26 kB │ gzip: 0.51 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkswitch-story-md-VtjZu42N.js 1.29 kB │ gzip: 0.95 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkbutton-story-md-6DSmE6X3.js 1.30 kB │ gzip: 0.90 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkdialog-story-md-57_Z9tLA.js 1.35 kB │ gzip: 0.97 kB -.histoire/dist/assets/use-field-control-BJW0tbmO.js 1.41 kB │ gzip: 0.62 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkpopup-story-md-CUqUc-hH.js 1.44 kB │ gzip: 0.99 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkpopup-story-vue-ChF9hi-k.js 1.45 kB │ gzip: 0.56 kB -.histoire/dist/assets/__resolved__virtual_md_stories-specialized-inkdatetimepickerview-story-md-DxjeAkJG.js 1.47 kB │ gzip: 1.03 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inktextarea-story-vue-BvcRbGwg.js 1.48 kB │ gzip: 0.53 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkpicker-story-md-C_gFjNSZ.js 1.48 kB │ gzip: 1.06 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkdropdown-story-md-Dqa6jKIx.js 1.52 kB │ gzip: 1.06 kB -.histoire/dist/assets/inkForm-Dr6V89Lk.js 1.53 kB │ gzip: 0.78 kB -.histoire/dist/assets/inkDatetimePickerView.story-DAZxGQHK.js 1.62 kB │ gzip: 0.73 kB -.histoire/dist/assets/__resolved__virtual_md_stories-specialized-inkjsoneditor-story-md-BHs3iUOS.js 1.63 kB │ gzip: 1.13 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkfield-story-vue-BFJH-FD3.js 1.65 kB │ gzip: 0.63 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkswitch-story-vue-CN9ElI4x.js 1.78 kB │ gzip: 0.64 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkautoform-story-md-BG7YvYVI.js 1.81 kB │ gzip: 1.24 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkinput-story-vue-BmpNbX6X.js 1.83 kB │ gzip: 0.75 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inktooltip-story-md-C0ZbW892.js 1.86 kB │ gzip: 0.95 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-overlays-inkscrim-story-vue-BsEXcYIe.js 1.96 kB │ gzip: 0.66 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inktextarea-story-md-o-2fz2YM.js 2.11 kB │ gzip: 1.01 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkdoublecheck-story-md-Co22T3x0.js 2.19 kB │ gzip: 1.09 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inktooltip-story-vue-BcX4jIP4.js 2.26 kB │ gzip: 0.59 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkpagination-story-vue-DoQE01T0.js 2.42 kB │ gzip: 0.62 kB -.histoire/dist/assets/bundle-sandbox-DVUDWSV4.js 2.43 kB │ gzip: 0.97 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkbutton-story-vue-CBFypKMM.js 2.49 kB │ gzip: 0.82 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkdialog-story-vue-BCh5-P7m.js 2.66 kB │ gzip: 0.89 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-media-inkimage-story-vue-CbKFUaKG.js 2.81 kB │ gzip: 0.95 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-specialized-inkjsoneditor-story-vue-B90RM4sU.js 2.90 kB │ gzip: 1.10 kB -.histoire/dist/assets/inkPicker.story-DXEDJ-ey.js 3.02 kB │ gzip: 1.19 kB -.histoire/dist/assets/inkLoading.story-D61fZ0jd.js 3.35 kB │ gzip: 1.11 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkinput-story-md-CIT-zRYz.js 3.37 kB │ gzip: 1.45 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkform-story-vue-6f8ci32I.js 3.41 kB │ gzip: 1.41 kB -.histoire/dist/assets/state-Bi8zzTDU.js 3.49 kB │ gzip: 1.36 kB -.histoire/dist/assets/inkScrim-BSfPkyGI.js 3.50 kB │ gzip: 1.35 kB -.histoire/dist/assets/inkField-XPOg2psw.js 3.63 kB │ gzip: 1.28 kB -.histoire/dist/assets/inkTextarea.story-DWWAfczW.js 3.85 kB │ gzip: 1.08 kB -.histoire/dist/assets/inkButton-B6XIRZMx.js 3.91 kB │ gzip: 1.32 kB -.histoire/dist/assets/inkField.story-CD7obLrT.js 3.99 kB │ gzip: 1.05 kB -.histoire/dist/assets/inkSwitch-k63N3n-Y.js 4.03 kB │ gzip: 1.43 kB -.histoire/dist/assets/inkPopup-p8ig4ImW.js 4.04 kB │ gzip: 1.57 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkdropdown-story-vue-C_DGP0P_.js 4.13 kB │ gzip: 1.22 kB -.histoire/dist/assets/inkTextarea-DsGV_pU5.js 4.22 kB │ gzip: 1.56 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkplaceholder-story-vue-urlY-bsR.js 4.40 kB │ gzip: 1.33 kB -.histoire/dist/assets/inkPopup.story-BWVSW2V4.js 4.57 kB │ gzip: 1.24 kB -.histoire/dist/assets/inkInput.story-Tt5Sz8qQ.js 4.89 kB │ gzip: 1.40 kB -.histoire/dist/assets/inkSwitch.story-DCco-sSf.js 5.00 kB │ gzip: 1.21 kB -.histoire/dist/assets/inkScrim.story-B1Gu-Lic.js 5.14 kB │ gzip: 1.30 kB -.histoire/dist/assets/HomeView.vue-1yGicRTZ.js 5.28 kB │ gzip: 1.89 kB -.histoire/dist/assets/inkHeader.story-D1ALnmPf.js 5.30 kB │ gzip: 1.51 kB -.histoire/dist/assets/inkDoubleCheck.story-C11aX-TH.js 5.81 kB │ gzip: 1.75 kB -.histoire/dist/assets/inkButton.story-toqA5Y3D.js 6.43 kB │ gzip: 1.41 kB -.histoire/dist/assets/inkInput-DTuK_jPX.js 6.47 kB │ gzip: 2.07 kB -.histoire/dist/assets/inkTooltip.story-BXfhmLZS.js 7.79 kB │ gzip: 1.84 kB -.histoire/dist/assets/inkPicker-CUmtUXli.js 8.06 kB │ gzip: 2.53 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkautoform-story-vue-KROePuiW.js 8.33 kB │ gzip: 2.11 kB -.histoire/dist/assets/inkDropdown.story-feJyTfKD.js 8.52 kB │ gzip: 1.94 kB -.histoire/dist/assets/inkForm.story-pWPQH-eV.js 9.80 kB │ gzip: 2.54 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkplaceholder-story-md-CFWfjqvB.js 10.04 kB │ gzip: 2.35 kB -.histoire/dist/assets/responsive-DsyTnMMQ.js 10.53 kB │ gzip: 3.08 kB -.histoire/dist/assets/inkImage.story-CNgDApJe.js 11.64 kB │ gzip: 2.94 kB -.histoire/dist/assets/inkPagination.story-Cy0UJFbt.js 12.30 kB │ gzip: 2.56 kB -.histoire/dist/assets/inkPlaceholder.story-B5drTSAT.js 12.47 kB │ gzip: 2.78 kB -.histoire/dist/assets/inkDialog.story-Bha4UXZG.js 12.67 kB │ gzip: 2.87 kB -.histoire/dist/assets/inkDatetimePickerView-BSctoKht.js 13.80 kB │ gzip: 3.07 kB -.histoire/dist/assets/inkDropdown-CcK3iAhV.js 16.63 kB │ gzip: 4.13 kB -.histoire/dist/assets/inkJsonEditor.story-DS9u9sCv.js 17.09 kB │ gzip: 4.75 kB -.histoire/dist/assets/search-docs-data-J3VkiPnV.js 24.32 kB │ gzip: 10.75 kB -.histoire/dist/assets/inkAutoForm.story-CBAq1XBG.js 30.52 kB │ gzip: 6.46 kB -.histoire/dist/assets/mapping-BqO_2syL.js 36.83 kB │ gzip: 7.85 kB -.histoire/dist/assets/SearchPane.vue-CcOn7fht.js 37.56 kB │ gzip: 7.09 kB -.histoire/dist/assets/bundle-main-C4UeWsb0.js 52.15 kB │ gzip: 14.10 kB -.histoire/dist/assets/StoryView.vue-BPAALruW.js 113.36 kB │ gzip: 20.08 kB -.histoire/dist/assets/vendor-KvnOnrwH.js 1,409.21 kB │ gzip: 353.95 kB -✓ built in 1.63s -✅ Built 21 stories (117 variants) in 9s -[CDN] Added import map to HTML diff --git a/tasks/ui-foundations/b5-evidence/states-dark.png b/tasks/ui-foundations/b5-evidence/states-dark.png deleted file mode 100644 index 6a11bff..0000000 Binary files a/tasks/ui-foundations/b5-evidence/states-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/b5-execution.md b/tasks/ui-foundations/b5-execution.md deleted file mode 100644 index 9e5c4c9..0000000 --- a/tasks/ui-foundations/b5-execution.md +++ /dev/null @@ -1,47 +0,0 @@ -# B5 正式迁移实施记录 - -状态:仓库内已验证,实现已随 B—E 整理为 b9c0bc6;真实发送端与消费者联调待 G 补证。用户于 2026-09-13 要求“处理 B5”,授权按 B4 已选规则完成源、输出、组件、文档、Changeset 与必要验证;B5 实施阶段未提交、推送、发布或修改消费者仓库;后续用户明确授权整理提交,当前提交状态见 [packet](packet.md)。 - -## 执行顺序 - -1. 迁移 Token 角色、单位、透明度及生成器的公开读取关系;在隔离根目录检查。 -2. 收紧导入的已知路径更新和发布分类,复用现有 fixture;真实发送端信息若缺失,明确证据范围。 -3. 迁移全部受影响组件、对应 Story、样式指南、Skill 输入和兼容说明。 -4. 生成并打包,以最终产物复核 B4 场景,执行完整 pnpm check。 - -基线:HEAD c5b230af2461d401fa9dc3ac8d5b356c20b89c46;非本轮改动保留。B4 基线 tarball 与证据归档不覆盖,B5 使用独立实验目录。 - -## 用户补充的验收边界 - -用户在实施期间要求停止继续处理 Firefox 原生 200% 文字放大的专项适配,优先完成 Token、组件和实现的基本质量。自此不再扩展该专项,也不增加浏览器专属补丁。此前已完成的 Firefox 测量作为历史证据保留;后续验证聚焦正式产物的默认布局、公开入口、交互与文档一致性。rem、比例行高、换行和可增长的最小高度属于已认可的通用基础规则,继续保留。 - -## 已完成的正式实现 - -Token 源从 237 个叶节点收敛为 150 个:文本尺寸只保留八个基础角色的四属性,家族和装饰单独选择;补正文与标题需求,统一 rem、比例行高、系统 UI/mono 字体。颜色明确普通前景与 on-primary/on-danger 的配对,移除含糊的 muted,补反馈前景和保留 alpha 的共享 scrim。静态间距尺度、现有 Switch 组件配色和构建时尺寸保持各自责任。 - -生成器复用 Style Dictionary 解析引用,增加仓库输入边界,移除剥离 alpha 的转换。Sass 与 Uno 使用相同运行时文本变量;Uno space/radius 也读取系统变量。产物检查实际发现 Wind3 无法解析原有 kebab 复合颜色键,已按其 camelCase theme 约定修正,并验证对应公开工具类。 - -Figma 导入改为已有叶路径的值提议。遗漏节点及仓库元数据保留,未知路径、类型、引用或说明冲突直接失败;要求显式 patch/minor/major。候选先在临时根验证、生成,成功后才写源、输出和 Changeset;无变化不创建 Changeset,写入失败恢复已有文件。没有新增第二份规范源、通用解析/版本推断框架或依赖。 - -全部 21 个组件已扫描;19 个组件需要样式或必要模板迁移,Form 的组间距和 Loading 的独立尺寸已有合适规则,保留实现。主要变化如下: - -| 范围 | 正式行为 | -| --- | --- | -| Field、Input、Textarea、Dropdown、Picker | 明确 label/body 角色、长文本换行、错误段落间距、带框最小高度、独立 focus;Textarea 可显式 mono。 | -| Button、Switch、Pagination、Header | Button 保留 pending 文本、使用主题状态表面;Switch 两状态共同决定轨道,Pagination 与 Header 保留操作空间及换行。 | -| Popup、Scrim、DoubleCheck、Dialog、Image | 共享半透明遮罩、标题合法前景、单一内边距及有界弹层、图片标题独立底板。 | -| JsonEditor、AutoForm、DatetimePickerView、Tooltip、Placeholder | 对应文本角色与反馈前景迁移;代码字体读取 mono,保留此前模型、日期与校验行为。 | - -全组件取证发现 Dialog 与 DoubleCheck 都存在中心定位下自动宽度过窄、内边距重复的问题。DoubleCheck 按 B4 采用最大 400px;Dialog 沿用同一内边距责任,采用最大 640px;两者窄视口各留 16px。自定义类作用于 Teleport 的实际 dialog 根节点,不能依赖父 scoped 属性。这是通用布局修正,没有引入浏览器专属分支或新 Token。 - -长期说明更新至 tokens/tokens.md、scripts/build-tokens.md、styles/README.md、Story 文档、skill.seed.json 和 MIGRATION.md。恢复了独立样式指南,明确默认表单、角色选择、CSS/Sass/Uno 用法、主题/覆盖边界和已知 client-web 迁移位置。Skill 生成器仅增加配方示例字段,没有扩展为 API 提取框架;通用事实提取仍归 F。 - -使用 `pnpm changeset` 新建 [major Changeset](../../.changeset/cozy-clowns-allow.md),说明破坏性变化和升级方式。package.json 与 pnpm-lock.yaml 相对 B5 开始时哈希未变,没有提升版本、增加依赖、提交、推送或发布。 - -## 验证结果与交接 - -最终 `pnpm check` exit 0:格式、lint、生成物/Skill/Story 一致性、Token 导入 fixture、类型、构建、公开包契约及 Histoire 均通过。共有 21 个 Story、117 个 Variant。包契约覆盖两种包身份,实际 CSS 无缺失 Token,公开 Sass 和 Uno 验证文本属性、零值、装饰、无效角色拒绝、运行时读取和透明度;随包 README/Migration/样式指南的相对链接可解析。 - -最终 tarball 的默认消费页通过:三个容器宽度、浅深主题、动作状态/焦点、Dropdown 选中说明、Switch pending 与状态切换、CSS/Sass/Uno 根覆盖、Teleport 边界、字体回退、JsonEditor 与 Textarea 的 mono、Skill 保存配方成功/拒绝路径。C/D/E 既有原生表单、键盘、模态、日期及 schema 旅程也已用 B5 公开产物重走。人工查看默认表单、深色状态、Dialog 与图片标题截图。详细产物身份、测量、日志和复核方法见 [B5 证据](b5-evidence/README.md)。 - -仓库内 B5 已验证。真实 Figma 发送端代码/payload 未获得,不能声称发送端已经适配;当前仅有受限接收端契约及 fixture 证据。该实际联调和 extension registry 位置、client-web 版本升级由 G 接续;没有修改消费者仓库。用户要求停止的 Firefox 专项不再作为 B5 未完成事项。 diff --git a/tasks/ui-foundations/color-study.html b/tasks/ui-foundations/color-study.html deleted file mode 100644 index 5c4ff9c..0000000 --- a/tasks/ui-foundations/color-study.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - -InKCre · 色调对照 - -
-

InKCre · 色调对照

-

这次只比较黑白灰底色的冷暖。三组使用相同的排版、布局和灰调彩色,便于看清底色如何改变整体感受。色值仅用于本次讨论。

-
- - - -
-
- -
- - diff --git a/tasks/ui-foundations/color-study.png b/tasks/ui-foundations/color-study.png deleted file mode 100644 index c7b5b19..0000000 Binary files a/tasks/ui-foundations/color-study.png and /dev/null differ diff --git a/tasks/ui-foundations/execution-b-e.md b/tasks/ui-foundations/execution-b-e.md deleted file mode 100644 index 31e4226..0000000 --- a/tasks/ui-foundations/execution-b-e.md +++ /dev/null @@ -1,57 +0,0 @@ -# B—E 实施记录 - -用户已授权提交 L0 并实施 B、C、D、E。L0 提交为 `c5b230a`,本次工作分支为 `feat/ui-foundations-components`。本文件持续记录切片、兼容决定与证据,状态索引见 [packet](packet.md)。 - -## 范围与实现顺序 - -B 拥有 Token 主题入口、引用有误的组件 SCSS、既有包契约检查及对应说明;先修现有语义映射和主题优先级,再检查产物引用。C 拥有基础控件、字段上下文与模型 helper;D 拥有 Popup、Dialog、Scrim、DoubleCheck 和日期交互;E 拥有 schema 服务、AutoForm 与 JsonEditor。每组同步已有 Story、说明、Skill seed 和必要生成物。 - -运行时和包检查只修改本仓库。消费者通过只读调用盘点与临时真实浏览器消费页验证;正式下游升级、平台扩展、AI 提取器整体改造仍不在本次范围。 - -## B—E 实施时的决定 - -- 本片先保留已有 Token 命名,错误引用映射到现有语义,不批量增加别名;后续 B3—B5 已重新定义角色并完成正式迁移,见 [B5 记录](b5-execution.md)。显式 light/dark 优先于系统,省略主题或 system 跟随系统。 -- 普通按钮采用显式原生 button 类型,提供 nativeType 提交入口。client-web 的 info-base/list 与 RecallSearch 有依赖默认提交的调用,发布前须迁移为 nativeType="submit";不能将本次发布标作完全兼容的补丁。 -- 保留已有模型命名和可行的兼容入口,新增能力不以重写全部组件为目标。异步结果必须区分请求身份,失败不得伪装为成功。 -- 运行时行为通过临时的浏览器消费页验证,不建立逐组件挂载测试套件。B 的变量完整性放在已有产物契约边界。 - -## 进度 - -B、C、D、E 已实现并验证。组件说明、代表性 Story、Skill seed、生成物和 major Changeset 已更新;最终完整 `pnpm check` 及实际 tarball 的浏览器旅程通过。这些改动随后与 B5 的正式迁移一并整理为 b9c0bc6,未推送或发布。 - -## 已实施的切片 - -| 组 | 实施结果 | 兼容边界 | -| --- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | -| B | 修复无定义变量引用与显式主题优先级;shadow 数值长度转换为 px;现有打包检查验证变量引用完整性;内置图标和工具类随包交付,关闭 UnoCSS preflight。 | 未增加同义 Token,未迁移输入格式。 | -| C | 明确原生按钮类型;标签、输入属性、错误关联与 Form 布局响应;内联 confirm/cancel;Dropdown 键盘和加载身份;Switch 竞态及基础辅助语义。 | Button 默认不再提交;optional-model 统一为父级控制非 undefined 值。 | -| D | 原生 dialog 负责模态焦点与嵌套,保留 modeless;异步期间关闭保护;DoubleCheck 捕获触发;日期草稿、12 小时/星期列及范围处理。 | 日期确认才提交;浮层 DOM 改变,需要支持 dialog 的浏览器。 | -| E | schema 服务和缓存按实例隔离并复制输入;已有值优先,数字草稿和日期字符串边界;根级错误、失败状态与过期校验保护;JsonEditor 原始文本模型与独立 validation。 | JsonEditor 的旧有效 JSON 模型变为原始文本,必须迁移保存入口。 | - -新增共享模块限于字段关联、Promise 布尔状态和原生 dialog 生命周期三个实际复用点;没有新增运行时依赖、overlay manager 或测试框架。为使用 Vue useId,peer 与开发声明收紧为 ^3.5.0,锁文件仅更新这一声明。 - -## 发布与下游 - -新增 [major Changeset](../../.changeset/clean-shrimps-pump.md),保持版本号 1.4.0,尚未执行 version/publish。迁移细节已进入 [随包 MIGRATION](../../packages/web/MIGRATION.md)。client-web 的两个搜索提交按钮和 peerCard JSON.parse setter 是已核实的迁移点;Input inline 的 confirm 现在提供其持久化监听要求的事件。未修改下游仓库,未把本地模拟保存旅程当作下游已升级。 - -F 的 API 提取器改造、G 的最小依赖安装与全部消费者盘点、H 的平台扩展继续留在各组。现有 Skill 输入已更新本轮确定的契约,不宣称 F 全部完成。 - -## 最终验收(2026-09-13) - -`pnpm check` 完整通过:格式、lint、生成物、Skill、Story 覆盖、Token 更新工作流、类型、库构建、两种包身份的契约检查及 Histoire 构建。共 21 个 Story、114 个 Variant。`git diff --check` 通过;Changesets 将本包列为 major,未运行 version 或 publish。 - -浏览器消费页使用 `pnpm pack` 的实际 tarball 解包 JS 与 CSS;由本地 Vite 提供页面,使用既有 Playwright/Chromium 运行,不从生产者组件源码导入。pnpm 为 11.17.0,完整构建使用仓库指定 Node 22.22.3。最终 tarball 路径为 `tmp/inkcre-ui-web-1.4.0.tgz`,SHA-256 为 `255bf8b311bf79e4cccd4e921b52834af7c36a2b8d7533426eefc744c86f247a`。这是本地验收产物,不能作为已发布版本安装身份。 - -| 边界 | 操作与结果 | -| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| 主题与样式 | 系统 light/dark × 应用 light/dark/system/省略共 8 种组合,color-scheme 和实际背景调色板均匹配;阴影非 none,内置菜单/导航图标有有效 mask 和颜色。检查浅色、深色、日期弹层截图。 | -| 原生表单与内联保存 | 普通动作和 Switch 不提交,显式提交有效,必填输入阻止空提交;click 为 MouseEvent。原生属性和标签可定位,Form 布局动态更新。内联 Enter 传出新模型与 confirm,IME Enter 不确认,Escape/失焦不保存。 | -| 控件异步与键盘 | Dropdown 键盘打开、移动和选择成功;替换加载器后旧结果不覆盖新选项,失败可见。Switch 过期 Promise 被忽略,拒绝通过 error 报告而不产生未处理页面异常。Tooltip 在焦点保留时不会因指针离开消失,Escape 可关闭。 | -| 弹层与日期 | 焦点进入、嵌套 Escape 只关闭顶层、关闭后恢复触发焦点;modeless 背景可操作。Dialog pending 阻止 Escape、遮罩和重复确认,过期结果与拒绝均受控。DoubleCheck 阻止原按钮动作,只在 confirm 执行。Picker 取消保留原值,确认提交闰月末日;12 小时列无重复,日期范围夹取后显示与模型一致,倒置范围显示错误。Image 预览可由键盘打开和关闭。 | -| 数据与校验 | 两个不同 schema 的编辑器和两个表单并存有效;保留已有值、0、false 及额外属性。未完成数字保留为无效草稿,空数字删除字段并显示必填根级错误;日期确认后仍是 JSON 字符串。无效 JSON 原文同步到模型且保存按钮禁用;过期远端 schema 响应不覆盖新结果,404 进入 error 并显示诊断,调用方 `$ref` 保持不变,另一实例不受影响。 | - -临时页面位于被忽略的 `packages/web/tmp/`,脚本和日志位于本机 `/tmp/inkcre-*`,不属于永久测试套件。主要日志为 `inkcre-check-final.log`、`inkcre-packed-browser-final.log`、`inkcre-packed-edges-final.log` 和 `inkcre-visual-final.log`。长期复核入口是对应 Story 及上表的操作步骤;临时文件可能被系统清理。 - -验收中修复了三个静态构建未能单独发现的边界:Vue 将 Promise getter 的拒绝送入全局错误处理;语言服务原地改写响应式 schema 的 `$ref`;隐藏 dialog 中原生 select 初始未显示当前选项。现有包契约还拦住了 CommonJS peer 的 ErrorCode 命名导入问题,现改用类型约束的协议常量,Node ESM 与浏览器均通过。 - -验收不涵盖完整浏览器矩阵、读屏软件实测、真实 client-web 持久化、extension registry 升级或远端 CI。组件内置图标已随包交付;应用传入额外动态图标仍由应用 UnoCSS 配置负责。上述边界已同步到长期文档,不把本地证据推广为所有消费者的交付完成。 diff --git a/tasks/ui-foundations/groups.md b/tasks/ui-foundations/groups.md deleted file mode 100644 index b151b95..0000000 --- a/tasks/ui-foundations/groups.md +++ /dev/null @@ -1,164 +0,0 @@ -# 分组方案与验收边界 - -A、B1—B5、C/D/E 已完成仓库内验证并整理提交,L1 的设计与迁移见 [实施方案](plan-l1-token-system.md) 和 [B5 记录](b5-execution.md)。L3 的 F0—F3、G2 与 G3 本地交付已验证,G1 的外部位置与 G3 的真实迁移仍有未完成项,见 [L3 执行记录](l3-execution.md);H 的平台实现暂缓。状态、授权与进展统一见 [工作包入口](packet.md)。以下发现保留初审基线,B—E 的最终行为、兼容决定和证据见 [实施记录](execution-b-e.md)。组是责任边界,组内切片才是可独立评审、验证和交付的单位。 - -## A 开发约定与文档入口 - -**目标:** 人与 AI 能找到真实命令、当前规则及正确的维护入口,不被历史规划或过时指南误导。 - -**初审发现:** [根 README](../../README.md) 存在无对应脚本的 `pnpm test`;[包级 AGENTS](../../packages/web/AGENTS.md) 和 [组件 AGENTS](../../packages/web/src/components/AGENTS.md) 仍要求 Vitest 或组件测试,与根约定冲突;组件指南禁止 `unknown`。Token 生成文档使用旧路径,Migration 仍带有历史执行指令。 - -**范围与切片:** A1 校准 AGENTS、README、组件编写指南和准确命令;A2 清理 Token 生成文档、Migration 中被误当成当前操作的历史信息。只修现有文档与入口,不新增独立文档站,不把任务历史整体重写为新规范。 - -**验收:** 当前维护步骤指向存在的命令和文件,各层指南不再互相冲突;历史证据和当前指南能清楚区分。源码 API 的准确示例归 F,各组件变更同时维护自己的现有文档。 - -**依赖与决策:** 可先执行。指南整理由已有仓库规则裁定;如要改变验证政策本身,须作为新的明确决策,不夹带在文字清理中。 - -**执行结果(2026-09-12):** A1、A2 已完成,修改范围、基线同步和验证结果见[工作包执行记录](packet.md#l0-执行结果)。原文档中的测试命令、指南冲突、无效路径及历史操作要求已校正;未改变验证政策、组件行为或生成器。 - -## B Token 与主题契约 - -**目标:** 设计角色、默认选择与上下文变化可解释,设计依赖在各消费入口按约定生效。原定 B1/B2 已完成的工程目标是库自身样式只引用有效 Token、显式主题选择覆盖系统偏好,以及明确输入格式与生成输出边界;后续 B3/B4/B5 补足设计与响应契约。 - -**已观察:** 构建 CSS 中有 26 个 `--sys-*` 引用没有库内定义;[AutoForm 样式](../../packages/web/src/components/inkAutoForm/inkAutoForm.scss) 中的 `spacing`、`body-md` 等是实例。另见 [Placeholder](../../packages/web/src/components/inkPlaceholder/inkPlaceholder.scss)、[Textarea](../../packages/web/src/components/inkTextarea/inkTextarea.scss)、[Image](../../packages/web/src/components/inkImage/inkImage.scss)、[DatetimePickerView](../../packages/web/src/components/inkDatetimePickerView/inkDatetimePickerView.scss)。[主题入口](../../packages/web/styles/index.scss) 将显式 dark 放在系统 dark 媒体条件内。 - -**范围与切片:** B1 对照真实设计语义修复无效引用和主题优先级;B2 在现有生成/产物边界增加 Token 引用完整性证据,写清输入格式、主题、命名及单位约定。修复命名不等于批量增加同义 Token。 - -**验收:** 库内 Token 引用均有定义,或是明确约定且由消费者提供的扩展值;验证系统 light/dark 与应用 light/dark/system 选择的组合,并检查受影响组件的实际视觉结果。生成结果可重现。 - -**依赖与决策:** B1 可先执行。尚未确定现有无效名称应映射哪个语义值的地方,需要核对 token 源和设计用途。全量 DTCG 格式迁移和 Dart 输出不属于本组默认范围,相关演进归 H。 - -### Token 体系复审(2026-09-13,讨论中) - -用户指出 L1 的问题超出无效变量和消费契约,要求评议 `web-ui-design-token-system-why-what.md`。最初的 Nextcloud 路径读取被系统拒绝;用户随后提供 `/Users/lanzhijiang/Downloads/web-ui-design-token-system-why-what.md`,现已完整读取。该稿标注为 Why & What 设计方向草案,不预设命名、工具或迁移方案;文件 SHA-256 为 `a8119b3ab7663a0986a97f1b93eca27456a0940ac83c607734f148f0b8ccdba1`。用户已认可下述判断与切片,并要求细化实施方案;具体命名、数值及响应策略仍需按 B3/B4 的步骤确定。 - -本轮仓库复核支持将设计合理性单独讨论: - -- `sys.color.text.primary` 实际用于 InkButton 的 primary 背景之上,与容易被理解为主要正文的名称存在歧义;同组 `danger-on` 则明确表达背景配对。应先定义前景、背景及状态的使用关系,再决定命名。 -- 生成器将 ref 的 space、radius、size、font 等整体复制到 sys.$base。这些输出增加了命名空间,却没有独立表达系统决策。是否保留别名应由实际覆盖、兼容或设计变化需求决定。 -- 源中存在 primary-hover 和 danger-hover,而 InkButton 对应 hover/active 使用 opacity: 0.9;深色 text.base 与 text.muted 同值。这些是已观察的实现事实,说明状态责任与层级表达需要核对,不能仅凭变量有定义便认定设计成立;同值本身也不自动构成缺陷。 -- 按 `type/value` 叶节点统计,源含 237 个条目,均无非空 description。单凭源文件不足以让消费者理解适用背景、状态及替代关系;不据此推断其他文档完全没有说明。 - -**对草案的判断:** 赞同以设计意图、依赖关系和适用条件作为一致性的对象。草案已经允许固定值、离散尺度、局部 CSS,并明确四种职责不等于四个代码层,因此不能将其解读为动态化全部 Token 或建设通用规则引擎。基础尺度本身也能表达有意选择的视觉节奏,是否升级为响应规则仍需实际场景证明。 - -诊断需更精确:现有源已经包含语义颜色、字体角色和主题映射;本地 client-web 的 `apps/client-web/src/views/info-base/list/list.scss` 也已使用 clamp 表达页面留白。当前问题包含设计规则缺口,以及已有规则在生成和消费中的不一致,不能简单归结为只存在数值表或缺少流式布局。 - -补充复核与隔离生成证据: - -- [Sass apply-font](../../packages/web/styles/_mixins.scss) 默认只输出字号、字重、行高、字距,而 [Uno 字体规则](../../packages/web/styles/uno/preset-ink.ts) 还输出字体家族和非 none 的装饰。使用现有 Sass 与 UnoCSS 的一次性生成实验确认:同一个 `label-lg-underlined`,Sass 没有 font-family/text-decoration,Uno 有 Inter 和 underline。这里已是可观察的输出差异,不仅是模型讨论。 -- 同次实验中 Uno `p-md` 输出 `padding:16px`;组件 Sass 使用 `var(--sys-space-md)`。只有在设计明确支持运行时修改该尺度时,才要求两者共同响应;在决定覆盖能力前,不把全部字面量输出一概判错。 -- [Skill seed](../../packages/web/skill.seed.json) 将“硬编码一个已有 Token 值”列为常见错误。这会鼓励按数值相等建立依赖,应在新规则确定后改为按设计角色选择,并说明合法的局部规则。随包指南还需给出默认方案和少量允许的变化,避免让每个消费者 Agent 自行推导设计系数。 - -建议在草案原则之上明确三个落地条件:设计系统提供可直接使用的默认选择;公开覆盖能力注明作用域、优先级及求值时机;新增响应机制以实际内容、容器和用户设置下的改善为依据。跨平台共享语义角色和行为要求,具体 CSS 表达式由 Web 拥有,不能直接承诺其等同 Flutter 或 uniapp 的实现。 - -用户已认可后续切片如下;[实施方案](plan-l1-token-system.md) 进一步定义其步骤、交付物、文件责任和验收,该表保留切片定义,当前执行结果见表后的 B3/B4/B5 记录: - -| 切片 | 交付与范围 | 验收依据 | -| ---- | ---------- | -------- | -| B3 设计角色与响应契约 | 分别明确 typography、spacing、color 的默认选择、相关上下文、允许变化、边界和责任;包括字体继承、前景背景配对及控件状态。 | 能解释哪些属性应一起变化,哪些应保持;固定值与响应行为都有实际用途。 | -| B4 代表场景验证 | 用现有 Input/Field/Form 验证文字与控件尺寸,用 Button 验证颜色和状态,用真实下游页面验证容器与留白。先做最小实验,不新增 Card 等组件作为前提。 | 窄容器、长中文/英文、文字放大、浅深主题、错误及禁用状态下内容与功能可用,视觉结果经过人工判断。 | -| B5 源结构、输出与迁移 | 根据 B3/B4 的已确定规则调整 Token 源、Sass/Uno 输出、文档、Skill 与消费迁移;先明确构建时配置和运行时覆盖分别支持什么。 | 同一公开角色在各入口兑现相同契约,必要依赖按预期传播,发布兼容边界清楚。 | - -这些切片替代上一轮暂定的 B3/B4 划分。原定 B1/B2 保留工程修复和验证结果,不能代表上述设计工作完成。F 继续拥有通用 API 提取机制,B5 拥有本轮设计消费说明;H 继续由真实消费者触发非 Web 输出,跨平台可共享的语义不因此推迟到 H。 - -**B3 执行结果:** 用户要求“开始 B3”后,已完成 B3.1—B3.3。最新角色、默认候选、维护/覆盖责任和 B4 实验编号由 [B3 候选契约](b3-design-contracts.md) 统一记录,实际调用与计算证据见 [盘点清单](b3-role-inventory.md)。本节保留此前评议;它不替代已收敛的 B3 交付,也不能被理解为 B4 的视觉验证已经完成。 - -**B4 执行结果:** 用户授权“做 b4”后,已完成所有编号实验的裁决。已选规则、修订原因与实际证据由 [B4 场景验证](b4-validation.md) 统一记录;当时正式实现尚未迁移,后续结果见 B5。保留静态基础尺度,新增文本角色有场景依据,修订文字控件几何、Switch 状态尺寸占位、合法颜色配对及默认消费指南。 - -草案中的关键技术边界已对照一手资料核实:[DTCG 2025.10](https://www.designtokens.org/tr/2025.10/format/) 的命名值、引用与复合值,[CSS Values](https://www.w3.org/TR/css-values-4/#font-relative-lengths) 的相对单位及 clamp 规则,[容器单位](https://www.w3.org/TR/css-conditional-5/#container-lengths) 的祖先依赖及小视口回退,以及 [文本缩放](https://www.w3.org/WAI/WCAG22/Understanding/resize-text.html)、[颜色混合](https://www.w3.org/TR/css-color-5/#color-mix) 与 [对比度](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html) 的不同职责。没有依据将公式或特定 CSS 单位视为视觉或可访问性通过证明。本轮只做阅读、只读调查、隔离生成和工作包编辑,没有修改生产源码、外部草案或消费者。 - -**B5 执行结果:** 仓库内已验证,详见 [实施记录](b5-execution.md)。源、生成器、组件、Story、Skill、迁移说明和 major Changeset 已完成,完整检查及默认产物消费通过。用户要求停止 Firefox 原生文字放大专项,后续不以极端场景扩展适配。真实发送端与消费者联调证据仍归 G。 - -## C 基础控件与表单上下文 - -**目标:** 基础控件遵循可预期的原生行为,字段信息可被辅助技术识别,状态和事件能被消费者可靠控制。 - -**已观察:** [Button](../../packages/web/src/components/inkButton/inkButton.vue)、[Switch](../../packages/web/src/components/inkSwitch/inkSwitch.vue)、[Pagination](../../packages/web/src/components/inkPagination/inkPagination.vue) 未显式设置原生按钮 type;Button 的 `type` 已表示外形。[Field](../../packages/web/src/components/inkField/inkField.vue) 使用 span 标签,[Input](../../packages/web/src/components/inkInput/inkInput.vue) 和 [Textarea](../../packages/web/src/components/inkTextarea/inkTextarea.vue) 缺少标签、原生约束与错误关联。[Form](../../packages/web/src/components/inkForm/inkForm.vue) 提供的是初始 `computed.value` 对象。两套 optional-model helper 语义不同,分别位于 [composables](../../packages/web/src/composables/use-optional-model.ts) 和 [utils](../../packages/web/src/utils/vue-props.ts)。 - -**下游证据:** 本地 client-web 的 `apps/client-web/src/components/peer/peerCard/peerCard.vue` 监听 Input 的 `confirm`,而生产者当前只发出 `update:modelValue`。需核对持久化流程,不能仅将监听器删除后视为完成。 - -**范围与切片:** C1 普通动作与提交、disabled/pending、click 事件边界;C2 字段关联、属性透传、Form 上下文响应性和内联编辑事件;C3 Dropdown 的键盘打开/选择/关闭,以及 Switch、Pagination、Tooltip、Header、Image、Loading 的基础交互与可访问语义。只在既有 helper 调用规则明确后消除重复,不强制全部组件切换到一种代码写法。 - -**验收:** 普通按钮和开关不误提交;显式提交仍可用;控件能被标签定位,键盘可操作,受控更新和布局更新符合契约;确认内联编辑实际触发了消费者要求的保存行为。按真实旅程验收,不建立逐 props/emits 断言套件。 - -**依赖与决策:** C1 必须盘点依赖默认提交的调用;C2 需选择内联编辑的提交事件与取消行为。外部消费者修改由 G 协调。B 的样式修复可独立进行,但组件视觉验收应使用修正后的 Token。 - -## D 浮层、确认与日期交互 - -**目标:** 模态/非模态的责任、焦点生命周期、确认取消以及异步状态明确,不让每个消费者重复修补。 - -**已观察:** [Dialog](../../packages/web/src/components/inkDialog/inkDialog.vue) 和 [Popup](../../packages/web/src/components/inkPopup/inkPopup.vue) 没有完整的标准模态键盘与焦点行为。Dialog 的 Promise 模型没有阻止旧结果覆盖较新状态,watcher 调用处未接住拒绝。[Picker](../../packages/web/src/components/inkPicker/inkPicker.vue) 每次选择立即更新模型,Cancel 和 Confirm 都只关闭;日期字符串会导致渲染异常。[DoubleCheck](../../packages/web/src/components/inkDoubleCheck/inkDoubleCheck.vue) 实际是确认弹层,不是文档所描述的简单二次点击控件。 - -**范围与切片:** D1 明确 Dialog、Popup、Scrim、DoubleCheck 的责任,补标准模态与保留 modeless 行为;D2 明确异步操作期间的关闭、取消、失败与重复操作语义;D3 明确 Picker 的草稿/提交、空值、Date 输入和日期视图边界。Image 的浮层交互随 D1 核对,基础触发语义归 C。 - -**验收:** 焦点进入、约束、恢复及 Escape 符合所选模式,modeless 不意外限制背景操作;取消不产生用户未确认的提交,异步旧结果不覆盖较新状态;日期选择和外部值更新符合确定的输入契约。 - -**依赖与决策:** 复用 C 的按钮和状态契约,不引入第二套。布尔模型加显式 pending、保留或迁移 Promise 模型、原生 dialog 或现有实现增强,均需在具体切片中比较兼容影响后决定。标准交互优先由库负责;不默认建立通用 overlay manager。 - -## E Schema 表单与 JSON 编辑 - -**目标:** 保护已有用户数据,让校验、编辑和持久化之间的信息完整,多实例互不污染。 - -**已复现:** [AutoForm](../../packages/web/src/components/inkAutoForm/inkAutoForm.vue) 初始化时 schema 默认值优先于已有值;数字输入成为字符串,0 的显示还受 `|| ''` 影响;日期字符串直接传给 Date Picker。其 [校验函数](../../packages/web/src/components/inkAutoForm/inkAutoForm.ts) 将类型错误归入未显示的 root,服务异常返回有效。[共享 schema service](../../packages/web/src/components/inkJsonEditor/jsonSchemaService.ts) 配置会被另一个实例覆盖。 - -**源码风险:** [JsonEditor](../../packages/web/src/components/inkJsonEditor/inkJsonEditor.vue) 只在 JSON 语法有效时更新模型,用户输入无效文本时父级保留旧值。是否造成实际误保存要在消费者保存旅程确认,不能将风险描述为已观察的数据丢失。 - -**范围与切片:** E1 schema 服务与文档身份的实例隔离;E2 AutoForm 的已有值优先、primitive 转换、schema 变化和错误展示;E3 JsonEditor 的编辑文本、有效结果、校验状态与外部更新契约。检查现有异步校验顺序是否允许旧结果覆盖新输入。 - -**验收:** 两个不同 schema 的编辑器/表单并存时互不影响;已有值、0、false 不被默认值和字符串转换丢失;数字和日期按公开契约处理;错误和校验不可用可见;保存操作不会把未完成输入悄悄当作旧有效值。 - -**依赖与决策:** E1 可独立优先执行。E2 日期边界依赖 D3,基础字段语义复用 C,但这不应阻塞默认值覆盖、错误展示等独立修复。E3 的模型是否承载原始文本是公开 API 决策,需要核对下游。默认只兑现现有扁平 primitive schema,不增加嵌套或条件表单框架。 - -## F AI 消费文档与示例 - -**目标:** 消费者 Agent 和工程师通过已安装包找到完整、准确、足够精简的设计判断、API 与组合方法;维护 Agent 从仓库入口读取共同设计规则,能够解释和维护这些承诺。 - -**已确认并实施(2026-09-13):** 用户确认共同 DESIGN.md 的定位及 F/G 切片并授权 L3。根级源、随包副本、API 事实与可检查配方已经交付;设计论证保留在 [L3 方案](plan-l3-design-docs.md),当前结果见 [执行记录](l3-execution.md)。 - -**已有基础:** B—E/B5 已校正组件选型和行为说明,包含 DoubleCheck 的实际弹层语义;补充默认表单、文本角色、主题覆盖、迁移指南及一份完整保存配方。随包 Skill 的分层结构与 Intent 本地打包发现检查继续保留。 - -**实施前缺口:** [Skill 生成器](../../scripts/build-agent-skills.ts) 的 API 事实主要从 `*Props`/`*Emits` 提取,尚未纳入 Vue `defineModel`。[Popup 参考](../../packages/web/skills/ui-web/references/components/InkPopup.md) 已在人工 caveat 说明 `v-model:open`,但生成的事实部分仍遗漏 open。类型、默认值、载荷和插槽参数也未形成完整事实;配方虽已有默认表单,尚未建立与类型检查对应的代表示例机制。 - -**范围与切片:** F0 先确认并整理共同设计指南、既有说明责任与维护读取入口;F1 补齐 API 事实提取及解析失败边界;F2 复用 Story 中可类型检查的示例,按真实任务提供少量完整的表单、反馈、主题、router 和 i18n 配方;F3 与 G3 一起核对 DESIGN.md 的同源随包交付、Markdown 入口、包内链接与 Intent 发现/信任路径。正式设计规则的归属按 F0 确认结果调整;不手工维护两份 API。 - -**验收:** 两类 Agent 能找到共同设计规则并判断默认选择和扩展责任;从安装产物中能读到实际模型、必需类型、事件载荷和插槽参数;选型描述符合实现;代表性用例只用公开导出即可检查和构建;无需访问生产者源码仓库才能完成普通消费任务。 - -**依赖与决策:** F1 的 API 事实不依赖 F0 正文定稿,F2 依据 C/D/E 已确定的契约和 G1 的真实任务选取。涉及提取器改造时优先利用已有编译工具能力,不继续无界扩充手写语法解析器。消费者发现与启用证据由 G 收集;不新增 MCP 或 AI 文档服务。 - -**执行结果:** F0—F3 已验证。Vue 官方元数据与受限默认值适配器生成完整 API;三份 Story 配方从安装包 Markdown 提取后编译,并完成保存失败、原始 JSON、主题/语言/路由旅程。DESIGN.md 同源检查、包内链接与独立 Intent 加载通过。维护者长标签演练保留已有角色和内容增长规则,不新增全局密度或文本角色。局限与证据见 [L3 记录](l3-execution.md)。 - -## G Package 工程验证与下游接入 - -**目标:** 安装产物、类型、运行时依赖和真实调用一致,以适量检查证明消费者能够使用。 - -**进入 L3 时的基础:** Vue 支持范围已收紧到 ^3.5.0;B—E/B5 已验证公开导出、生成声明、Token 引用、Sass/Uno 与本地 tarball 消费,并给出 major Changeset 和已知 client-web 调用的迁移步骤。 - -**实施前缺口:** [包声明](../../packages/web/package.json) 将多项专用编辑依赖列为 peer;[包契约 fixture](../../scripts/check-package-contract.ts) 仍依靠本地完整依赖图且使用 `skipLibCheck`,不能作为独立最小安装证明。总检查重复执行部分 Skill 和类型工作,还保留改名后的旧包身份复检,需要根据现行消费责任判断是否保留。client-web 的版本升级、Skill 使用与关键页面尚未完成真实验收;extension registry 的 UI 消费位置尚未确认。 - -**范围与切片:** G1 盘点 client-web 与 extension registry 的实际入口、版本、Skill 使用和关键页面;G2 校准依赖责任、支持版本与发布类型;G3 改进最小安装/公开入口/真实消费检查,并删除没有现行责任的重复步骤。保持源码联调作为开发便利,不替代产物证明。 - -**验收:** 消费者位置和影响范围有证据;符合声明的安装图可解析公开 API;包内声明在约定环境可用;受影响的实际页面完成验证。若发布已获授权,补精确版本安装证据;否则明确区分“本地已验证”和“已发布/已升级”。 - -**依赖与决策:** G1 应尽早调查,贯穿全部组件切片。基础控件与 JSON 编辑器是否分子入口、哪些包必须共享为 peer、旧包身份检查是否仍有价值,依据实际消费图决定,不预设拆 package 或升级工具链。跨仓实现按用户后续授权范围执行。 - -B5 接收端已实现受限 Figma 值更新,但没有真实发送端代码/payload;G 的实际联调须补齐这项证据。B5 已记录 client-web 的 Token 调用迁移映射,生产者通过不代表消费者完成升级。 - -**执行结果:** G2 与 G3 本地交付已验证。内部依赖由包安装,Vue 下限按实际声明收紧至 3.5.25;最小消费者独立安装、关闭 skipLibCheck,验证指南代码、公开入口与可选 Uno。G1 已核对 Web、mail、twitter,实际 Web 源文件仍有两项 graph 回调错误;旧源码联调配置另有依赖覆盖问题。消费者迁移和页面验收尚未完成,extension registry 独立 UI/Figma 发送端尚缺位置。具体调用、局部未应用补丁与剩余事项统一见 [L3 接入记录](l3-execution.md#真实消费者与接入事项)。 - -## H 多端契约与扩展时机 - -**目标:** 让 Web 之外的实现能够复用设计语义,同时各平台拥有自己的交互与运行时边界。 - -**已观察:** [Token 源](../../tokens/inkcre.tokens.json) 使用 `type/value` 与 `custom-shadow`,不能直接等同标准 DTCG 格式。[生成器](../../scripts/build-tokens.ts) 包含 Web/Sass 专用规则;初审发现的 alpha 剥离转换已在 B5 移除,并验证半透明颜色和阴影输出。现有组件依赖 DOM、Teleport、CodeMirror,不能推定能够用于 uniapp 所有运行端。 - -**本轮范围:** H1 明确哪些语义跨平台共享,记录输入格式、单位、颜色透明度、主题与名称兼容的演进原则;H2 仅在首个 Flutter 或具体 uniapp 运行端项目进入交付时启动对应 Token 输出与最小消费验证。 - -**验收:** 当前对外声明不作未经验证的跨端承诺;非 Web 开始实施时,有具体消费者、运行端、交付物和验证方式。仅定义原则可完成 H1,不能据此宣称 Flutter/uniapp 已支持。 - -**依赖与决策:** 复用 B 的设计语义和 G 的交付经验。平台目标、DTCG 迁移必要性及输出方式尚未决定。默认不建立空平台 package、跨端 UI 抽象、配置插件系统或统一 renderer。 - -## 推荐推进方式 - -A 已提交;B1—B5 与 C/D/E 已完成仓库内验证,实现整理为 b9c0bc6。L3 的仓库实现和本地交付已验证;接下来需定位尚未确认的消费者/Figma 发送端,并在获得相应授权与发布条件后完成真实升级和页面验收。具体清单见 [L3 执行记录](l3-execution.md),不重做已经通过的本库基础工作。 - -C 的基础交互规则支撑 D,D3 的日期契约支撑 E2 的日期映射;E1 支撑 E2/E3 的校验隔离。它们是局部依赖,不要求前一组全部完成才修后一组的独立缺陷。F 随各切片更新消费说明,G 随各切片证明打包与下游兼容。H2 暂缓,不作为当前 Web 修复的前置条件。 diff --git a/tasks/ui-foundations/header-evidence/README.md b/tasks/ui-foundations/header-evidence/README.md deleted file mode 100644 index 3505707..0000000 --- a/tasks/ui-foundations/header-evidence/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# Header 菜单图标修复验收 - -原按钮直接承载 Uno mask,又把填色重置为透明。修复将 mask 放到 aria-hidden 的子 span,保留原生按钮、Menu 名称、至少 24×24px 操作区域与 menu-click。按钮自身没有 mask,键盘焦点轮廓不会随图标裁剪。 - -完整 `pnpm check` 与正式 Story 构建的本地浏览器检查通过,见 [本地结果](local.json)。浅深主题分别在 375px/1280px 验证 24px 图形尺寸、图标 mask、非透明且跟随文字的填色、按钮透明背景与未裁剪的焦点,以及点击图标、Enter、Space 每次只发出一个菜单事件。pageerror 为零。 - -[浅色菜单及焦点](header-light-375.png)、[深色菜单及焦点](header-dark-375.png)已人工复核。Basic Story 用输出次数呈现事件;它是组件交互示例,不是业务页面布局范本。 - -复跑: - -```sh -pnpm exec node tasks/ui-foundations/header-evidence/verify.mjs /absolute/path/to/@playwright/test/index.mjs https://pr-46.design-dd4.pages.dev -``` - -脚本复用既有 Playwright,不新增组件套件。必须对包含本修复的产物执行;registry UI 2.0.0 及当前消费者 PR #104 仍含原缺陷,不能将本地探针或生产者 preview 视为下游已修复。消费者需安装正式修复版本后复验。 - -最终源码 `d6125cf` 的 [CI](https://github.com/InKCre/ui/actions/runs/34766090160) 与 [preview 交付](https://github.com/InKCre/ui/actions/runs/34766172549) 成功。上述四组检查在实际远端重复通过,24px 图形、填色、焦点和菜单事件正常,pageerror 为零;见 [远端结果与部署身份](verification.json)。截图已更新为该部署的实际结果并人工复核。 diff --git a/tasks/ui-foundations/header-evidence/header-dark-1280.png b/tasks/ui-foundations/header-evidence/header-dark-1280.png deleted file mode 100644 index de16da4..0000000 Binary files a/tasks/ui-foundations/header-evidence/header-dark-1280.png and /dev/null differ diff --git a/tasks/ui-foundations/header-evidence/header-dark-375.png b/tasks/ui-foundations/header-evidence/header-dark-375.png deleted file mode 100644 index 54b13db..0000000 Binary files a/tasks/ui-foundations/header-evidence/header-dark-375.png and /dev/null differ diff --git a/tasks/ui-foundations/header-evidence/header-light-1280.png b/tasks/ui-foundations/header-evidence/header-light-1280.png deleted file mode 100644 index 1de9d37..0000000 Binary files a/tasks/ui-foundations/header-evidence/header-light-1280.png and /dev/null differ diff --git a/tasks/ui-foundations/header-evidence/header-light-375.png b/tasks/ui-foundations/header-evidence/header-light-375.png deleted file mode 100644 index ab0a7dd..0000000 Binary files a/tasks/ui-foundations/header-evidence/header-light-375.png and /dev/null differ diff --git a/tasks/ui-foundations/header-evidence/local.json b/tasks/ui-foundations/header-evidence/local.json deleted file mode 100644 index 4c88b07..0000000 --- a/tasks/ui-foundations/header-evidence/local.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "origin": "http://127.0.0.1:5210", - "browser": "149.0.7827.55", - "checks": [ - { - "theme": "light", - "width": 375, - "foreground": "rgb(31, 31, 31)", - "bounds": { - "x": 319, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - }, - { - "theme": "light", - "width": 1280, - "foreground": "rgb(31, 31, 31)", - "bounds": { - "x": 1224, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - }, - { - "theme": "dark", - "width": 375, - "foreground": "rgb(226, 226, 226)", - "bounds": { - "x": 319, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - }, - { - "theme": "dark", - "width": 1280, - "foreground": "rgb(226, 226, 226)", - "bounds": { - "x": 1224, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - } - ], - "errors": [] -} diff --git a/tasks/ui-foundations/header-evidence/verification.json b/tasks/ui-foundations/header-evidence/verification.json deleted file mode 100644 index 9654878..0000000 --- a/tasks/ui-foundations/header-evidence/verification.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "origin": "https://pr-46.design-dd4.pages.dev", - "browser": "149.0.7827.55", - "checks": [ - { - "theme": "light", - "width": 375, - "foreground": "rgb(31, 31, 31)", - "bounds": { - "x": 319, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - }, - { - "theme": "light", - "width": 1280, - "foreground": "rgb(31, 31, 31)", - "bounds": { - "x": 1224, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - }, - { - "theme": "dark", - "width": 375, - "foreground": "rgb(226, 226, 226)", - "bounds": { - "x": 319, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - }, - { - "theme": "dark", - "width": 1280, - "foreground": "rgb(226, 226, 226)", - "bounds": { - "x": 1224, - "y": 18, - "width": 24, - "height": 24 - }, - "menuEvents": 3, - "mask": "visible child glyph; unmasked button and focus outline" - } - ], - "errors": [], - "source": "d6125cf837e5f79f85801c9136ae805625d3c427", - "deployment": "https://38e5661b.design-dd4.pages.dev", - "ci": "https://github.com/InKCre/ui/actions/runs/34766090160", - "preview_run": "https://github.com/InKCre/ui/actions/runs/34766172549" -} diff --git a/tasks/ui-foundations/header-evidence/verify.mjs b/tasks/ui-foundations/header-evidence/verify.mjs deleted file mode 100644 index 2eccccb..0000000 --- a/tasks/ui-foundations/header-evidence/verify.mjs +++ /dev/null @@ -1,69 +0,0 @@ -// 本任务的 Header 回归验收,复用现有 Playwright 与正式 Story 构建。 -import { pathToFileURL } from "node:url"; -import { writeFile } from "node:fs/promises"; -const { chromium, expect } = await import(pathToFileURL(process.argv[2]).href); -const origin = process.argv[3]; -const browser = await chromium.launch(); -const page = await browser.newPage(); -const errors = []; -page.on("pageerror", (error) => errors.push(error.message)); -const report = { origin, browser: browser.version(), checks: [], errors }; -try { - for (const theme of ["light", "dark"]) { - for (const width of [375, 1280]) { - await page.setViewportSize({ width, height: 800 }); - await page.goto( - `${origin}/__sandbox.html?storyId=stories-controls-inkheader-story-vue&variantId=stories-controls-inkheader-story-vue-0`, - ); - const menu = page.getByRole("button", { name: "Menu", exact: true }); - await menu.waitFor(); - await page.evaluate( - (theme) => document.documentElement.classList.toggle("dark", theme === "dark"), - theme, - ); - await expect(page.locator("html")).toHaveAttribute("data-theme", theme); - const glyph = menu.locator('[aria-hidden="true"]'); - await expect(glyph).toBeVisible(); - await expect(glyph).not.toHaveCSS("mask-image", "none"); - await expect(glyph).toHaveCSS("width", "24px"); - await expect(glyph).toHaveCSS("height", "24px"); - const foreground = await menu.evaluate((e) => getComputedStyle(e).color); - await expect(glyph).toHaveCSS("background-color", foreground); - await expect(glyph).not.toHaveCSS("background-color", "rgba(0, 0, 0, 0)"); - await expect(menu).toHaveCSS("background-color", "rgba(0, 0, 0, 0)"); - await expect(menu).toHaveCSS("mask-image", "none"); - const bounds = await menu.boundingBox(); - expect(bounds.width).toBeGreaterThanOrEqual(24); - expect(bounds.height).toBeGreaterThanOrEqual(24); - expect(bounds.x + bounds.width).toBeLessThanOrEqual(width); - await glyph.click(); - await expect(page.locator("output")).toHaveText("菜单点击次数:1"); - await menu.press("Enter"); - await expect(page.locator("output")).toHaveText("菜单点击次数:2"); - await menu.press("Space"); - await expect(page.locator("output")).toHaveText("菜单点击次数:3"); - await expect(menu).toBeFocused(); - await expect(menu).toHaveCSS("outline-style", "solid"); - await expect(menu).toHaveCSS("outline-width", "2px"); - await page - .locator(".ink-header") - .screenshot({ path: new URL(`header-${theme}-${width}.png`, import.meta.url).pathname }); - report.checks.push({ - theme, - width, - foreground, - bounds, - menuEvents: 3, - mask: "visible child glyph; unmasked button and focus outline", - }); - } - } - expect(errors).toEqual([]); - await writeFile( - new URL("verification.json", import.meta.url), - JSON.stringify(report, null, 2) + "\n", - ); - console.log(JSON.stringify(report)); -} finally { - await browser.close(); -} diff --git a/tasks/ui-foundations/i1-evidence/README.md b/tasks/ui-foundations/i1-evidence/README.md deleted file mode 100644 index c864c73..0000000 --- a/tasks/ui-foundations/i1-evidence/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# I1 字体、轮廓与示例验收 - -2026-09-13,在 `feat/design-knowledge` 的未提交修改上完成。生产者包仍标记为 2.0.0,以下为本地候选产物,不是 registry 上已发布的 2.0.0。消费者继续使用正式版本,其局部修改由独立迁移 worktree 的工作包记录。 - -## 产物与检查 - -最终 `pnpm check` 通过,覆盖格式、lint、生成一致性、Intent、Token 工作流、类型、构建、两种包身份的严格独立安装及文档链接,以及 21 个 Story/120 个 Variant 的构建。首轮 Story 构建发现新样式缺少 Sass helper 的显式导入;补入后重新运行完整检查通过,没有扩大自动注入范围。 - -随后用 `pnpm --filter @inkcre/ui-web pack --pack-destination "$PWD/tmp/i1-pack"` 打包,SHA-256 为 `7be8c129cdee364977199b592da15f37cfca2af3df30d9c408f0afa58967ca8b`。临时 Vue/Vite 页面直接导入解包后的 `dist/index.js` 与 `dist/index.css`,没有引用组件源码。该检查补充已有的严格安装检查,不将复用仓库浏览器工具的页面称为独立安装。 - -## 浏览器结果 - -使用既有下游 Playwright 的 Chromium 149.0.7827.55;浏览器与临时服务器在验收后关闭,没有增加测试套件、依赖或发布入口。 - -| 边界 | 实际结果 | -| ----------------------- | -------------------------------------------------------------------------------------------------------------------- | -| Switch 普通文案 | 外层使用 mono 时,控件仍采用系统 UI sans;技术性内容可以继续在各自局部使用 mono | -| Switch 状态和尺寸 | 中英文、xs/sm/md/lg、浅深主题、320px/768px 下,Space/Enter 切换和 pending 前后的八个轨道宽度一致;pending 禁止操作 | -| AutoForm 根错误 | 非对象 schema 的错误直接可见,直角容器;320px 可完整换行,无页面横向溢出 | -| Image 缩略图槽 | 查看提示持续可见;Enter 打开、Escape 关闭并恢复缩略图焦点,浅深主题均通过 | -| Image 预览槽 | 自定义标题有清晰的前景/背景配对;下载链接实际保存 `inkcre.svg`,文件包含 SVG 内容,下载后预览保持打开 | -| AutoForm Story 调试内容 | JSON 使用 body-sm mono,浅深背景与文字同步变化,容器不再有硬编码圆角 | - -数值记录见 [打包组件结果](report.json) 与 [Story 操作结果](story-report.json)。代表图片为 [320px 浅色](components-light-320.png) 和 [320px 深色](components-dark-320.png);它们是组件状态阵列,不是完整页面视觉样板,也不表示现有反馈色或阴影数值已完成校准。 - -Story 的复核入口为根级 `pnpm story:dev`。在 Controls/Switch 查看“长状态文案保持轨道尺寸”,在 Forms/AutoForm 查看“Invalid Schema Handling”和表单数据,在 Media/Image 操作“Custom Thumbnail Slot”“With Expanded Footer”“With Custom Header”。这批示例保持现有 Variant 数量,没有另造一套组件演示。 - -## 下游边界 - -独立 `feat/ui-v2-migration` worktree 的完整 `pnpm check` 与真实 Host/MF remote 重放通过。Twitter 步骤编号采用直角;375px 截图发现的向导宽度溢出同时修正,关闭按钮完整可见。已有中文注入、时间取消/确认、Mail 下载 pending/失败及窄宽页面旅程继续通过,pageerror 为零。 - -消费者仍锁定 registry UI 2.0.0,因此上述下游结果不代表生产者的新字体或设计文档已发布、安装。颜色/阴影数值的实验和页面内容层级复审仍分别属于 I2、I3。 diff --git a/tasks/ui-foundations/i1-evidence/components-dark-320.png b/tasks/ui-foundations/i1-evidence/components-dark-320.png deleted file mode 100644 index 24f8292..0000000 Binary files a/tasks/ui-foundations/i1-evidence/components-dark-320.png and /dev/null differ diff --git a/tasks/ui-foundations/i1-evidence/components-light-320.png b/tasks/ui-foundations/i1-evidence/components-light-320.png deleted file mode 100644 index 19d6db8..0000000 Binary files a/tasks/ui-foundations/i1-evidence/components-light-320.png and /dev/null differ diff --git a/tasks/ui-foundations/i1-evidence/report.json b/tasks/ui-foundations/i1-evidence/report.json deleted file mode 100644 index 3472748..0000000 --- a/tasks/ui-foundations/i1-evidence/report.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "browser": "149.0.7827.55", - "cases": [ - { - "theme": "light", - "width": 320, - "widths": [116.4375, 90, 116.4375, 90, 116.4375, 100, 120, 120], - "font": { - "control": "system-ui, -apple-system, sans-serif", - "body": "system-ui, -apple-system, sans-serif", - "host": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace" - }, - "error": "Expected an object schema with flat properties", - "overflow": 0 - }, - { - "theme": "light", - "width": 768, - "widths": [116.4375, 90, 116.4375, 90, 116.4375, 100, 120, 120], - "font": { - "control": "system-ui, -apple-system, sans-serif", - "body": "system-ui, -apple-system, sans-serif", - "host": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace" - }, - "error": "Expected an object schema with flat properties", - "overflow": 0 - }, - { - "theme": "dark", - "width": 320, - "widths": [116.4375, 90, 116.4375, 90, 116.4375, 100, 120, 120], - "font": { - "control": "system-ui, -apple-system, sans-serif", - "body": "system-ui, -apple-system, sans-serif", - "host": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace" - }, - "error": "Expected an object schema with flat properties", - "overflow": 0 - }, - { - "theme": "dark", - "width": 768, - "widths": [116.4375, 90, 116.4375, 90, 116.4375, 100, 120, 120], - "font": { - "control": "system-ui, -apple-system, sans-serif", - "body": "system-ui, -apple-system, sans-serif", - "host": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace" - }, - "error": "Expected an object schema with flat properties", - "overflow": 0 - } - ], - "errors": [] -} diff --git a/tasks/ui-foundations/i1-evidence/story-report.json b/tasks/ui-foundations/i1-evidence/story-report.json deleted file mode 100644 index b0dec59..0000000 --- a/tasks/ui-foundations/i1-evidence/story-report.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "checks": [ - { - "theme": "light", - "customThumbnail": "keyboard open, Escape close, focus return", - "download": "inkcre.svg, valid SVG, dialog remains open", - "header": { - "color": "rgb(7, 7, 7)", - "background": "rgb(255, 255, 255)", - "font": "system-ui, -apple-system, sans-serif" - } - }, - { - "theme": "dark", - "customThumbnail": "keyboard open, Escape close, focus return", - "download": "inkcre.svg, valid SVG, dialog remains open", - "header": { - "color": "rgb(249, 249, 249)", - "background": "rgb(71, 71, 71)", - "font": "system-ui, -apple-system, sans-serif" - } - }, - { - "theme": "light", - "autoFormDebug": { - "radius": "0px", - "font": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace", - "color": "rgb(7, 7, 7)", - "background": "rgb(249, 249, 249)" - } - }, - { - "theme": "dark", - "autoFormDebug": { - "radius": "0px", - "font": "\"SF Mono\", Monaco, \"Roboto Mono\", monospace", - "color": "rgb(249, 249, 249)", - "background": "rgb(31, 31, 31)" - } - } - ], - "errors": [] -} diff --git a/tasks/ui-foundations/i2-evidence/README.md b/tasks/ui-foundations/i2-evidence/README.md deleted file mode 100644 index e1244d9..0000000 --- a/tasks/ui-foundations/i2-evidence/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# I2 正式源与产物验收 - -用户已认可[修订后的场景校准](../i2-study/README.md)。选定的配色、Switch 与阴影值现已进入 `tokens/inkcre.tokens.json`,沿既有生成链同步 Sass、CSS 和 Uno 输出。150 个公开 Token 路径及类型保持不变,没有新增主题机制、角色或依赖。 - -`ref.color.brand` 引用对应中性色阶;红色基础值中更新了反馈使用的 40/70 两级。危险动作底色直接由 surface.danger/danger-hover 维护,与较纯的错误前景分开,未新增另一套色阶。反馈角色说明、设计与样式指南、Agent 配方和普通提交示例同步更新;迁移指南说明新默认表现,并将已发布的 2.0.0 要求与当前未发布改动分开。 - -## 验证结果 - -完整 `pnpm check` 通过,涵盖格式、lint、生成一致性、Token 导入边界、类型、独立 tarball 安装与公开入口、文档/配方交付,以及 21 个 Story/120 个 Variant 构建。循环引用夹具原先隐式依赖正文指向 neutral.2,本轮改为显式构造闭环的两端;生成器与导入策略没有改变。 - -[实际产物验收页](index.html)直接使用本地 tarball 的组件和根级主题,不覆盖候选色值。[浏览器记录](verification.json)由 Chromium 149.0.7827.55 生成: - -- 浅深主题各 41 个颜色、Switch 与阴影变量和冻结样稿一致。此前候选 84 个配对的结果因而适用于该产物:浅/深最低文字对比约 5.14:1/4.95:1,必要边界约 3.86:1/3.61:1。 -- primary/subtle/danger 的普通、hover、pressed、焦点、disabled 与 pending 配对通过。错误输入保留独立焦点提示;Dropdown 的选中标签、说明及相邻活动项分别使用对应前景。 -- Popup/Scrim 实际 Teleport 到 body,表面、文字与遮罩使用根级主题;Popup 打开期间切换根级主题也能更新。375px 下确认操作完整可见,关闭后焦点返回触发按钮,页面无横向溢出。 -- Sass 与 Uno 三档可见阴影和样稿一致,实际 Tooltip 使用相同的默认档。运行时修改 md 模糊变量会更新 Sass 与 Tooltip,Uno 保持构建值;其工具类的前景/背景配对也通过验证。 -- 页面脚本错误与 HTTP(S) 请求均为零。已查看六张截图,浏览器已关闭;离线页面无需服务。 - -截图:控件与选中项[浅色](controls-light.png)/[深色](controls-dark.png),375px Popup [浅色](popup-light-375.png)/[深色](popup-dark-375.png),375px Scrim [浅色](scrim-light-375.png)/[深色](scrim-dark-375.png)。这是状态与公开入口的验收夹具,阴影探针及按钮矩阵不作为真实页面的组合范本。 - -Uno 验收保留 presetWind3 的初始化样式;阴影工具类依赖它提供的 ring/shadow 变量。记录保留完整计算值,比较时排除透明的 ring 合成层。UI 包仍不引入 preflight,夹具没有向生产包添加全局样式。 - -## 产物身份与复跑 - -本地 tarball 仍标记 `@inkcre/ui-web@2.0.0`,**不是 registry 已发布的 2.0.0**。SHA-256 为 `a2d8e5ecffeaa58aca0ea60e4bcfdf77d486d9b694c91fbc3775ec5708da0f5d`。基线提交为 `11be433`,叠加尚未提交的 I2 源;[artifact.json](artifact.json)另记录 Token 源与 CSS 的哈希,source 字段不表示 I2 已提交或发布。 - -从仓库根执行: - -```sh -pnpm check -pnpm --dir packages/web pack --pack-destination ../../tmp/i2-pack -node tasks/ui-foundations/i2-study/build.mjs tmp/i2-pack/inkcre-ui-web-2.0.0.tgz --delivery -node tasks/ui-foundations/i2-study/verify-delivery.mjs /path/to/existing/playwright/index.mjs -``` - -构建与浏览器脚本复用现有工具,不建立组件测试套件。完整检查日志为本机 `/tmp/inkcre-i2-check.log`,浏览器日志为 `/tmp/inkcre-i2-delivery-verify.log`。构建会清理临时解包目录,实验与证据随父工作包撤除。 - -生产者 I2 已验证、未提交或发布。消费者 worktree 保持干净,仍使用 registry UI 2.0.0;后续发布后需要按真实安装版本复验,不能把此处的产物夹具当作下游迁移完成。I3 继续拥有真实页面的内容取舍与状态组织。 diff --git a/tasks/ui-foundations/i2-evidence/artifact.json b/tasks/ui-foundations/i2-evidence/artifact.json deleted file mode 100644 index f7f8a0e..0000000 --- a/tasks/ui-foundations/i2-evidence/artifact.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "source": "11be433ca6e7c203da7f42233983e576a967d71e", - "package": "@inkcre/ui-web@2.0.0", - "tarballSha256": "a2d8e5ecffeaa58aca0ea60e4bcfdf77d486d9b694c91fbc3775ec5708da0f5d", - "tokensSha256": "475712a34e15dc4e474b2b0308110f5423cdf92e66a01bf5de542771c342e593", - "cssSha256": "aa16dd5b8a35dbd20ec70e335aab9a1afb473d8a50417fb77e59140f48125b7b" -} diff --git a/tasks/ui-foundations/i2-evidence/controls-dark.png b/tasks/ui-foundations/i2-evidence/controls-dark.png deleted file mode 100644 index 8165683..0000000 Binary files a/tasks/ui-foundations/i2-evidence/controls-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-evidence/controls-light.png b/tasks/ui-foundations/i2-evidence/controls-light.png deleted file mode 100644 index 16ee886..0000000 Binary files a/tasks/ui-foundations/i2-evidence/controls-light.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-evidence/index.html b/tasks/ui-foundations/i2-evidence/index.html deleted file mode 100644 index e4cebf7..0000000 --- a/tasks/ui-foundations/i2-evidence/index.html +++ /dev/null @@ -1,30 +0,0 @@ -InKCre · I2 交付验收
diff --git a/tasks/ui-foundations/i2-evidence/popup-dark-375.png b/tasks/ui-foundations/i2-evidence/popup-dark-375.png deleted file mode 100644 index 401b466..0000000 Binary files a/tasks/ui-foundations/i2-evidence/popup-dark-375.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-evidence/popup-light-375.png b/tasks/ui-foundations/i2-evidence/popup-light-375.png deleted file mode 100644 index 83b9ee7..0000000 Binary files a/tasks/ui-foundations/i2-evidence/popup-light-375.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-evidence/scrim-dark-375.png b/tasks/ui-foundations/i2-evidence/scrim-dark-375.png deleted file mode 100644 index f8edc50..0000000 Binary files a/tasks/ui-foundations/i2-evidence/scrim-dark-375.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-evidence/scrim-light-375.png b/tasks/ui-foundations/i2-evidence/scrim-light-375.png deleted file mode 100644 index 332a4bb..0000000 Binary files a/tasks/ui-foundations/i2-evidence/scrim-light-375.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-evidence/verification.json b/tasks/ui-foundations/i2-evidence/verification.json deleted file mode 100644 index 027fd26..0000000 --- a/tasks/ui-foundations/i2-evidence/verification.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "source": "11be433ca6e7c203da7f42233983e576a967d71e", - "package": "@inkcre/ui-web@2.0.0", - "tarballSha256": "a2d8e5ecffeaa58aca0ea60e4bcfdf77d486d9b694c91fbc3775ec5708da0f5d", - "tokensSha256": "475712a34e15dc4e474b2b0308110f5423cdf92e66a01bf5de542771c342e593", - "cssSha256": "aa16dd5b8a35dbd20ec70e335aab9a1afb473d8a50417fb77e59140f48125b7b", - "approvedStudySha256": "2f6dba098c22217d001b6905fd87df1dbdaa2fcf00968c1dab7fed07266b8e2e", - "browser": "149.0.7827.55", - "themes": [ - { - "theme": "light", - "matchedVariables": 41, - "tokens": { - "--comp-switch-handle-bg": "rgb(249, 249, 249)", - "--comp-switch-label-color": "rgb(31, 31, 31)", - "--comp-switch-track-bg": "rgb(31, 31, 31)", - "--sys-color-border-base": "rgb(119, 119, 119)", - "--sys-color-border-strong": "rgb(7, 7, 7)", - "--sys-color-border-subtle": "rgb(198, 198, 198)", - "--sys-color-feedback-error": "rgb(179, 52, 43)", - "--sys-color-feedback-info": "rgb(18, 103, 167)", - "--sys-color-feedback-success": "rgb(25, 113, 61)", - "--sys-color-feedback-warning": "rgb(138, 89, 0)", - "--sys-color-overlay-scrim": "rgba(0, 0, 0, 0.5)", - "--sys-color-surface-base": "rgb(255, 255, 255)", - "--sys-color-surface-base-hover": "rgb(238, 238, 238)", - "--sys-color-surface-danger": "rgb(130, 89, 85)", - "--sys-color-surface-danger-hover": "rgb(112, 73, 71)", - "--sys-color-surface-primary": "rgb(31, 31, 31)", - "--sys-color-surface-primary-hover": "rgb(48, 48, 48)", - "--sys-color-surface-subtle": "rgb(249, 249, 249)", - "--sys-color-surface-subtle-hover": "rgb(238, 238, 238)", - "--sys-color-text-base": "rgb(31, 31, 31)", - "--sys-color-text-on-danger": "rgb(249, 249, 249)", - "--sys-color-text-on-primary": "rgb(249, 249, 249)", - "--sys-color-text-subtle": "rgb(94, 94, 94)", - "--sys-elevation-raised-high-color": "rgba(0, 0, 0, 0.18)", - "--sys-elevation-raised-high-offset-x": "0px", - "--sys-elevation-raised-high-offset-y": "4px", - "--sys-elevation-raised-high-radius": "12px", - "--sys-elevation-raised-high-shadow-type": "dropShadow", - "--sys-elevation-raised-high-spread": "0px", - "--sys-elevation-raised-low-color": "rgba(0, 0, 0, 0.1)", - "--sys-elevation-raised-low-offset-x": "0px", - "--sys-elevation-raised-low-offset-y": "1px", - "--sys-elevation-raised-low-radius": "2px", - "--sys-elevation-raised-low-shadow-type": "dropShadow", - "--sys-elevation-raised-low-spread": "0px", - "--sys-elevation-raised-md-color": "rgba(0, 0, 0, 0.16)", - "--sys-elevation-raised-md-offset-x": "0px", - "--sys-elevation-raised-md-offset-y": "2px", - "--sys-elevation-raised-md-radius": "6px", - "--sys-elevation-raised-md-shadow-type": "dropShadow", - "--sys-elevation-raised-md-spread": "0px" - }, - "shadows": [ - { - "level": "low", - "shadow": "rgba(0, 0, 0, 0.1) 0px 1px 2px 0px", - "uno": "rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px 0px" - }, - { - "level": "md", - "shadow": "rgba(0, 0, 0, 0.16) 0px 2px 6px 0px", - "uno": "rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.16) 0px 2px 6px 0px" - }, - { - "level": "high", - "shadow": "rgba(0, 0, 0, 0.18) 0px 4px 12px 0px", - "uno": "rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.18) 0px 4px 12px 0px" - } - ], - "buttons": "normal/hover/pressed/focus/disabled/pending", - "errorWithFocus": true, - "selectedLabelAndDescription": true, - "rootPopupAndScrim": true, - "openPopupThemeChange": true, - "sassRuntimeShadow": true, - "unoBuildTimeShadow": true, - "narrowWidth": 375, - "overflow": 0 - }, - { - "theme": "dark", - "matchedVariables": 41, - "tokens": { - "--comp-switch-handle-bg": "rgb(31, 31, 31)", - "--comp-switch-label-color": "rgb(226, 226, 226)", - "--comp-switch-track-bg": "rgb(226, 226, 226)", - "--sys-color-border-base": "rgb(145, 145, 145)", - "--sys-color-border-strong": "rgb(198, 198, 198)", - "--sys-color-border-subtle": "rgb(94, 94, 94)", - "--sys-color-feedback-error": "rgb(237, 150, 144)", - "--sys-color-feedback-info": "rgb(112, 181, 237)", - "--sys-color-feedback-success": "rgb(103, 200, 140)", - "--sys-color-feedback-warning": "rgb(229, 185, 81)", - "--sys-color-overlay-scrim": "rgba(0, 0, 0, 0.5)", - "--sys-color-surface-base": "rgb(31, 31, 31)", - "--sys-color-surface-base-hover": "rgb(48, 48, 48)", - "--sys-color-surface-danger": "rgb(200, 161, 157)", - "--sys-color-surface-danger-hover": "rgb(185, 145, 139)", - "--sys-color-surface-primary": "rgb(226, 226, 226)", - "--sys-color-surface-primary-hover": "rgb(198, 198, 198)", - "--sys-color-surface-subtle": "rgb(48, 48, 48)", - "--sys-color-surface-subtle-hover": "rgb(58, 58, 58)", - "--sys-color-text-base": "rgb(226, 226, 226)", - "--sys-color-text-on-danger": "rgb(31, 31, 31)", - "--sys-color-text-on-primary": "rgb(31, 31, 31)", - "--sys-color-text-subtle": "rgb(171, 171, 171)", - "--sys-elevation-raised-high-color": "rgba(0, 0, 0, 0.18)", - "--sys-elevation-raised-high-offset-x": "0px", - "--sys-elevation-raised-high-offset-y": "4px", - "--sys-elevation-raised-high-radius": "12px", - "--sys-elevation-raised-high-shadow-type": "dropShadow", - "--sys-elevation-raised-high-spread": "0px", - "--sys-elevation-raised-low-color": "rgba(0, 0, 0, 0.1)", - "--sys-elevation-raised-low-offset-x": "0px", - "--sys-elevation-raised-low-offset-y": "1px", - "--sys-elevation-raised-low-radius": "2px", - "--sys-elevation-raised-low-shadow-type": "dropShadow", - "--sys-elevation-raised-low-spread": "0px", - "--sys-elevation-raised-md-color": "rgba(0, 0, 0, 0.16)", - "--sys-elevation-raised-md-offset-x": "0px", - "--sys-elevation-raised-md-offset-y": "2px", - "--sys-elevation-raised-md-radius": "6px", - "--sys-elevation-raised-md-shadow-type": "dropShadow", - "--sys-elevation-raised-md-spread": "0px" - }, - "shadows": [ - { - "level": "low", - "shadow": "rgba(0, 0, 0, 0.1) 0px 1px 2px 0px", - "uno": "rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px 0px" - }, - { - "level": "md", - "shadow": "rgba(0, 0, 0, 0.16) 0px 2px 6px 0px", - "uno": "rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.16) 0px 2px 6px 0px" - }, - { - "level": "high", - "shadow": "rgba(0, 0, 0, 0.18) 0px 4px 12px 0px", - "uno": "rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.18) 0px 4px 12px 0px" - } - ], - "buttons": "normal/hover/pressed/focus/disabled/pending", - "errorWithFocus": true, - "selectedLabelAndDescription": true, - "rootPopupAndScrim": true, - "openPopupThemeChange": true, - "sassRuntimeShadow": true, - "unoBuildTimeShadow": true, - "narrowWidth": 375, - "overflow": 0 - } - ], - "errors": [], - "requests": [] -} diff --git a/tasks/ui-foundations/i2-study/App.vue b/tasks/ui-foundations/i2-study/App.vue deleted file mode 100644 index ad53834..0000000 --- a/tasks/ui-foundations/i2-study/App.vue +++ /dev/null @@ -1,457 +0,0 @@ - - - - - diff --git a/tasks/ui-foundations/i2-study/Delivery.vue b/tasks/ui-foundations/i2-study/Delivery.vue deleted file mode 100644 index 2a8a01a..0000000 --- a/tasks/ui-foundations/i2-study/Delivery.vue +++ /dev/null @@ -1,209 +0,0 @@ - - - - - diff --git a/tasks/ui-foundations/i2-study/README.md b/tasks/ui-foundations/i2-study/README.md deleted file mode 100644 index 3ce3954..0000000 --- a/tasks/ui-foundations/i2-study/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# I2 色彩与阴影校准 - -本页保留色彩与阴影的校准过程。用户现已认可修订版,选定值已写回 Token 规范源;正式源、实际产物与最终验证见 [I2 交付验收](../i2-evidence/README.md)。本目录的离线页面保留校准时的 I1/候选对照与提示文字,不作为当前发布状态。消费者仍使用 registry UI 2.0.0。 - -打开 [交互对照](index.html),左侧是 I1 实际产物,右侧是修订候选。可以切换浅深主题,以及页面场景、动作与反馈、覆盖层阴影三个视图;表单另有正常、错误、等待和不可用状态。在“动作与反馈”中选择反馈情境,分别查看日常状态、连接验证成功、授权即将到期、采集范围变化和连接失败。两个面板共用相同内容和草稿,页面布局不作为新设计规则。本页不请求后端、不保存业务数据。 - -## 这组候选改变的关系 - -| 范围 | 现状 | 候选与理由 | -| ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -| 主动作 | 浅深主题的主表面、悬停与反色文字带蓝灰倾向 | 改为中性灰配对;浅色用深灰动作,深色用浅灰动作,保留主次区别 | -| 深色表面 | 基底 `#474747`,次要区域 `#1f1f1f`,悬停升到 `#5e5e5e` | 基底 `#1f1f1f`,次要区域 `#303030`,较亮的悬停止于 `#3a3a3a`,减少相邻表面的明暗跳变 | -| 反馈 | I1 使用较鲜艳的前景;上一版候选的灰绿、灰赭和灰蓝被用户指出过于雾化 | 改用更干净的绿、金黄、蓝和红,只强调需要注意的关键文字;常态状态与详细说明保持中性色 | -| 危险动作 | 两主题都以较鲜艳的深红底配浅色字 | 浅色用灰红底配浅字,深色用较亮的灰红底配深字;前景和表面一起变化 | -| 次要文字与必要边界 | 深色边界、文字与较亮的 hover 表面没有统一配对余量 | 适当降低常态亮度,同时限制 hover 表面亮度,维持边界和文字的可辨认性 | -| Switch | 轨道与滑块接近纯黑白 | 随主动作采用相近的中性灰范围,保留状态文字与滑块的对比 | -| 覆盖层阴影 | 默认阴影向下偏移 6px、模糊 20px,颜色带蓝灰 | 默认阴影改为向下 2px、模糊 6px 的中性黑;范围收紧后保留足够的边缘层次 | - -所有候选值集中在 [palette.mjs](palette.mjs)。浅色普通表面继续使用现有白色/近白色;阴影三个档位分别是 1px/2px/4px 垂直偏移和 2px/6px/12px 模糊。较弱和较强的小样用于检查家族关系,不赋予常驻卡片使用阴影的许可。 - -本次反馈前景如下。浅色主题使用较深的色值保留文字对比,深色主题提高明度;“较纯”不等于使用最高饱和度的 RGB 原色。错误文字与危险按钮底色分别承担用途,前者一同提高纯度,后者保留用户认可的灰红。 - -| 反馈前景 | 浅色主题 | 深色主题 | -| -------- | --------- | --------- | -| success | `#19713d` | `#67c88c` | -| warning | `#8a5900` | `#e5b951` | -| info | `#1267a7` | `#70b5ed` | -| error | `#b3342b` | `#ed9690` | - -页面场景已移除常驻的成功/警告着色,普通保存结果和等待说明也使用中性色。反馈示例随情境切换,只有关键文字着色,说明正文保持普通文字颜色;不再并列陈列四种反馈来示范实际用色密度。这是实验的对照安排,不限制真实页面只能出现一个问题,也不授权隐藏同时存在的风险。 - -现行面板直接使用 I1 tarball 的根级主题,候选只覆盖已有系统颜色、Switch 颜色和阴影变量。组件也取自该 tarball 的真实 JS/CSS;没有重新解析或抄写现行色值,也没有按截图重写按钮、字段、开关、选择器或 Tooltip。示例不使用 Teleport 浮层,因此可以在两个面板并排比较;正式 Popup/Scrim 的候选覆盖仍须在根级验证。 - -## 证据与边界 - -2026-09-13 使用 Chromium 149.0.7827.55 完成 [浏览器与配对记录](verification.json)。每个主题/面板检查 29 组文字配对和 13 组边界配对,共 168 组;其中候选占 84 组。配对使用浏览器实际读取的变量,阈值判断保留未舍入值。 - -| 配对范围 | 最低文字对比度 | 最低必要边界对比度 | 低于本次配对要求的组合 | -| -------- | -------------- | ------------------ | ---------------------- | -| 现行浅色 | 5.58:1 | 3.86:1 | 0 | -| 候选浅色 | 5.14:1 | 3.86:1 | 0 | -| 现行深色 | 3.66:1 | 2.82:1 | 10 | -| 候选深色 | 4.95:1 | 3.61:1 | 0 | - -现行深色的缺口集中在 `base-hover`/`subtle-hover`:次要文字、success/info/error 前景及必要边界在这些表面上缺少对比。这里盘点的是允许组合的角色关系,不能仅凭组合存在就断言某个实际页面不合规;也不能把候选通过数值检查称为整体视觉认可。 - -普通文字按 [WCAG 2.2 的最低文字对比说明](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html) 检查 4.5:1;识别控件所需的边界和状态按 [非文本对比说明](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html) 检查 3:1。禁用控件的例外、装饰分隔与阴影不混作必要边界。可读性还受字体和场景影响,本次继续保持既有文字尺度与角色。 - -真实组件操作通过以下复核:primary/subtle/danger 的普通、hover、pressed、键盘焦点和禁用状态;错误字段保留错误边框与独立焦点;等待动作保留主配色和文字;Tooltip 聚焦/悬停打开及 Escape 关闭。浅深主题的三个视图在 375px 下均无横向溢出,居中触发的提示也保持在视口内。页面脚本错误和 HTTP(S) 请求均为零,六张代表截图已人工查看。 - -修订版另核对 20 组反馈情境:两种主题、两个面板、五种状态。日常状态使用中性色,四种需要注意的反馈只在关键文字上应用对应前景,说明正文保持 text.base。普通保存结果与等待说明的实际颜色也已验证为 text.subtle。更高的数值对比仍不替代用户对颜色纯度和观感的确认。 - -截图只说明对应实验:页面[浅色](scene-light.png)/[深色](scene-dark.png),状态[浅色](states-light.png)/[深色](states-dark.png),阴影[浅色](layers-light.png)/[深色](layers-dark.png)。截图等待有限 CSS 过渡结束后获取;等待图标自身的循环动画不作为结束条件。 - -## 复跑与正式落地 - -UI 基线为 `11be433`,候选 tarball 仍标记 2.0.0,SHA-256 为 `7be8c129cdee364977199b592da15f37cfca2af3df30d9c408f0afa58967ca8b`;它不同于 registry 已发布的同版本。[artifact.json](artifact.json) 中的 source 指这一 UI 基线,实验源码和候选值仍是本轮未提交内容。 - -在根目录准备本地 UI tarball,然后运行: - -```sh -node tasks/ui-foundations/i2-study/build.mjs tmp/i1-pack/inkcre-ui-web-2.0.0.tgz -node tasks/ui-foundations/i2-study/verify.mjs /path/to/existing/playwright/index.mjs -``` - -本机验证复用 client-web 迁移 worktree 已安装的 Playwright。构建复用现有 Vue/Vite,输出无需服务器的单文件 HTML,并清理临时解包目录。实验与脚本随工作包撤除,不加入组件测试套件、生产包或发布流程。 - -本轮将用户明确的用途与用量规则同步到设计正文、Web 样式指南和 Agent 配方,并把两个普通提交反馈示例改为中性色。已生成随包副本并补 patch Changeset,完整 `pnpm check` 通过,包括实际 tarball 安装与文档/配方检查、21 个 Story/120 个 Variant 构建;日志为本机 `/tmp/inkcre-i2-feedback-check.log`。Token JSON、组件运行时和消费者源码没有改变。 - -视觉反馈确认后,按下列边界落地: - -1. 将选定配对写回现有 `sys.light/dark`、`comp.light/dark` 和 `effect.elevation`,同步受影响的 ref 色族及引用;保留公共角色、类型和用途,避免留下与默认风格相反的品牌色族。 -2. 沿用现有生成链同步 Sass、CSS 和 Uno;Sass 阴影 helper 读取运行时变量,Uno 阴影仍是构建值,两种入口都要验证。 -3. 对正式 tarball 复核本轮涉及的配对与实际组件,并补根级 Popup/Scrim、深色选中项等依赖全局上下文的场景;更新适用指南与 Changeset,运行完整 `pnpm check`。 -4. 下游按后续已发布产物复验,保持正式依赖与源码实验的证据分开。页面内容层级仍由 I3 处理,不将配色校准扩成信息架构重做。 - -用户已确认修订后的反馈文字纯度,并要求利用 Token 机制继续迭代,无须把每个色值视为不可更改的最终决定。上述正式落地现已完成并通过[实际产物验收](../i2-evidence/README.md),未提交或发布;消费者仍使用 registry UI 2.0.0。 diff --git a/tasks/ui-foundations/i2-study/artifact.json b/tasks/ui-foundations/i2-study/artifact.json deleted file mode 100644 index 891a6cb..0000000 --- a/tasks/ui-foundations/i2-study/artifact.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "source": "11be433ca6e7c203da7f42233983e576a967d71e", - "package": "@inkcre/ui-web@2.0.0", - "tarballSha256": "7be8c129cdee364977199b592da15f37cfca2af3df30d9c408f0afa58967ca8b" -} diff --git a/tasks/ui-foundations/i2-study/build.mjs b/tasks/ui-foundations/i2-study/build.mjs deleted file mode 100644 index 76a7f0d..0000000 --- a/tasks/ui-foundations/i2-study/build.mjs +++ /dev/null @@ -1,110 +0,0 @@ -import { createRequire } from "node:module"; -import { fileURLToPath, pathToFileURL } from "node:url"; -import { resolve, dirname } from "node:path"; -import { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"; -import { execFileSync } from "node:child_process"; -import { createHash } from "node:crypto"; - -const here = dirname(fileURLToPath(import.meta.url)); -const root = resolve(here, "../../.."); -const require = createRequire(resolve(root, "packages/web/package.json")); -const { build } = await import(require.resolve("vite")); -const { default: vue } = await import(require.resolve("@vitejs/plugin-vue")); -if (!process.argv[2]) throw new Error("Pass the local UI tarball used as the comparison baseline."); -if (process.argv[3] && process.argv[3] !== "--delivery") throw new Error("Unknown build mode."); -const delivery = process.argv[3] === "--delivery"; -const destination = delivery ? resolve(here, "../i2-evidence") : here; -mkdirSync(destination, { recursive: true }); -const tarball = resolve(process.argv[2]); -const archive = readFileSync(tarball); -const scratchRoot = resolve(root, "packages/web/tmp"); -mkdirSync(scratchRoot, { recursive: true }); -const scratch = mkdtempSync(resolve(scratchRoot, "i2-study-")); -try { - execFileSync("tar", ["-xzf", tarball, "-C", scratch]); - const packageRoot = resolve(scratch, "package"); - const manifest = JSON.parse(readFileSync(resolve(packageRoot, "package.json"), "utf8")); - let probeCss = ""; - if (delivery) { - const sass = require("sass"); - probeCss = sass.compileString( - ` - @use "mixins" as ink; - @each $level in low, md, high { - .sass-shadow-#{$level} { @include ink.apply-elevation($level); } - } - `, - { loadPaths: [resolve(packageRoot, "styles")] }, - ).css; - const { createGenerator, presetWind3 } = await import(require.resolve("unocss")); - const { presetInk } = await import( - pathToFileURL(resolve(packageRoot, "dist/uno/preset-ink.js")).href - ); - const uno = await createGenerator({ presets: [presetWind3(), presetInk()] }); - probeCss += ( - await uno.generate( - "shadow-low shadow-md shadow-high bg-surface-primary text-text-on-primary", - { preflights: true }, - ) - ).css; - } - const result = await build({ - configFile: false, - root: here, - plugins: [vue()], - define: { "process.env.NODE_ENV": JSON.stringify("production") }, - resolve: { - alias: [ - { find: /^vue$/, replacement: require.resolve("vue/dist/vue.runtime.esm-bundler.js") }, - { find: /^@inkcre\/ui-web$/, replacement: resolve(packageRoot, "dist/index.js") }, - { find: /^@inkcre\/ui-web\/styles$/, replacement: resolve(packageRoot, "dist/index.css") }, - ], - dedupe: ["vue"], - }, - build: { - write: false, - lib: { - entry: resolve(here, delivery ? "delivery.js" : "main.js"), - formats: ["iife"], - name: "InkcreColorStudy", - }, - minify: true, - sourcemap: false, - cssCodeSplit: false, - }, - }); - const output = (Array.isArray(result) ? result : [result]).flatMap((bundle) => bundle.output); - const js = output.find((item) => item.type === "chunk").code.replaceAll(" item.type === "asset" && item.fileName.endsWith(".css")) - .map((item) => item.source) - .join("\n"); - writeFileSync( - resolve(destination, "index.html"), - `InKCre · I2 ${delivery ? "交付验收" : "色彩与阴影"}
\n`, - ); - writeFileSync( - resolve(destination, "artifact.json"), - JSON.stringify( - { - source: execFileSync("git", ["rev-parse", "HEAD"], { cwd: root, encoding: "utf8" }).trim(), - package: `${manifest.name}@${manifest.version}`, - tarballSha256: createHash("sha256").update(archive).digest("hex"), - ...(delivery - ? { - tokensSha256: createHash("sha256") - .update(readFileSync(resolve(root, "tokens/inkcre.tokens.json"))) - .digest("hex"), - cssSha256: createHash("sha256") - .update(readFileSync(resolve(packageRoot, "dist/index.css"))) - .digest("hex"), - } - : {}), - }, - null, - 2, - ) + "\n", - ); -} finally { - rmSync(scratch, { recursive: true, force: true }); -} diff --git a/tasks/ui-foundations/i2-study/delivery.js b/tasks/ui-foundations/i2-study/delivery.js deleted file mode 100644 index b1c94da..0000000 --- a/tasks/ui-foundations/i2-study/delivery.js +++ /dev/null @@ -1,4 +0,0 @@ -import { createApp } from "vue"; -import Delivery from "./Delivery.vue"; -import "@inkcre/ui-web/styles"; -createApp(Delivery).mount("#app"); diff --git a/tasks/ui-foundations/i2-study/index.html b/tasks/ui-foundations/i2-study/index.html deleted file mode 100644 index b790371..0000000 --- a/tasks/ui-foundations/i2-study/index.html +++ /dev/null @@ -1,12 +0,0 @@ -InKCre · I2 色彩与阴影
diff --git a/tasks/ui-foundations/i2-study/layers-dark.png b/tasks/ui-foundations/i2-study/layers-dark.png deleted file mode 100644 index 1e52dfd..0000000 Binary files a/tasks/ui-foundations/i2-study/layers-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-study/layers-light.png b/tasks/ui-foundations/i2-study/layers-light.png deleted file mode 100644 index 3c4d00d..0000000 Binary files a/tasks/ui-foundations/i2-study/layers-light.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-study/main.js b/tasks/ui-foundations/i2-study/main.js deleted file mode 100644 index 0741b01..0000000 --- a/tasks/ui-foundations/i2-study/main.js +++ /dev/null @@ -1,4 +0,0 @@ -import { createApp } from "vue"; -import App from "./App.vue"; -import "@inkcre/ui-web/styles"; -createApp(App).mount("#app"); diff --git a/tasks/ui-foundations/i2-study/palette.mjs b/tasks/ui-foundations/i2-study/palette.mjs deleted file mode 100644 index d76ad43..0000000 --- a/tasks/ui-foundations/i2-study/palette.mjs +++ /dev/null @@ -1,65 +0,0 @@ -export const candidate = { - light: { - "text-base": "#1f1f1f", - "text-on-primary": "#f9f9f9", - "text-on-danger": "#f9f9f9", - "surface-primary": "#1f1f1f", - "surface-primary-hover": "#303030", - "surface-danger": "#825955", - "surface-danger-hover": "#704947", - "feedback-success": "#19713d", - "feedback-warning": "#8a5900", - "feedback-info": "#1267a7", - "feedback-error": "#b3342b", - }, - dark: { - "text-base": "#e2e2e2", - "text-subtle": "#ababab", - "text-on-primary": "#1f1f1f", - "text-on-danger": "#1f1f1f", - "surface-base": "#1f1f1f", - "surface-subtle": "#303030", - "surface-primary": "#e2e2e2", - "surface-primary-hover": "#c6c6c6", - "surface-subtle-hover": "#3a3a3a", - "surface-base-hover": "#303030", - "surface-danger": "#c8a19d", - "surface-danger-hover": "#b9918b", - "border-base": "#919191", - "border-subtle": "#5e5e5e", - "feedback-success": "#67c88c", - "feedback-warning": "#e5b951", - "feedback-info": "#70b5ed", - "feedback-error": "#ed9690", - }, -}; - -export const candidateElevation = { - low: { offsetX: 0, offsetY: 1, radius: 2, spread: 0, color: "#0000001a" }, - md: { offsetX: 0, offsetY: 2, radius: 6, spread: 0, color: "#00000029" }, - high: { offsetX: 0, offsetY: 4, radius: 12, spread: 0, color: "#0000002e" }, -}; - -export function sceneTokens(theme, proposed) { - if (!proposed) return {}; - const variables = Object.fromEntries( - Object.entries(candidate[theme]).map(([name, value]) => [`--sys-color-${name}`, value]), - ); - variables["--comp-switch-track-bg"] = theme === "light" ? "#1f1f1f" : "#e2e2e2"; - variables["--comp-switch-handle-bg"] = theme === "light" ? "#f9f9f9" : "#1f1f1f"; - variables["--comp-switch-label-color"] = variables["--comp-switch-track-bg"]; - for (const level of ["low", "md", "high"]) { - const effect = candidateElevation[level]; - for (const [key, field] of Object.entries({ - "offset-x": "offsetX", - "offset-y": "offsetY", - radius: "radius", - spread: "spread", - color: "color", - })) { - variables[`--sys-elevation-raised-${level}-${key}`] = - field === "color" ? effect[field] : `${effect[field]}px`; - } - } - return variables; -} diff --git a/tasks/ui-foundations/i2-study/scene-dark.png b/tasks/ui-foundations/i2-study/scene-dark.png deleted file mode 100644 index 8669998..0000000 Binary files a/tasks/ui-foundations/i2-study/scene-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-study/scene-light.png b/tasks/ui-foundations/i2-study/scene-light.png deleted file mode 100644 index 38cd5aa..0000000 Binary files a/tasks/ui-foundations/i2-study/scene-light.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-study/states-dark.png b/tasks/ui-foundations/i2-study/states-dark.png deleted file mode 100644 index ec46191..0000000 Binary files a/tasks/ui-foundations/i2-study/states-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-study/states-light.png b/tasks/ui-foundations/i2-study/states-light.png deleted file mode 100644 index 71953ce..0000000 Binary files a/tasks/ui-foundations/i2-study/states-light.png and /dev/null differ diff --git a/tasks/ui-foundations/i2-study/verification.json b/tasks/ui-foundations/i2-study/verification.json deleted file mode 100644 index 3ad5631..0000000 --- a/tasks/ui-foundations/i2-study/verification.json +++ /dev/null @@ -1,365 +0,0 @@ -{ - "source": "11be433ca6e7c203da7f42233983e576a967d71e", - "package": "@inkcre/ui-web@2.0.0", - "tarballSha256": "7be8c129cdee364977199b592da15f37cfca2af3df30d9c408f0afa58967ca8b", - "browser": "149.0.7827.55", - "colors": [ - { - "theme": "light", - "palette": "current", - "textPairs": 29, - "boundaryPairs": 13, - "minimumText": { - "foreground": "--sys-color-feedback-error", - "background": "--sys-color-surface-subtle-hover", - "ratio": 5.581280277976265, - "threshold": 4.5 - }, - "minimumBoundary": { - "foreground": "--sys-color-border-base", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.8596550990537786, - "threshold": 3 - }, - "failures": [] - }, - { - "theme": "light", - "palette": "candidate", - "textPairs": 29, - "boundaryPairs": 13, - "minimumText": { - "foreground": "--sys-color-feedback-info", - "background": "--sys-color-surface-subtle-hover", - "ratio": 5.136425052803227, - "threshold": 4.5 - }, - "minimumBoundary": { - "foreground": "--sys-color-border-base", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.8596550990537786, - "threshold": 3 - }, - "failures": [] - }, - { - "theme": "dark", - "palette": "current", - "textPairs": 29, - "boundaryPairs": 13, - "minimumText": { - "foreground": "--sys-color-feedback-success", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.6563483343098064, - "threshold": 4.5 - }, - "minimumBoundary": { - "foreground": "--sys-color-border-base", - "background": "--sys-color-surface-subtle-hover", - "ratio": 2.823648221727756, - "threshold": 3 - }, - "failures": [ - { - "foreground": "--sys-color-text-subtle", - "background": "--sys-color-surface-base-hover", - "ratio": 3.7960988661520703, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-feedback-success", - "background": "--sys-color-surface-base-hover", - "ratio": 3.6563483343098064, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-feedback-info", - "background": "--sys-color-surface-base-hover", - "ratio": 3.8195920127660896, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-feedback-error", - "background": "--sys-color-surface-base-hover", - "ratio": 3.808658019123771, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-text-subtle", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.7960988661520703, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-feedback-success", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.6563483343098064, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-feedback-info", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.8195920127660896, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-feedback-error", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.808658019123771, - "threshold": 4.5 - }, - { - "foreground": "--sys-color-border-base", - "background": "--sys-color-surface-base-hover", - "ratio": 2.823648221727756, - "threshold": 3 - }, - { - "foreground": "--sys-color-border-base", - "background": "--sys-color-surface-subtle-hover", - "ratio": 2.823648221727756, - "threshold": 3 - } - ] - }, - { - "theme": "dark", - "palette": "candidate", - "textPairs": 29, - "boundaryPairs": 13, - "minimumText": { - "foreground": "--sys-color-text-subtle", - "background": "--sys-color-surface-subtle-hover", - "ratio": 4.953236104038707, - "threshold": 4.5 - }, - "minimumBoundary": { - "foreground": "--sys-color-border-base", - "background": "--sys-color-surface-subtle-hover", - "ratio": 3.6089659792815545, - "threshold": 3 - }, - "failures": [] - } - ], - "interactions": [ - { - "theme": "light", - "errorBorderWithFocus": true, - "pendingKeepsPrimaryPair": true, - "routineStatusUsesNeutralText": true, - "buttonStates": "primary/subtle/danger: normal, hover, pressed, focus, disabled" - }, - { - "theme": "dark", - "errorBorderWithFocus": true, - "pendingKeepsPrimaryPair": true, - "routineStatusUsesNeutralText": true, - "buttonStates": "primary/subtle/danger: normal, hover, pressed, focus, disabled" - } - ], - "feedback": [ - { - "theme": "light", - "palette": "current", - "kind": "normal", - "titleColor": "#5e5e5e", - "detailColor": "#070707" - }, - { - "theme": "light", - "palette": "candidate", - "kind": "normal", - "titleColor": "#5e5e5e", - "detailColor": "#1f1f1f" - }, - { - "theme": "light", - "palette": "current", - "kind": "success", - "titleColor": "#176b39", - "detailColor": "#070707" - }, - { - "theme": "light", - "palette": "candidate", - "kind": "success", - "titleColor": "#19713d", - "detailColor": "#1f1f1f" - }, - { - "theme": "light", - "palette": "current", - "kind": "warning", - "titleColor": "#7a4b00", - "detailColor": "#070707" - }, - { - "theme": "light", - "palette": "candidate", - "kind": "warning", - "titleColor": "#8a5900", - "detailColor": "#1f1f1f" - }, - { - "theme": "light", - "palette": "current", - "kind": "info", - "titleColor": "#005c8a", - "detailColor": "#070707" - }, - { - "theme": "light", - "palette": "candidate", - "kind": "info", - "titleColor": "#1267a7", - "detailColor": "#1f1f1f" - }, - { - "theme": "light", - "palette": "current", - "kind": "error", - "titleColor": "#b9192f", - "detailColor": "#070707" - }, - { - "theme": "light", - "palette": "candidate", - "kind": "error", - "titleColor": "#b3342b", - "detailColor": "#1f1f1f" - }, - { - "theme": "dark", - "palette": "current", - "kind": "normal", - "titleColor": "#c6c6c6", - "detailColor": "#f9f9f9" - }, - { - "theme": "dark", - "palette": "candidate", - "kind": "normal", - "titleColor": "#ababab", - "detailColor": "#e2e2e2" - }, - { - "theme": "dark", - "palette": "current", - "kind": "success", - "titleColor": "#75d69a", - "detailColor": "#f9f9f9" - }, - { - "theme": "dark", - "palette": "candidate", - "kind": "success", - "titleColor": "#67c88c", - "detailColor": "#e2e2e2" - }, - { - "theme": "dark", - "palette": "current", - "kind": "warning", - "titleColor": "#ffd27a", - "detailColor": "#f9f9f9" - }, - { - "theme": "dark", - "palette": "candidate", - "kind": "warning", - "titleColor": "#e5b951", - "detailColor": "#e2e2e2" - }, - { - "theme": "dark", - "palette": "current", - "kind": "info", - "titleColor": "#8bceff", - "detailColor": "#f9f9f9" - }, - { - "theme": "dark", - "palette": "candidate", - "kind": "info", - "titleColor": "#70b5ed", - "detailColor": "#e2e2e2" - }, - { - "theme": "dark", - "palette": "current", - "kind": "error", - "titleColor": "#ffb3b1", - "detailColor": "#f9f9f9" - }, - { - "theme": "dark", - "palette": "candidate", - "kind": "error", - "titleColor": "#ed9690", - "detailColor": "#e2e2e2" - } - ], - "shadows": [ - { - "theme": "light", - "palette": "current", - "shadow": "rgba(12, 21, 48, 0.12) 0px 6px 20px 0px" - }, - { - "theme": "light", - "palette": "candidate", - "shadow": "rgba(0, 0, 0, 0.16) 0px 2px 6px 0px" - }, - { - "theme": "dark", - "palette": "current", - "shadow": "rgba(12, 21, 48, 0.12) 0px 6px 20px 0px" - }, - { - "theme": "dark", - "palette": "candidate", - "shadow": "rgba(0, 0, 0, 0.16) 0px 2px 6px 0px" - } - ], - "narrow": [ - { - "theme": "light", - "view": "scene", - "width": 375, - "overflow": 0 - }, - { - "theme": "light", - "view": "states", - "width": 375, - "overflow": 0 - }, - { - "theme": "light", - "view": "layers", - "width": 375, - "overflow": 0 - }, - { - "theme": "dark", - "view": "scene", - "width": 375, - "overflow": 0 - }, - { - "theme": "dark", - "view": "states", - "width": 375, - "overflow": 0 - }, - { - "theme": "dark", - "view": "layers", - "width": 375, - "overflow": 0 - } - ], - "errors": [], - "networkRequests": [] -} diff --git a/tasks/ui-foundations/i2-study/verify-delivery.mjs b/tasks/ui-foundations/i2-study/verify-delivery.mjs deleted file mode 100644 index 00479be..0000000 --- a/tasks/ui-foundations/i2-study/verify-delivery.mjs +++ /dev/null @@ -1,274 +0,0 @@ -import { readFileSync, writeFileSync } from "node:fs"; -import { createHash } from "node:crypto"; -import { dirname, resolve } from "node:path"; -import { fileURLToPath, pathToFileURL } from "node:url"; - -if (!process.argv[2]) throw new Error("Pass an existing Playwright module path."); -const { chromium, expect } = await import(pathToFileURL(resolve(process.argv[2])).href); -const here = dirname(fileURLToPath(import.meta.url)); -const evidence = resolve(here, "../i2-evidence"); -const browser = await chromium.launch(); -const page = await browser.newPage({ viewport: { width: 1000, height: 1000 } }); -const study = await browser.newPage(); -const errors = [], - requests = []; -for (const tab of [page, study]) { - tab.on("pageerror", (error) => errors.push(error.message)); - tab.on("request", (request) => { - if (/^https?:/.test(request.url())) requests.push(request.url()); - }); -} -const report = { - ...JSON.parse(readFileSync(resolve(evidence, "artifact.json"), "utf8")), - approvedStudySha256: createHash("sha256") - .update(readFileSync(resolve(here, "index.html"))) - .digest("hex"), - browser: browser.version(), - themes: [], -}; - -// 比较浏览器实际值;冻结样稿与产物分别构建,不从当前 Token 源重算期望值。 -const readTheme = (locator) => - locator.evaluate((element) => { - const style = getComputedStyle(element); - const probe = document.createElement("span"); - element.appendChild(probe); - const values = Object.fromEntries( - Array.from(style) - .filter( - (name) => - name.startsWith("--sys-color-") || - name.startsWith("--comp-switch-") || - name.startsWith("--sys-elevation-raised-"), - ) - .sort() - .map((name) => { - let value = style.getPropertyValue(name).trim(); - if (CSS.supports("color", value)) { - probe.style.color = value; - value = getComputedStyle(probe).color; - } - return [name, value]; - }), - ); - probe.remove(); - return values; - }); -const settle = () => - page.waitForFunction(() => - document - .getAnimations() - .every( - (animation) => - animation.effect?.getComputedTiming().iterations === Infinity || - animation.playState !== "running", - ), - ); - -try { - await study.goto(pathToFileURL(resolve(here, "index.html")).href); - const expected = {}; - for (const theme of ["light", "dark"]) { - await study.getByLabel("主题", { exact: true }).selectOption(theme); - await study.getByLabel("查看", { exact: true }).selectOption("layers"); - const panel = study.locator('[data-palette="candidate"]'); - expected[theme] = { - tokens: await readTheme(panel), - shadows: await panel - .locator(".shadow-sample") - .evaluateAll((elements) => elements.map((element) => getComputedStyle(element).boxShadow)), - }; - } - await page.goto(pathToFileURL(resolve(evidence, "index.html")).href); - for (const theme of ["light", "dark"]) { - await page.getByLabel("主题", { exact: true }).selectOption(theme); - const tokens = await readTheme(page.locator("html")); - expect(tokens).toEqual(expected[theme].tokens); - const color = (role) => tokens[`--sys-color-${role}`]; - for (const kind of ["primary", "subtle", "danger"]) { - const buttons = page.locator(`[data-kind="${kind}"] button`); - const button = buttons.first(); - const foreground = kind === "subtle" ? "text-base" : `text-on-${kind}`; - await page.mouse.move(0, 0); - await expect(button).toHaveCSS("background-color", color(`surface-${kind}`)); - await expect(button).toHaveCSS("color", color(foreground)); - await button.hover(); - await expect(button).toHaveCSS("background-color", color(`surface-${kind}-hover`)); - await page.mouse.down(); - await expect(button).toHaveCSS("background-color", color(`surface-${kind}-hover`)); - await page.mouse.up(); - await button.focus(); - await button.press("Tab"); - await page.keyboard.press("Shift+Tab"); - await expect(button).toBeFocused(); - await expect(button).toHaveCSS("outline-color", color("border-strong")); - await expect(button).toHaveCSS("outline-width", "2px"); - await expect(buttons.nth(1)).toBeDisabled(); - await expect(buttons.nth(1)).toHaveCSS("background-color", color("surface-subtle")); - await expect(buttons.nth(1)).toHaveCSS("color", color("text-subtle")); - await expect(buttons.nth(2)).toBeDisabled(); - await expect(buttons.nth(2)).toHaveCSS("background-color", color(`surface-${kind}`)); - await expect(buttons.nth(2)).toHaveCSS("color", color(foreground)); - } - const input = page.getByRole("textbox", { name: "来源名称", exact: true }); - await input.focus(); - await input.press("ArrowLeft"); - await expect(input).toHaveAttribute("aria-invalid", "true"); - await expect(page.locator(".ink-input")).toHaveCSS("border-color", color("feedback-error")); - await expect(page.locator(".ink-input")).toHaveCSS("outline-color", color("border-strong")); - const combo = page.getByRole("combobox", { name: "保存内容", exact: true }); - await combo.focus(); - await combo.press("ArrowDown"); - const listbox = page.getByRole("listbox", { name: "保存内容", exact: true }); - const selected = listbox.getByRole("option", { selected: true }); - await expect(selected).toHaveCSS("background-color", color("surface-primary-hover")); - for (const selector of [".option__label", ".option__description"]) { - await expect(selected.locator(selector)).toHaveCSS("color", color("text-on-primary")); - } - await combo.press("ArrowDown"); - await expect(selected).toHaveCSS("background-color", color("surface-primary")); - const next = listbox.getByRole("option", { selected: false }); - await expect(next).toHaveCSS("background-color", color("surface-base-hover")); - await expect(next.locator(".option__description")).toHaveCSS("color", color("text-subtle")); - await page.mouse.move(0, 0); - await settle(); - await page.screenshot({ path: resolve(evidence, `controls-${theme}.png`), fullPage: true }); - await combo.press("Escape"); - await expect(combo).toBeFocused(); - - const shadows = []; - for (const [index, level] of ["low", "md", "high"].entries()) { - const sass = page.locator(`.sass-shadow-${level}`); - const uno = page.locator(`.shadow-${level}`); - await expect(sass).toHaveCSS("box-shadow", expected[theme].shadows[index]); - const unoShadow = await uno.evaluate((element) => getComputedStyle(element).boxShadow); - // Wind3 合成透明的 ring 层;比较可见阴影,同时保留完整计算值。 - const painted = unoShadow - .split(/,(?![^(]*\))/) - .map((layer) => layer.trim()) - .filter((layer) => !layer.startsWith("rgba(0, 0, 0, 0)")); - expect(painted).toEqual([expected[theme].shadows[index]]); - shadows.push({ level, shadow: expected[theme].shadows[index], uno: unoShadow }); - } - const tooltipTrigger = page.getByRole("button", { name: "连接说明", exact: true }); - await tooltipTrigger.focus(); - const tooltip = page.locator('[role="tooltip"]'); - await expect(tooltip).toBeVisible(); - await expect(tooltip).toHaveCSS("box-shadow", expected[theme].shadows[1]); - await page.evaluate(() => - document.documentElement.style.setProperty("--sys-elevation-raised-md-radius", "8px"), - ); - await expect(page.locator(".sass-shadow-md")).not.toHaveCSS( - "box-shadow", - expected[theme].shadows[1], - ); - await expect(tooltip).toHaveCSS( - "box-shadow", - await page - .locator(".sass-shadow-md") - .evaluate((element) => getComputedStyle(element).boxShadow), - ); - await expect(page.locator(".shadow-md")).toHaveCSS("box-shadow", shadows[1].uno); - await page.evaluate(() => - document.documentElement.style.removeProperty("--sys-elevation-raised-md-radius"), - ); - await tooltipTrigger.press("Escape"); - await expect(tooltip).toHaveAttribute("aria-hidden", "true"); - await expect(page.locator(".uno-pair")).toHaveCSS("background-color", color("surface-primary")); - await expect(page.locator(".uno-pair")).toHaveCSS("color", color("text-on-primary")); - - await page.getByRole("button", { name: "打开确认", exact: true }).click(); - const popup = page.getByRole("dialog", { name: "设置确认", exact: true }); - await expect(popup).toBeVisible(); - expect(await popup.evaluate((element) => element.parentElement === document.body)).toBe(true); - await expect(popup).toHaveCSS("background-color", color("surface-base")); - await expect(popup).toHaveCSS("color", color("text-base")); - expect( - await popup.evaluate((element) => getComputedStyle(element, "::backdrop").backgroundColor), - ).toBe(color("overlay-scrim")); - const other = theme === "light" ? "dark" : "light"; - await page.evaluate((value) => { - document.documentElement.dataset.theme = value; - }, other); - await expect(popup).toHaveCSS( - "background-color", - expected[other].tokens["--sys-color-surface-base"], - ); - await expect(popup).toHaveCSS("color", expected[other].tokens["--sys-color-text-base"]); - await page.evaluate((value) => { - document.documentElement.dataset.theme = value; - }, theme); - await page.setViewportSize({ width: 375, height: 900 }); - const popupBounds = await popup.boundingBox(); - expect(popupBounds.x).toBeGreaterThanOrEqual(0); - expect(popupBounds.x + popupBounds.width).toBeLessThanOrEqual(375); - for (const button of await popup.getByRole("button").all()) { - const bounds = await button.boundingBox(); - expect(bounds.x).toBeGreaterThanOrEqual(0); - expect(bounds.x + bounds.width).toBeLessThanOrEqual(375); - } - await settle(); - await page.screenshot({ path: resolve(evidence, `popup-${theme}-375.png`) }); - await page.keyboard.press("Escape"); - await expect(popup).not.toBeVisible(); - await expect(page.getByRole("button", { name: "打开确认", exact: true })).toBeFocused(); - - await page.getByRole("button", { name: "打开阅读层", exact: true }).click(); - const scrim = page.getByRole("dialog", { name: "阅读内容", exact: true }); - await expect(scrim).toBeVisible(); - expect(await scrim.evaluate((element) => element.parentElement === document.body)).toBe(true); - await expect(scrim).toHaveCSS("background-color", color("overlay-scrim")); - await expect(scrim.locator(".scrim-content")).toHaveCSS( - "background-color", - color("surface-base"), - ); - await expect(scrim.locator(".scrim-content")).toHaveCSS("color", color("text-base")); - await expect(scrim.getByRole("button", { name: "Close", exact: true })).toHaveCSS( - "background-color", - color("surface-subtle"), - ); - await settle(); - await page.screenshot({ path: resolve(evidence, `scrim-${theme}-375.png`) }); - await scrim.getByRole("button", { name: "Close", exact: true }).click(); - await expect(scrim).not.toBeVisible(); - await expect(page.getByRole("button", { name: "打开阅读层", exact: true })).toBeFocused(); - const overflow = await page.evaluate(() => document.documentElement.scrollWidth - innerWidth); - expect(overflow).toBeLessThanOrEqual(1); - await page.setViewportSize({ width: 1000, height: 1000 }); - report.themes.push({ - theme, - matchedVariables: Object.keys(tokens).length, - tokens, - shadows, - buttons: "normal/hover/pressed/focus/disabled/pending", - errorWithFocus: true, - selectedLabelAndDescription: true, - rootPopupAndScrim: true, - openPopupThemeChange: true, - sassRuntimeShadow: true, - unoBuildTimeShadow: true, - narrowWidth: 375, - overflow, - }); - } - expect(errors).toEqual([]); - expect(requests).toEqual([]); - writeFileSync( - resolve(evidence, "verification.json"), - JSON.stringify({ ...report, errors, requests }, null, 2) + "\n", - ); - console.log( - JSON.stringify( - report.themes.map(({ theme, matchedVariables, overflow }) => ({ - theme, - matchedVariables, - overflow, - })), - ), - ); -} catch (error) { - await page.screenshot({ path: resolve(evidence, "failure.png"), fullPage: true }); - throw error; -} finally { - await browser.close(); -} diff --git a/tasks/ui-foundations/i2-study/verify.mjs b/tasks/ui-foundations/i2-study/verify.mjs deleted file mode 100644 index 0a5bcf8..0000000 --- a/tasks/ui-foundations/i2-study/verify.mjs +++ /dev/null @@ -1,296 +0,0 @@ -import { pathToFileURL, fileURLToPath } from "node:url"; -import { dirname, resolve } from "node:path"; -import { readFileSync, writeFileSync } from "node:fs"; - -if (!process.argv[2]) throw new Error("Pass an existing Playwright module path."); -const { chromium, expect } = await import(pathToFileURL(resolve(process.argv[2])).href); -const here = dirname(fileURLToPath(import.meta.url)); -const rgb = (hex) => - hex - .slice(1, 7) - .match(/../g) - .map((part) => parseInt(part, 16)); -const cssRgb = (hex) => `rgb(${rgb(hex).join(", ")})`; -function luminance(hex) { - const [r, g, b] = rgb(hex) - .map((value) => value / 255) - .map((value) => (value <= 0.04045 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4)); - return r * 0.2126 + g * 0.7152 + b * 0.0722; -} -function contrast(a, b) { - const [x, y] = [luminance(a), luminance(b)]; - return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05); -} -function measurePairs(colors) { - const text = [], - boundaries = []; - const add = (list, foreground, background, threshold) => { - const ratio = contrast(colors[foreground], colors[background]); - list.push({ foreground, background, ratio, threshold }); - }; - for (const surface of ["base", "subtle", "base-hover", "subtle-hover"]) { - for (const role of [ - "text-base", - "text-subtle", - "feedback-success", - "feedback-warning", - "feedback-info", - "feedback-error", - ]) - add(text, `--sys-color-${role}`, `--sys-color-surface-${surface}`, 4.5); - for (const role of ["border-base", "border-strong", "feedback-error"]) - add(boundaries, `--sys-color-${role}`, `--sys-color-surface-${surface}`, 3); - } - for (const role of ["primary", "danger"]) - for (const state of ["", "-hover"]) - add(text, `--sys-color-text-on-${role}`, `--sys-color-surface-${role}${state}`, 4.5); - add(text, "--comp-switch-label-color", "--comp-switch-handle-bg", 4.5); - add(boundaries, "--comp-switch-track-bg", "--comp-switch-handle-bg", 3); - const minimum = (list) => list.reduce((a, b) => (a.ratio < b.ratio ? a : b)); - return { - textPairs: text.length, - boundaryPairs: boundaries.length, - minimumText: minimum(text), - minimumBoundary: minimum(boundaries), - failures: [...text, ...boundaries].filter((pair) => pair.ratio < pair.threshold), - }; -} - -const browser = await chromium.launch(); -const page = await browser.newPage({ viewport: { width: 1280, height: 1080 } }); -const errors = [], - requests = []; -page.on("pageerror", (error) => errors.push(error.message)); -page.on("request", (request) => { - if (/^https?:/.test(request.url())) requests.push(request.url()); -}); -const report = { - ...JSON.parse(readFileSync(resolve(here, "artifact.json"), "utf8")), - browser: browser.version(), - colors: [], - interactions: [], - feedback: [], - shadows: [], - narrow: [], -}; -const settle = () => - page.waitForFunction(() => - document - .getAnimations() - .every( - (animation) => - animation.effect?.getComputedTiming().iterations === Infinity || - animation.playState !== "running", - ), - ); -const paletteOf = (panel) => - panel.evaluate((element) => - Object.fromEntries( - Array.from(getComputedStyle(element)) - .filter((name) => name.startsWith("--sys-color-") || name.startsWith("--comp-switch-")) - .map((name) => [name, getComputedStyle(element).getPropertyValue(name).trim()]), - ), - ); -try { - await page.goto(pathToFileURL(resolve(here, "index.html")).href); - await expect(page.locator("[data-palette]")).toHaveCount(2); - for (const theme of ["light", "dark"]) { - await page.getByLabel("主题", { exact: true }).selectOption(theme); - await page.getByLabel("查看", { exact: true }).selectOption("scene"); - await page - .locator('[data-palette="current"]') - .getByRole("button", { name: "取消", exact: true }) - .click(); - await page.mouse.move(0, 0); - await settle(); - await page.screenshot({ path: resolve(here, `scene-${theme}.png`), fullPage: true }); - for (const id of ["current", "candidate"]) { - const panel = page.locator(`[data-palette="${id}"]`); - const colors = await paletteOf(panel); - const measured = measurePairs(colors); - report.colors.push({ theme, palette: id, ...measured }); - if (id === "candidate") expect(measured.failures).toEqual([]); - await expect( - panel.locator(".source-row .success, .source-row .warning, .source-row .info"), - ).toHaveCount(0); - await panel.getByRole("button", { name: "保存设置", exact: true }).click(); - await expect(panel.getByRole("status")).toHaveCSS( - "color", - cssRgb(colors["--sys-color-text-subtle"]), - ); - } - await page.getByLabel("表单状态", { exact: true }).selectOption("error"); - for (const id of ["current", "candidate"]) { - const panel = page.locator(`[data-palette="${id}"]`); - const input = panel.getByRole("textbox", { name: "来源名称", exact: true }); - await input.focus(); - await input.press("ArrowLeft"); - await expect(input).toHaveAttribute("aria-invalid", "true"); - const colors = await paletteOf(panel); - await expect(panel.locator(".ink-input")).toHaveCSS( - "border-color", - cssRgb(colors["--sys-color-feedback-error"]), - ); - await expect(panel.locator(".ink-input")).toHaveCSS( - "outline-color", - cssRgb(colors["--sys-color-border-strong"]), - ); - await expect(panel.locator(".ink-input")).toHaveCSS("outline-width", "2px"); - } - await page.getByLabel("表单状态", { exact: true }).selectOption("pending"); - for (const id of ["current", "candidate"]) { - const panel = page.locator(`[data-palette="${id}"]`); - const button = panel.getByRole("button", { name: "保存设置", exact: true }); - const colors = await paletteOf(panel); - await expect(button).toBeDisabled(); - await expect(button).toHaveCSS( - "background-color", - cssRgb(colors["--sys-color-surface-primary"]), - ); - await expect(button).toHaveCSS("color", cssRgb(colors["--sys-color-text-on-primary"])); - await expect(panel.getByRole("status")).toHaveCSS( - "color", - cssRgb(colors["--sys-color-text-subtle"]), - ); - } - await page.getByLabel("表单状态", { exact: true }).selectOption("normal"); - await page.getByLabel("查看", { exact: true }).selectOption("states"); - for (const kind of ["normal", "success", "warning", "info", "error"]) { - await page.getByLabel("反馈情境", { exact: true }).selectOption(kind); - for (const id of ["current", "candidate"]) { - const panel = page.locator(`[data-palette="${id}"]`); - const colors = await paletteOf(panel); - const feedback = panel.locator(".feedback-example"); - await expect(feedback).toHaveCount(1); - await expect(feedback).toHaveAttribute("data-feedback", kind); - const titleColor = - colors[kind === "normal" ? "--sys-color-text-subtle" : `--sys-color-feedback-${kind}`]; - await expect(feedback.locator(".feedback-title")).toHaveCSS("color", cssRgb(titleColor)); - await expect(feedback.locator(".feedback-detail")).toHaveCSS( - "color", - cssRgb(colors["--sys-color-text-base"]), - ); - report.feedback.push({ - theme, - palette: id, - kind, - titleColor, - detailColor: colors["--sys-color-text-base"], - }); - } - } - await page.getByLabel("反馈情境", { exact: true }).selectOption("warning"); - await page.getByLabel("查看", { exact: true }).selectOption("scene"); - await page - .locator('[data-palette="current"]') - .getByRole("button", { name: "取消", exact: true }) - .click(); - await page.getByLabel("查看", { exact: true }).selectOption("states"); - await page.mouse.move(0, 0); - await settle(); - await page.screenshot({ path: resolve(here, `states-${theme}.png`), fullPage: true }); - for (const id of ["current", "candidate"]) - for (const kind of ["primary", "subtle", "danger"]) { - const panel = page.locator(`[data-palette="${id}"]`); - const colors = await paletteOf(panel); - const button = panel.locator(`[data-kind="${kind}"] button`).first(); - await page.mouse.move(0, 0); - await expect(button).toHaveCSS( - "background-color", - cssRgb(colors[`--sys-color-surface-${kind}`]), - ); - await button.hover(); - await expect(button).toHaveCSS( - "background-color", - cssRgb(colors[`--sys-color-surface-${kind}-hover`]), - ); - await page.mouse.down(); - await expect(button).toHaveCSS( - "background-color", - cssRgb(colors[`--sys-color-surface-${kind}-hover`]), - ); - await page.mouse.up(); - await button.focus(); - await page.keyboard.press("Tab"); - await page.keyboard.press("Shift+Tab"); - await expect(button).toBeFocused(); - await expect(button).toHaveCSS("outline-width", "2px"); - const disabled = panel.locator(`[data-kind="${kind}"] button`).nth(1); - await expect(disabled).toBeDisabled(); - await expect(disabled).toHaveCSS( - "background-color", - cssRgb(colors["--sys-color-surface-subtle"]), - ); - } - report.interactions.push({ - theme, - errorBorderWithFocus: true, - pendingKeepsPrimaryPair: true, - routineStatusUsesNeutralText: true, - buttonStates: "primary/subtle/danger: normal, hover, pressed, focus, disabled", - }); - await page.getByLabel("查看", { exact: true }).selectOption("layers"); - const buttons = page.getByRole("button", { name: "连接说明", exact: true }); - await buttons.first().focus(); - await buttons.nth(1).hover(); - await settle(); - for (const id of ["current", "candidate"]) { - const tooltip = page.locator(`[data-palette="${id}"] [role="tooltip"]`); - await expect(tooltip).toBeVisible(); - await expect(tooltip).toHaveAttribute("aria-hidden", "false"); - report.shadows.push({ - theme, - palette: id, - shadow: await tooltip.evaluate((element) => getComputedStyle(element).boxShadow), - }); - } - await page.screenshot({ path: resolve(here, `layers-${theme}.png`), fullPage: true }); - await buttons.nth(1).focus(); - await page.keyboard.press("Escape"); - await expect(page.locator('[data-palette="candidate"] [role="tooltip"]')).toHaveAttribute( - "aria-hidden", - "true", - ); - await page.setViewportSize({ width: 375, height: 900 }); - for (const view of ["scene", "states", "layers"]) { - await page.getByLabel("查看", { exact: true }).selectOption(view); - if (view === "layers") { - await page - .locator('[data-palette="candidate"]') - .getByRole("button", { name: "连接说明", exact: true }) - .focus(); - const bounds = await page - .locator('[data-palette="candidate"] [role="tooltip"]') - .boundingBox(); - expect(bounds.x).toBeGreaterThanOrEqual(0); - expect(bounds.x + bounds.width).toBeLessThanOrEqual(375); - } - const overflow = await page.evaluate(() => document.documentElement.scrollWidth - innerWidth); - expect(overflow).toBeLessThanOrEqual(1); - report.narrow.push({ theme, view, width: 375, overflow }); - } - await page.setViewportSize({ width: 1280, height: 1080 }); - } - expect(errors).toEqual([]); - expect(requests).toEqual([]); - writeFileSync( - resolve(here, "verification.json"), - JSON.stringify({ ...report, errors, networkRequests: requests }, null, 2) + "\n", - ); - console.log( - JSON.stringify( - report.colors.map(({ theme, palette, minimumText, minimumBoundary, failures }) => ({ - theme, - palette, - minimumText: minimumText.ratio, - minimumBoundary: minimumBoundary.ratio, - failures: failures.length, - })), - ), - ); -} catch (error) { - await page.screenshot({ path: resolve(here, "failure.png"), fullPage: true }); - throw error; -} finally { - await browser.close(); -} diff --git a/tasks/ui-foundations/l3-evidence/App.vue b/tasks/ui-foundations/l3-evidence/App.vue deleted file mode 100644 index e3ff832..0000000 --- a/tasks/ui-foundations/l3-evidence/App.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/tasks/ui-foundations/l3-evidence/README.md b/tasks/ui-foundations/l3-evidence/README.md deleted file mode 100644 index e2971f4..0000000 --- a/tasks/ui-foundations/l3-evidence/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# L3 验证证据 - -本目录对应 [L3 执行记录](../l3-execution.md),基线为 `c67cc88`,验证日期为 2026-09-13。生产者仍标记 1.4.0,使用的是包含未发布改动的本地 tarball;不是 registry 中 1.4.0 的验收。精确 tarball 与关键文件摘要见 [artifact.json](artifact.json)。 - -## 最终结果 - -| 检查 | 结果 | 证据 | -| --- | --- | --- | -| 完整 pnpm check | 退出 0;21 个 Story、120 个 Variant | [完整日志](pnpm-check.log) | -| 最终 tarball 独立安装 | 退出 0;最小依赖、严格声明、指南配方、Intent 与可选 Uno/Sass | [包契约日志](package-contract.log) | -| 三份指南配方浏览器旅程 | 保存成功/失败、原始 JSON、路由/语言/主题、320px;无 pageerror | [结果](browser.json)、[复跑脚本](browser-check.mjs) | -| 生成器失败边界 | 过期 DESIGN.md 和未知 helper 均拒绝,之后已还原并通过 check:skills | [结果](generator-boundaries.json) | -| 真实 Web 与扩展声明检查 | Web 两个 graph 回调错误;mail、twitter 退出 0 | [汇总](consumer-types.json)、[Web 日志](consumer-web.log)、[mail 日志](consumer-mail.log)、[twitter 日志](consumer-twitter.log) | -| 现有源码联调 | 退出 2;两个 graph 错误与五项宿主 JSON 版本覆盖错误 | [日志](consumer-source-overlay.log) | -| 局部接入补丁 | git apply --check 通过,未应用 | [补丁](client-web-integration.patch) | - -完整检查使用仓库固定的 Node 22.22.3/PNPM 11.17.0;隔离消费者使用 Vue 3.5.25、TypeScript 5.9.3、vue-tsc 3.3.8、Vite 7.2.7、Intent 0.3.6,可选阶段安装 UnoCSS 66.5.10。浏览器脚本使用本机既有 Playwright 1.61.1 与 Chromium 149.0.7827.55,没有为仓库增加浏览器测试依赖或套件。 - -消费者声明实验读取原有源文件并使用其现有 tsconfig 选项,只替换 UI 声明入口并显式共享宿主 Vue 3.5.40。它不安装新 UI 到消费者,不证明 Sass 迁移、运行时交互或真实页面已经通过。mail 的错误 loading 属性正是静态检查未能发现、人工调用核对发现的例子。 - -## 复跑本地交付与浏览器 - -先从仓库根生成并构建当前产物,或直接运行完整检查。保留浏览器用的临时目录时,执行: - -```bash -pnpm exec tsx scripts/check-package-contract.ts --keep -``` - -命令结束会输出 `Consumer retained at ...`;下文 `` 替换成该目录。消费者已含从安装包指南提取的三个配方,只需换入演练宿主,它负责模拟保存和切换上下文: - -```bash -cp tasks/ui-foundations/l3-evidence/App.vue /consumer/App.vue -pnpm --dir /consumer exec vite --host 127.0.0.1 --port 5203 --strictPort -``` - -另一个终端传入本机已有 Playwright 的 ESM 模块路径: - -```bash -node tasks/ui-foundations/l3-evidence/browser-check.mjs /index.mjs -``` - -脚本更新结果 JSON 与两张截图。它检查真实可观察状态,不访问组件内部状态;截图前等待有限动画结束。演练宿主 [App.vue](App.vue) 的 save 是可失败的 500ms 模拟请求,三份消费配方来自安装包;不连接真实账户或后端。 - -深色弹层截图见 [integration-dark.png](integration-dark.png),320px 普通容器见 [recipes-320.png](recipes-320.png)。两张图片受根级 PNG 忽略规则影响,后续整理提交时需显式纳入,避免检出后链接失效。临时 tarball、消费者 node_modules 和开发服务器不纳入仓库;检查后可停止服务器并删除临时目录。 - -## 复跑真实声明兼容检查 - -```bash -node tasks/ui-foundations/l3-evidence/consumer-types.mjs ../client-web /consumer/node_modules/@inkcre/ui-web -git -C ../client-web apply --check ../design/tasks/ui-foundations/l3-evidence/client-web-integration.patch -``` - -声明脚本只在系统临时目录写 tsconfig,结果写回本目录,结束后删除临时配置。Web 保留两个已知错误,因此脚本整体预期退出 1;消费者代码没有被补丁修改。仓库名称不同的 checkout 需替换补丁路径。升级后重跑的结果应重新标记其源码版本,不覆盖本轮结论而不更新工作包。 - -生成器负向演练是在 `try/finally` 中临时修改包内 DESIGN.md,以及把 InkInput 的已知 helper 导入改为未支持的别名;分别运行 `skill:generate:check`,断言明确报错,再逐字节恢复。当前已恢复后的 Skill 检查通过;负向结果不表示工作树仍处于错误状态。 diff --git a/tasks/ui-foundations/l3-evidence/artifact.json b/tasks/ui-foundations/l3-evidence/artifact.json deleted file mode 100644 index 88d73d8..0000000 --- a/tasks/ui-foundations/l3-evidence/artifact.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "date": "2026-09-13", - "producerBase": "c67cc885dff33d3585f208ff7b116ca1a594df94", - "localUnpublished": true, - "packageName": "@inkcre/ui-web", - "manifestVersion": "1.4.0", - "tarballSha256": "56a7dd35d32ad8c6bee00a45108ccceecb3d445fddf6bf19c73a35c976cb21b0", - "tarballBytes": 146077, - "consumerRoot": "/var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-ui-contract-z8yzyA/consumer", - "checks": { - "pnpm check": 0, - "check-package-contract --keep": 0 - }, - "artifactFiles": { - "DESIGN.md": "c93c9e8aee83e71e62a1a44359864edcdac03f6b68e907952a196b11890cc06a", - "dist/index.js": "37352f1aa257548c1d2677fd9527d21fdc8bd44090deb0281557a47c1aefbbe4", - "dist/index.css": "bb1a39e0392fce3f8fdae2ea68cb2b92af0806f873522f3e120b142717ef2a0b", - "dist/index.d.ts": "d5484e8eab90dc2b43811586c41339c5e32965e00210cc6abd447844d444effe", - "dist/uno/preset-ink.d.ts": "f02e3fa534aaff1c45dcfe429e656fa5d2fcd30e716f8b1b2487c20135bccc2a", - "skills/ui-web/references/composition-recipes.md": "d1f627c46e3f8d646d654ef2f4cca773ce84f5f9fc9f47538be252e7d1937a2c" - }, - "rootDesignSha256": "c93c9e8aee83e71e62a1a44359864edcdac03f6b68e907952a196b11890cc06a" -} diff --git a/tasks/ui-foundations/l3-evidence/browser-check.mjs b/tasks/ui-foundations/l3-evidence/browser-check.mjs deleted file mode 100644 index 4667472..0000000 --- a/tasks/ui-foundations/l3-evidence/browser-check.mjs +++ /dev/null @@ -1,103 +0,0 @@ -import { pathToFileURL } from "node:url"; -import { resolve, dirname } from "node:path"; -import { fileURLToPath } from "node:url"; -const { chromium } = await import(pathToFileURL(resolve(process.argv[2])).href); -import { writeFileSync } from "node:fs"; -import assert from "node:assert/strict"; -const browser = await chromium.launch(); -const page = await browser.newPage({ viewport: { width: 480, height: 1000 } }); -const errors = []; -page.on("pageerror", (e) => errors.push(e.message)); -const report = { browser: browser.version(), checks: [] }; -const out = dirname(fileURLToPath(import.meta.url)) + "/"; -try { - await page.goto(process.argv[3] ?? "http://127.0.0.1:5203/"); - const input = page.getByRole("textbox", { name: "名称", exact: true }); - await input.fill("协作空间"); - const save = page.getByRole("button", { name: "保存设置", exact: true }); - await save.click(); - assert.equal(await save.isDisabled(), true); - assert.equal(await input.isDisabled(), true); - assert.match(await save.innerText(), /保存设置/); - await page.getByRole("status").filter({ hasText: "设置已保存。" }).waitFor(); - report.checks.push("设置保存:pending 保留文字并禁用,完成后显示成功"); - await page.getByLabel("模拟保存失败").check(); - await input.fill("保留的草稿"); - await save.click(); - await page.getByText("保存失败,请稍后重试。", { exact: true }).waitFor(); - assert.equal(await input.inputValue(), "保留的草稿"); - report.checks.push("设置失败:可见错误且保留草稿"); - const jsonSave = page.getByRole("button", { name: "保存配置", exact: true }); - await page.waitForFunction(() => - [...document.querySelectorAll("button")].some( - (b) => b.textContent.includes("保存配置") && !b.disabled, - ), - ); - const editor = page.locator("#json .cm-content"); - await editor.fill('{"name":'); - await page.waitForFunction(() => - [...document.querySelectorAll("button")].some( - (b) => b.textContent.includes("保存配置") && b.disabled, - ), - ); - assert.match(await editor.innerText(), /\{"name":/); - report.checks.push("JSON 不完整输入保留原文,保存禁用"); - await editor.fill('{"name":"新的配置"}'); - await page.getByLabel("模拟保存失败").uncheck(); - await page.waitForFunction(() => - [...document.querySelectorAll("button")].some( - (b) => b.textContent.includes("保存配置") && !b.disabled, - ), - ); - await jsonSave.click(); - await page.getByRole("status").filter({ hasText: "配置已保存。" }).waitFor(); - await editor.press("Escape"); - report.checks.push("JSON 验证通过后可解析保存"); - await page.getByRole("button", { name: "切换路由", exact: true }).click(); - assert.match(await page.locator("#integration").innerText(), /扩展/); - await page.getByRole("button", { name: "查看设置说明" }).click(); - await page.getByRole("dialog").waitFor(); - await page.getByRole("button", { name: "Confirm", exact: true }).click(); - await page.getByRole("button", { name: "切换语言", exact: true }).click(); - await page.getByRole("combobox", { name: "主题", exact: true }).selectOption("dark"); - await page.getByRole("button", { name: "查看设置说明" }).click(); - await page.getByRole("button", { name: "确认", exact: true }).waitFor(); - assert.equal(await page.evaluate(() => document.documentElement.dataset.theme), "dark"); - await page.waitForFunction(() => - document - .getAnimations() - .every( - (animation) => - animation.effect?.getComputedTiming().iterations === Infinity || - animation.playState !== "running", - ), - ); - await page.screenshot({ path: out + "integration-dark.png", fullPage: true }); - report.checks.push("路由和语言响应式更新,Dialog 采用根级深色主题"); - await page.getByRole("button", { name: "确认", exact: true }).click(); - await page.getByRole("dialog").waitFor({ state: "hidden" }); - await page.getByRole("combobox", { name: "主题", exact: true }).selectOption("light"); - await page.setViewportSize({ width: 320, height: 1000 }); - await page.locator("#settings h1").click(); - report.viewport320 = await page.evaluate(() => ({ - width: innerWidth, - overflow: document.documentElement.scrollWidth - innerWidth, - })); - assert.ok(report.viewport320.overflow <= 1); - await page.waitForFunction(() => - document - .getAnimations() - .every( - (animation) => - animation.effect?.getComputedTiming().iterations === Infinity || - animation.playState !== "running", - ), - ); - await page.screenshot({ path: out + "recipes-320.png", fullPage: true }); - assert.deepEqual(errors, []); - report.pageErrors = errors; - writeFileSync(out + "browser.json", JSON.stringify(report, null, 2) + "\n"); - console.log(JSON.stringify(report)); -} finally { - await browser.close(); -} diff --git a/tasks/ui-foundations/l3-evidence/browser.json b/tasks/ui-foundations/l3-evidence/browser.json deleted file mode 100644 index 393d5bf..0000000 --- a/tasks/ui-foundations/l3-evidence/browser.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "browser": "149.0.7827.55", - "checks": [ - "设置保存:pending 保留文字并禁用,完成后显示成功", - "设置失败:可见错误且保留草稿", - "JSON 不完整输入保留原文,保存禁用", - "JSON 验证通过后可解析保存", - "路由和语言响应式更新,Dialog 采用根级深色主题" - ], - "viewport320": { - "width": 320, - "overflow": 0 - }, - "pageErrors": [] -} diff --git a/tasks/ui-foundations/l3-evidence/client-web-integration.patch b/tasks/ui-foundations/l3-evidence/client-web-integration.patch deleted file mode 100644 index b114789..0000000 --- a/tasks/ui-foundations/l3-evidence/client-web-integration.patch +++ /dev/null @@ -1,60 +0,0 @@ ---- a/apps/client-web/src/views/info-base/graph/graph.vue -+++ b/apps/client-web/src/views/info-base/graph/graph.vue -@@ -393,8 +393,8 @@ - - -
-- -- -+ -+ - -
- ---- a/extensions/mail/src/components/contentMimePart/contentMimePart.vue -+++ b/extensions/mail/src/components/contentMimePart/contentMimePart.vue -@@ -48,7 +48,7 @@ - rel="noopener noreferrer" - >Open -- -+ -

{{ error.message }}

- - ---- a/extensions/mail/src/components/contentEmail/contentEmail.vue -+++ b/extensions/mail/src/components/contentEmail/contentEmail.vue -@@ -156,7 +156,7 @@ - -

---- a/scripts/ui-source.mjs -+++ b/scripts/ui-source.mjs -@@ -17,21 +17,7 @@ - ['@inkcre/ui-web/uno', 'styles/uno/preset-ink.ts'], - ] - --export const uiSourceDedupe = [ -- '@codemirror/autocomplete', -- '@codemirror/commands', -- '@codemirror/lang-json', -- '@codemirror/lint', -- '@codemirror/state', -- '@codemirror/view', -- '@vueuse/core', -- 'dayjs', -- 'unocss', -- 'vscode-json-languageservice', -- 'vscode-languageserver-textdocument', -- 'vue', -- 'vue-router', --] -+export const uiSourceDedupe = ['unocss', 'vue'] - - function exactSpecifier(specifier) { - const escaped = specifier.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') diff --git a/tasks/ui-foundations/l3-evidence/consumer-mail.log b/tasks/ui-foundations/l3-evidence/consumer-mail.log deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/ui-foundations/l3-evidence/consumer-source-overlay.log b/tasks/ui-foundations/l3-evidence/consumer-source-overlay.log deleted file mode 100644 index ff43684..0000000 --- a/tasks/ui-foundations/l3-evidence/consumer-source-overlay.log +++ /dev/null @@ -1,20 +0,0 @@ -$ node scripts/type-check-ui.mjs --ui-source /Volumes/WorkSSD/Development/InKCre/design/packages/web -src/views/info-base/graph/graph.vue(396,68): error TS2322: Type 'ZoomInOut' is not assignable to type '(_event: MouseEvent) => any'. - Types of parameters 'options' and '_event' are incompatible. - Type 'MouseEvent' has no properties in common with type 'TransitionOptions'. -src/views/info-base/graph/graph.vue(397,69): error TS2322: Type 'ZoomInOut' is not assignable to type '(_event: MouseEvent) => any'. - Types of parameters 'options' and '_event' are incompatible. - Type 'MouseEvent' has no properties in common with type 'TransitionOptions'. -../../../design/packages/web/src/components/inkAutoForm/inkAutoForm.ts(156,77): error TS2345: Argument of type 'string | MarkupContent' is not assignable to parameter of type 'string'. - Type 'MarkupContent' is not assignable to type 'string'. -../../../design/packages/web/src/components/inkAutoForm/inkAutoForm.ts(157,26): error TS2345: Argument of type 'string | MarkupContent' is not assignable to parameter of type 'string'. - Type 'MarkupContent' is not assignable to type 'string'. -../../../design/packages/web/src/components/inkJsonEditor/inkJsonEditor.vue(78,11): error TS2322: Type '{ from: number; to: number; severity: "error" | "warning"; message: string | MarkupContent; }[]' is not assignable to type 'Diagnostic[]'. - Type '{ from: number; to: number; severity: "error" | "warning"; message: string | MarkupContent; }' is not assignable to type 'Diagnostic'. - Types of property 'message' are incompatible. - Type 'string | MarkupContent' is not assignable to type 'string'. - Type 'MarkupContent' is not assignable to type 'string'. -../../../design/packages/web/src/components/inkJsonEditor/inkJsonEditor.vue(105,48): error TS2345: Argument of type 'string | MarkupContent' is not assignable to parameter of type 'string | undefined'. - Type 'MarkupContent' is not assignable to type 'string'. -../../../design/packages/web/src/components/inkJsonEditor/jsonSchemaService.ts(37,14): error TS2322: Type '768' is not assignable to type 'ErrorCode.SchemaResolveError'. -[ELIFECYCLE] Command failed with exit code 2. diff --git a/tasks/ui-foundations/l3-evidence/consumer-twitter.log b/tasks/ui-foundations/l3-evidence/consumer-twitter.log deleted file mode 100644 index e69de29..0000000 diff --git a/tasks/ui-foundations/l3-evidence/consumer-types.json b/tasks/ui-foundations/l3-evidence/consumer-types.json deleted file mode 100644 index 506b646..0000000 --- a/tasks/ui-foundations/l3-evidence/consumer-types.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "name": "web", - "directory": "apps/client-web", - "exit": 2, - "vue": "3.5.40", - "errors": [ - "src/views/info-base/graph/graph.vue(396,68): error TS2322: Type 'ZoomInOut' is not assignable to type '(_event: MouseEvent) => any'.", - "src/views/info-base/graph/graph.vue(397,69): error TS2322: Type 'ZoomInOut' is not assignable to type '(_event: MouseEvent) => any'." - ] - }, - { - "name": "mail", - "directory": "extensions/mail", - "exit": 0, - "vue": "3.5.40", - "errors": [] - }, - { - "name": "twitter", - "directory": "extensions/twitter", - "exit": 0, - "vue": "3.5.40", - "errors": [] - } -] diff --git a/tasks/ui-foundations/l3-evidence/consumer-types.mjs b/tasks/ui-foundations/l3-evidence/consumer-types.mjs deleted file mode 100644 index c18d1c2..0000000 --- a/tasks/ui-foundations/l3-evidence/consumer-types.mjs +++ /dev/null @@ -1,67 +0,0 @@ -// 一次性 L3 声明兼容演练;不修改消费者依赖或源码,不等同实际升级。 -import { mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSync } from "node:fs"; -import { tmpdir } from "node:os"; -import { dirname, join, resolve } from "node:path"; -import { fileURLToPath } from "node:url"; -import { spawnSync } from "node:child_process"; - -const client = resolve(process.argv[2]); -const packed = realpathSync(resolve(process.argv[3])); -const output = dirname(fileURLToPath(import.meta.url)); -const temporary = mkdtempSync(join(tmpdir(), "inkcre-l3-types-")); -const report = []; -try { - for (const [name, directory, config] of [ - ["web", "apps/client-web", "tsconfig.app.json"], - ["mail", "extensions/mail", "tsconfig.json"], - ["twitter", "extensions/twitter", "tsconfig.json"], - ]) { - const app = resolve(client, directory); - const paths = { - "@/*": [resolve(client, "apps/client-web/src/*")], - "@inkcre/core": [resolve(client, "packages/core/src/index.ts")], - "@inkcre/core/*": [resolve(client, "packages/core/src/*")], - vue: [resolve(app, "node_modules/vue")], - }; - for (const [entry, file] of [ - ["@inkcre/ui-web", "index.d.ts"], - ["@inkcre/ui-web/utils", "utils/index.d.ts"], - ["@inkcre/ui-web/locales", "locales/index.d.ts"], - ["@inkcre/ui-web/uno", "uno/preset-ink.d.ts"], - ]) - paths[entry] = [resolve(packed, "dist", file)]; - const include = [resolve(app, "src/**/*"), resolve(packed, "dist/components.d.ts")]; - if (name === "web") include.push(resolve(app, "env.d.ts")); - const configuration = resolve(temporary, `${name}.json`); - writeFileSync( - configuration, - JSON.stringify( - { - extends: resolve(app, config), - compilerOptions: { composite: false, incremental: false, paths, types: [] }, - include, - }, - null, - 2, - ), - ); - const result = spawnSync("pnpm", ["exec", "vue-tsc", "--noEmit", "-p", configuration], { - cwd: app, - encoding: "utf8", - }); - const log = result.stdout + result.stderr; - writeFileSync(resolve(output, `consumer-${name}.log`), log); - report.push({ - name, - directory, - exit: result.status, - vue: JSON.parse(readFileSync(resolve(app, "node_modules/vue/package.json"))).version, - errors: log.split("\n").filter((line) => line.includes("error TS")), - }); - } -} finally { - rmSync(temporary, { recursive: true, force: true }); -} -writeFileSync(resolve(output, "consumer-types.json"), JSON.stringify(report, null, 2) + "\n"); -console.log(JSON.stringify(report)); -if (report.some((entry) => entry.exit !== 0)) process.exitCode = 1; diff --git a/tasks/ui-foundations/l3-evidence/consumer-web.log b/tasks/ui-foundations/l3-evidence/consumer-web.log deleted file mode 100644 index 1d5c5e6..0000000 --- a/tasks/ui-foundations/l3-evidence/consumer-web.log +++ /dev/null @@ -1,6 +0,0 @@ -src/views/info-base/graph/graph.vue(396,68): error TS2322: Type 'ZoomInOut' is not assignable to type '(_event: MouseEvent) => any'. - Types of parameters 'options' and '_event' are incompatible. - Type 'MouseEvent' has no properties in common with type 'TransitionOptions'. -src/views/info-base/graph/graph.vue(397,69): error TS2322: Type 'ZoomInOut' is not assignable to type '(_event: MouseEvent) => any'. - Types of parameters 'options' and '_event' are incompatible. - Type 'MouseEvent' has no properties in common with type 'TransitionOptions'. diff --git a/tasks/ui-foundations/l3-evidence/generator-boundaries.json b/tasks/ui-foundations/l3-evidence/generator-boundaries.json deleted file mode 100644 index ed5f10f..0000000 --- a/tasks/ui-foundations/l3-evidence/generator-boundaries.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "probe": "stale-design-copy", - "exit": 1, - "evidence": [ - "Packaged DESIGN.md is stale" - ] - }, - { - "probe": "unknown-prop-helper", - "exit": 1, - "evidence": [ - "Document the unsupported prop factory before publishing: unsupportedStringProp" - ] - } -] diff --git a/tasks/ui-foundations/l3-evidence/integration-dark.png b/tasks/ui-foundations/l3-evidence/integration-dark.png deleted file mode 100644 index c69e7b6..0000000 Binary files a/tasks/ui-foundations/l3-evidence/integration-dark.png and /dev/null differ diff --git a/tasks/ui-foundations/l3-evidence/package-contract.log b/tasks/ui-foundations/l3-evidence/package-contract.log deleted file mode 100644 index 4ca7d31..0000000 --- a/tasks/ui-foundations/l3-evidence/package-contract.log +++ /dev/null @@ -1,154 +0,0 @@ -package: @inkcre/ui-web@1.4.0 -Tarball Contents -DESIGN.md -dist/App.vue.d.ts -dist/components.d.ts -dist/components/inkAutoForm/inkAutoForm.d.ts -dist/components/inkAutoForm/inkAutoForm.vue.d.ts -dist/components/inkButton/inkButton.d.ts -dist/components/inkButton/inkButton.vue.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.vue.d.ts -dist/components/inkDialog/inkDialog.d.ts -dist/components/inkDialog/inkDialog.vue.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.vue.d.ts -dist/components/inkDropdown/inkDropdown.d.ts -dist/components/inkDropdown/inkDropdown.vue.d.ts -dist/components/inkField/inkField.d.ts -dist/components/inkField/inkField.vue.d.ts -dist/components/inkForm/inkForm.d.ts -dist/components/inkForm/inkForm.vue.d.ts -dist/components/inkHeader/inkHeader.d.ts -dist/components/inkHeader/inkHeader.vue.d.ts -dist/components/inkImage/inkImage.d.ts -dist/components/inkImage/inkImage.vue.d.ts -dist/components/inkInput/inkInput.d.ts -dist/components/inkInput/inkInput.vue.d.ts -dist/components/inkJsonEditor/inkJsonEditor.d.ts -dist/components/inkJsonEditor/inkJsonEditor.vue.d.ts -dist/components/inkJsonEditor/jsonSchemaService.d.ts -dist/components/inkLoading/inkLoading.d.ts -dist/components/inkLoading/inkLoading.vue.d.ts -dist/components/inkPagination/inkPagination.d.ts -dist/components/inkPagination/inkPagination.vue.d.ts -dist/components/inkPicker/inkPicker.d.ts -dist/components/inkPicker/inkPicker.vue.d.ts -dist/components/inkPlaceholder/inkPlaceholder.d.ts -dist/components/inkPlaceholder/inkPlaceholder.vue.d.ts -dist/components/inkPopup/inkPopup.d.ts -dist/components/inkPopup/inkPopup.vue.d.ts -dist/components/inkScrim/inkScrim.d.ts -dist/components/inkScrim/inkScrim.vue.d.ts -dist/components/inkSwitch/inkSwitch.d.ts -dist/components/inkSwitch/inkSwitch.vue.d.ts -dist/components/inkTextarea/inkTextarea.d.ts -dist/components/inkTextarea/inkTextarea.vue.d.ts -dist/components/inkTooltip/inkTooltip.d.ts -dist/components/inkTooltip/inkTooltip.vue.d.ts -dist/composables/use-async-boolean.d.ts -dist/composables/use-field-control.d.ts -dist/composables/use-native-dialog.d.ts -dist/composables/use-optional-model.d.ts -dist/i18n.d.ts -dist/index.css -dist/index.d.ts -dist/index.js -dist/locales/en.d.ts -dist/locales/index.d.ts -dist/locales/index.js -dist/locales/zh-CN.d.ts -dist/main.d.ts -dist/public-components.d.ts -dist/router.d.ts -dist/uno/preset-ink.d.ts -dist/uno/preset-ink.js -dist/utils/index.d.ts -dist/utils/index.js -dist/utils/json.d.ts -dist/utils/token-types.d.ts -dist/utils/vue-props.d.ts -dist/version.d.ts -MIGRATION.md -package.json -README.md -skills/ui-web/references/common-mistakes.md -skills/ui-web/references/component-map.md -skills/ui-web/references/components/InkAutoForm.md -skills/ui-web/references/components/InkButton.md -skills/ui-web/references/components/InkDatetimePickerView.md -skills/ui-web/references/components/InkDialog.md -skills/ui-web/references/components/InkDoubleCheck.md -skills/ui-web/references/components/InkDropdown.md -skills/ui-web/references/components/InkField.md -skills/ui-web/references/components/InkForm.md -skills/ui-web/references/components/InkHeader.md -skills/ui-web/references/components/InkImage.md -skills/ui-web/references/components/InkInput.md -skills/ui-web/references/components/InkJsonEditor.md -skills/ui-web/references/components/InkLoading.md -skills/ui-web/references/components/InkPagination.md -skills/ui-web/references/components/InkPicker.md -skills/ui-web/references/components/InkPlaceholder.md -skills/ui-web/references/components/InkPopup.md -skills/ui-web/references/components/InkScrim.md -skills/ui-web/references/components/InkSwitch.md -skills/ui-web/references/components/InkTextarea.md -skills/ui-web/references/components/InkTooltip.md -skills/ui-web/references/composition-recipes.md -skills/ui-web/references/integration.md -skills/ui-web/references/styling-and-themes.md -skills/ui-web/SKILL.md -styles/_functions.scss -styles/_mixins.scss -styles/index.scss -styles/README.md -styles/tokens/_comp.scss -styles/tokens/_ref.scss -styles/tokens/_sys.scss -styles/uno/preset-ink.ts -Tarball Details -/var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-ui-contract-z8yzyA/source-pack/inkcre-ui-web-1.4.0.tgz -Progress: resolved 1, reused 0, downloaded 0, added 0 -Packages: +80 -++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -Progress: resolved 130, reused 79, downloaded 1, added 80, done - -dependencies: -+ @inkcre/ui-web 1.4.0 -+ vue 3.5.25 (3.5.42 is available) - -devDependencies: -+ @tanstack/intent 0.3.6 (0.4.0 is available) -+ @vitejs/plugin-vue 6.0.3 (6.0.8 is available) -+ typescript 5.9.3 (7.0.2 is available) -+ vite 7.2.7 (8.3.0 is available) -+ vue-tsc 3.3.8 (3.3.11 is available) - -Done in 582ms using pnpm v11.17.0 -vite v7.2.7 building client environment for production... -transforming... -✓ 69 modules transformed. -rendering chunks... -computing gzip size... -dist/index.html 0.17 kB │ gzip: 0.14 kB -dist/assets/index-CP0G0Xqt.css 48.10 kB │ gzip: 6.92 kB -dist/assets/index-CScn03y7.js 575.20 kB │ gzip: 187.16 kB - -(!) Some chunks are larger than 500 kB after minification. Consider: -- Using dynamic import() to code-split the application -- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks -- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. -✓ built in 789ms -✓ Lockfile passes supply-chain policies (verified 5s ago) -Progress: resolved 1, reused 0, downloaded 0, added 0 -Packages: +86 -3 -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- -Progress: resolved 213, reused 163, downloaded 0, added 86, done - -dependencies: -+ unocss 66.5.10 (66.10.2 is available) - -Done in 625ms using pnpm v11.17.0 -Independent minimal install, recipes, and packed contract passed for @inkcre/ui-web@1.4.0. -Consumer retained at /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-ui-contract-z8yzyA diff --git a/tasks/ui-foundations/l3-evidence/pnpm-check.log b/tasks/ui-foundations/l3-evidence/pnpm-check.log deleted file mode 100644 index 9bb6591..0000000 --- a/tasks/ui-foundations/l3-evidence/pnpm-check.log +++ /dev/null @@ -1,450 +0,0 @@ -$ pnpm format:check && pnpm lint && pnpm check:generated && pnpm --filter @inkcre/ui-web skill:validate && pnpm check:stories && pnpm check:token-workflow && pnpm type-check:root && pnpm build && pnpm check:package && pnpm story -$ oxfmt --check .oxfmtrc.json package.json pnpm-workspace.yaml tsconfig.json scripts .github/workflows/*.yml README.md DESIGN.md && pnpm --filter @inkcre/ui-web format:check -Checking formatting... - -All matched files use the correct format. -Finished in 142ms on 26 files using 10 threads. -$ oxfmt --check --config .oxfmtrc.json src stories styles .oxfmtrc.json .oxlintrc.json package.json DESIGN.md skill.seed.json component-manifest.json component-manifest.schema.json tsconfig.json tsconfig.build.json tsconfig.check.json tsconfig.exports.json tsconfig.uno.json env.d.ts histoire.config.ts uno.config.ts vite.config.js vite.subpaths.config.js -Checking formatting... - -All matched files use the correct format. -Finished in 490ms on 154 files using 10 threads. -$ oxlint --deny-warnings scripts && pnpm --filter @inkcre/ui-web lint -$ oxlint --config .oxlintrc.json src stories histoire.config.ts uno.config.ts vite.config.js vite.subpaths.config.js -$ tsx scripts/check-generated.ts -$ tsx scripts/build-tokens.ts -🎨 Building design tokens... - -📖 Reading tokens from: /Volumes/WorkSSD/Development/InKCre/design/tokens/inkcre.tokens.json - -unocss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/uno/preset-ink.ts - -scss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/_ref.scss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/_sys.scss -✔︎ /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/_comp.scss - -✅ Design tokens built successfully! - -📁 SCSS output: /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/tokens/ - - _ref.scss - - _sys.scss - - _comp.scss - -📁 UnoCSS output: /Volumes/WorkSSD/Development/InKCre/design/packages/web/styles/uno/ - - preset-ink.ts - -⏱️ Completed in 22ms -$ tsx scripts/build-package-metadata.ts -Generated registry, global types, and version for 21 public components. -Generated files are current. -$ intent validate -✅ Validated 1 skill files — all passed -$ tsx scripts/check-story-coverage.ts -Story coverage is complete for 21 public components. -$ tsx scripts/prepare-token-update.ts fixture -🎨 Building design tokens... - -📖 Reading tokens from: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-P73NWT/tokens/inkcre.tokens.json - -unocss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-P73NWT/packages/web/styles/uno/preset-ink.ts - -scss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-P73NWT/packages/web/styles/tokens/_ref.scss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-P73NWT/packages/web/styles/tokens/_sys.scss -✔︎ /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-P73NWT/packages/web/styles/tokens/_comp.scss - -✅ Design tokens built successfully! - -📁 SCSS output: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-P73NWT/packages/web/styles/tokens/ - - _ref.scss - - _sys.scss - - _comp.scss - -📁 UnoCSS output: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-candidate-P73NWT/packages/web/styles/uno/ - - preset-ink.ts - -⏱️ Completed in 23ms -🎨 Building design tokens... - -📖 Reading tokens from: /var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-token-workflow-iwDtKd/cycle/tokens/inkcre.tokens.json - -❌ Error building design tokens: -Error: -Reference Errors: -Some token references (1) could not be found. -Use log.verbosity "verbose" or use CLI option --verbose for more details. -Refer to: https://styledictionary.com/reference/logging/ - -Error: -Reference Errors: -Some token references (1) could not be found. -Use log.verbosity "verbose" or use CLI option --verbose for more details. -Refer to: https://styledictionary.com/reference/logging/ - - at StyleDictionary._exportPlatform (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:551:15) - at async StyleDictionary.getPlatformTokens (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:399:26) - at async StyleDictionary.buildPlatform (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:891:24) - at async Promise.all (index 0) - at async StyleDictionary.buildAllPlatforms (file:///Volumes/WorkSSD/Development/InKCre/design/node_modules/.pnpm/style-dictionary@5.1.1/node_modules/style-dictionary/lib/StyleDictionary.js:940:7) - at async main (/Volumes/WorkSSD/Development/InKCre/design/scripts/build-tokens.ts:866:5) -Token import accepted a partial value update, preserved metadata, and rejected unsafe contract changes. -$ tsc --noEmit - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -$ pnpm --filter @inkcre/ui-web build -$ pnpm run clean && pnpm run type-check && pnpm run build:js && pnpm run build:subpaths && pnpm run build:subpath-types && pnpm run build:finalize && pnpm run build:skills -$ rimraf dist -$ vue-tsc --noEmit -p tsconfig.check.json - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -$ vite build -vite v7.2.7 building client environment for production... - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -transforming... -✓ 98 modules transformed. -rendering chunks... - -[vite:dts] Start generate declaration files... -computing gzip size... -dist/index.css 47.30 kB │ gzip: 6.80 kB -dist/index.js 301.47 kB │ gzip: 84.87 kB │ map: 170.16 kB -[vite:dts] Declaration files built in 523ms. - -✓ built in 1.33s -$ vite build --config vite.subpaths.config.js -vite v7.2.7 building client environment for production... -transforming... -✓ 7 modules transformed. -rendering chunks... -computing gzip size... -dist/locales/index.js 0.99 kB │ gzip: 0.50 kB -dist/utils/index.js 1.10 kB │ gzip: 0.48 kB -dist/uno/preset-ink.js 7.04 kB │ gzip: 1.47 kB -✓ built in 37ms -$ vue-tsc --declaration --emitDeclarationOnly --noEmit false --declarationMap false --composite false -p tsconfig.exports.json && vue-tsc --declaration --emitDeclarationOnly -p tsconfig.uno.json - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -$ tsx ../../scripts/finalize-package.ts -Finalized package declarations and global components. -$ pnpm run skill:generate:check -$ tsx ../../scripts/build-agent-skills.ts --check - -┌─────────────────────────────────────────────────────────┐ -│ ✅ TNB ACTIVE — `typescript` is the tsgo-backed fork │ -└─────────────────────────────────────────────────────────┘ - -Generated @inkcre/ui-web#ui-web skill is current. -$ tsx scripts/check-package-contract.ts -package: @inkcre/ui-web@1.4.0 -Tarball Contents -DESIGN.md -dist/App.vue.d.ts -dist/components.d.ts -dist/components/inkAutoForm/inkAutoForm.d.ts -dist/components/inkAutoForm/inkAutoForm.vue.d.ts -dist/components/inkButton/inkButton.d.ts -dist/components/inkButton/inkButton.vue.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.d.ts -dist/components/inkDatetimePickerView/inkDatetimePickerView.vue.d.ts -dist/components/inkDialog/inkDialog.d.ts -dist/components/inkDialog/inkDialog.vue.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.d.ts -dist/components/inkDoubleCheck/inkDoubleCheck.vue.d.ts -dist/components/inkDropdown/inkDropdown.d.ts -dist/components/inkDropdown/inkDropdown.vue.d.ts -dist/components/inkField/inkField.d.ts -dist/components/inkField/inkField.vue.d.ts -dist/components/inkForm/inkForm.d.ts -dist/components/inkForm/inkForm.vue.d.ts -dist/components/inkHeader/inkHeader.d.ts -dist/components/inkHeader/inkHeader.vue.d.ts -dist/components/inkImage/inkImage.d.ts -dist/components/inkImage/inkImage.vue.d.ts -dist/components/inkInput/inkInput.d.ts -dist/components/inkInput/inkInput.vue.d.ts -dist/components/inkJsonEditor/inkJsonEditor.d.ts -dist/components/inkJsonEditor/inkJsonEditor.vue.d.ts -dist/components/inkJsonEditor/jsonSchemaService.d.ts -dist/components/inkLoading/inkLoading.d.ts -dist/components/inkLoading/inkLoading.vue.d.ts -dist/components/inkPagination/inkPagination.d.ts -dist/components/inkPagination/inkPagination.vue.d.ts -dist/components/inkPicker/inkPicker.d.ts -dist/components/inkPicker/inkPicker.vue.d.ts -dist/components/inkPlaceholder/inkPlaceholder.d.ts -dist/components/inkPlaceholder/inkPlaceholder.vue.d.ts -dist/components/inkPopup/inkPopup.d.ts -dist/components/inkPopup/inkPopup.vue.d.ts -dist/components/inkScrim/inkScrim.d.ts -dist/components/inkScrim/inkScrim.vue.d.ts -dist/components/inkSwitch/inkSwitch.d.ts -dist/components/inkSwitch/inkSwitch.vue.d.ts -dist/components/inkTextarea/inkTextarea.d.ts -dist/components/inkTextarea/inkTextarea.vue.d.ts -dist/components/inkTooltip/inkTooltip.d.ts -dist/components/inkTooltip/inkTooltip.vue.d.ts -dist/composables/use-async-boolean.d.ts -dist/composables/use-field-control.d.ts -dist/composables/use-native-dialog.d.ts -dist/composables/use-optional-model.d.ts -dist/i18n.d.ts -dist/index.css -dist/index.d.ts -dist/index.js -dist/locales/en.d.ts -dist/locales/index.d.ts -dist/locales/index.js -dist/locales/zh-CN.d.ts -dist/main.d.ts -dist/public-components.d.ts -dist/router.d.ts -dist/uno/preset-ink.d.ts -dist/uno/preset-ink.js -dist/utils/index.d.ts -dist/utils/index.js -dist/utils/json.d.ts -dist/utils/token-types.d.ts -dist/utils/vue-props.d.ts -dist/version.d.ts -MIGRATION.md -package.json -README.md -skills/ui-web/references/common-mistakes.md -skills/ui-web/references/component-map.md -skills/ui-web/references/components/InkAutoForm.md -skills/ui-web/references/components/InkButton.md -skills/ui-web/references/components/InkDatetimePickerView.md -skills/ui-web/references/components/InkDialog.md -skills/ui-web/references/components/InkDoubleCheck.md -skills/ui-web/references/components/InkDropdown.md -skills/ui-web/references/components/InkField.md -skills/ui-web/references/components/InkForm.md -skills/ui-web/references/components/InkHeader.md -skills/ui-web/references/components/InkImage.md -skills/ui-web/references/components/InkInput.md -skills/ui-web/references/components/InkJsonEditor.md -skills/ui-web/references/components/InkLoading.md -skills/ui-web/references/components/InkPagination.md -skills/ui-web/references/components/InkPicker.md -skills/ui-web/references/components/InkPlaceholder.md -skills/ui-web/references/components/InkPopup.md -skills/ui-web/references/components/InkScrim.md -skills/ui-web/references/components/InkSwitch.md -skills/ui-web/references/components/InkTextarea.md -skills/ui-web/references/components/InkTooltip.md -skills/ui-web/references/composition-recipes.md -skills/ui-web/references/integration.md -skills/ui-web/references/styling-and-themes.md -skills/ui-web/SKILL.md -styles/_functions.scss -styles/_mixins.scss -styles/index.scss -styles/README.md -styles/tokens/_comp.scss -styles/tokens/_ref.scss -styles/tokens/_sys.scss -styles/uno/preset-ink.ts -Tarball Details -/var/folders/rk/8_krr0y14p9g5plk8n77lgyr0000gn/T/inkcre-ui-contract-vf8hNr/source-pack/inkcre-ui-web-1.4.0.tgz -Progress: resolved 1, reused 0, downloaded 0, added 0 -Packages: +80 -++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -Progress: resolved 130, reused 75, downloaded 4, added 79 -Progress: resolved 130, reused 75, downloaded 5, added 80, done - -dependencies: -+ @inkcre/ui-web 1.4.0 -+ vue 3.5.25 (3.5.42 is available) - -devDependencies: -+ @tanstack/intent 0.3.6 (0.4.0 is available) -+ @vitejs/plugin-vue 6.0.3 (6.0.8 is available) -+ typescript 5.9.3 (7.0.2 is available) -+ vite 7.2.7 (8.3.0 is available) -+ vue-tsc 3.3.8 (3.3.11 is available) - -Done in 1.6s using pnpm v11.17.0 -vite v7.2.7 building client environment for production... -transforming... -✓ 69 modules transformed. -rendering chunks... -computing gzip size... -dist/index.html 0.17 kB │ gzip: 0.14 kB -dist/assets/index-CP0G0Xqt.css 48.10 kB │ gzip: 6.92 kB -dist/assets/index-CScn03y7.js 575.20 kB │ gzip: 187.16 kB - -(!) Some chunks are larger than 500 kB after minification. Consider: -- Using dynamic import() to code-split the application -- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks -- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. -✓ built in 790ms -✓ Lockfile passes supply-chain policies (verified 5s ago) -Progress: resolved 1, reused 0, downloaded 0, added 0 -Packages: +86 -3 -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- -Progress: resolved 213, reused 163, downloaded 0, added 86, done - -dependencies: -+ unocss 66.5.10 (66.10.2 is available) - -Done in 626ms using pnpm v11.17.0 -Independent minimal install, recipes, and packed contract passed for @inkcre/ui-web@1.4.0. -$ pnpm --filter @inkcre/ui-web story:build -$ histoire build -Using 9 threads for story collection -stories/feedback/inkLoading.story.vue 710ms (setup:40ms, execute:12ms, run:652ms) -stories/controls/inkButton.story.vue 715ms (setup:34ms, execute:18ms, run:654ms) -stories/controls/inkHeader.story.vue 726ms (setup:44ms, execute:9ms, run:670ms) -stories/controls/inkPagination.story.vue 730ms (setup:35ms, execute:18ms, run:674ms) -stories/feedback/inkDialog.story.vue 749ms (setup:46ms, execute:7ms, run:687ms) -stories/controls/inkSwitch.story.vue 763ms (setup:42ms, execute:10ms, run:696ms) -stories/feedback/inkPopup.story.vue 762ms (setup:47ms, execute:6ms, run:693ms) -stories/feedback/inkPlaceholder.story.vue 773ms (setup:38ms, execute:15ms, run:672ms) -stories/feedback/inkDoubleCheck.story.vue 792ms (setup:40ms, execute:13ms, run:723ms) -stories/feedback/inkTooltip.story.vue 597ms (setup:5ms, execute:0ms, run:579ms) -stories/forms/inkField.story.vue 580ms (setup:12ms, execute:1ms, run:565ms) -stories/forms/inkTextarea.story.vue 575ms (setup:4ms, execute:0ms, run:568ms) -stories/forms/inkDropdown.story.vue 624ms (setup:8ms, execute:4ms, run:611ms) -stories/forms/inkInput.story.vue 590ms (setup:5ms, execute:0ms, run:572ms) -stories/forms/inkPicker.story.vue 589ms (setup:6ms, execute:0ms, run:580ms) -stories/specialized/inkDatetimePickerView.story.vue 41ms (setup:4ms, execute:0ms, run:36ms) -stories/media/inkImage.story.vue 568ms (setup:4ms, execute:0ms, run:561ms) -stories/overlays/inkScrim.story.vue 50ms (setup:3ms, execute:0ms, run:45ms) -stories/specialized/inkJsonEditor.story.vue 101ms (setup:3ms, execute:0ms, run:97ms) -stories/forms/inkAutoForm.story.vue 741ms (setup:5ms, execute:0ms, run:734ms) -stories/forms/inkForm.story.vue 740ms (setup:7ms, execute:1ms, run:729ms) -vite v7.2.7 building client environment for development... -transforming... -[Optimize Shiki] Blocking in build mode: shiki -[plugin unocss:global:build:scan] [unocss] "virtual:uno.css" is being imported multiple times in different files, using the first occurrence: "/Volumes/WorkSSD/Development/InKCre/design/packages/web/stories/__uno.css" -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (50:39): "setupVanilla" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (51:37): "setupVanilla" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (57:30): "setupVanilla" is not exported by "stories/histoire.setup.ts", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js (58:28): "setupVanilla" is not exported by "stories/histoire.setup.ts", imported by "../../node_modules/.pnpm/histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94.2_supports-color@8.1.1_tsx@4.21.0_v_6ffa13b5e10dd25a067816d1ba21d51e/node_modules/histoire/dist/node/builtin-plugins/vanilla-support/RenderStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js (47:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js (48:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/MountStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js (83:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js". -../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js (84:20): "setupVue3" is not exported by "virtual:$histoire-generated-global-setup", imported by "../../node_modules/.pnpm/@histoire+plugin-vue@1.0.0-alpha.5_histoire@1.0.0-alpha.5_@types+node@25.0.2_sass@1.94._4d2e557def6c1cf6b640ca73d2520565/node_modules/@histoire/plugin-vue/dist/bundled/client/app/RenderStory.js". -✓ 399 modules transformed. -rendering chunks... -computing gzip size... -.histoire/dist/assets/style-CMxV_Sb3.css 112.22 kB │ gzip: 17.20 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkloading-story-vue-GySdTfbS.js 0.55 kB │ gzip: 0.32 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-specialized-inkdatetimepickerview-story-vue-D7GsV_KP.js 0.55 kB │ gzip: 0.30 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkloading-story-md-Cw1owKKA.js 0.58 kB │ gzip: 0.47 kB -.histoire/dist/assets/_plugin-vue_export-helper-D4SN0pSy.js 0.63 kB │ gzip: 0.26 kB -.histoire/dist/assets/use-optional-model-BUZ9gOib.js 0.68 kB │ gzip: 0.33 kB -.histoire/dist/assets/BaseEmpty.vue-DBtpS3Gc.js 0.70 kB │ gzip: 0.42 kB -.histoire/dist/assets/jsonSchemaService-CAqck9sz.js 0.73 kB │ gzip: 0.43 kB -.histoire/dist/assets/use-async-boolean-BCmM9X7B.js 0.80 kB │ gzip: 0.37 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkheader-story-vue-wR8gawbb.js 0.85 kB │ gzip: 0.35 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkheader-story-md-DiBCALvJ.js 0.85 kB │ gzip: 0.66 kB -.histoire/dist/assets/use-native-dialog-yFbYcFT3.js 0.90 kB │ gzip: 0.42 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkpicker-story-vue-BBRMca5V.js 0.96 kB │ gzip: 0.51 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkpagination-story-md-BAcHG2Nm.js 0.96 kB │ gzip: 0.71 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkfield-story-md-CjJsgRm2.js 0.99 kB │ gzip: 0.71 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkdoublecheck-story-vue-4LbPaHdI.js 1.00 kB │ gzip: 0.50 kB -.histoire/dist/assets/__resolved__virtual_md_stories-media-inkimage-story-md-t1fmGsjf.js 1.06 kB │ gzip: 0.80 kB -.histoire/dist/assets/__resolved__virtual_md_stories-overlays-inkscrim-story-md-BN2-Wr3k.js 1.09 kB │ gzip: 0.81 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkform-story-md-A70qYQVs.js 1.09 kB │ gzip: 0.84 kB -.histoire/dist/assets/story-C-99oXkg.js 1.26 kB │ gzip: 0.51 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkswitch-story-md-VtjZu42N.js 1.29 kB │ gzip: 0.95 kB -.histoire/dist/assets/__resolved__virtual_md_stories-controls-inkbutton-story-md-6DSmE6X3.js 1.30 kB │ gzip: 0.90 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkdialog-story-md-57_Z9tLA.js 1.35 kB │ gzip: 0.97 kB -.histoire/dist/assets/use-field-control-CbfLfopM.js 1.41 kB │ gzip: 0.62 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkpopup-story-md-CUqUc-hH.js 1.44 kB │ gzip: 0.99 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkpopup-story-vue-ChF9hi-k.js 1.45 kB │ gzip: 0.56 kB -.histoire/dist/assets/__resolved__virtual_md_stories-specialized-inkdatetimepickerview-story-md-DxjeAkJG.js 1.47 kB │ gzip: 1.03 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inktextarea-story-vue-BvcRbGwg.js 1.48 kB │ gzip: 0.53 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkpicker-story-md-C_gFjNSZ.js 1.48 kB │ gzip: 1.06 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkdropdown-story-md-Dqa6jKIx.js 1.52 kB │ gzip: 1.06 kB -.histoire/dist/assets/inkForm-DrZ8Tvmz.js 1.53 kB │ gzip: 0.78 kB -.histoire/dist/assets/inkDatetimePickerView.story-CquQfSXf.js 1.62 kB │ gzip: 0.73 kB -.histoire/dist/assets/__resolved__virtual_md_stories-specialized-inkjsoneditor-story-md-BHs3iUOS.js 1.63 kB │ gzip: 1.13 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkfield-story-vue-BFJH-FD3.js 1.65 kB │ gzip: 0.63 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkswitch-story-vue-CN9ElI4x.js 1.78 kB │ gzip: 0.64 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkautoform-story-md-BG7YvYVI.js 1.81 kB │ gzip: 1.24 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkinput-story-vue-BmpNbX6X.js 1.83 kB │ gzip: 0.75 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inktooltip-story-md-C0ZbW892.js 1.86 kB │ gzip: 0.95 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-overlays-inkscrim-story-vue-BsEXcYIe.js 1.96 kB │ gzip: 0.66 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inktextarea-story-md-o-2fz2YM.js 2.11 kB │ gzip: 1.01 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkdoublecheck-story-md-Co22T3x0.js 2.19 kB │ gzip: 1.09 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inktooltip-story-vue-BcX4jIP4.js 2.26 kB │ gzip: 0.59 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkpagination-story-vue-DoQE01T0.js 2.42 kB │ gzip: 0.62 kB -.histoire/dist/assets/bundle-sandbox-tP_P709l.js 2.43 kB │ gzip: 0.97 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-controls-inkbutton-story-vue-CBFypKMM.js 2.49 kB │ gzip: 0.82 kB -.histoire/dist/assets/inkHeader.story-Bk6NNKfJ.js 2.50 kB │ gzip: 0.85 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkdialog-story-vue-BCh5-P7m.js 2.66 kB │ gzip: 0.89 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-media-inkimage-story-vue-CbKFUaKG.js 2.81 kB │ gzip: 0.95 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-specialized-inkjsoneditor-story-vue-B90RM4sU.js 2.90 kB │ gzip: 1.10 kB -.histoire/dist/assets/inkPicker.story-BZrMYGe9.js 3.02 kB │ gzip: 1.18 kB -.histoire/dist/assets/inkHeader-CQ0zNvCN.js 3.05 kB │ gzip: 1.14 kB -.histoire/dist/assets/inkLoading.story-meooQBa5.js 3.35 kB │ gzip: 1.11 kB -.histoire/dist/assets/__resolved__virtual_md_stories-forms-inkinput-story-md-CIT-zRYz.js 3.37 kB │ gzip: 1.45 kB -.histoire/dist/assets/state-D1NkZGv6.js 3.49 kB │ gzip: 1.36 kB -.histoire/dist/assets/inkScrim-DiENkBtr.js 3.50 kB │ gzip: 1.35 kB -.histoire/dist/assets/inkField-CwItCZRw.js 3.63 kB │ gzip: 1.28 kB -.histoire/dist/assets/inkTextarea.story-D1mx6bIL.js 3.85 kB │ gzip: 1.08 kB -.histoire/dist/assets/inkButton-RFJopI6n.js 3.91 kB │ gzip: 1.32 kB -.histoire/dist/assets/inkField.story-C34Y3vbS.js 3.99 kB │ gzip: 1.05 kB -.histoire/dist/assets/inkSwitch-LeoFDVV3.js 4.03 kB │ gzip: 1.43 kB -.histoire/dist/assets/inkPopup-BdpXU17B.js 4.04 kB │ gzip: 1.57 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkdropdown-story-vue-C_DGP0P_.js 4.13 kB │ gzip: 1.22 kB -.histoire/dist/assets/inkTextarea-BC-tf_eN.js 4.22 kB │ gzip: 1.56 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkform-story-vue-CQAd85_G.js 4.30 kB │ gzip: 1.77 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-feedback-inkplaceholder-story-vue-urlY-bsR.js 4.40 kB │ gzip: 1.33 kB -.histoire/dist/assets/inkPopup.story-BARhQNnr.js 4.57 kB │ gzip: 1.24 kB -.histoire/dist/assets/inkInput.story-BgnAvmUf.js 4.89 kB │ gzip: 1.40 kB -.histoire/dist/assets/inkSwitch.story-BA3jfMz_.js 5.00 kB │ gzip: 1.20 kB -.histoire/dist/assets/inkScrim.story-DhqSWdrv.js 5.14 kB │ gzip: 1.30 kB -.histoire/dist/assets/HomeView.vue-1GTqYcQz.js 5.28 kB │ gzip: 1.89 kB -.histoire/dist/assets/inkDoubleCheck.story-D9H_ndW9.js 5.81 kB │ gzip: 1.75 kB -.histoire/dist/assets/inkDialog-mitH6zcs.js 6.02 kB │ gzip: 1.87 kB -.histoire/dist/assets/inkButton.story-qC4kKvSW.js 6.43 kB │ gzip: 1.40 kB -.histoire/dist/assets/inkInput-DwzGtP0q.js 6.47 kB │ gzip: 2.07 kB -.histoire/dist/assets/inkDialog.story-D9LPUNsP.js 7.12 kB │ gzip: 1.71 kB -.histoire/dist/assets/inkJsonEditor.story-v3QedRmr.js 7.23 kB │ gzip: 2.07 kB -.histoire/dist/assets/inkTooltip.story-SaUYLCvH.js 7.79 kB │ gzip: 1.84 kB -.histoire/dist/assets/inkPicker-nPwgfgOo.js 8.06 kB │ gzip: 2.53 kB -.histoire/dist/assets/__resolved__virtual_story-source_stories-forms-inkautoform-story-vue-KROePuiW.js 8.33 kB │ gzip: 2.11 kB -.histoire/dist/assets/inkDropdown.story-BFE9Tf2R.js 8.52 kB │ gzip: 1.94 kB -.histoire/dist/assets/__resolved__virtual_md_stories-feedback-inkplaceholder-story-md-CFWfjqvB.js 10.04 kB │ gzip: 2.35 kB -.histoire/dist/assets/responsive-D6WJRQZk.js 10.53 kB │ gzip: 3.08 kB -.histoire/dist/assets/inkJsonEditor-BbkIf5RV.js 10.63 kB │ gzip: 3.42 kB -.histoire/dist/assets/inkImage.story-DNQi4a72.js 11.64 kB │ gzip: 2.93 kB -.histoire/dist/assets/inkPagination.story-ChKQyecX.js 12.30 kB │ gzip: 2.56 kB -.histoire/dist/assets/inkPlaceholder.story-Bu5sTWOO.js 12.47 kB │ gzip: 2.77 kB -.histoire/dist/assets/inkDatetimePickerView-CiIZtgyu.js 13.80 kB │ gzip: 3.07 kB -.histoire/dist/assets/inkDropdown-CLacUb7B.js 16.63 kB │ gzip: 4.13 kB -.histoire/dist/assets/inkForm.story-DV0xCx8p.js 21.88 kB │ gzip: 5.05 kB -.histoire/dist/assets/search-docs-data-DSeysPVH.js 24.32 kB │ gzip: 10.75 kB -.histoire/dist/assets/inkAutoForm.story-B-vyIkTT.js 30.52 kB │ gzip: 6.46 kB -.histoire/dist/assets/mapping-B9cpzQ5y.js 37.23 kB │ gzip: 8.04 kB -.histoire/dist/assets/SearchPane.vue-MwlumEpV.js 38.10 kB │ gzip: 7.25 kB -.histoire/dist/assets/bundle-main-Dukgqep1.js 52.15 kB │ gzip: 14.10 kB -.histoire/dist/assets/StoryView.vue-BcyJz_Al.js 113.36 kB │ gzip: 20.07 kB -.histoire/dist/assets/vendor-DsQqRgev.js 1,409.25 kB │ gzip: 353.97 kB -✓ built in 1.45s -✅ Built 21 stories (120 variants) in 9.27s -[CDN] Added import map to HTML diff --git a/tasks/ui-foundations/l3-evidence/recipes-320.png b/tasks/ui-foundations/l3-evidence/recipes-320.png deleted file mode 100644 index 04ae105..0000000 Binary files a/tasks/ui-foundations/l3-evidence/recipes-320.png and /dev/null differ diff --git a/tasks/ui-foundations/l3-execution.md b/tasks/ui-foundations/l3-execution.md deleted file mode 100644 index 50dcfe0..0000000 --- a/tasks/ui-foundations/l3-execution.md +++ /dev/null @@ -1,89 +0,0 @@ -# L3 执行记录 - -2026-09-13,用户确认 [L3 方案](plan-l3-design-docs.md) 并要求开始实施。基线为 `c67cc88`;前轮讨论对工作包的修改保留。 - -## 范围与验收 - -本轮拥有根级 DESIGN.md 与维护导航、Web 消费文档与 Skill 输入/生成物、API 事实生成器、代表配方、包声明/构建边界及既有验证脚本。设计原则复用 L1/L2 已确认结论;API 事实必须包含模型、类型、默认值、事件和插槽参数;代表配方通过公开包入口检查;包在临时目录独立安装,文档与指南可在安装产物中读取。 - -不改变 L1/L2 已确定的运行时交互,不建立新文档平台、单元/组件测试套件或多端 renderer;不重启 Firefox 原生文字放大专项。只读检查消费者,不修改其 checkout;未授权提交、推送或发布。 - -## 交付状态 - -| 切片 | 本轮结果 | 剩余边界 | -| --- | --- | --- | -| F0 | 根级 DESIGN.md 成为共同设计判断源,整理既有重叠说明 | 首版归档已接受的 L1/L2 决定;新增品牌或平台政策仍需讨论 | -| F1 | 21 个组件的模型、props 类型/必需性/默认值、事件载荷、插槽参数已生成 | InkPicker 的泛型条件类型仍较长,保留事实与说明,未自造类型简化器 | -| F2 | 三份完整配方由 Story 与安装包文档共用,通过类型、构建与浏览器验证 | 代表任务可用,不作为所有 Agent 质量的普遍证明 | -| F3 | 同源 DESIGN.md、Skill、导航及包内链接已在独立安装中验证 | 消费者需配置读取入口;不能声称已在其 Agent 中启用 | -| G1 | 核对 client-web、mail、twitter 的版本、调用及 Agent 配置,并运行真实源文件的声明兼容检查 | extension registry 的独立 UI 位置与实际 Figma 发送端尚未获得 | -| G2 | 内部依赖责任、Vue 最低版本、可选 Uno 集成及 major Changeset 已校准 | 包仍标记 1.4.0,尚未发布新的 major | -| G3 | 独立最小安装、公开声明、指南代码、Intent、Sass/Uno 已验证;删除重复检查 | 真实消费者尚未迁移和完成页面验收,详见接入事项 | - -本仓库实现与本地交付检查已完成;L3 的跨仓接入仍有明确未完成项。没有提交、推送、发布或修改消费者 checkout。 - -## 设计指南与 API 文档 - -根级 [DESIGN.md](../../DESIGN.md) 同时帮助消费者选择能力、帮助维护者判断改变应由何处承担。正文覆盖任务、文字角色、颜色配对、内容增长、组件组合、异步状态、主题及扩展判断;不复制 Token 值表或组件接口。根/包级 AGENTS、README、文档索引与 Skill 提供读取路径。Token 指南保留格式和维护责任,Web 样式指南保留 CSS/Sass/Uno 调用与传播边界。 - -包内 DESIGN.md 由既有 Skill 生成命令复制,字节一致性与过期检查覆盖它;仅根级源可人工编辑。README 的相对链接在仓库与安装包内都成立。消费者读取安装版本;未发布源码中的规则不冒充 registry 1.4.0 的现有内容。 - -[生成器](../../scripts/build-agent-skills.ts) 使用 Vue 官方 `vue-component-meta@3.3.8`,与现有 vue-tsc 同版本。删除原先手工追踪对象、展开、槽名称的解析路径。模型由实际 prop 与 update 事件配对;例如 InkPopup 的 `v-model:open` 不再只出现在人工 caveat 中,InkDialog 的作用域槽参数也进入生成参考。 - -官方工具不能求出本库 prop helper 的默认参数,因此用一个小型 [AST 适配器](../../scripts/lib/component-api.ts) 读取已知 helper 的实参,既不执行组件模块,也不执行默认工厂。未知 helper 或声明无法定位会失败;显式公开类型从实际 TypeScript 声明读取,人工 seed 只选取所需名称。对过期 DESIGN.md 与未知 helper 做了两次临时扰动,检查均按预期失败,随后原样恢复并重新检查。证据见 [generator-boundaries.json](l3-evidence/generator-boundaries.json)。 - -没有继续为 InkPicker 的 Vue 泛型条件类型编写化简规则。模型事件的 T、内置日期必须使用 Date、自定义槽由消费者负责提交等边界均有说明;生成类型结构与行为说明承担不同责任。 - -## 代表配方与设计指南演练 - -[SettingsForm.vue](../../packages/web/stories/recipes/SettingsForm.vue) 表达名称校验、明确提交、保存 pending、失败保留草稿和成功反馈;[HostIntegration.vue](../../packages/web/stories/recipes/HostIntegration.vue) 表达路由/语言适配器和根级主题;[JsonConfiguration.vue](../../packages/web/stories/recipes/JsonConfiguration.vue) 保留原始 JSON,只有当前文本对应的校验通过才解析保存。宿主通过 save 属性提供真实持久化函数,Story 使用可失败的模拟保存。 - -三个文件经公开包名导入组件,Story 与随包 Markdown 使用同一份源。包契约检查从实际安装的 Markdown 提取代码块,核对与源文件一致后编译和构建,因此也能发现文档遗漏或过期。浏览器验收曾发现集成配方遗漏 Dialog 确认后的关闭动作;已按实际 confirm 事件契约修正示例并复验,没有修改组件运行时。 - -消费者演练从已安装的 Skill、DESIGN.md 和配方完成普通设置保存及失败反馈,核对保留动作文字、禁用重复提交、保留草稿和正确反馈。维护者演练的输入是“窄容器出现长字段标签,是否新增更小的文本角色”:从 AGENTS 进入 DESIGN.md,再核对 InkField 的 label-lg、正常换行、overflow-wrap 和列布局,以及 InkInput 的 min-height。结论是保留标签职责,先选列布局并允许内容增长;一个页面的长度问题不足以新增 Token。若后续出现不同用途且多个场景需要共同变化,再提出新角色及证据。 - -上述是本轮的人工查阅与任务演练;未安排独立 Agent 对照评测,也不推断普遍生产力收益。浏览器结果与复跑说明在 [证据入口](l3-evidence/README.md)。 - -## 依赖和声明的实际问题 - -CodeMirror、JSON 语言服务、VueUse 与 dayjs 由包声明为 dependencies;Vue 是宿主共享的 peer,UnoCSS 为 `/uno` 的可选 peer。适配器只使用公开 InkRouter 接口,不要求 vue-router。Vite 仍把运行时依赖留作外部导入,调整安装责任没有把它们全部捆进 UI bundle,也没有拆新包或增加运行时框架。 - -独立安装使用 Vue 3.5.0 且关闭 skipLibCheck 后发现,Vue 3.5.25 生成的组件声明包含旧声明不支持的泛型参数。最低版本改为 3.5.25,并在独立消费者显式固定该下限。另一个真实问题是组件注册表的类型推导展开了大量 Vue 内部构造器;生成显式 `typeof InkX` 映射后,其公开声明为 45 行,保留原运行时对象。 - -JSON 语言服务固定为已验证的 5.6.4。client-web 安装的 5.7.2 改变了诊断消息类型与 schema 错误码;宽泛范围会使新安装违背组件当前边界。后续升级应验证消息与失败状态,源码联调也不应强制替换内部版本。 - -Uno preset 改用普通函数返回通过 `satisfies Preset` 检查的对象,并由编译器生成真实声明,删除手写 PresetFactory 声明补丁。隔离安装曾解析到 `unconfig@7.5.0`,其声明引用未声明的 Args;通过聚合类型引入这段 CLI 配置类型会让 UI 的可选入口在严格检查中失败。新声明去掉这项不必要关联;没有修复或覆盖上游 unconfig。消费者若直接检查受影响的 Uno 配置工具声明,仍可能遇到上游问题。 - -独立安装不链接生产者 node_modules;工具链固定 TypeScript 5.9.3、vue-tsc 3.3.8、Vite 7.2.7,Intent 也安装在消费者中。先只安装 UI、Vue 与检查工具验证普通组件,再安装可选 Uno 验证对应入口。最小入口与可选入口的 UI 公开声明均关闭 skipLibCheck。生产者既有 TypeScript bridge 和工具链策略保留。 - -总检查删除重复 Skill 生成与包类型检查;单独 build 仍检查类型与指南新鲜度。移除已经没有实际消费证据的旧包名模拟复检,保留当前身份的真实 tarball 检查和历史迁移说明。 - -## 真实消费者与接入事项 - -client-web checkout 为 `367ace98bfb7e9880c002e7971eb397a25c9ef84`。三个本地包都声明 `@inkcre/ui-web@1.4.0`: - -| 消费位置 | 本轮观察 | 验证边界 | -| --- | --- | --- | -| `apps/client-web` | 设置/搜索/关系图/Peer 配置/浮层;24 个源码文件有 UI 导入,实际 Vue 3.5.40 | 真实源文件改指向本地产物声明、共享宿主 Vue 后,留下两个 graph 按钮回调类型错误 | -| `extensions/mail` | 邮件与附件下载按钮,入口导入 UI 样式 | 指向同一本地产物声明的类型检查通过;两个下载按钮使用错误的 loading 属性,静态通过不能证明 pending 正确 | -| `extensions/twitter` | 入口导入 UI 样式,设置页面使用扩展自己的控件 | 指向同一本地产物声明的类型检查通过;未做扩展业务流程验收 | - -检查未改三个消费者的依赖或源文件;沿用其现有 TypeScript 检查选项,不把这种声明替换实验等同真实升级。已检查的根/Web package.json 与 AGENTS 未发现 UI Intent 信任配置或对应读取入口,不能推定其他未检查工具完全没有配置。 - -本地 ext-reg 为 `60879eb437c29108a85873e2745e0b5b854787c0`,是 Python/Worker 工程,未找到 UI package。其 setup wizard 文档指向 Web Host 与扩展各自拥有的 UI,这与上述消费图相容,但不能据此认定用户所说的 extension registry UI 就是它们。已询问实际位置;Figma 实际发送端也仍待定位,已有接收端 fixture 不能补足这项证据。 - -已形成以下具体接入事项: - -1. 更新正式 UI 版本时,Web 和两个扩展一起核对 Vue 范围及共享实例;扩展自身的 Vue peer 仍声明 ^3.5.0,不能继续暗示新 UI 支持整个范围。 -2. graph 的 `@click="zoomIn"`/`zoomOut` 会把 MouseEvent 传给接受 TransitionOptions 的函数,应明确调用 `zoomIn()`/`zoomOut()`。mail 两处 `loading` 应使用公开的 `is-loading`。 -3. client-web 的 `uiSourceDedupe` 把全部旧 peer 映射到宿主 node_modules,会覆盖 UI 自己的 JSON 5.6.4;应按新的依赖责任仅共享 Vue/Uno。当前源码联调检查有两项 graph 错误和五项由 JSON 5.7.2 引起的错误。 -4. 沿用 [B5 迁移清单](b5-execution.md):label-sm、旧多参数 apply-font、无效颜色调用、两个搜索提交按钮与 Peer 配置的即时 JSON.parse setter 仍需真实修改。Peer 保存必须保留原始草稿,在校验与确认边界解析,失败不能丢失输入。 -5. 消费者 AGENTS 需要声明 UI 文档读取时机;采用 Intent 的项目需配置可信包并确认实际发现。随后验收设置保存、搜索、关系图、Peer 配置和扩展下载等真实页面。 - -第 2、3 项已准备 [局部接入补丁](l3-evidence/client-web-integration.patch),通过 `git apply --check`,仅供后续授权后的跨仓变更使用,未应用。它不包含整个 major 迁移,也不冒充消费者完整检查通过。消费者原有未跟踪文件保持不变。 - -## 验证与交付 - -最终 `pnpm check` 退出 0,覆盖格式、lint、生成契约、Skill 结构、Story 清单、Token 导入 fixture、类型、构建、独立包契约和 Story 构建;共 21 个 Story、120 个 Variant。随后保留最终独立消费者并完成浏览器复验,关闭 skipLibCheck 的安装检查通过,浏览器无 pageerror,320px 容器无横向页面溢出。 - -[证据入口](l3-evidence/README.md) 保存最终日志、产物摘要、浏览器结果、生成器失败边界与消费者检查结果。major Changeset 为 [.changeset/tricky-icons-stick.md](../../.changeset/tricky-icons-stick.md)。这些结果只代表本地源码和本地产物,不代表远端 CI、registry 发布、Figma 联调或消费者升级完成。 diff --git a/tasks/ui-foundations/packet.md b/tasks/ui-foundations/packet.md deleted file mode 100644 index 8c7f5f8..0000000 --- a/tasks/ui-foundations/packet.md +++ /dev/null @@ -1,388 +0,0 @@ -# UI 基础能力与消费契约整治 - -本工作包是本次 UI 基础能力审视、分组讨论和后续执行的唯一任务入口。长期使用指南仍由 README、AGENTS、Story 文档和随包 Skill 承担;工作包记录范围、决策、证据和执行状态,不替代这些文档。 - -## 目标与当前状态 - -目标是让现有 Web 消费者获得可靠的组件行为、设计语义、安装与开发体验,使消费者 AI 能通过随包文档正确选择和组合组件,使维护 AI 能找到并延续共同设计判断。未来 Flutter、uniapp 的扩展应复用已明确的设计契约,由真实消费场景驱动实现,避免提前建立平台框架。 - -用户要求按层、按组分别处理,并持续使用本 task packet。当前 **L0、L1 的 B1—B5、L2 的 C/D/E、L3 的 F0—F3 与 G2 已合入并正式发布为 @inkcre/ui-web@2.0.0**;G3 的 client-web/extensions 真实迁移在独立 worktree 和 [PR #104](https://github.com/InKCre/client-web/pull/104) 中验证。G1 的 extension registry 独立 UI/Figma 发送端仍待定位,L4 平台实现暂缓。 - -功能与版本分别经 UI [PR #43](https://github.com/InKCre/ui/pull/43)、[PR #44](https://github.com/InKCre/ui/pull/44) 检查后合入。正式发布、产物身份和消费者关联见 [发布与真实迁移](release-and-consumer-migration.md)。本地历史提交和验证证据保留在后续执行记录中;“未提交/未发布/消费者原状”仅描述各阶段结束时的状态。 - -2026-09-13 用户进一步指出,DESIGN.md 的缺口在于侧重点与知识组织,而不是是否禁止圆角。F0 已按总纲、设计立场、视觉语言、页面组合和判断依据完成重组,并通过逐项讨论确认主要视觉方向与先取舍内容再安排留白的原则。设计知识 `1e9a4a5`、I1 `11be433`、I2 `284ade6` 保留独立提交,已推送至 [UI PR #46](https://github.com/InKCre/ui/pull/46)。下游 I1 `6a61637`、I3 `9af7a17` 及数据库冷启动修复 `cfd7b12` 已推送至 PR #104,真实 preview 页面验收、本机 SSH 数据库 E2E 与最终远端 CI 均通过。UI 展示构建在 preview 中发现既有运行时替换问题,已独立提交 `9128425` 修复,完整检查和远端复验均通过,证据见文末。UI PR #46 与版本 PR #47 已合入,正式 UI 2.0.1 已发布;消费者 PR #104 已升级正式依赖并通过本地、远端全旅程及完整 CI。 - -DESIGN.md 的定位和实施方案见 [L3 讨论方案](plan-l3-design-docs.md),交付结果见 [L3 执行记录](l3-execution.md)。用户已授权发布 UI 和跨仓迁移,当前工作沿此边界继续;按用户要求,不恢复 Firefox 原生文字放大专项。 - -[A 组](groups.md#a-开发约定与文档入口) 的指南、命令、链接和历史信息校准已完成,已补 patch Changeset 并通过完整验证。后续执行见 [B—E 实施记录](execution-b-e.md)。 - -L1 后续的步骤、文件责任、场景验收与迁移边界见 [B3/B4/B5 实施方案](plan-l1-token-system.md)。B3 的当前事实见 [角色盘点](b3-role-inventory.md),设计决定、具体候选和 B4 实验见 [候选契约](b3-design-contracts.md)。用户随后授权“做 b4”;[B4 场景验证与已选规则](b4-validation.md) 已完成,附 [证据及复跑说明](b4-evidence/README.md)。用户已要求“处理 B5”,本轮已按 B4 规则完成仓库内迁移,并按用户补充要求停止 Firefox 文字放大专项;执行结果见 [B5 实施记录](b5-execution.md)。 - -用户最新授权提交和发布 UI,并在独立分支/worktree 迁移 client-web 及各 extensions。当前执行入口见 [发布与真实迁移](release-and-consumer-migration.md);此前“未授权跨仓/发布”的描述仅对应历史阶段。 - -## 初审基线与证据边界 - -| 项目 | 本次基线 | -| ------------------ | ----------------------------------------------------------------------------------------------------------------- | -| 记录日期 | 2026-09-12 | -| 生产者 HEAD | `4e16d3c88f9ca784ab87b3b51d0cad3591ac069e` | -| 当前运行时 package | `@inkcre/ui-web@1.4.0`,位于 `packages/web` | -| 公开组件与展示 | 21 个组件,21 个 Story,109 个 Variant | -| 已检查的下游 | 本地 `../client-web` 的声明和部分实际调用 | -| 尚未核实的下游 | 用户说明 extension registry 消费本项目;本地 `../ext-reg` checkout 未找到对应 UI 消费代码,不能据此断言没有消费者 | -| 潜在平台 | Flutter、uniapp;目标应用和运行端尚未确定 | -| 初始工作区 | 干净;审视未修改源码 | - -首轮审视已通过 `pnpm type-check`、`pnpm lint`、`pnpm format:check`、`pnpm check:skills`、`pnpm check:stories`、`pnpm build`、`pnpm check:package` 和 `pnpm story`。当时未运行完整 `pnpm check`;L0 完整检查结果见下文。该初审阶段未完成浏览器旅程;B—E 实施期间已补本地浏览器证据,详见实施记录。真实下游完整检查和远端 CI 尚未执行。 - -隔离实验确认了 AutoForm 默认值覆盖已有数据、数字类型错误归入 `root`、校验异常返回有效、日期字符串交给 Picker 导致渲染异常,以及共享 schema 配置影响另一文档。构建 CSS 检查发现 26 个库内引用但库内未定义的 `--sys-*` 变量。这些证据及源码定位保存在各组中;此前临时实验没有建立持久测试套件,修复时须在选定的行为边界复现和验收。 - -旧 ui-engineering 工作包已由上游维护提交移除,需要追溯时查看 [初审基线中的历史文件](https://github.com/InKCre/ui/blob/4e16d3c88f9ca784ab87b3b51d0cad3591ac069e/tasks/ui-engineering/packet.md)。其版本、测试数量和交付状态不是本次当前事实;本任务不自动继承旧任务的执行授权或未完成事项。 - -L0 实现基线已更新到 `origin/main` 的 `9f7267cbc410aa1421cd5d42ff5af2775fee74c1`,工作分支为 `feat/ui-foundations-l0`。上游已更新 Skill 生成说明、增加长期文档导航并修复预览自行构建流程;本轮保留这些结果,不重复修复或恢复已删除的旧任务文件。 - -## 分层与状态索引 - -| 层 | 组 | 负责的契约 | 当前状态 | -| ----------------- | ------------------------------------------- | --------------------------------------------------------- | -------------------------------------------------------------------- | -| L0 开发约定 | [A](groups.md#a-开发约定与文档入口) | 真实命令、权威文档、人和 AI 的操作边界 | 已验证、已提交 `c5b230a` | -| L1 设计基础 | [B](groups.md#b-token-与主题契约) | B1/B2 引用和主题;B3 角色;B4 验证;B5 正式迁移 | 已验证、实现已提交 `b9c0bc6` | -| L2 Web 组件 | [C](groups.md#c-基础控件与表单上下文) | 原生控件、字段关联、受控状态和基础事件 | 已验证、已提交 `b9c0bc6` | -| L2 Web 组件 | [D](groups.md#d-浮层确认与日期交互) | 模态与焦点、确认取消、异步状态、日期草稿 | 已验证、已提交 `b9c0bc6` | -| L2 Web 组件 | [E](groups.md#e-schema-表单与-json-编辑) | 用户数据、schema 隔离、校验、原始 JSON 编辑 | 已验证、已提交 `b9c0bc6` | -| L3 文档与工程交付 | [F](groups.md#f-ai-消费文档与示例) | 共同设计指南、完整 API 事实、可检查的示例、Agent 读取入口 | F0—F3 已随 2.0.0 发布;F0 重组与主要视觉方向已确认,本地交付验证通过 | -| L3 文档与工程交付 | [G](groups.md#g-package-工程验证与下游接入) | 实际消费者、依赖责任、最小安装、交付验证 | G2 与本地交付已发布;G3 在 client-web #104 验证,G1 外部位置仍有缺口 | -| L4 平台演进 | [H](groups.md#h-多端契约与扩展时机) | 共享语义与平台实现边界 | 原则已记录;具体平台方案未展开,实现暂缓 | - -L3 已形成共同 DESIGN.md、21 个组件 API 事实、三份完整配方和独立安装验证。消费者从安装包读取指南与配方,维护者从仓库 AGENTS 进入同一设计源;完整结果与兼容决定见 [L3 执行记录](l3-execution.md)。 - -client-web、mail、twitter 与 ext-dev-utils 在独立迁移 worktree 中均锁定正式 UI 2.0.0。原始消费者 checkout 保留;真实迁移与页面验证由消费者工作包拥有。extension registry 的独立 UI 和实际 Figma 发送端仍待定位,多端 renderer 不自动扩展。 - -## 持续使用规则 - -开始每轮工作前,读取本文件和当前组,确认最新用户指示、代码基线、已完成事项与未决选择。新的用户纠正、范围决定和授权在同一轮写回工作包;保留已有授权,不重复询问。 - -每个执行切片记录目标行为、拥有的文件或模块、非目标、兼容性影响和最小充分验收方式。实际需要展开某个复杂切片时才增设执行记录,不为所有组预建空文档。状态按“待讨论 → 待执行 → 执行中 → 已验证”推进;存在具体阻塞时记录缺少的条件。“已验证”不等于已提交、已发布或消费者已升级。 - -结束每轮工作时更新当前组的结果、证据、遗留事项和下一步。发现跨组问题时记录一次并链接归属组,不在多个组复制修复方案。任务结束时把长期有用的结论更新到原有权威文档,工作包保留执行证据。 - -每个已启动切片应完成必要源码、相关文档、生成物、适用 Changeset 和验证。提交、跨仓修改及发布按用户已授予的范围处理。仅编辑本工作包不改变包消费行为,不创建发布 Changeset。 - -## 共同约束与完成标准 - -- 保留现有组件清单、生成链路、随包 Skill、Histoire、Changesets 和源码联调中已证明有用的能力;每次删除或新增机制都要对应具体成本或缺口。 -- 区分缺陷修复与 API 调整。按钮默认提交行为、模型值类型、取消语义、依赖范围等变化,都要先核对真实调用和兼容影响,再决定迁移方式与版本级别。 -- Token JSON、组件源码与 manifest、人工维护的选型指导分别拥有自己的事实;生成物不直接编辑,也不增设另一份手工 API 权威。 -- 按现有组织验证政策选择证据。本仓库目前不设自动化单元/组件套件;静态检查不能证明的交互,应以具体黑盒旅程验证,只有收益明确的行为才讨论持久自动化。 -- 不把源码联调成功视为已发布产物可用,不把 Story 构建成功视为交互或视觉正确,不把 Skill 结构校验视为内容完整。 -- 不提前建立多端 renderer、插件系统、通用表单框架、全量浏览器矩阵或额外 AI 文档服务。 - -组级完成要求是:该组确定的行为和契约已经兑现,有对应证据,文档与产物一致,兼容与下游事项明确。H 的暂缓实现不阻碍当前 Web 整治完成;如果启动非 Web 交付,再明确新增范围。 - -## 决策与进展 - -| 日期 | 记录 | 性质 | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | -| 2026-09-12 | 完成首轮仓库审视,发现行为、样式、文档、产物验证和消费契约问题。 | 审视结果;部分需补浏览器与下游证据 | -| 2026-09-12 | 用户要求分层分组分别处理,建立并持续使用 task packet。 | 已确认的协作方式 | -| 2026-09-12 | 建立本工作包,提出五层八组及组内切片;未启动实现。 | 分组提案 | -| 2026-09-12 | 用户要求“请做 L0”,启动 A1、A2;文档中的准确命令、入口和维护规则纳入本轮。 | 已授权执行;不含提交发布 | -| 2026-09-12 | 用户授权提交 L0,并实施 L1-B、L2-C/D/E;L0 提交为 c5b230a。 | 已确认执行范围 | -| 2026-09-13 | B—E 实现、文档、Story、Skill 和 major Changeset 完成;完整检查及实际 tarball 浏览器旅程通过。 | 已验证;本轮实现未提交、未发布、未升级消费者 | -| 2026-09-13 | 用户要求回到 L1 审视 Token 体系,提供本地分析文档;读取被系统拒绝。先复核仓库结构,原定 B1/B2 的通过不代表 Token 设计合理性已获验证。 | 讨论中;文档内容待提供,未启动体系迁移 | -| 2026-09-13 | 从用户提供的 Downloads 路径完整读取 Why & What 草案,核对仓库、下游样式和技术引用;隔离生成确认 Sass/Uno 的字体角色输出差异。提出 B3 契约、B4 场景验证、B5 源与输出迁移。 | 评议已完成;分组为提案,未修改生产源码 | -| 2026-09-13 | 用户认可评议与 B3/B4/B5 切片,要求进一步细化实施方案;补充角色与覆盖责任、Figma 导入边界、场景矩阵、分批迁移和最小验证要求。 | 实施方案已完成;本轮仅修改工作包 | -| 2026-09-13 | 用户要求“开始 B3”;完成全部 Token 族、21 个组件和本地 client-web 调用盘点,形成三类候选契约、覆盖/导入责任与编号实验。 | B3 完成;仅设计和证据交付,未执行 B4/B5 | -| 2026-09-13 | 用户要求“做 b4”;完成编号场景的隔离视觉/交互验证、Firefox 原生文字缩放与入口覆盖实验,收敛字号、控件几何、颜色配对和默认指南;撤回共享容器曲线,修订 Switch 尺寸占位与祖先装饰承诺。 | B4 完成;生产文件未变,B5 尚未启动 | -| 2026-09-13 | 用户要求进入 L3,并讨论、确认面向消费者和维护者 Agent 的 design.md;已核实 Vercel 官方文件与两篇设计文章,形成 F0 定位、文档责任和 F/G 顺序提案。 | 讨论稿;仅更新工作包,未改变正式规则或交付机制 | -| 2026-09-13 | 用户确认 design.md 定位并要求“开始做 L3”;共同指南、API/配方、依赖和独立安装交付已验证,实际消费者与外部发送端缺口已记录。 | L3 本仓库实现完成,真实升级未完成,未提交发布 | - -## L0 执行结果 - -2026-09-12,A1、A2 已验证。实际改动仅涉及根级与包级 README/AGENTS、组件编写指南、现有文档导航、Token 与 Skill 生成说明、样式说明、Migration、本工作包和一份 [patch Changeset](https://github.com/InKCre/ui/blob/2b553ab002483474a603e691244019d0b5c628e5/.changeset/puny-clocks-boil.md)。L0 的运行时、生成器、依赖、工作流和生成物未发生差异;已提交为 `c5b230a`,未推送、发布或修改下游仓库。 - -移除了不存在的测试命令、逐组件测试文件要求、不准确的示例与旧路径;校正 `unknown`、原生元素、模型所有权及错误处理指导;明确 Story/Skill 检查能证明什么。Token 文档如实描述 `type/value` 输入与现有转换限制,没有迁移格式或更改 Token。消费者文档保留公开导入、直接 Markdown 入口及显式 Intent 配置,并将 client-web 联调链接更新到其当前开发运行时文档。 - -验证证据: - -- `pnpm check` 完整通过,覆盖格式、lint、生成物一致性、Skill、Story 覆盖、Token 工作流、类型、构建、两种身份的包契约和 Histoire 构建;21 个 Story、109 个 Variant。 -- 对修改文档及工作包运行一次性链接/命令检查:本地文件与标题锚点可解析,实际操作命令与生产者或下游 package scripts 对应;任务中的历史问题描述不作为操作命令执行。 -- 3 个 JSON 示例可解析,3 个 TypeScript 示例通过语法检查,2 个 Sass 示例使用现有 helper 编译成功。TypeScript 语法检查不被当成完整消费者构建证明。 -- 重新打包并检查随包 README、Migration 与样式文档:9 个相对链接全部在 tarball 内可解析。 -- `git diff --check` 通过;根 AGENTS 和 docs/index 的 SVC 托管块保持上游原样。没有建立额外测试或文档检查框架。 - -初审报告中的旧预览产物复用与旧 Skill 目录文档问题已由实现基线包含的上游提交解决,不计作本轮修复。上述为 L0 截止状态;后续 B—E 已由用户授权实施,见本工作包的当前状态及实施记录。 - -## B—E 执行结果 - -2026-09-13,B、C、D、E 已验证。实现、兼容决定、验收步骤和产物身份见 [实施记录](execution-b-e.md)。最终完整 `pnpm check` 通过,21 个 Story、114 个 Variant;实际 tarball 的原生表单、键盘、模态焦点、日期草稿、schema 隔离和失败路径通过临时 Chromium 消费页验证。没有建立持久单元/组件套件,也没有新增运行时依赖。 - -本轮需要 major 发布:普通按钮明确提交类型,JsonEditor 改为原始文本模型,Picker 确认才提交,浮层采用原生 dialog,Vue 范围收紧为 ^3.5.0。下游必须按 [Migration](../../packages/web/MIGRATION.md) 适配;client-web 的两个搜索按钮和 peerCard 配置 setter 已定位但未修改。当前 package 版本仍为 1.4.0。 - -当前按用户认可的 L1 方向推进准备,草案评议见 [B 组复审](groups.md#token-体系复审2026-09-13讨论中),具体切片见 [实施方案](plan-l1-token-system.md)。F 的 API 事实与示例交付、G 的实际消费者迁移和安装边界仍待展开;H 继续由真实平台需求触发。B—E 的产物和模拟保存证据不等于真实下游已升级或远端 CI 已通过。 - -## B3 执行结果 - -2026-09-13,B3.1—B3.3 完成。盘点区分了 237 个叶节点与实际设计角色,逐项处理 11 个字体样式、每主题 19 个 sys 颜色角色、Switch 的三个组件角色及全部 ref/effect 族。下游未定义的正文、标题、反馈需求与错误 helper 调用分别记录;颜色组合计算进一步定位了普通表面反色标题、选中项说明和深色错误前景的配对问题。 - -候选契约给出字体来源、正文/标签的初始尺度、内容增长与局部空间规则、状态优先级、可读的颜色配对、根级覆盖与受限导入责任。尚需视觉判断的选择均有 B4 编号实验和失败条件。没有把候选字号、色值或新增名称直接写入生产源、随包 Skill 或长期规范。 - -本轮通过工作包文件链接、差异检查、源计数和颜色数值复核;工作包外 234 个基线文件的哈希保持不变。未重复运行会生成文件的 pnpm check,既有 B—E 检查结果仍仅对应其原产物。B4 浏览器实验、B5 正式生成/迁移、真实 Figma 发送端和 extension registry 核实尚未完成。 - -## B5 执行结果 - -B5 仓库内迁移已验证,详见 [实施记录](b5-execution.md) 和 [正式产物证据](b5-evidence/README.md)。Token 源、Sass/Uno、受影响组件、Story、样式指南、Skill 和 major Changeset 已同步;完整 pnpm check 与默认产物消费页通过;随后已整理提交 `b9c0bc6`,未推送或发布。按用户最新边界停止继续处理 Firefox 原生 200% 文字放大专项,保留通用字体与内容布局能力。 - -后续回到 F/G 的基础消费交付:完整 API 事实与示例机制、真实消费者和最小安装边界。Figma 实际发送端与 extension registry 的位置仍缺证,不把受限导入 fixture 或临时消费页当成下游已适配。 - -## 整理提交与下一阶段边界 - -用户在 B5 验证完成后授权“整理提交,然后看看任务总图”。本轮将相互依赖的 Token、组件、生成物、迁移与随包说明整理为 `b9c0bc6cdefd336b4ad044bbc2f37cd868c749b3`(`feat(ui): 统一 Token 与组件基础契约`);本工作包及对应设计/验证证据随后单独归档提交。源码提交覆盖此前尚未提交的 B—E 与本轮 B5,不只包含最后一个切片。 - -沿用 B5 最终 pnpm check 和产物消费的通过证据,源码未发生新的修改;本轮核对提交差异、Changeset、证据文件与文档链接。受仓库通用图片忽略规则影响,工作包引用的 14 张代表截图显式纳入提交,避免检出后链接失效;临时 tarball、开发服务器文件及 node_modules 继续保持忽略。未推送、发布或修改消费者仓库。 - -该次整理提交只建立后续范围讨论入口,当时未启动 F/G 源码实现;之后的 L3 授权与结果见下节。 - -## L3 执行结果 - -用户确认共同 design.md 的方案并要求开始 L3,现已完成本仓库 F0—F3、G2 和 G3 本地交付。根级 DESIGN.md、生成的模型/类型/默认值/事件/插槽文档、Story 共用配方、同版本随包发现、依赖责任与严格独立安装检查已同步。完整 pnpm check、最终 tarball 检查和三份配方的浏览器旅程通过;生成器对过期指南和未知 prop helper 按预期失败。结果见 [L3 执行记录](l3-execution.md) 与 [验证证据](l3-evidence/README.md)。 - -Vue 最低版本按真实声明校准为 3.5.25,内部 JSON 服务固定 5.6.4,已补 major Changeset;包版本仍为 1.4.0,未提交、推送或发布。G1 已核对三个本地消费者并记录实际调用缺口;extension registry 独立 UI/Figma 发送端尚缺位置,G3 真实消费者迁移和页面验收尚未完成。准备的局部跨仓补丁未应用,消费者 checkout 保持原状。 - -## F0 复审:设计理念与视觉风格 - -用户纠正了此前将下游视觉偏差收窄为“圆角默认及例外”的判断。当前问题是共同 DESIGN.md 是否充分表达 InKCre 的设计理念、视觉风格及其理由;不把“禁止圆角”作为本次讨论的目标,也不将上轮消费者的局部形状修正自动升格为系统规则。此前形状二选一的问题不再作为本轮待决入口。 - -复核根级 DESIGN.md、L3 定位与执行记录及用户提供的 Why & What 草案后,当前判断为:指南对角色选择、配色配对、内容适应、组件组合和维护责任已有可用说明,但没有充分建立从共同设计立场到视觉表达、页面组合与取舍边界的联系。L3 首版主要归档了 L1/L2 已认可结论,知识发现与包内交付通过,不代表它已经能够指导陌生页面延续 InKCre 的视觉风格。Why & What 主要解释设计决策和上下文关系,不能独自承担具体视觉风格的定义。 - -需要区分已认可的设计理念、现有实现中的风格线索和尚未确认的提议。不能把旧代码的所有表现都总结成品牌规范,也不能只增加“简洁、克制”等宽泛形容词。后续讨论应以少量认可的真实界面与对照方案,明确内容与操作的主次、文字和留白的节奏、颜色与边界的用途、容器的组织方式,以及变化时应保持的关系;再据此修订正式指南和消费验收。 - -本轮仅审视并更新工作包,没有修改正式 DESIGN.md、Token、组件或消费者源码。已有下游迁移修正及检查仍有效,但不据此宣称设计风格已获认可;文档不足也不能解释所有执行遗漏,现有指南中已明确的要求仍须落实。 - -## F0 知识拆分实施 - -用户认可按设计立场、视觉语言、页面组合、判断依据四类知识继续处理,并明确当前问题是侧重点不对、单文件容易形成 monolith。已从最新 origin/main 的 `3de2a66` 建立 `feat/design-knowledge`,保留上一轮工作包修改。本轮拥有 DESIGN.md 与四份设计正文、已有指南的责任归位、Agent 读取路径和同版本随包交付;不改变 Token、组件运行时或下游页面,不提交或发布尚待审阅的视觉主张。 - -DESIGN.md 保持共同立场和按任务导航;四份正文位于 `docs/design/`,分别拥有原则、视觉、组合与判断证据。可跨平台的设计知识与 Web 具体调用分开;原有 CSS/主题契约回到样式指南,扩展/兼容操作回到维护入口,避免只是拆开一个仍需全文加载的大文件。生成与包检查沿用现有脚本,不引入文档框架。 - -已有设计关系可以直接整理;现行表现中的视觉线索必须标为提炼稿,待认可的代表界面用于后续校准。已向用户询问代表界面的名称或链接,同时继续独立的责任梳理和可审阅正文。原有 B5 截图只用于说明已验证的特定关系,不作为完整页面品牌认证。 - -已完成的人工正文为 [DESIGN.md](../../DESIGN.md) 的 18 行总纲,以及[设计立场](../../docs/design/principles.md)、[视觉语言](../../docs/design/visual-language.md)、[页面组合](../../docs/design/composition.md)、[判断依据](../../docs/design/reference.md)。正文围绕内容、注意、对象归属、动作后果与适应关系组织,解释圆角、边界和容器应如何参与这些关系。视觉语言区分既有角色约定与当前组件的表达线索;判断依据为两张既有 B5 图片注明可推广关系、验证情境和不代表完整页面风格的范围。 - -消费者从总纲进入与当前页面有关的正文,再查组件参考;维护者从 AGENTS 进入同一设计源,结合 Token 或组件的现有维护指南处理变更。字体调用、主题传播、数据模型与操作授权留在各自技术入口。生成器同步总纲、四份正文和两张图片共 7 个文件;包检查验证完整文件集合、字节与链接。图片已纳入明确的 Git 跟踪范围,避免新 checkout 丢失文档资源。已补 [patch Changeset](../../.changeset/better-trees-begin.md),没有新增依赖或文档框架。 - -验证结果:完整 `pnpm check` 通过,包含格式、lint、生成一致性、Intent、Token 工作流、类型、构建、真实 tarball 的严格独立安装与文档链接,以及 21 个 Story/120 个 Variant 的构建。对包内副本依次做删除正文、篡改图片、增加过期正文的临时实验,`skill:generate:check` 均按预期失败,随后完整恢复并运行基线。另核对 17 个设计源链接与锚点,以及 AGENTS/docs/index/.gitignore 的共享托管块,均保持有效;`git diff --check` 通过。这些证据验证交付完整性,不构成新的视觉认可。 - -当前待校准的是代表页面中的整体强调程度、连续内容与独立容器的比例、几何与层次组合,以及阅读区和操作区的密度。用户尚未补充代表页面,本轮将这些判断保留为明确的提炼稿;未把既有消费者修正继续扩散成新规则。分支 `feat/design-knowledge` 保留可审阅改动,未提交、推送、发布或修改下游源码。 - -## F0 正文清理与视觉语言确认 - -用户指出,描述现有组件表现、提炼过程和待确认状态的元描述不应进入正式文档,可以保留在 task packet;视觉语言应分别、交互地确认。本轮按此边界清理 DESIGN.md、设计正文及 README/Skill 入口。正式文档保留设计选择、理由、具体例子与适用范围;当前工作进度、实现观察和候选主张只在本节记录。上节“将提炼稿保留在正文”的方式已被此次纠正替代。 - -从视觉语言移入的实现观察: - -> 现有 Button、Input、Header、Switch 和 Popup 呈现出几条共同线索:以中性色表面承载内容,用文字、对齐和可辨认的边界组织界面,把明显色彩用于动作与状态。Header 品牌文字和技术标识使用等宽表达,连续阅读使用系统 UI 字体。多数常用控件呈平面的矩形轮廓,层次主要来自分隔、背景关系和位置。 - -这些是对现有实现的观察,不作为认可的整体风格。此前据此提出的“让信息和操作直接可辨,让视觉秩序来自排版、空间与边界的配合”也不能仅靠改成规定口吻就进入正式指南。品牌文字的等宽表达、控件矩形轮廓、圆角与阴影的组合等,后续分别讨论。既有文字角色、配色配对、字段关系与内容增长约定继续保留。 - -判断依据中的两张图片分别来自 B5 的 `form-production-320.png` 与 `states-dark.png`。前者为 1000px 画布内的 320px 表单内容区域,含双语与重复校验文案;后者是多种状态的并列验证阵列。它们只用于解释字段关联与动作状态,不作为完整页面样板。正文改为直接解释这些设计关系和例子的适用范围,移除 B5 验收过程与品牌认可进度。 - -确认按以下顺序展开,每次只处理一项,用户也可以调整顺序。每项确认后将选择及理由写入对应正文,再继续下一项;不把一次性提供全部代表页面作为前置条件。 - -1. 整体气质:界面给人的感受与视觉性格。 -2. 文字表达:标题与正文的对比、等宽表达的使用范围。 -3. 色彩表达:中性色基底、强调色的强度与用途、浅深主题的关系。 -4. 形状与层次:边界、圆角、底色和阴影如何共同区分控件与容器。 -5. 空间与密度:阅读节奏、操作密度和不同容器中的变化。 - -第一项候选建议为“平静、有秩序,略带技术感”:内容先进入视线,排版和对齐建立节奏,控件的强调跟随任务;技术感来自清晰、精确的组织。此建议尚未获得用户确认,不写入正式视觉语言,也不预先决定等宽字体、圆角或色值。 - -清理已完成并同步随包副本。`pnpm format:check`、`pnpm check:skills`、`pnpm check:package`、18 个设计源链接与锚点核对及 `git diff --check` 通过。沿用上一轮完整基线,按本轮正文及生成模板文案的影响复核格式、发现与实际安装包;未重复运行组件与 Story 检查。当前只等待第一项设计反馈,未提交或发布。 - -第一项已确认:用户同意“平静、有秩序,略带技术感”,同时指出“内容先进入视线、排版与空间建立阅读节奏、控件可辨、强调随任务分配”属于基本 interface guideline,不能当作视觉风格的具体定义。正式视觉语言只补入已确认的气质句。后续判断必须区分可用性底线与审美选择:即使两个方案都清楚、好用,也要说明 InKCre 为什么在字体、形状、色彩和质感上选择其中一种。已有正文中的通用关系仍是基础约束,不能计作风格已定义;随具体风格确认再整理其合适归属。 - -下一项讨论文字的视觉性格。候选建议:系统 UI 无衬线承担正文与普通控件,品牌名及少量短栏目名、编号使用等宽表达,以局部字体对比形成轻微技术感。等宽字的品牌用途尚未确认,不能因现有 Header 恰好如此就视为标准;不提前决定所有标题、字重、字号或引入字体依赖。 - -已确认的气质句已同步包内副本,正文格式、`pnpm check:skills` 与差异检查通过;本次没有改变链接、交付机制或运行时,未重复整包构建。未提交或发布。 - -第二项的字体组合已确认:用户认可“无衬线为主、局部等宽混排”,并指出现有 monospace 有过度使用,这个方向也用于纠正实现。已在视觉语言中写明普通正文/控件的默认字体、品牌/少量栏目名/编号的局部等宽表达,以及避免容器继承扩散的边界。用户同时要求参考中西文排印指南;通用排印规则与风格选择分开,不将外部作者的偏好自动作为 InKCre 标准。 - -2026-09-13 查阅的排印依据: - -- [W3C 中文排版需求](https://www.w3.org/TR/clreq/) 涵盖中文标点、行首行尾禁则、中西混排、字距和行段布局;查阅版本为 2026-09-01 Group Note Draft,作为研究中的参考,不宣称是强制标准。后续提取适用于界面文字的规则,按简繁与地区差异处理,不整套照搬书籍版式。 -- [Butterick:Body text](https://practicaltypography.com/body-text.html) 将字体、字号、行距与行长联系起来,也承认 Web 正文可采用衬线或无衬线字体;本项目采用无衬线是自身的风格选择。 -- [Butterick:Line length](https://practicaltypography.com/line-length.html) 给出西文平均每行 45—90 字符的经验范围。它是西文排印建议,不转换成中文统一字数或全局宽度 Token。 - -排印指南的具体采纳项仍待梳理确认,先覆盖标点与断行、中西文混排、正文行长和行距的配合。字体回退与宿主排版支持归技术实现,品牌字体对比归视觉语言,不新增排版框架、字体依赖或全局文本改写机制。 - -只读盘点发现 `packages/web/src/components/inkSwitch/inkSwitch.scss:14` 对整个普通状态控件应用 mono,是后续收敛项;Header 品牌、JsonEditor 与显式 mono 的 Textarea 各有对应用途。迁移 worktree 中 Source 的 id-label 与 id 共用 mono,需区分说明标签与编号;JobCard 编号、ExtensionCard 版本号和配置代码不可仅凭出现 mono 就判为过度使用。client-webext 的若干容器也有 monospace,但它仍属此前记录的独立主题范围。当前没有修改这些实现,后续按确认后的设计统一复核,不能据此宣称下游字体迁移完成。 - -下一项仍在文字表达内:标题与正文的视觉反差。候选方向是标题适度增大、以中等或半粗字重形成稳定层级,正文保持常规字重;不普遍采用极粗的大标题。具体字重与尺度尚未确认,不改变现有 Token。 - -字体组合正文已格式化并同步包内副本,`pnpm check:skills` 和差异检查通过。当前改动为文档与工作包,未提交或发布。 - -标题力度已确认:用户认为目前的标题/正文对比力度较好。正式视觉语言记录“适度的字号差异、中等或半粗标题、常规字重正文”,维持现有 Token 度量,不将此确认解释为重新调整字号或字重。文字风格已确认局部等宽混排与温和明确的标题层级;中西文排印规则的整理仍是独立的基础工作,未因风格确认而宣称完成。 - -下一项为色彩整体表达,候选建议是以接近黑白的中性色构成大部分界面,主要通过明暗差形成视觉对比,彩色仅在少量重点与状态中出现。该项讨论色彩面积和整体观感,不替代已确认的语义配色与可读性要求,也不预先决定具体色值;尚待用户确认。 - -标题力度正文已同步包内副本,格式、`pnpm check:skills` 和差异检查通过。本轮未改变 Token 或组件实现,未提交或发布。 - -色彩方向已确认:用户认可界面框架以黑白灰为主、少量彩色,并补充彩色应尽量偏灰、偏淡、低饱和。正式视觉语言记录小面积、低饱和、带灰调的柔和表达。这里将“淡”理解为不鲜艳、不刺眼的整体感受,不将其直接解释成所有颜色提高明度或统一降低透明度;具体明度仍需结合背景,已有文字和状态的可读性约定继续有效。用户未确认新的调色板或具体色值,本轮不修改颜色 Token。 - -后续具体色板重点确认灰调的程度与色彩冷暖,而不是要求用户裁决通用可读性要求。浅深背景下的明度与对比由实现验证,在两种主题中保持低饱和的整体感受;尚未确定具体色值或主题表面方案。 - -色彩方向正文已格式化并同步包内副本,`pnpm check:skills` 与差异检查通过;未改变运行时、提交或发布。 - -用户要求继续后,进入色调的可视比较。[交互色调对照](color-study.html) 与[截图](color-study.png) 展示 A 中性灰、B 偏冷灰、C 偏暖灰的浅深两组样本。布局、文案、字体和三个灰调彩色保持相同,改变中性表面、文字和边界的冷暖,先判断框架底色的偏好。示意布局只用于控制比较条件,不把其控件形状、间距或字号升格为新的认可规则。建议优先考虑 A,以接近黑白的框架承载局部灰调彩色;用户尚未选择,正式视觉语言和 Token 不变。 - -对照是无需服务或依赖的单文件 HTML,支持浅深并看/只看浅色/只看深色。通过现有下游 Playwright 在 Chromium 中检查 6 个样本、视图切换、390px 窄容器无横向溢出及无页面脚本错误,并查看截图;18 组反馈色与背景配对的计算对比度均不低于 4.5:1。浏览器已关闭,没有留下开发服务器。HTML 与截图属于 task packet 实验资产,不进入随包设计正文;未提交或发布。 - -用户选择 A 中性灰方向。正式视觉语言补入“基础灰保持中性,不整体偏向蓝灰或米灰”,与先前的小面积低饱和灰调彩色组合。认可范围是基础色调的冷暖,不包含实验中的精确色值、字体度量、边界粗细、形状或布局;颜色 Token 未改。 - -下一项讨论形状与层次,先确认整体轮廓:候选方向是平直、利落的几何,以矩形轮廓为主,局部用小圆角柔化转折,整体保持平面感。圆角的适用位置、层次所需的边界/底色/阴影仍分别判断,不将候选转成全局直角禁令或统一卡片样式。此候选尚待用户确认,不写入正式正文。 - -中性灰方向已同步随包正文,格式、`pnpm check:skills` 与差异检查通过;未提交或发布。 - -形态方向已确认并收紧:用户基本认可平直、利落、矩形为主及薄而平面的质感,指出“局部用小圆角柔化转折”过于宽泛。系统几乎都采用无圆角,任意加入圆角会突兀;卡片不能仅因是局部组件而获得圆角例外。本轮撤回这一宽泛候选,正式正文明确默认直角,卡片、按钮、输入框与浮层共享轮廓语言。例外须按明确形态用途约定,结合周围界面确认,不能以小面积或柔化装饰为理由自行引入。当前没有新增任何圆角例外,也不将这次收紧扩展成对所有圆形内容的禁止。 - -后续需要区分“对象本身的形状”与“通用容器的装饰”:例如旋钮或环形进度的圆形是否属于必要的功能表达,可以单独讨论;它们不自动授权卡片、按钮和输入框采用圆角。具体例外尚待确认,候选留在工作包,不预先写入正式正文。Token 中已有圆角值也不构成设计许可,本轮不改 Token 或组件实现。 - -形态正文已格式化并同步包内副本,`pnpm check:skills` 与差异检查通过;未提交或发布。 - -用户确认上述圆角边界并要求继续。下一项为层次与阴影,候选表达是平整的版面、清晰的细实线边界与轻微底色差;页面及常驻内容区默认无阴影。实际覆盖其他内容的菜单、弹层若需要进一步表达前后关系,可以单独使用范围小、强度低、贴近轮廓的阴影。这个用途不能扩散成普通卡片的悬浮效果;阴影也不赋予圆角例外。此项尚待确认,只记录在工作包,不修改正式设计正文、Token 或组件。 - -用户已确认层次与阴影方向,正式正文补入常驻内容默认无阴影、细实线与轻微底色差,以及临时覆盖层的小范围低强度阴影;继续遵循直角轮廓。本轮不修改阴影 Token 或组件实现。 - -下一项为视觉空间与密度,候选方向是整体适度紧凑、局部舒展:列表和工具区具有稳定的行列节奏,相关信息距离较近;连续阅读区以段落与区块间的留白形成停顿。较大的留白集中在内容分段和页面边缘,不给每个字段或条目都加宽阔的内边距。该项讨论可辨识的空间节奏,不是固定像素表,也不以缩小字体或压缩操作目标实现紧凑;尚待用户确认,不写入正式正文。 - -层次与阴影正文已格式化并同步随包副本,`pnpm check:skills` 与差异检查通过;未提交或发布。 - -空间与密度已确认,正式视觉语言记录整体适度紧凑、局部舒展,较大的留白集中在段落、区块和页面边缘。用户同时指出,Agent 容易填满界面,而留白之前应先减少内容、元素;这种减少涉及交互状态、内容层级和多种尺寸,不能简化为静态页面的删减。本轮将这一判断写入设计立场,页面组合展开删除重复/无价值元素、按需进入次要详情、在正确状态呈现必要反馈及跨尺寸保留上下文,判断依据补充来源列表/详情/编辑的例子。既有“完整阅读不截断”的要求继续有效;减少的是当前视图负担,不是丢失必要内容。 - -五项视觉方向已完成本轮确认,随即归整正文责任。视觉语言集中表达已确认的气质、字体对比、标题力度、中性灰与灰调彩色、默认直角、平面层次及空间节奏;文字角色表、配色角色与状态边界回到现有 Web 样式指南,内容取舍与分层由页面组合拥有。中西文排印参考进入判断依据,简要整理混排间距、语言与地区标点、行距与行长共同判断,强调显示调整不改写用户原文和代码;没有采用固定中文字数、全局字距算法或新依赖。 - -尚未完成的是颜色和阴影等具体值的正式实验、现有 monospace 等实现偏差的收敛、下游按更新设计知识的复审与完整页面验证。当前文档收拢不等于这些实现已迁移,也不新增圆角例外;本轮继续只改设计与技术指南及其随包副本。 - -收拢后的视觉语言为 33 行,按五项已确认方向组织;通用呈现原则、具体角色调用、排印参考各有明确入口。已重新生成随包正文,完整 `pnpm check` 通过,包含生成一致性、Intent、Token 工作流、类型、构建、真实 tarball 的独立安装与文档链接,以及 21 个 Story/120 个 Variant 构建。另核对 27 个本地设计/样式链接、共享托管块与差异,均通过。没有改变组件源码、Token JSON、锁文件或共享文档;分支仍保留可审阅改动,未提交、推送或发布。 - -## F0/G3 已确认风格的实现对齐 - -用户要求继续,按已确认规则从文档进入实现。先完成有明确判断依据的局部修正,颜色和阴影的具体值仍需场景对照;内容取舍另按列表、详情、编辑、反馈与尺寸的状态关系处理,不以统一隐藏详情代替设计。 - -| 切片 | 目标与拥有范围 | 当前状态与验收 | -| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| I1 字体与轮廓 | Switch 普通状态使用无衬线;AutoForm 根错误容器保持直角;AutoForm、Image Story 延续同一风格并提供真实可操作示例;下游 Twitter 步骤编号采用共同轮廓 | 已验证;生产者与下游完整检查、实际产物及 Story 浏览器验证通过,另修复窄屏向导关闭按钮裁剪;见 [I1 证据](i1-evidence/README.md) | -| I2 色彩与阴影 | 对照基础色、动作和反馈的浅深主题配对,校准临时覆盖层阴影;具体值确认后再改 Token 和实现 | 已确认、正式落地并验证;Token、生成输出、指南、示例与 Changeset 已同步,完整检查和[实际产物验收](i2-evidence/README.md)通过;已提交 `284ade6` 并推送至 PR #46,未发布 | -| I3 页面内容与状态 | 以真实 Sources 列表/详情/配置编辑等场景审视重复信息、按需详情和必要反馈,并覆盖窄宽容器与状态变化 | 已提交并推送至 PR #104;真实 preview 页面、本机 SSH 数据库 E2E 与最终 CI 均通过,未合入 main | - -I1 从普通状态等宽、错误面板圆角及示例自行装饰,收敛到已确认的无衬线默认与直角轮廓。拥有两个组件 SCSS、相关 Story/说明、适用 Changeset 和现有消费者的步骤样式;不改变模型、事件、schema 校验、业务权限、保存边界或 Token 值。Switch 切换与 pending 保持稳定宽度,错误仍直接可见,Image 的键盘打开/关闭和槽内操作应继续可用。没有新增依赖、测试框架或通用样式重置。 - -复核修正了一处先前的盘点假设:Source 的 `id-label` 实际只显示 `#`,与编号共同使用等宽具有明确用途。Job 编号、版本、日志时间/结构化值、配置代码和技术类型标识也不因使用 mono 就需要删除。`client-webext` 仍是独立主题,不混入这批直接 UI 消费者修正。下游执行在既有 `feat/ui-v2-migration` worktree,由其工作包记录验证。 - -I1 已完成。Image 示例去除没有行为的 Download/Share 按钮,改为实际原图下载链接;缩略图提示持续可见,替代文字与实际标志图片一致。AutoForm 调试数据继续用局部等宽,颜色随主题变化。生产者只修改两个组件的样式和相关示例/说明,未改模型、事件或 Token JSON;已补 patch Changeset。 - -下游窄屏复验发现并修复了同一向导的基础宽度问题:88vw 没有扣除宿主弹层内边距,造成关闭按钮被裁剪。通过容器最大宽度约束解决,夹具增加内容区与操作区的完整可见性检查。这属于本次真实页面验收发现的必要修正,不恢复 Firefox 原生文字放大专项。 - -最终两仓 `pnpm check` 均通过。生产者候选 tarball 验证中英文 Switch 的尺寸、切换、pending、外层 mono 隔离,以及浅深主题、320px/768px 下的错误呈现;Story 验证实际键盘与下载行为;消费者重放真实 Host/Twitter/Mail,保持既有交互通过。详见 [I1 验收](i1-evidence/README.md)。分支保留可审阅修改,未提交、推送或发布;消费者仍安装正式 2.0.0。 - -下一切片 I2 以常用动作、反馈与临时覆盖层做浅深主题对照,先决定配对关系和视觉强度,再更新数值。I3 独立处理真实页面中的内容取舍与状态关系,避免借调色或轮廓修改掩盖信息层级问题。 - -用户现已授权提交,并要求 I1 独立提交后继续 I2。F0 设计知识与交付已先归档为 `1e9a4a5`,本次 I1 的组件样式、Story、Changeset 与验收证据另作独立提交;下游同一切片也在迁移 worktree 单独归档。沿用上一轮最终完整检查与浏览器结果,本轮没有额外修改运行时;不将本地提交等同推送或发布。 - -## I2 色彩与阴影:场景校准 - -前置提交已完成:生产者 I1 为 `11be433`,消费者 I1 为 `6a61637`,两个工作区均已归档干净后开始此切片。用户本轮的 l1/l2 按紧邻上下文中的 I1/I2 执行,不回到已经发布的历史 L1/L2 整治。 - -**当前状态:I2 正式落地与实际产物验证已完成。** 选定值沿现有 Token 角色维护;颜色和阴影属于可继续迭代的设计参数,不再要求逐个色值确认。下文保留各次实验与讨论的历史边界,最终结果见本节末尾与 [I2 验收](i2-evidence/README.md)。 - -本轮从偏蓝灰主动作、较鲜艳的反馈、深色背景的大幅明暗跳变及较宽的覆盖层阴影,校准为中性主动作、灰调彩色、小幅表面层次与贴近边缘的阴影。先在 task packet 中给出真实组件的现状/候选对照;继续沿用逐项视觉确认约定,候选值不直接进入正式 Token。拥有本切片的实验、配对记录和后续明确的迁移路径,不新增主题引擎、色彩依赖或 Token 角色。 - -验证覆盖浅深主题下的正文与次要说明、primary/subtle/danger 的普通/hover/pressed/focus/pending/disabled 状态、错误字段的边框和焦点共存、反馈在普通表面上的前景配对,以及 Tooltip 的实际覆盖关系。按影响进行窄容器与真实组件复核;不把通过对比度计算视为视觉偏好已确认,也不把实验页面当作真实下游迁移完成。 - -已完成 [I2 交互对照](i2-study/index.html) 与[实施/验证记录](i2-study/README.md)。候选按现有角色覆盖,实际组件来自 I1 tarball:主动作和 Switch 收敛为中性灰,反馈采用灰绿/灰赭/灰蓝/灰红,深色底面与内容区的关系由较大明暗跳变改为小幅提亮。危险动作在深色主题同时调整前景和背景;阴影采用中性黑,并缩小偏移与模糊范围。精确值集中于实验文件,不进入正式规范或生成物。 - -两种主题、现行/候选四组共检查 168 个配对;候选 84 组均达到本次文字 4.5:1、必要边界 3:1 的要求,最低分别为约 4.78:1 和 3.61:1。现行深色有 10 个不足组合,集中在较亮 hover 表面上的次要文字、部分反馈和必要边界,记录为角色配对缺口,不据此宣称具体页面全部失败。实际组件状态、错误与焦点共存、pending、Tooltip 开关以及三个视图的 375px 布局均通过;没有页面脚本错误或 HTTP(S) 请求。 - -实验为离线单文件 HTML,复用现有构建与浏览器工具,没有新增生产依赖或测试框架。本轮只改工作包及实验,I1 后的组件、Token JSON、生成物、包版本与消费者源码保持原状。已将具体视觉力度交给用户继续校准;下一步依据反馈修订或将选定配对正式落地,而不是直接把实验值视为已认可默认。 - -用户本轮认可整体色彩,特别认可危险动作按钮的红色,同时指出两项修正:真实页面应避免密集使用成功/警告/信息色;需要引起注意的语义与文字应使用较纯的颜色,上一版绿、黄、蓝过于雾化。由此修正先前“所有彩色都低饱和”的概括:中性框架保持安静,危险动作底色保留已认可灰红;需要强调的反馈前景按用途提高纯度,常态状态与过程说明不自动着色。错误文字也按这一用途与危险按钮底色分开校准,不把对按钮红色的认可推导成所有红色前景都必须同值。 - -本轮拥有范围是视觉语言/页面组合的已确认规则、对应 Web 样式与 Agent 配方、两个普通提交反馈示例,以及现有 I2 实验和验证。实验移除默认页上的成功/警告堆叠,四种语义反馈通过当前情境切换,详细说明保持中性色。中性表面、动作底色、Switch 和阴影候选不变;新反馈前景仍待修订稿的视觉校准。正式 Token、组件运行时和下游消费者不在本次调整中改变,I3 的真实页面内容复审仍独立执行。 - -修订版已验证:候选 84 个配对全部通过,浅/深主题最低文字对比约为 5.14:1/4.95:1,最低必要边界约为 3.86:1/3.61:1;实际按钮状态、错误与焦点共存、Tooltip 和 375px 布局继续通过。新增 20 组情境核对,确认普通状态用中性色、需要注意的反馈只在关键文字着色,说明正文及普通保存/等待结果保持中性色。已查看六张更新截图,并分别查看绿、蓝、红前景在浅深背景上的实际文字。浏览器日志为本机 `/tmp/inkcre-i2-feedback-verify.log`,可复跑脚本与结果保存在实验目录。 - -正式指南、Agent 配方与两个普通提交示例已同步生成,补充 patch Changeset;先前 F0 的待发布摘要同时改为“中性灰与少量彩色重点”,避免继续泛化低饱和要求。完整 `pnpm check` 通过,包含实际包安装、配方/文档交付和 21 个 Story/120 个 Variant;日志为本机 `/tmp/inkcre-i2-feedback-check.log`。最后只补入“默认”一词澄清中性色规则的适用边界,重新生成并检查 Skill。已请用户继续校准修订前景的纯度,未将数值检查当作审美确认。没有提交、推送或发布,下游 worktree 保持干净。 - -用户已确认修订色彩,I2 随即进入正式源。150 个 Token 路径与类型保留;品牌色族映射到中性色阶,危险动作底色与错误前景按用途分开维护。选定的浅深配对、Switch 与三个阴影档位同步到 Sass/CSS/Uno,没有新增角色、依赖或主题引擎。指南说明两种阴影入口的覆盖差异,迁移文档区分未发布默认主题与已发布 2.0.0 契约;既有 I2 patch Changeset 已更新。 - -完整 `pnpm check` 通过。换色揭示循环引用夹具依赖旧正文色的隐式关系,现改为显式构造闭环,不修改生成器或导入规则。实际 tarball 在根级主题下与冻结样稿逐项比较,浅深各 41 个相关变量一致;按钮全状态、错误与焦点、选中标签/说明、Tooltip、Teleport 浮层和 375px 操作均通过。Sass/Uno 三档可见阴影一致,并实际验证运行时变量只影响 Sass/Tooltip 的既有边界。六张截图已查看,无页面脚本错误或网络请求;产物身份、哈希和可复跑记录见 [I2 验收](i2-evidence/README.md)。 - -I2 已验证并按用户授权独立提交为 `284ade6`,未推送或发布。消费者仍使用正式 registry 2.0.0,发布后的安装复验尚未执行。下一次视觉调整按已维护的用途与配对修改 Token,再检查受影响状态即可,不重新展开整轮风格确认,也不恢复 Firefox 原生 200% 文字放大专项。 - -## I3 页面内容与状态 - -用户授权提交 I2 后开始 I3,本轮 l3 按紧邻的 I1—I3 切片执行。下游继续使用 `client-web-ui-v2-migration` 隔离 worktree;生产者仅更新本工作包。具体实现、验证与产物身份由消费者 `tasks/ui-v2-migration/packet.md` 和现有 evidence 目录记录。 - -源码追踪确认 SourceCard 仅在 Sources 列表使用,列表常驻创建表单、配置 JSON 和行内昵称编辑,详情同时再提供整份修改表单。列表与删除读取还存在将数据库错误当作空数据/成功的问题;详情的来源类型只在初次 setup 读取,来源返回前得到空结果,后续未重新获取。 - -本轮将列表收敛为名称、类型、ID、当前采集入口,创建表单由明确动作打开;完整配置与删除集中到有对象上下文的详情。详情保留配置修改,调度创建按需进入,现有计划与任务直接呈现。拥有下游 Source 列表/详情/表单与必要模型错误边界、局部 Job 状态表达、双语文案、说明、Changeset 和现有浏览器验收。保留 Core 数据与采集语义、JSON 原始草稿、失败恢复、窄宽操作、注册表依赖及 MF 共享;不新增主题覆盖或通用状态框架。以完整检查及真实构建的页面旅程验证,网络夹具只证明前端状态与请求,不替代真实数据库或 OAuth 集成。 - -I3 已完成本轮来源工作流与关联消费修正。列表保留可比较的身份和采集入口,详情集中完整配置修改,现有任务与计划保持直接可见,创建表单按操作进入。读取失败不再当作空结果或无限加载,写入等待与拒绝保留草稿;返回列表定位原来源,过期响应不能覆盖新路由,新建任务使用已保存来源的类型规则。 - -真实依赖追踪补齐 Twitter 来源切换失败的旧选择/时间草稿保护。截图还发现 Host 漏注册 UI Uno preset,使错误类没有生成,以及窄屏创建弹层过窄;已在消费者的相应入口修复。没有增加依赖、主题覆盖或通用状态层,也没有改变本仓库 Token/组件实现。 - -消费者最终完整 `pnpm check`、TS7、Changeset 状态及实际 Host/Twitter/Mail 重放通过,pageerror 为零,1280px/375px 代表截图已查看。数据库 E2E 本次仍因 SSH 握手连接重置未进入浏览器;额外 type-aware lint 的 11 项既有问题没有混入此切片。范围、截图、产物哈希与受控读写证据见消费者 `tasks/ui-v2-migration/evidence/README.md` 的 I3 节,不沿用旧 PR CI 证明新改动。 - -生产者 I2 为 `284ade6`;本工作包的新记录与消费者 I3 尚未提交,未推送或发布。消费者继续锁定 registry UI 2.0.0,因此 I3 截图不包含尚未发布的 I2 颜色。I1—I3 的约定实施切片已分别落实;这不代表全部消费者页面审视已经完成,UI 更新发布后的实际安装复验和 client-webext 独立主题仍各自保留后续边界。 - -## PR preview 交付 - -用户授权提交、推送与创建 PR,使用 preview 环境完成验收。生产者保留 F0、I1、I2 独立提交,新增本工作包记录后提交 UI PR;消费者沿用 PR #104,提交 I3 并在其独立 worktree 完成远端验证。GitHub 与数据库主机的 SSH 远端命令已成功,真实数据库 E2E 正在复跑。生产者 preview 验证当前 Histoire,消费者 preview 验证 Host 与同提交的 MF 产物;消费者仍安装 registry UI 2.0.0,两个证据不能互相替代。 - -远端 UI preview 发现两项展示构建错误:Histoire 的状态同步读取 Vue app `_instance.proxy` 时实例为空;选中 Variant 后代码区调用 `codeToHtml` 失败。构建配置把组件 Vue 切到 CDN 的生产版本,同时伪造空的 Shiki highlighter,与 Histoire 自带运行时契约冲突。此次验收修复拥有 `histoire.config.ts` 与展示文档/工作包,撤除这两套自定义替换,使用已锁定的 Histoire/Vite 常规打包。保留组件、Token、包公开入口和发布责任,以本地正式 Story 构建及远端相同操作复验,不增加兼容补丁或运行时 fallback。 - -展示构建修复后的完整 `pnpm check` 与本地正式产物浏览器复验通过:浅深主题各 41 个变量和 I2 冻结证据一致,Switch 键盘/宽度/pending、Image 下载/焦点、原生提交及 Histoire Variant 控件/源码面板均正常,pageerror 为零。恢复常规依赖打包后 vendor 约 12.24 MB(gzip 2.31 MB),不再在运行时借 CDN 隐藏依赖体积;展示站后续若需性能优化,应使用兼容 Histoire 的分包或高亮配置,而非伪造运行时。 - -## 本轮最终交付状态 - -UI PR #46 和消费者 PR #104 均已提交并推送。生产者设计知识、I1、I2 与展示运行时修复保留独立提交;消费者 I1、I3 与数据库冷启动修复亦独立归档。生产者 `9128425` 的 CI 与 preview 全部成功,实际远端复验通过且 pageerror 为零,见 [preview 证据](preview-evidence/README.md)。消费者最终文档提交 `0f2ed00` 的 CI 与 preview 全部成功;I3 实际远端 Host/Registry/Mail/Twitter 全旅程及本机 SSH 五个真实数据库旅程通过。 - -本轮没有合并 PR、生产部署或发布新包/扩展。消费者继续使用正式 UI 2.0.0;新配色发布后的真实安装复验、client-webext 独立主题以及总图中未执行组仍保留原边界,不以本轮通过宣称全部消费者迁移完成。 - -## PR #104 图标缺失诊断 - -用户要求确认菜单/侧栏切换图标是否因 UI Uno safelist 丢失。本轮限定调查与浏览器隔离探针,没有修改组件、消费者源码或依赖。真实 preview 的 Menu 按钮具有 24×24 尺寸,`.i-mdi-menu` 规则与 SVG mask 均已生成;更具体的 `button.ink-header__menu-icon` 将背景覆盖成透明,使 mask 没有可见填色。在当前 DOM 仅把背景恢复为 currentColor,菜单图形立即可见,点击仍正常打开侧栏。根因归属 UI 的 `inkHeader.scss`,不是 safelist。 - -正式 registry 2.0.0 与生产者当前构建均包含九个组件内置图标选择器。沿既有真实 Host/Mail/Twitter/来源旅程核对当前可见图标,菜单是唯一具有 mask 却填色透明的项;关闭、刷新、下拉/展开箭头与加载图标在已覆盖状态下正常。不能据此宣称所有可能图标和状态都已覆盖。此前浏览器验收检查交互与 pageerror,未验证菜单的实际绘制,这一缺口需要在修复时补上。 - -建议在 UI Header 内分离 button 与装饰图标 span,沿用 InkButton 的结构:按钮负责透明背景、焦点和命中区域,子元素负责 mask 与 currentColor;保留 aria-label、menu-click 和按钮尺寸。不要在消费者添加重复 safelist 或永久覆盖。发布修复包后更新消费者并验证;当前 PR #104 仍安装 2.0.0,仅修改 UI PR 不会让它自动得到修复。 - -用户已授权修复、提交和推送。实现从按钮自身承载 mask 改为子 span 绘制图标,按钮保留透明背景、24×24 最小命中区域及独立焦点轮廓。拥有 Header Vue/SCSS、现有 Basic Story/说明、生成 Skill、patch Changeset 和任务证据;保留 props、事件、right-icon 槽、Token 及消费者依赖。通过完整 check、正式构建的浅深/窄宽浏览器检查验证图标填色、键盘焦点与逐次事件,不添加消费者 safelist 或覆盖。 - -Header 修复已通过完整 `pnpm check` 和正式 Story 产物的浅深/375px/1280px 检查,图标填色、未被 mask 裁剪的按钮焦点及三种输入的事件次数均正确,pageerror 为零。已补 patch Changeset;详见 [Header 验收](header-evidence/README.md)。本轮不发布新包、不改消费者依赖,随后推送 UI PR #46 进行远端复验。 - -截图复核发现首次拆分后,子图标按 12px 字体尺寸绘制,改变了原按钮 mask 的 24px 图形尺寸。改用已有 apply-icon(md, true) 的图标盒尺寸,使独立图标保持原来的 24px;验收同时检查图形和按钮尺寸,避免仅验证命中区域而漏掉视觉缩小。 - -保留 24px 图形尺寸后,最终完整 `pnpm check` 与四组浏览器检查再次通过;浅深菜单截图已复核。该收尾只使用原有图标尺寸 helper,没有改变 Token、事件或消费者样式。 - -Header 修复已提交推送:`6b988c3` 分离按钮与图标,`d6125cf` 保留原有 24px 图形尺寸;最终源码的完整 CI 和 preview 均通过。真实远端浅深/375px/1280px 的图形、填色、焦点及三种输入事件全部通过,pageerror 为零,证据与部署身份见 [Header 验收](header-evidence/README.md)。消费者诊断记录已单独提交 `6644122` 并通过 CI;其依赖仍为 2.0.0,本轮没有发布或安装修复版本。 - -## 2026-09-14 正式发布与消费者升级 - -用户授权发布并更新消费者。UI PR #46 已按保留分层提交的 rebase 方式合入 main,合入提交为 `cd78a01`。沿既有 Changesets 版本 PR 和 main 发布路径交付正式修复版本,禁止从功能分支发布。消费者继续在 PR #104 的独立 worktree 更新四个直接依赖及 lockfile,保留业务、数据库、MF 共享与生产发布责任;这次 UI 发布不自动发布消费者应用或原生扩展。 - -验证将使用正式 registry 安装、完整消费者 check、真实 Host/Mail/Twitter 重放,以及浅深主题下 Header 实际图标、尺寸、焦点和侧栏切换。生产者的 I1/I2 主题更新与 Header 修复随同一正式版本交付,不能只检查菜单却忽略现有页面的配色和状态。 - -正式包发布完成:版本 PR #47 合入 `85453b50eee3a8e1db21cdedaca05ba0b6051dd6`,[Release 34798879363](https://github.com/InKCre/ui/actions/runs/34798879363) 成功,于 2026-09-14 02:22 UTC 发布 2.0.1。Histoire main 部署 34798879375 同样成功。版本准备仅在自动创建 PR 时被仓库权限拒绝,沿已生成版本分支手动创建 #47,检查通过后正常合入,未改权限。 - -消费者四处依赖更新提交 `bb4ebd4`,移动侧栏布局修复独立提交 `d027230`。完整本地检查通过;[消费者 CI 34799554488](https://github.com/InKCre/client-web/actions/runs/34799554488) 全部成功,包括真实数据库与浏览器扩展 E2E。[远端部署 34799553542](https://github.com/InKCre/client-web/actions/runs/34799553542) 对应 `https://52f3ec3f.inkcre-client-web.pages.dev`,实际 Host/Registry/Mail/Twitter 的全旅程及浅深/窄宽菜单图形、焦点和切换全部通过,pageerror 为零。证据归档于消费者 `tasks/ui-v2-migration/evidence/ui-2.0.1`。消费者 PR #104 保持开放,不自动发布应用或原生扩展;G1、client-webext 独立主题和 L4 继续保留原边界。 - -## I4:真实消费者的 Twitter、Mail 与 Graph - -用户进一步授权按正式 DESIGN.md 重做 Twitter setup、Mail 全部 UI 与 Graph view。消费者沿独立 worktree 和 PR #104 继续,具体责任、状态矩阵、Changeset 与证据由其 `tasks/ui-v2-migration/packet.md` 维护。 - -Twitter 重组首次/已配置流程、凭据与授权动作;Mail 六个 renderer 重组识别/阅读/详情,保留 HTML 隔离及显式下载;Graph 重组场景工具区、节点和关系操作,保留窄屏可读焦点、平移/缩放与检索状态。没有反向修改设计规范或 Token,没有新建通用页面框架;移除不再使用的背景网格依赖。状态验收发现 Block.find 吞掉读取错误,已在原 Core 边界补错误传播,不改变数据库 schema 或检索协议。 - -各组在消费者保留独立提交,继续使用正式 UI 2.0.1。本轮不发布消费者应用或原生扩展,G1、client-webext 独立主题及 L4 仍保留原边界。 - -I4 已完成并推送:Twitter 4131616、Mail 9e1b0d4、必要的 Block 读取修复 bdcbdf8、Graph c62081e/ab5af80。验收源 9cd531e 的 [完整 CI](https://github.com/InKCre/client-web/actions/runs/34803560421) 与 [preview 部署](https://github.com/InKCre/client-web/actions/runs/34803559638) 均成功。实际远端 Host/Registry/Mail/Twitter/Graph 的原有及新增全旅程通过,pageerror 为零;源码/部署身份和代表截图由消费者 `tasks/ui-v2-migration/evidence/i4` 维护。 diff --git a/tasks/ui-foundations/plan-l1-token-system.md b/tasks/ui-foundations/plan-l1-token-system.md deleted file mode 100644 index 5ca69ae..0000000 --- a/tasks/ui-foundations/plan-l1-token-system.md +++ /dev/null @@ -1,144 +0,0 @@ -# L1 Token 体系实施方案 - -本文件细化已获用户认可的 B3「设计角色与响应契约」、B4「代表场景验证」、B5「源结构与消费迁移」。工作状态与既有授权仍由 [packet](packet.md) 管理,判断依据见 [B 组复审](groups.md#token-体系复审2026-09-13讨论中)。 - -2026-09-13,用户认可方向和切片,要求进一步制定实施方案。本轮交付是这份方案及工作包更新;B3/B4/B5 的生产实现尚未启动。下文区分已认可的原则、推荐的实施起点与需要实验确定的设计选择,不把方案中的候选值当成已生效的设计规范。 - -执行更新:用户随后要求“开始 B3”,现已完成 [B3 角色盘点](b3-role-inventory.md) 与 [候选契约](b3-design-contracts.md)。下文保留实施步骤;B3 已收敛的决定以候选契约为准,下一片为 B4,B5 生产迁移尚未开始。 - -## 起点与执行方式 - -当前分支为 `feat/ui-foundations-components`,HEAD 为 `c5b230af2461d401fa9dc3ac8d5b356c20b89c46`。工作区包含此前已验证但未提交的 B1/B2、C、D、E 改动。新实现应在执行开始时记录当时的工作区差异和生成基线,保留这些结果;此前 tarball 只能证明此前的实现,不能用来验收新的 Token 方案。 - -实施沿用现有 Style Dictionary、Sass、UnoCSS、Histoire、包契约检查和随包 Skill。设计关系可以由 Token 引用、少量局部 CSS 和使用说明共同表达;不建立统一公式语言或运行时求值器。文件格式默认保留当前 `type/value` 输入,除非真实工具互通需求证明本轮必须迁移。不同角色可以继续复用有意选择的基础尺度,不要求每个样式都增加 semantic 或 component 别名。 - -执行顺序是先建立 B3 的候选契约,再用 B4 检验并修订,最后进入 B5 的正式生成与迁移。B3/B4 允许针对失败场景局部往返;没有发生问题的角色不反复调整。B5 可以按已确定的设计领域分批评审,但最终交付必须保证新旧命名、生成物、组件和说明一致,不能发布一个只有部分消费入口兑现契约的版本。 - -## B3:明确设计角色、默认选择和变化边界 - -### B3.1 盘点实际决策和维护责任 - -从 [Token 源](../../tokens/inkcre.tokens.json)、[生成器](../../scripts/build-tokens.ts)、组件样式、Story 和 client-web 实际调用追踪使用关系。现有 237 个 `type/value` 叶节点不等于 237 个设计角色:例如 typography 的 121 个属性组成 11 个样式;颜色每个主题有 19 个 sys 条目。按角色归并盘点,不按叶节点生成大量维护表单。 - -盘点结果对每个实际使用的角色记录:用途与代表调用、当前默认、依赖和允许变化、维护位置、公开覆盖能力、处理结论。结论采用“保留/澄清/合并/拆分/新增/移除”;只有发现具体冲突时才新增或拆分,不能因暂时没有调用就删除已经公开的入口。 - -维护责任先采用以下起点: - -| 责任位置 | 应作出的决定 | 不应隐含承担的决定 | -| --- | --- | --- | -| 共享设计规则 | 文本角色、颜色用途与合法配对、基础节奏、必要状态及主题映射 | 所有业务页面的布局、每个组件内部的几何计算 | -| Web 组件 | 内容排布、内部间距、文字与控件尺寸关系、状态表现 | 擅自改变宿主字体尺度或页面列数 | -| 宿主页面 | 容器空间、列数、页面留白、内容组织、采用哪个已支持模式 | 为弥补库缺陷重写字段和按钮内部样式 | -| 平台实现 | 将已确定的角色与行为要求转成平台能力 | 将 Web 的 CSS 表达式认定为所有平台共同格式 | - -同时核对设计稿与代码之间谁维护什么。当前 [Token 导入脚本](../../scripts/prepare-token-update.ts) 会整份替换 `inkcre.tokens.json`,并自动生成 patch Changeset;必须明确新描述、角色与引用由 Figma 导出携带,还是由仓库维护,以及后续导入如何保留这些信息。默认保留单一规范源与受检查的导入边界,不先增加一套人工重抄的 Token 文件。 - -### B3.2 定义三类契约 - -每类契约应给出一个可直接使用的默认方案,再说明何时调整。具体命名、字号与系数在盘点和 B4 中确定;先保留现有品牌方向与常用尺度作为比较基线,不同时进行无关的视觉改版。 - -| 类别 | 必须确定的设计问题 | 推荐起点与待验证选择 | -| --- | --- | --- | -| Typography | 正文、标题、控件标签、辅助信息和代码文本分别是什么角色;字体家族由宿主继承还是由角色指定;字号、行高、字距、装饰中哪些属于同一组合;中文、英文和字体回退如何处理 | 明确 UI 字体和等宽字体的统一来源,让 Sass 与 Uno 使用相同规则。尺寸不足时优先检查换行、控件高度和布局,不先缩小文字。将 rem 字号、比例行高作为候选,保留固定值的合理用途;是否拆出 underline/mono 修饰以现有调用和组合需求裁定。 | -| Spacing 与尺寸 | 区分图标文字距离、字段内部留白、字段组间距、页面留白;哪些距离跟随文字,哪些跟随容器,哪些保持尺度;控件高度是固定高度还是可增长的最小高度 | 保留基础尺度作为默认选择。优先让含文字控件容纳其内容,由宿主负责页面空间变化。仅在实际场景需要时使用局部 em、有界变化或断点;不增加全局密度系数,不要求所有空白沿同一曲线缩放。 | -| Color 与状态 | 明确普通文本、弱化文本、动作前景、表面、边界、错误反馈及其合法配对;定义浅深主题下 normal/hover/pressed/focus/disabled/pending/selected 的适用范围和优先级 | 用实际前景背景组合判断颜色,不仅检查独立色值。澄清 text.primary 的含义及 muted/subtle 的区别;状态可以有意共享色值,但必须解释交互线索。仅对需要派生的关系使用混色;已有原生焦点表现若符合要求可以保留。 | - -示例契约应具体到能写出验收步骤。以字段组为例:默认提供标签、输入和错误信息的文本层次;放大文本后控件应容纳文字,错误信息可以增加字段高度;相邻字段不能覆盖;窄容器中的列数由宿主决定;组件不能为保持单行自行缩小字体。这组要求允许用少量 Token 和组件 CSS 实现,不需要一个通用布局算法。 - -### B3.3 明确覆盖范围与求值时机 - -推荐以现有根级 light/dark/system 主题和少量有意公开的样式调整作为起点。构建时的品牌配置、运行时的主题选择、组件实例样式和用户字体设置分别记录,不能混称“支持主题定制”。 - -对每个承诺公开的覆盖入口,说明在哪个元素设置、影响哪些后代或组件、与主题和默认值如何叠加,以及预期传播到 Sass/Uno 哪些使用方式。根级主题继续遵循此前显式选择优先于系统的契约。局部多主题、全局密度和任意 ref 覆盖自动传播不作为默认新增能力;如有真实需求,再评估作用域及 Teleport 后的继承边界。 - -输出策略由这个决定反推:运行时可调整的角色应在需要共同响应的入口保留变量关系;只用于构建时的值可以解析为常量。断点等构建配置不应机械改成 CSS 自定义属性。Sass map 的构建值与 CSS 运行值可以职责不同,但必须明确哪种入口支持哪种覆盖。 - -**B3 交付与完成条件:** 形成一份精简的角色/处理清单、三类候选契约、维护及覆盖责任表,并给出 B4 的具体失败或比较场景。每个公开角色能回答“默认选什么、为何选择、何时变化、谁能改”;待验证选择有明确实验,不能仅留下“待定”。候选与实验结论记录在本工作包,最终契约在 B5 写入现有权威文档,不建立平行规范。 - -## B4:用代表场景验证和修订契约 - -### 场景与证据 - -优先复用现有 Form、Input、Button Story,以及 client-web 的 `apps/client-web/src/views/info-base/list/list.scss` 页面结构。实验使用隔离目录或临时消费页;正式实现阶段只把值得长期复核的场景合入对应 Story。页面实验可复现已读到的结构,不借此修改消费者仓库,也不新增 Card 组件作为前提。 - -| 场景 | 具体操作 | 通过依据 | -| --- | --- | --- | -| 表单内容与字体 | Input/Field/Form 组合,加入长中文标签、长英文及不可断字符串、多行错误;容器取 320/480/800 CSS px,并拖动检查布局转折处 | 标签、输入、错误和操作没有非预期覆盖或裁切;保留字段关联、键盘操作与提交行为;宿主和组件各自负责的换行、扩展或滚动有明确结果。宽度是实验样本,不自动成为新断点。 | -| 用户字体与缩放 | 默认字体、回退字体;分别检查根字号变化、浏览器缩放和文字放大至 200%,记录实际方法与环境 | 内容和功能仍可使用,控件能够容纳文字。根字号翻倍只证明相关单位依赖,不能等同所有文字已放大 200%;transform:scale 或截图缩放不作为文本缩放通过证据。 | -| 按钮颜色与状态 | primary/subtle/danger 在浅深主题下逐个检查默认、鼠标、键盘焦点、按下、禁用、加载;必要时放在其合法的不同表面上 | 前景背景配对可读,状态线索符合 B3,禁用和加载优先级清楚;不因新样式恢复误提交、重复动作等旧缺陷。对比度按最终合成颜色计算。 | -| 页面空间 | 相同页面内容放入窄侧栏和宽主区,比较原有留白、固定尺度与一个确有必要的响应候选 | 说明变化依据是 viewport 还是宿主容器;内容空间和层次有可观察改善。没有改善就保留较简单规则。若用容器单位,验证真实祖先容器及无匹配容器时的行为。 | -| 不同消费入口 | 同一字体角色、一个间距角色及一组颜色,分别通过公开 CSS、Sass helper 和 Uno 使用;设置一个 B3 允许的覆盖并再次测量 | 约定应相同的属性和变化结果一致;预期不同的构建值/运行值在指南中可解释。特别复核已发现的 label-lg-underlined 和 p-md 差异。 | -| AI 消费任务 | 仅给安装包文档与一个普通设置表单或页面需求,按指南完成组件、文本角色和布局选择;记录缺失信息和被迫猜测的地方 | 有默认实现可直接使用,不需要从源码找参数、不需要自己创造设计系数、不因同值而误用 Token。由当前执行者走读或作隔离消费实验;不为此新增 Agent 服务或擅自启动子代理。 | - -以上不是全排列矩阵:先验证每个机制最相关的边界,再保留一组窄容器+放大文字+长内容,以及一组深色主题+错误/加载的组合场景。发现新的交互风险时才扩展对应组合。 - -文字缩放依据 [WCAG 1.4.4](https://www.w3.org/WAI/WCAG22/Understanding/resize-text.html)。普通文字的合法配对以 [WCAG 1.4.3](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html) 的适用阈值验收,必要的非文本控件/状态线索参照 [WCAG 1.4.11](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html)。这些是本次受影响场景的检查,不宣称整库已通过全部可访问性标准;视觉舒适度和信息层次仍需人工判断。 - -### 实验收敛与移交 - -每项实验只记录角色/假设、输入条件、候选规则、观察结果与取舍,附少量有代表性的截图或测量。出现裁切、不可读、失去操作入口或跨入口不一致时,回到对应契约修正。若两个候选均满足要求且没有明确视觉收益,采用更简单、上下文依赖更少的一种;涉及品牌方向或明显的产品取舍时,提供具体对照再请用户选择。 - -**B4 完成条件:** 每个计划进入正式源码的新规则都对应一个已解释的场景和观察结果;失败项已修订,未获证据支持的响应能力撤回。交给 B5 的是已选规则和可重复的验收步骤,而不是继续试验的系数清单。缺少真实消费者位置或特定浏览器时记录证据范围,不将临时页面称为该消费者已升级。 - -## B5:将已验证规则落实到源、输出和消费者 - -### B5.1 源与导入边界 - -按照 B3 的处理清单调整 `tokens/inkcre.tokens.json`。公开的共享角色保留必要描述和引用;组件内部计算继续留在组件 CSS。对主题配对、类型、单位、透明度和引用处理建立最小有效检查,复用 Style Dictionary 的现有解析能力,不再实现一个通用 Token 解析器。 - -更新 `scripts/build-tokens.ts`,使 Sass 与 Uno 从同一已定义角色取值,保留 B3 承诺的运行时关系。对字体家族、装饰、行高等属性采用一致的包含/继承规则,不以“输出更多属性”代替设计决定。颜色转换不得无声丢失 alpha,单位按已确定的类型处理,不能将所有数字统一理解为长度。 - -同步 `scripts/prepare-token-update.ts` 与 Token 更新工作流的必要边界:导入前验证目标格式、必要角色和引用;不让一个旧导出无声清除新契约。兼容的值更新与改名、删除、类型/语义变化应能区分;只有满足已定义兼容条件的更新才自动采用 patch,其余需显式发布分类或清楚失败。不增加通用语义版本推断引擎。若当前 Figma 导出确实无法承载必要信息,先用具体 payload 确认,再选择最小导入适配,不能默认堆叠多套源。 - -### B5.2 按设计领域迁移正式实现 - -推荐先落实 typography 和表单尺寸关系,再落实颜色/状态,最后迁移需要共享的新空间规则。每批同时修改其依赖的源、输出和组件;不能先整库改名、再逐个猜测组件该映射到哪里。 - -全量扫描当前 21 个组件以及本地可见的消费引用,按影响清单迁移。B4 的三类场景只用于先验证设计,不能被当作只修改三个组件的范围限制。重点复核 Switch 的字体和几何、Dropdown/Picker 的列表、Tooltip/Popup 的内容空间、AutoForm 和 JsonEditor 的长内容,沿用此前 C/D/E 的交互契约;第三方编辑器只调整本库拥有的样式接口。 - -旧入口按语义分类处理:完全等价的改名才考虑直接替换或短期别名;含义改变的角色给出新选择及人工复核步骤,不能用别名伪装兼容。`apply-font`、CSS 变量、Sass maps、Uno 类名与 package exports 都属于消费面,需要一起评估。别名若保留应只有一个方向,并写明移除时机,不维护无限双轨。 - -### B5.3 文档、Skill 与包交付 - -现有文档承担各自责任: - -| 内容 | 长期维护位置 | -| --- | --- | -| 角色、依赖、源格式与维护责任 | [tokens/tokens.md](../../tokens/tokens.md) 及 Token 源中必要描述 | -| 生成转换、求值时机和导入行为 | [scripts/build-tokens.md](../../scripts/build-tokens.md) 与对应脚本 | -| 消费者默认用法、覆盖边界、CSS/Sass/Uno 示例 | [styles/README.md](../../packages/web/styles/README.md),包 README 只负责导向 | -| 组件状态与响应行为 | 对应 `stories/**/*.story.md` 与可操作的 `.story.vue` | -| AI 的选型顺序、默认组合和合法局部规则 | [skill.seed.json](../../packages/web/skill.seed.json),再生成随包 Skill | -| 旧新名称/语义、受影响调用、升级顺序 | [MIGRATION.md](../../packages/web/MIGRATION.md) 与 Changeset | - -当前 `styles/README.md` 内容与包 README 重复,缺少其独立样式指南职责;B5 应恢复这一入口的具体内容,验证包内链接,避免再次建立自指或错误相对路径。不要将任务方案和实验历史复制进随包文档。 - -Skill 的推荐顺序是先使用组件及默认组合,再按设计角色选择已支持的调整;普通局部 CSS 可以保留,并说明哪些规则必须由库统一维护。新增说明优先进入现有 styling/recipe 输入结构。仅当现有生成器无法承载必要信息时作有界调整,完整 API 提取器改造仍归 F。 - -当前已有未发布的 major Changeset,但这不能替代本轮 Token 兼容说明。最终使用 `pnpm changeset` 记录本轮发布影响并与已有 major 发布合并审视;不在规划阶段 version、publish 或承诺下游已升级。正式消费迁移由 G 接续,B5 必须提供完整映射、已知调用和安装产物验证。extension registry 的位置缺口仍需 G 定位,不阻塞本仓库设计实验,也不能从验收中悄悄消失。 - -## 拥有的文件与检查边界 - -B3/B4 的规划和隔离实验由本工作包记录。实施启动后,B5 拥有 Token 源与生成器、Token 导入流程、Web styles、受影响组件样式及必要模板、对应 Story 和说明、Skill seed、Migration、Changeset,以及既有检查的最小扩展。生成物通过命令更新;无关组件模型、事件、schema 逻辑、依赖拆包、通用 CI 成本治理、共享文档托管块和消费者仓库均不随本方案自动修改。 - -验证采用现有行为边界,按以下顺序执行: - -1. 源/生成器调整时先用隔离 `--root` 生成,核对类型、引用、单位、alpha 和旧新映射。正式源确定后运行 `pnpm generate`,查看全部生成差异。 -2. 在 `scripts/check-package-contract.ts` 扩展既有公开入口 probe:保留变量完整性检查,增加选定字体角色的一致输出、必要零值/装饰重置、颜色 alpha 和一项公开覆盖关系的代表断言。以契约行为为断言对象,不快照全部数值或新增组件测试套件;不强求独立入口未承诺的行为一致。 -3. 在 `scripts/prepare-token-update.ts` 既有 fixture 验证一次合法导入及会丢失必要契约的输入。预期失败不得被当作成功生成或兼容 patch;失败前已写入的源与 Changeset 也需避免留下半成品。 -4. 受影响组件/Story 运行对应类型、lint、构建检查;用打包后公开 JS/CSS、Sass 和 Uno 入口重走 B4 已选场景,并抽查共享变化影响到的其他组件。B4 的临时原型通过不替代最终产物通过。 -5. 本组交付前运行完整 `pnpm check` 和 `git diff --check`,核对 Changeset 分类及包内文档链接,将产物身份、浏览器环境、截图与未覆盖范围写回工作包。不在无新变化或失败时反复运行全套检查。 - -## 决策收敛与下一步 - -用户已经认可的原则和切片不再重新征求确认。执行时由维护者自行处理一般命名、CSS 写法和文件组织;以下决定先按推荐起点验证,只有出现会显著改变产品或授权范围的取舍,才提供具体结果供用户选择: - -| 尚需确定的内容 | 推荐起点 | 决定位置 | -| --- | --- | --- | -| 默认字体来源与复合字体职责 | 统一 UI/mono 的来源,保证各入口的继承或指定行为一致;保留现有视觉方向作基线 | B3 候选,B4 中文/英文和回退字体比较 | -| 哪些角色支持运行时覆盖 | 保留根主题,逐项声明必要能力;不承诺修改任意 ref 都能自动改变全部后代 | B3 覆盖表,B4 传播实验 | -| 哪些间距或尺寸需要变化 | 先保障文字与内容可用,页面留白由真实容器场景决定 | B4 观察结果;无收益则保留固定方案 | -| Figma 与仓库的维护分工 | 单一规范源,导入受检查;先保留当前输入格式 | B3 责任表,B5 实际 payload 与导入 fixture | -| 旧公开 Token 的兼容处理 | 按真实语义分别迁移,major 中清楚说明;仅等价角色使用有限别名 | B5 调用盘点和 Migration | - -B3 的盘点与候选契约、B4 的场景验证均已交付,结果见 [B4 已选规则](b4-validation.md)。B5 仓库内迁移随后已完成,结果见 [B5 实施记录](b5-execution.md)。用户在 B5 中要求停止继续处理 Firefox 原生 200% 文字放大专项,后续验收优先基础质量与默认消费契约。真实发送端和消费者升级仍需 G 核验。 diff --git a/tasks/ui-foundations/plan-l3-design-docs.md b/tasks/ui-foundations/plan-l3-design-docs.md deleted file mode 100644 index fabb5e9..0000000 --- a/tasks/ui-foundations/plan-l3-design-docs.md +++ /dev/null @@ -1,104 +0,0 @@ -# L3 文档交付与 design.md 讨论方案 - -本文件从 [工作包入口](packet.md) 进入,细化 [F/G](groups.md#f-ai-消费文档与示例) 的下一阶段。2026-09-13,用户要求进入 L3,并参考 Vercel 讨论、确认 design.md;用户明确指出读者同时包括消费者 Agent 和本仓库维护 Agent。 - -当前状态为**用户已确认定位与边界,L3 已授权实施**。双重读者是用户已提出的要求;下文的文件位置、内容责任与推进顺序是建议。用户随后明确“同意。开始做 L3”;下文保留当时的设计论证,实际进展见 [L3 执行记录](l3-execution.md)。 - -## 参考与本项目判断 - -Vercel 的 [design.md 介绍](https://vercel.com/blog/how-our-agents-build-on-brand-pages-with-design-md) 发布于 2026-08-31。其公开文件服务于无法读取内部仓库的工具;设计指导、公开 CSS 和场景反馈共同工作。文章强调从具体使用场景与可观察的修正开始,人工判断设计质量,代码承担可以可靠检查的部分。 - -2026-09-13 读取的 [实际 design.md](https://vercel.com/design.md) 面向 Vercel 官方报告、提案、比较与决策页面,包含读者任务、信息组织、视觉规则、宿主集成和公开 CSS API。它的适用范围比通用组件库更具体,不能把其报告结构、品牌表现或 CSS 约束直接套到 InKCre。 - -另一篇 [仓库内 product-design 介绍](https://vercel.com/blog/teaching-agents-product-design-at-vercel) 发布于 2026-06-25,更接近维护 Agent 的工作:入口按任务引导读取权威资料,保留决定背后的原因,并区分已存在的实现与值得继续遵循的设计决定。它同样反对复制已有 API 和规则的权威来源。 - -本项目值得借鉴的是:把已认可的设计判断放到 Agent 能找到的地方,让稳定机制由组件和样式承担,再用真实任务检验说明是否有效。现有组件包、Story 和 Skill 已承担大量能力;当前收益不要求另建公开 CSS 服务、设计 Agent 服务或模型评测平台。 - -## 建议定位:共同的设计决策指南 - -建议使用根级 `DESIGN.md` 作为设计系统的长期入口,供人、消费者 Agent 和维护 Agent 阅读。它说明 InKCre 界面应保持什么、为何保持、默认怎么做、允许哪些变化,以及新增或修改设计能力时怎样判断责任。L3 承担这份知识的整理、发现与交付;其中已确定的 Token 和组件设计仍来自 L1/L2 的成果。 - -两类 Agent 共享规则,按任务读取不同补充材料: - -| 读者任务 | DESIGN.md 应帮助作出的判断 | 继续读取的内容 | -| --- | --- | --- | -| 消费者构建或审视页面 | 信息如何分组,组件如何组合,何时沿用默认值,何时由页面布局解决 | 随包组件参考、配方、样式指南与公开 API | -| 维护者调整 Token、组件或指南 | 哪些关系必须保持,变化应放在共享角色还是局部实现,是否改变公开承诺 | Token 源、组件实现、Story、维护约定与迁移记录 | - -维护者也需要理解消费方式,消费者也需要理解扩展边界;不维护两套独立设计原则。维护 Agent 的权限、命令和提交流程仍放在 AGENTS 中,DESIGN.md 只承担与设计有关的判断。 - -系统级指南可以帮助宿主判断主次、状态与组合,但不替 client-web 或 extension registry 决定业务导航、信息模型、权限和业务流程。具体产品有独立设计要求时,应由其仓库记录适用范围和差异。未来 Flutter/uniapp 可复用这里的意图和边界,Web 的 rem、CSS 变量、Teleport 等能力仍须明确平台适用性。 - -## 首版内容与表达方式 - -建议正文覆盖以下内容,不为每项预建独立文档: - -1. **适用范围与判断顺序。** 从用户要完成的任务出发,明确内容可读、功能可用、状态诚实、设计关系一致等已有要求;说明产品责任和平台边界。 -2. **视觉层级与默认选择。** 解释正文、标签、说明、标题的职责,文字与背景的配对,分组与空间关系。具体 Token 名称可以帮助定位,但不手抄全量值表,也不把尚未确定的品牌形容词写成规范。 -3. **内容与上下文变化。** 保留 L1 已认可的字体、容器、主题和状态依赖;说明什么时候换行、增长或调整宿主布局,何时使用固定尺度,何时确有必要引入响应规则。 -4. **组件组合与状态。** 给出表单、反馈、确认等常见场景的设计理由和少量正反例;完整 Vue 配方与各组件 API 留在既有随包参考中。 -5. **维护和扩展判断。** 新需求先核对已有角色与组合;仅当职责和共同变化理由成立时增加共享能力。设计变化要说明影响范围、允许覆盖的责任和必要的兼容处理。 - -每条重要规则应能解释适用情境、建议行为、原因和允许的变化。用自然段与短例子表达,不规定每条都填一套表格。区分共同约束、可调整的默认选择和 Web 当前实现;尚未认可的提案仍留在工作包。不同情境的例外需要具体理由,不能用一句“保持灵活”消解规则。 - -例如,下面这些内容已经有 L1/L2 的设计或实现依据,可作为首版整理的材料,最终措辞仍需逐项核对: - -| 情境 | 消费判断 | 维护判断 | -| --- | --- | --- | -| 说明文字在窄容器中变长 | 保留说明角色,先让内容换行并调整布局 | 控件不能依赖固定高度裁切内容;扩展能力与宿主布局责任分别处理 | -| 标签与说明当前字号相等 | 按用途选角色,不按像素值互换 | 只有职责和未来变化关系一致时才合并角色 | -| 表单正在保存或保存失败 | 保留动作含义、用户输入与明确反馈 | pending、error 与 focus 的责任分别成立,不让一个状态抹掉另一个状态的必要信息 | -| 页面希望有更宽留白 | 在宿主布局中表达页面需要 | 一页的数值差异不足以成为全局密度参数或新 Token 的依据 | - -这些规则应约束后续实现,也应接受新证据修订。源码描述实际行为;如果它与已认可的设计要求不一致,应指出差异,再按任务范围修复或提出规则变更,不能仅因代码已经如此便把缺陷升为设计标准。 - -## 文档责任与现有内容整理 - -下面是建议的责任划分,确认实施前仍沿用现有入口: - -| 内容 | 建议的权威位置 | 本轮之后怎样整理 | -| --- | --- | --- | -| 跨角色、组件与场景的设计判断及扩展原则 | 根级 `DESIGN.md` | 从已接受的 L1/L2 决定和现有指南提炼,保留理由、边界与短例子 | -| Token 名称、叶节点用途、类型、值与引用 | `tokens/inkcre.tokens.json` | 继续由规范源维护;DESIGN.md 不成为第二份 Token 表 | -| Token 格式、生成与受限导入 | `tokens/tokens.md`、`scripts/build-tokens.md` | 保留维护说明;共通设计判断移交 DESIGN.md 后改为引用 | -| Web 样式调用、覆盖范围与求值时机 | `packages/web/styles/README.md` | 保留 CSS/Sass/Uno 的具体调用与传播契约,通用判断减少重复 | -| 组件 API 与可运行用例 | 组件源码/声明、Story、生成组件参考 | F1 补事实;F2 让完整用例可检查;不用 DESIGN.md 手写一份接口 | -| 组件选型与完整配方 | `skill.seed.json` 与生成 Skill | 保留产品任务到组件的具体映射和配方,通用设计判断引导读 DESIGN.md | -| Agent 的加载时机、操作与验证步骤 | AGENTS、既有 Skill 入口 | 引导到所需资料,不重复设计规则和命令 | -| 兼容变化与升级步骤 | `packages/web/MIGRATION.md`、Changeset | 指向当前指导并保留版本迁移事实 | -| 候选、取舍历史与验证证据 | 本工作包 | 不随包分发,也不作为普通消费的必读材料 | - -当前 [Token 指南](../../tokens/tokens.md)、[样式指南](../../packages/web/styles/README.md) 和 [Skill seed](../../packages/web/skill.seed.json) 已有重叠的角色、状态和默认组合说明。因此实施必须同时整理既有文档,不能仅新增一份完整说明。允许入口保留帮助读者理解的简短摘要,但同一规则只在一个位置裁决;不为消灭所有重复而建设文档抽取框架。 - -## 发现、版本与分发 - -建议只人工维护根级 `DESIGN.md`。维护入口由根/包级 AGENTS 明确 UI 设计、组件和 Token 工作何时读取它;纯构建或后端任务无需加载整份设计上下文。消费者经包 README 和现有 Skill 找到同一内容的随包副本,拟放在 `packages/web/DESIGN.md`,由既有生成链路同步,并纳入包文件清单与一致性检查。 - -正文应能独立解释设计判断;仓库源码路径和按读者区分的导航尽量留在入口文件。随包副本及其消费入口所需链接必须在安装环境可读,不能把“去生产者 tasks 目录看结论”留给消费者。若实际整理需要路径转换,只处理明确的少量入口,不设计通用 Markdown 编译器。 - -消费者读取与安装版本一致的指南,维护者读取当前 checkout 的指南。当前 major 改动尚未发布,不能把本地源码中的新规则说成 registry 中 1.4.0 的已有能力。未来可以再按真实的仓库外使用需要发布稳定网页 URL;本轮先完成仓库和安装包中的读取路径,不把文件名当成所有 Agent 都会自动加载的保证。 - -## L3 切片与顺序 - -保留现有 F1—F3、G1—G3 的责任;在 F 中补充 F0,不增设独立文档平台或新的任务层。 - -| 切片 | 交付与拥有范围 | 最小验收 | -| --- | --- | --- | -| F0 设计指南 | 确认本讨论稿后,整理正式 DESIGN.md 草稿、既有设计说明和维护读取入口;新增设计政策单列评议 | 两类读者能解释默认决定、允许变化和责任边界;已认可结论与新提案可区分 | -| G1 消费调查 | 只读核对 client-web、extension registry 的版本、入口、真实用例与 Agent 加载方式;核实 Figma 发送端 | 以证据限定 F/G 的范围;找不到的信息明确记录,不推定不存在 | -| F1 API 事实 | 源码、生成器与生成参考中的 models、类型、默认值、events、slots 及失败边界 | 安装包参考与公开声明一致,解析缺失不会静默伪装为完整 | -| F2 可检查配方 | 复用 Story 和公开入口表达少量完整消费任务,以 G1 证据选取 | 配方通过类型/构建检查,并能核对用户可观察状态 | -| G2 依赖责任 | 按 G1 的消费图调整 peer、运行时依赖、支持范围与发布说明 | 基础消费和可选集成的安装责任明确,不先预设拆包 | -| F3 + G3 交付闭合 | 在既有生成与包检查中纳入 DESIGN.md、Skill 导航、包内链接和最小安装;核对实际接入 | 无源码仓库也能完成约定消费;维护入口可读共同设计指南;区分本地验证与真实升级 | - -先确认 F0 的定位和内容边界,再展开正式稿。G1 的只读调查可以在设计内容整理期间推进,其缺少某个仓库或 payload 的证据不阻塞共同原则的整理。F1/F2 沿用 L1/L2 已确定的组件契约;G2 和安装验证的具体改法待消费证据收敛。F3 在包交付阶段统一处理复制和链接,避免 F0 先建设一套新发布机制。 - -验收设计说明本身,先保留两个小任务的输入与结果:消费者从安装包完成普通设置表单及失败反馈;维护者处理长标签或新增文本用途,并说明为何复用、局部处理或提出新角色。核对是否还需要额外口头补充才能找对规则、是否违反既定设计关系。静态检查负责 API/文件完整性,设计与交互仍人工审视;两次演练只作为可用性证据,不宣称普遍提升 Agent 质量。 - -L4 继续暂缓平台实现;按用户既定边界,不重启 Firefox 原生 200% 文字放大专项。 - -## 确认结果 - -用户确认了三个相互关联的决定:采用供消费者与维护者共享的设计决策指南;以共同原则、可操作的默认选择和扩展边界为正文;只维护一个根级源,通过现有入口和包交付提供给两类读者。 - -用户已经确认上述具体安排并授权开始 L3。确认定位不等于无条件接受正式稿中新增的设计政策;整理时应区分既有结论的归档和新的设计主张。 diff --git a/tasks/ui-foundations/preview-evidence/README.md b/tasks/ui-foundations/preview-evidence/README.md deleted file mode 100644 index 15131e2..0000000 --- a/tasks/ui-foundations/preview-evidence/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# PR preview 验收 - -[UI PR #46](https://github.com/InKCre/ui/pull/46) 的 `9128425` 通过[完整 CI](https://github.com/InKCre/ui/actions/runs/34759790243) 和 [Histoire preview 交付](https://github.com/InKCre/ui/actions/runs/34759846429)。本轮实际进入[远端 preview](https://pr-46.design-dd4.pages.dev),验证正式构建的控件与展示应用;源提交和不可变部署 URL 见[结果](verification.json)。 - -浅深主题各 41 个变量和 I2 冻结值一致。375px 下验证 Switch 键盘切换、宽度稳定、系统 UI 字体和 pending;Image 键盘打开、Escape、焦点归还和实际 SVG 下载;Button 的原生表单提交。1280px 下通过 Histoire 正常导航选择 Variant、修改状态并查看源码,pageerror 为零。 - -- Switch:[浅色](switch-light-375.png)、[深色](switch-dark-375.png)。 -- Image 下载:[浅色](image-light-375.png)、[深色](image-dark-375.png)。 -- [展示控件与源码面板](story-source.png)。截图已人工复核;Histoire 外壳的绿色、圆角属于展示工具,不作为 InKCre 消费页面的视觉范本。 - -复跑现有任务脚本,第二个参数使用已有 Playwright 的 `index.mjs` 绝对路径,不增加本仓库依赖: - -```sh -pnpm exec node tasks/ui-foundations/preview-evidence/verify.mjs /absolute/path/to/@playwright/test/index.mjs https://pr-46.design-dd4.pages.dev -``` - -远端首次复验发现 Histoire 原配置将 Vue 替换为 CDN 生产版本,并用空对象模拟 Shiki,造成状态同步和源码面板错误。独立 `9128425` 删除这两层替换,完整 `pnpm check` 与本地正式产物检查通过后,再完成本次远端复验。当前展示站常规打包的 vendor 约 12.24 MB(gzip 2.31 MB),保留后续性能优化的真实边界。 - -消费者仍安装 registry UI 2.0.0,不包含本 PR 尚未发布的 I2 配色。消费者的 Host/Mail/Twitter 实际 preview 与 SSH 数据库结果由其 PR #104 工作包拥有,不能用此处的展示页替代下游安装验收。 diff --git a/tasks/ui-foundations/preview-evidence/image-dark-375.png b/tasks/ui-foundations/preview-evidence/image-dark-375.png deleted file mode 100644 index d744d09..0000000 Binary files a/tasks/ui-foundations/preview-evidence/image-dark-375.png and /dev/null differ diff --git a/tasks/ui-foundations/preview-evidence/image-light-375.png b/tasks/ui-foundations/preview-evidence/image-light-375.png deleted file mode 100644 index cd59c07..0000000 Binary files a/tasks/ui-foundations/preview-evidence/image-light-375.png and /dev/null differ diff --git a/tasks/ui-foundations/preview-evidence/story-source.png b/tasks/ui-foundations/preview-evidence/story-source.png deleted file mode 100644 index 173e9a6..0000000 Binary files a/tasks/ui-foundations/preview-evidence/story-source.png and /dev/null differ diff --git a/tasks/ui-foundations/preview-evidence/switch-dark-375.png b/tasks/ui-foundations/preview-evidence/switch-dark-375.png deleted file mode 100644 index e66409d..0000000 Binary files a/tasks/ui-foundations/preview-evidence/switch-dark-375.png and /dev/null differ diff --git a/tasks/ui-foundations/preview-evidence/switch-light-375.png b/tasks/ui-foundations/preview-evidence/switch-light-375.png deleted file mode 100644 index b0ae76e..0000000 Binary files a/tasks/ui-foundations/preview-evidence/switch-light-375.png and /dev/null differ diff --git a/tasks/ui-foundations/preview-evidence/verification.json b/tasks/ui-foundations/preview-evidence/verification.json deleted file mode 100644 index be89ac6..0000000 --- a/tasks/ui-foundations/preview-evidence/verification.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "origin": "https://pr-46.design-dd4.pages.dev", - "browser": "149.0.7827.55", - "checks": [ - { - "theme": "light", - "matchedVariables": 41, - "switch": "keyboard, width, sans, pending", - "image": "keyboard, Escape, focus return, real SVG download", - "button": "native submit" - }, - { - "theme": "dark", - "matchedVariables": 41, - "switch": "keyboard, width, sans, pending", - "image": "keyboard, Escape, focus return, real SVG download", - "button": "native submit" - }, - { - "histoire": "variant controls, reactive update and rendered source" - } - ], - "errors": [], - "source": "9128425dd26023c3e09981124758d7e23e6e7007", - "deployment": "https://45e22f48.design-dd4.pages.dev", - "workflow": "https://github.com/InKCre/ui/actions/runs/34759846429", - "checks_workflow": "https://github.com/InKCre/ui/actions/runs/34759790243" -} diff --git a/tasks/ui-foundations/preview-evidence/verify.mjs b/tasks/ui-foundations/preview-evidence/verify.mjs deleted file mode 100644 index b288918..0000000 --- a/tasks/ui-foundations/preview-evidence/verify.mjs +++ /dev/null @@ -1,101 +0,0 @@ -// 本任务的远端 Histoire 复验,复用已安装的 Playwright。 -import { pathToFileURL } from "node:url"; -import { readFile, writeFile } from "node:fs/promises"; -const { chromium, expect } = await import(pathToFileURL(process.argv[2]).href); -const origin = process.argv[3]; -const expected = JSON.parse( - await readFile(new URL("../i2-evidence/verification.json", import.meta.url)), -); -const browser = await chromium.launch(); -const page = await browser.newPage({ viewport: { width: 375, height: 800 } }); -const errors = []; -page.on("pageerror", (e) => errors.push(e.message)); -const report = { origin, browser: browser.version(), checks: [], errors }; -const output = (name) => new URL(name, import.meta.url).pathname; -async function story(id, variant, theme) { - await page.goto(`${origin}/__sandbox.html?storyId=${id}&variantId=${id}-${variant}`); - await page.locator("button, input, .story-debug").first().waitFor(); - await page.evaluate( - (theme) => document.documentElement.classList.toggle("dark", theme === "dark"), - theme, - ); - await expect(page.locator("html")).toHaveAttribute("data-theme", theme); -} -try { - for (const theme of ["light", "dark"]) { - await story("stories-controls-inkswitch-story-vue", 6, theme); - const values = await page.locator("html").evaluate((root) => { - const style = getComputedStyle(root), - probe = document.createElement("span"); - root.append(probe); - const values = Object.fromEntries( - Array.from(style) - .filter( - (name) => - name.startsWith("--sys-color-") || - name.startsWith("--comp-switch-") || - name.startsWith("--sys-elevation-raised-"), - ) - .sort() - .map((name) => { - let value = style.getPropertyValue(name).trim(); - if (CSS.supports("color", value)) { - probe.style.color = value; - value = getComputedStyle(probe).color; - } - return [name, value]; - }), - ); - probe.remove(); - return values; - }); - expect(values).toEqual(expected.themes.find((t) => t.theme === theme).tokens); - const toggle = page.getByRole("switch", { name: "通知开关", exact: true }); - const before = await toggle.boundingBox(); - await toggle.press("Space"); - await expect(toggle).toHaveAttribute("aria-checked", "true"); - expect((await toggle.boundingBox()).width).toBe(before.width); - await expect(toggle).toHaveCSS("font-family", "system-ui, -apple-system, sans-serif"); - await expect(page.getByRole("switch", { name: "等待中的通知开关" })).toBeDisabled(); - await page.screenshot({ path: output(`switch-${theme}-375.png`) }); - await story("stories-media-inkimage-story-vue", 3, theme); - const thumbnail = page.getByRole("button", { name: "InKCre 标志", exact: true }); - await thumbnail.press("Enter"); - await expect(page.getByRole("dialog")).toBeVisible(); - await page.keyboard.press("Escape"); - await expect(thumbnail).toBeFocused(); - await story("stories-media-inkimage-story-vue", 5, theme); - await page.getByRole("button", { name: "InKCre 标志", exact: true }).click(); - const download = page.waitForEvent("download"); - await page.getByRole("link", { name: "下载原图(SVG)" }).click(); - expect((await download).suggestedFilename()).toBe("inkcre.svg"); - await expect(page.getByRole("dialog")).toBeVisible(); - await page.screenshot({ path: output(`image-${theme}-375.png`) }); - await story("stories-controls-inkbutton-story-vue", 13, theme); - await page.getByRole("button", { name: "普通动作", exact: true }).click(); - await expect(page.getByText("提交次数:0")).toBeVisible(); - await page.getByRole("button", { name: "提交", exact: true }).click(); - await expect(page.getByText("提交次数:1")).toBeVisible(); - report.checks.push({ - theme, - matchedVariables: Object.keys(values).length, - switch: "keyboard, width, sans, pending", - image: "keyboard, Escape, focus return, real SVG download", - button: "native submit", - }); - } - await page.setViewportSize({ width: 1280, height: 900 }); - await page.goto(origin); - await page.getByText("Controls", { exact: true }).click(); - await page.getByRole("link", { name: /^Switch/ }).click(); - await page.getByRole("link", { name: "长状态文案保持轨道尺寸", exact: true }).click(); - await expect(page.locator("pre").filter({ hasText: "v-model" }).first()).toBeVisible(); - await page.getByRole("switch", { name: "通知开关", exact: true }).click(); - await page.screenshot({ path: output("story-source.png") }); - report.checks.push({ histoire: "variant controls, reactive update and rendered source" }); - expect(errors).toEqual([]); - await writeFile(output("verification.json"), JSON.stringify(report, null, 2) + "\n"); - console.log(JSON.stringify(report)); -} finally { - await browser.close(); -} diff --git a/tasks/ui-foundations/release-and-consumer-migration.md b/tasks/ui-foundations/release-and-consumer-migration.md deleted file mode 100644 index 6637b84..0000000 --- a/tasks/ui-foundations/release-and-consumer-migration.md +++ /dev/null @@ -1,35 +0,0 @@ -# UI 发布与真实消费者迁移 - -2026-09-13,用户授权提交、发布 UI,并在独立分支和 worktree 中迁移 client-web 及各 extensions。这次授权覆盖必要的 UI PR、检查、合并和正式包发布,以及消费者源码、指南、依赖和验证。消费者应用及扩展的生产发布不在此次 UI 包发布范围中。 - -## 2.0.0 首次发布路径 - -首次发布时 UI 分支为 `feat/ui-foundations-components`,基线 `origin/main` 为 `9f7267c`;包含尚未合入 main 的 L0、B—E/B5 和本轮 L3。按组织治理通过 PR、最新 main 检查和 squash 合并,再由 Changesets 的独立版本 PR 准备 major,回到 main 后正式发布。不得从功能分支直接发布 canonical 包,不使用管理员绕过。 - -复用 L3 最终完整 pnpm check、产物/浏览器证据;本轮只先校正未发布 Changeset 和迁移入口残留的旧 Vue 下限,使同一发布说明一致使用 ^3.5.25。PR 与版本 PR 按实际提交重新执行远端检查。发布后记录源码、运行和 registry 产物身份,并在消费者从 registry 安装精确版本。 - -## 消费者工作区 - -从最新 `origin/main` 的 `54882ac` 创建 `feat/ui-v2-migration`,路径为 `/Volumes/WorkSSD/Development/InKCre/.worktrees/client-web-ui-v2-migration`。原始 `/Volumes/WorkSSD/Development/InKCre/client-web` checkout 与其未跟踪文件保留。消费者本地工作入口为该 worktree 的 `tasks/ui-v2-migration/packet.md`,拥有具体迁移与验证记录;本文件只记录跨仓发布依赖和最终关联。 - -目标从 UI 1.4.0 的旧调用迁移到正式 major:Web、mail、twitter 一起核对依赖/共享 Vue、Token 与 Sass、提交行为、JSON 原始草稿、浮层,以及 Agent 同版本文档读取。保留原有业务、身份、权限、数据库与 Module Federation 交付责任,不顺手升级 Core 或更改共享 Hub。 - -要求在真实 registry 依赖下完成 pnpm check/build、受影响的现有 E2E 与关键页面检查;源码联调另行验证,不能作为发布安装替代。当前 main 与前轮盘点基线不同,先重新调查实际调用再实施。 - -## 2.0.0 首次发布记录 - -- UI 功能 [PR #43](https://github.com/InKCre/ui/pull/43) 已合入为 `2b553ab`;Changesets 版本 [PR #44](https://github.com/InKCre/ui/pull/44) 已合入为 `9e80e89`。 -- [Release run 34739131474](https://github.com/InKCre/ui/actions/runs/34739131474) 成功,2026-09-13 04:59 UTC 发布 [@inkcre/ui-web@2.0.0](https://github.com/InKCre/ui/releases/tag/%40inkcre/ui-web%402.0.0)。registry metadata 与消费者 lockfile 的 integrity 一致:`sha512-YWaSG3dTQ+yGCWbcDDHb6RTeSVMmBcV+QDjjpYupSzqTc4H7MSUEcjSWgl2vf/yjO5LJQatlnJl0qoDk68lJqg==`。 -- GitHub Actions 自动创建版本 PR 的权限被仓库设置拒绝;沿用其已生成的版本分支手工建立 #44,全部检查通过后合入,未更改权限或绕过保护。 -- 消费者四个包(包括 ext-dev-utils)均已安装正式 2.0.0,迁移代码位于 [client-web PR #104](https://github.com/InKCre/client-web/pull/104),本地完整 check、源码联调类型检查、Intent load 和实际 Chromium 扩展 popup E2E 已通过。真实数据库 E2E 因机器 SSH provider 不可用,继续由该 PR 的隔离 CI 验证;具体结果只在消费者工作包维护。 -- extension registry 独立 UI 与 Figma 发送端的位置缺口继续保留。 - -## 2.0.1 正式修复发布 - -UI [PR #46](https://github.com/InKCre/ui/pull/46) 保留设计知识、I1、I2 与 Header 修复的独立提交,通过 rebase 合入;版本 [PR #47](https://github.com/InKCre/ui/pull/47) 检查通过后合入 `85453b50eee3a8e1db21cdedaca05ba0b6051dd6`。[Release 34798879363](https://github.com/InKCre/ui/actions/runs/34798879363) 成功,2026-09-14 02:22 UTC 发布 [@inkcre/ui-web@2.0.1](https://github.com/InKCre/ui/releases/tag/%40inkcre/ui-web%402.0.1)。[Histoire 部署](https://github.com/InKCre/ui/actions/runs/34798879375) 成功,展示站为 https://design.inkcre.dev。 - -registry integrity 为 `sha512-8KELh89mLA1xjoB8uDFmh8HJfHn6UAeJRWVaKM3w4UKLt11tsuw9/22rEUDfHp9U5y4d5MecQRrKt3MH2zQO5Q==`。消费者 Web、Mail、Twitter 与 ext-dev-utils 从 GitHub Packages 安装精确 2.0.1,lockfile integrity 与 registry 一致,四处安装的 UI JS/CSS 字节一致。新版本同时交付设计知识、字体和配色调整,不能把验收限定为图标修复。 - -消费者继续复用 PR #104,不随 UI 发布自动合并或发布应用、原生扩展。完整验证和当前部署身份由消费者 task packet 维护。 - -消费者运行时代码最终为 `d027230`,完整本地检查、[CI 34799554488](https://github.com/InKCre/client-web/actions/runs/34799554488) 及真实远端浏览器重放通过。[Preview 34799553542](https://github.com/InKCre/client-web/actions/runs/34799553542) 部署至 https://52f3ec3f.inkcre-client-web.pages.dev;使用实际同源 Registry 和 Mail/Twitter MF 资源,业务状态使用隔离夹具,pageerror 为零。源码/部署身份、正式包身份、浅深菜单和新版配色截图在消费者 `evidence/ui-2.0.1` 归档。UI 版本对应 Histoire 不可变部署为 https://29a08650.design-dd4.pages.dev。