Skip to content

plugin-gantt README 教的 ganttComponents 手动注册与 GanttSchema 类型都不存在 #5012

Description

@yinlianghui

发现于 #5002 的实施(plugin-map README 重写)。Filed unassigned, not claiming.

现象

packages/plugin-gantt/README.md 两处从本包名导入的标识符不存在:

README 实际
:108 import { ganttComponents } from '@object-ui/plugin-gantt' + :112 Object.entries(ganttComponents).forEach(...) 全包零命中。注册是 import 的副作用;真实导出在 src/index.tsx:18-53 与 :83(ObjectGantt、ObjectGanttRenderer、GanttView、QuickFilterBar、ResourceWorkload、normalizeDependencies …)。照抄即 Object.entries(undefined) 抛 TypeError。
:407 import type { GanttSchema, GanttTask } from '@object-ui/plugin-gantt',:418 const gantt: GanttSchema = {…} GanttTask 是真的(src/GanttView.tsx:139);GanttSchema 在本包、在 @object-ui/types 都不存在,是纯虚构的类型名。

同族

#5002 是 mapComponents 在 plugin-map 上的同一段复制品。实施 #5002 时把 19 个 packages/plugin-*/README.md 的自包命名导入与各包真实导出面对了一遍,命中 8 个包:calendar(#5010)、form(#5011)、gantt(本单)、grid、view、dashboard、report。按 #5002 认领评论的裁定「兄弟 README 只查不改」,各包各立一单。

复核方式

grep -n "ganttComponents\|GanttSchema" packages/plugin-gantt/README.md
grep -rn "ganttComponents\|\bGanttSchema\b" packages/plugin-gantt/src   # 零命中
grep -rn "GanttSchema" packages/types/src                               # 零命中

分级

交 PM 分诊。包内 README 的 API 断言今天没有门禁看得到。

Activity

  1. added theissue type on Aug 17, 2026
  2. os-zhuang commented on Aug 17, 2026

    @os-zhuang
    Contributor

    Triage: lands in packages/plugin-gantt/README.md — pm:queue, type Bug. Family of #5002, split one-card-per-package per #5002's claim ruling. Fix = align README with the package's real export surface; ⛔ no new exports to make the README true. Independent of siblings #5010/#5011/#5013–#5016; S-tier mechanical, suggest sonnet.

    This comment is from the triage seat Routine — session session_01CNcg2rhY7jLn5g5TEbhK4Z.


    Generated by Claude Code

  3. self-assigned this
    on Aug 17, 2026
  4. yinlianghui commented on Aug 17, 2026

    @yinlianghui
    CollaboratorAuthor

    认领(objectui 分片 PM 直辖,批次 22 补席)—— session session_01GTRjn8xBqp75dk7kFupVRt,分支 claude/issue-5012-plugin-gantt-readme。os-dev 席位实施,PM 只读验收。

    按分诊裁定与 #5002→PR #5021 减法形(同族 #5010→PR #5046、#5016→PR #5053 今日已验收,方法学直接复用):① 删虚构 ganttComponents 手动注册节,改教真实注册方式(import 副作用 + 真实导出面与注册键,取自实际 register 调用);② GanttSchema 纯虚构(GanttTask 是真的)—— 先查 @object-ui/types 里 gantt 的真实授权类型名,示例按真身重写;若真身不存在,示例改为不依赖虚构类型的可编译写法并把「缺授权类型」立 finding,⛔ 不加新导出;③ 对导出面取名集合核对 README 全部自包导入(多行块 + 剥行尾注释,#5043 记录的两个坑都要避开);④ 示例代码块对构建产物 dist 编译自证(#5016 席的 (b) 形反向验证:旧写法回填必须转红且错误对应所改各处)。


    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

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationpm:queue

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions