HD-08 scope, against heroui ce90ea3 table sources and their
react-aria/react-stately dependencies:
- TableBody empty state now spans every real leaf column by default
(self-registered TableColumns — selection and wrapper-rendered ones
included — reactively following column changes), explicit colspan
still wins, and the vnode-level empty detection keeps avoiding
unknown-component setup/render probing
- sorting keeps one activation per click/Enter/Space (single sort path
via the column) while the baseline focus ring returns: the trigger
button keeps keyboard focus and forwards its real :focus-visible
state to the th's existing [data-focus-visible] hook, so the inset
ring lands on the column header like the pinned source and the UA
outline is suppressed only inside a column; aria-sort="none" on
sortable unsorted columns matches useTableColumnHeader and stays
- defaultWidth="Nfr" distributes the remaining width by weight
instead of silently becoming auto: widths.ts ports react-stately's
calculateColumnSizes (static px/% first, fr flex-grow sharing,
min/max violation freezing, cascade rounding); fr mode locks
table-layout: fixed for exact geometry, re-shares on container
resize, freezes dragged columns to their pixel width and keeps
geometry (with flipped drag direction) in RTL; unmeasured
environments keep native widths
- .table__cell's text-start/font-normal verified to block caller
inheritance and narrowed to th.hv-table__cell { inherit }, keeping
the baseline td row-header typography while ancestor align/weight
cascade into cells again; th scope=row, corner selectors and the
resizer z-index fix are untouched
- tests/fixtures/table-layout.vue (playground) drives the real-browser
geometry/drag/RTL/theme verification; m35-m36 contract pins the two
new CSS markers in the final tarball
Full suite 111 files / 1657 tests, typecheck, build:docs and the
m35-m36 + handbook-styles tarball contracts pass.
验证入口
测试按风险选择,不要求每次局部修改遍历全库。当前仅支持浏览器客户端使用,暂不支持SSR、服务端水合或Nuxt服务端渲染。除用户明确重新启用外,不开发、不修复、不新增也不运行相关专项;历史通过记录不构成支持承诺。SSR遗留文件和混合案例已删除,仅从Git查询,客户端回归保留。
日常修改
先选组件与共享依赖的明确测试。例如修改ComboBox/Autocomplete:
pnpm exec vitest run tests/combo-box.test.ts tests/autocomplete.test.ts tests/b02-public-integration.test.ts tests/regressions/collection/picker-public-contracts.test.ts
pnpm typecheck
修改字段、集合、弹层等共享协议时,加入其基础测试和使用者。用rg '组件名|协议文件' tests找回归,不要求阅读所有历史报告。文档代码、样式和公共导出分别补相应的demo/构建/产物验证。
辅助选择命令:
pnpm test:related packages/vue/src/components/combo-box/ComboBox.vue
这是Vitest静态依赖图筛选,包根导入可能扩大范围,CSS/动态依赖可能漏选;只作辅助,不能代替任务卡列出的行为场景。无关联测试会失败,不能解释为组件已验收。
集成检查
| 命令 | 范围 |
|---|---|
| pnpm test / pnpm test:unit | 全部现存客户端回归,没有SSR排除或skip配置 |
pnpm test:related <源文件> |
同一客户端范围下的静态依赖辅助筛选 |
| pnpm typecheck | 源码/工作区类型,不代替发布类型 |
| pnpm build:docs | 库、样式与文档站静态构建,保留文档渲染要求,不视为组件SSR支持 |
| pnpm build:playground | 浏览器验证入口生产构建 |
现有97个测试文件包含1415项客户端用例,默认全部运行;不再维护SSR排除规则或相关命令。逐像素自动对比、完整读屏矩阵、真机矩阵、Nuxt集成暂不投入。
不新增普遍服务端、无document运行、ID水合稳定、Teleport服务端、Nuxt服务端适配等验收要求。NodeNext是发布类型解析模式,不代表要求SSR支持。
真浏览器与产物
- 弹层/拖动/滚动/动画/布局:真实打开公开组合,确认面板可见、可点、选择生效、焦点与关闭正确。aria-expanded或jsdom挂载不是可见性证据。
- 同次变更先验核心路径,再验受控/禁用/表单/动态更新等适用边界;不要求逐个点击所有文档页面。
- 公开API/导出/打包变动:用最终tarball独立安装,执行相关 消费契约,包含NodeNext/bundler正反类型;不使用源码alias。
- SSR/水合/Nuxt服务端不支持、不执行。读屏/逐像素等没做的专项写清楚,不自动扩大范围。
新增与整理测试
先检查同一行为是否已有断言。修复时优先补到对应组件或基础协议套件;独立且有必要的场景才新建文件,以能力命名,不按“review-第几轮”新增。历史probe逐步随组件维护归并;删除前必须给出等价覆盖位置,不能通过减少期望、skip或删除反例掩盖客户端回归。用户已明确移出范围的SSR历史代码已删除,不作为客户端覆盖要求。共享夹具只在真实重复已确认时提取,不建立另一层测试框架。
返修回归位置
20份历史review/probe/takeover/fidelity套件已按能力移入tests/regressions:toast-table、menu-dropdown、collection、overlay、color、toolbar、button-toggle、navigation-otp。文件以行为命名;断言原样保留,未来修复优先补到对应能力目录。不因减少文件数量而合并隔离的cleanup生命周期,不把本轮归组描述为重复断言已删除。