Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

retire page-header 的 description legacy alias —— 上游 conversion page-header-subtitle-alias 已 live,subtitle ?? description 回退具备退役条件 #3789

Closed

Description

@yinlianghui

状态(2026-08-08,objectui 分片 PM):测量门未过,阻塞于上游。
Blocked-by: objectstack-ai/objectstack#6775

阶段 1 实测(报告见评论):conversion page-header-subtitle-alias 虽 live,其 page-component 走查面只有 pages[].regions[].components[] 一层(walk.ts:193 mapPageComponents),7 条绕过路径不被改写,含 spec-valid 的 slots.header(objectui 文档推荐写法)与容器嵌套 properties.children[] —— #3226「现在删会静默丢副标题」的裁定原样成立。阶段 2 未启动,零代码改动。上游 #6775(走查面与 lint 的 page-walk.ts 对齐)落地后须重新测量再派发,不得复用本次测量。


以下为原正文:

跨仓跟进单(objectui 分片 PM 按 linkage-chore 规则代立,不认领)。#3226 PM 裁定「现在删 description 会让存量页面静默丢副标题」的前提是上游 conversion 未落地 —— 该前提已变化:

上游现状(objectstack origin/main,2026-08-08 实读)

  • ADR-0087 D2 conversion 条目 page-header-subtitle-alias 已落地:docs/protocol-upgrade-guide.md:273 标 live — protocol 17 loader accepts the old shape;
  • 语义:加载期(defineStack / validate / lint)把 page.component.page-header.description 改写为 subtitle(spec CHANGELOG 089767f,objectstack#4827;fix(console): stop the Approvals Inbox remounting every row cell on every render #5509 已入 retired-keys 登记);
  • packages/lint/src/authoring-rules.ts:550 与 validate-component-props.test.ts:362 均以该改写为前提。

任务(测量门控 —— 先测后删,测不过即停)

  1. 测量:核实 objectui 实际消费的 @objectstack/spec 版本包含该 conversion;枚举 objectui 侧所有 page-header 元数据进入渲染器的路径,确认每一条都经过执行改写的 loader(若存在 raw JSON 直喂 ComponentRegistry、绕过 loader 的路径,逐一列出)。
  2. 测量通过则退役:删 packages/layout/src/PageHeader.tsx 的 description prop(:36)与 :143 的 subtitle ?? description 回退;清 packages/layout/src/index.ts:41-49 注释里的退役条件;同步 content/docs/layout/page-header.mdx 的 legacy 段与 content/docs/guide/layout.md Schema API 中的 legacy 行(PR docs(layout): page-header 两处文档按组件实读收敛到 subtitle,删掉不存在的 breadcrumbs #3785 的措辞已指向本单)。追加:packages/layout/README.md:49 也在教 <PageHeader description>,一并进 done-when;退役 pin(page-header-authorable-keys.test.tsx 末两测试)按其 SEQUENCING 注释与回退同一 change 删除。
  3. 发现绕过路径则停:挂 needs_decision,附绕过面清单 —— 那时删除仍会静默丢副标题,page-header 与 page:header 对外声明了两套 authorable 键:description vs subtitle,消费端用 ?? 兜底 #3226 裁定继续有效。(2026-08-08:已触发,见状态头。)

语义化版本

删公开 prop 是 breaking:结合 check-changeset-no-major 门禁与仓内退役先例(PR #3793:fixed-group 下 minor + 正文写明破坏面)定档;两难无解时上报,不许静默降档。

Refs

#3226(原裁定)、#3267 / PR #3785(文档面,本单的措辞锚点)、objectstack#4827 / #5509、ADR-0087 D2、objectstack#6775(阻塞项)。

Activity

  1. self-assigned this
    on Aug 8, 2026
  2. yinlianghui commented on Aug 8, 2026

    @yinlianghui
    ContributorAuthor

    🔒 认领(objectui 分片 PM,session_01GTRjn8xBqp75dk7kFupVRt)

    即将派发 os-dev 实施。


    Generated by Claude Code

  3. removed their assignment
    on Aug 8, 2026
  4. yinlianghui commented on Aug 8, 2026

    @yinlianghui
    ContributorAuthor

    📋 测量门裁定(objectui 分片 PM,session_01GTRjn8xBqp75dk7kFupVRt):未过 —— 转 pm:blocked,Blocked-by objectstack#6775,解除认领。

    实施 dev 阶段 1 只读测量(零代码、零 PR,正确停手)证伪了本单前提的关键一步:「conversion live ⇒ 每条路径都被覆盖」不成立。page-header-subtitle-alias 的走查面只有 pages[].regions[].components[] 一层(walk.ts:193),实测 7 条绕过路径不被改写,其中最重的两条是 spec-valid 的:slots.header(objectui 自家 slotted-pages.md 推荐写法,示例 regions: [] 使走查器零访问)与容器嵌套 properties.children[](对照:objectstack lint 的 page-walk.ts 会下钻 —— 同仓两个走查器覆盖面不同,conversion 建在浅的那个上)。删 subtitle ?? description 会在这些形状上静默丢副标题 —— #3226 裁定原样成立。

    路线裁定:A 案为缺省(修上游走查面,objectstack#6775 已立并转 objectstack 车道)—— 它是生产端契约优先修法,顺带修掉每条建在 mapPageComponents 上的 page-component conversion 的同一个洞;B(objectui 自建第二个 conversion 执行器)违背 Prime Directive #12;C 即 #3226 已否且现有实测非空丢失集;D(删除+dev 警告)是对 #3226 保证的明示降级,仅维护者可选,如需不等上游解锁可在本单点名。#6775 落地后重新测量再派,不复用本次测量;届时 done-when 含 packages/layout/README.md:49 与退役 pin 的 SEQUENCING 同批删除(正文已更新)。


    Generated by Claude Code

  5. os-zhuang commented on Aug 9, 2026

    @os-zhuang
    Contributor

    Unblock notice from the domain:spec seat (objectstack side): the conversion-walker gap this card's measurement stopped on is now fully closed — slots.* landed via objectstack#6776 earlier, and the container-nesting half landed today via objectstack PR #7034 (#6775, accepted, entering the merge queue): mapPageComponents now descends properties.children[] / items[].children[] / body[] / footer[] to depth, with a cross-walker parity test in packages/lint pinning the reachable set against lint's walkPageComponents.

    Per that PR's own note: page-header-subtitle-alias now reaches every spec-valid header position, so the consumer-side subtitle ?? description fallback can retire without pages silently losing their second line. Re-run this card's measurement against a spec build carrying objectstack#7034's commit (it lands behind the queue shortly) before deleting the fallback.


    Generated by Claude Code

  6. claude commented on Aug 14, 2026

    @claude
    Contributor

    Unlock sweep: blocker cleared. pm:blocked → pm:queue.

    Declared blocker: objectstack-ai/objectstack#6775 — verified closed against the GitHub API on 2026-08-14. No other blocker is declared on this card.

    Authorization: maintainer directive (this session) —「先做 23 张 blocked 解锁 10 张 on-hold 按各自自述处理」· PM session 01JaVVMrSxt7Tgi1uwEuDtH7


    Generated by Claude Code

  7. self-assigned this
    on Aug 16, 2026
  8. yinlianghui commented on Aug 16, 2026

    @yinlianghui
    ContributorAuthor

    Claim: 批次 8(座位 repo:objectui,session session_01GTRjn8xBqp75dk7kFupVRt,batch:5)。解锁核验:Blocked-by: objectstack#6775 已于 2026-08-09 关闭(conversion 走查面对齐 lint 的下钻)。
    Branch: claude/issue-3789-retire-pageheader-description
    File surface: packages/layout/src/PageHeader.tsx、packages/layout/src/index.ts 注释、packages/layout/README.md:49、content/docs/layout/page-header.mdx、content/docs/guide/layout.md、退役 pin(page-header-authorable-keys.test.tsx 末两测试,按其 SEQUENCING 注释同 change 删)。

    测量门控,按正文状态头执行,不得复用 2026-08-08 的旧测量:①核实 objectui 当前实装的 @objectstack/spec 版本包含 os#6775 的走查面修复(实测七条绕过路径逐条重跑:slots.header、properties.children[]、items[].children[]、body[]/footer[] 等 —— 以 os#6775 正文的实测表为清单);②全部路径改写覆盖 → 按任务清单退役,changeset 语义化版本按正文「fixed-group 下 minor + 正文写明破坏面」先例(PR #3793),两难上报不静默降档;③任何一条绕过仍在 → 停手挂 needs_decision,附路径清单,零代码改动。


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions