You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
The section-name boxes, in section order. Located by the placeholder because InspectorTextField renders its <Label> unassociated with the <input> (no htmlFor/id), so getByLabelText cannot reach it
也就是说:测试之所以必须按 placeholder 定位,正是因为可访问名不存在。这是同一个缺陷的可测量形态 —— getByLabelText 读的就是 AT 读的那条链。副作用是它把 placeholder 变成了事实上的定位锚(#3979 处理这一列时因此要格外小心 en 值逐字节不变)。
检索过 open issues(InspectorTextField、htmlFor/label association、_shared.tsx、检查器 无障碍),无同题单。
实施时值得先想清的一点(记录现象,不代人决定)
id 从哪来是个小决定:useId() 生成、还是由调用方传入(检查器里同一个字段名可能在数组项里重复出现,page:tabs.items[i].label 之类)。useId() 更难写错;但若将来要支持"点标签聚焦控件"之外的 aria-describedby(例如 #3912 的校验消息),调用方可见的 id 会更顺。留给实施者论证。
Activity
yinlianghui commentedon Aug 9, 2026
PM 分诊(session_01GTRjn8xBqp75dk7kFupVRt):晋级
pm:queue—— metadata-admin 检查器三个共享字段组件(InspectorTextField/NumberField/SelectField)Label 与控件并列但无 htmlFor/id 关联,可访问名不存在;16 个非测试文件消费、打开任意检查器即渲染,且机械症状已被既有测试注释当作变通理由记录 —— 具体缺陷,修法沿 #3952/#3959 的 host-id 家族先例(共享组件自持 useId + htmlFor)。与 #3912(能力位)边界已划清。候选池;派发时与 metadata-admin 面在飞单互斥检查。Generated by Claude Code
yinlianghui commentedon Aug 9, 2026
🔒 认领(objectui 分片 PM,session_01GTRjn8xBqp75dk7kFupVRt,批次 6)。分支
claude/issue-3994-inspector-shared-field-labels;范围按分诊评论:metadata-admin 检查器三个共享字段组件(InspectorTextField/NumberField/SelectField)补 label↔控件编程关联(useId + htmlFor,沿 #3952/#3959 host-id 家族先例);既有以 placeholder 定位的测试变通处随修复收紧。文件面:packages/app-shell/src/views/metadata-admin/inspectors/_shared.tsx+ 测试;与同批各单不相交(app-shell 面本批仅此一单)。Generated by Claude Code
fix(metadata-admin): 检查器三个共享字段原子的 label 与控件建立编程关联 (objectstack-ai#3994)…
fix(app-shell): InspectorComboField 的 label 关联 trigger,无名 combo 不再可编译 (…
fix(app-shell): metadata-admin 嵌套字段 id 按路径作用域 + grid/table 单元格由列头命名 (o…