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.

plugin-view README 教的 viewComponents 手动注册不存在,ObjectViewSchema 也不从本包导出 #5014

Closed

Description

@yinlianghui

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

现象

packages/plugin-view/README.md 两处从本包名导入的标识符,在本包导出面上不存在:

README 实际
:41 import { viewComponents } from '@object-ui/plugin-view' + :45 Object.entries(viewComponents).forEach(...) 全包零命中。注册是 import 的副作用;真实导出在 src/index.tsx:18-49(ObjectView、ViewSwitcher、FilterUI、SortUI、SharedViewLink、ViewTabBar、ManageViewsDialog、deriveRecordSurface …)。照抄即 Object.entries(undefined) 抛 TypeError。
:337 import type { ObjectViewSchema } from '@object-ui/plugin-view' 类型是真的,但在 @object-ui/types(packages/types/src/objectql.ts:1387);plugin-view 只 import、不 re-export(src/ObjectView.tsx:27),按 README 的路径导入是 TS2305。

两处修法不同:前者删虚构,后者改导入路径。

同族

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

复核方式

grep -n "viewComponents\|ObjectViewSchema" packages/plugin-view/README.md
grep -rn "viewComponents" packages/plugin-view/src            # 零命中
grep -n "ObjectViewSchema" packages/plugin-view/src/index.tsx # 零命中(未 re-export)

分级

交 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-view/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 (viewComponents doesn't exist; ObjectViewSchema is not exported from this package). ⛔ No new exports to make the README true. Independent of siblings; 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
    ContributorAuthor

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

    按分诊裁定与同族方法学(方法学见 PR #5059/#5069):① 删虚构 viewComponents 手动注册节,改教真实机制(import 副作用 + 真实导出面 + 实际 register 键);② ObjectViewSchema 真身在 @object-ui/types(objectql.ts:1387),改导入路径 —— ⛔ 不加 re-export;③ AST 名集合核对 + 编译探针对 dist 双向 pin;④ 同文件同性质漂移一并修单列,不同性质立 finding。


    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