Repository navigation
Done
Copy link
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p2Medium: important, M3
Description
repo:objectstack#3 · os-support-ai · session_01WGufzufqmKuir7GiTdwGd3Z
③ topic child · Source: topic #36890 (「所有类型的列表用同一种表格,列来自 #36860」). Part of #36890.
今天(读代码确认,主干 0819cab)
- 先例:
ui/packages/plugin-designer/src/ObjectManager.tsx:99-121用ValueDataSource喂ObjectGrid,但它今天不在控制台路由上(ui/apps/console/src/main.tsx:59-62);在跑的是对象「记录」页签(SD/studio-object-records-canvas.tsx)。 ObjectGrid没有宿主自定义单元格属性:列来自 schema,单元格按类型内部渲染;宿主只能插rowAdornment、recordLinkAdornment、rowOperations、onRowClick,行底色只认schema.rowColor(ui/packages/plugin-grid/src/ObjectGrid.tsx:347-381, 464, 3999)。ResourceListPage里要保住的:诊断着色、锁图标、启用开关加持有者确认(MA/ResourceListPage.tsx:254-265, 498-553, 1213-1226)、共享规则克隆(:300, 1227-1241)、控制台自带render的列(视图类型、手册受众、岗位持有人数,AS/services/builtinComponents.tsx:387-430, 498-515)。ObjectGrid按列做$select,_packageId、_lock、_diagnostics要由宿主按名字另查(ObjectManager.tsx:124-125);ValueDataSource.getObjectSchema从第一行猜类型,要由适配器给真 schema(ObjectGrid.tsx:222-246)。- 自定义
ListPage(只有 datasource,Studio 里转去设置,SD/StudioMetadataArea.tsx:250)、listFilter(view)、listInclude(permission)留在宿主一层。 - 只读包的
/:type/new直接跳回列表(SD/StudioMetadataArea.tsx:186-194);分区里的新建经「确保配对包」落到.custom(SDS:5681-5687)。
要做的
- 适配器:把
/meta/:type转成ValueDataSource,给出真 schema;行信息(包、锁、诊断)按名字另查。 - 给
ObjectGrid加通用的宿主单元格和行着色属性(plugin-grid,通用块,不加产品命名的组件),承接上面的列和标记;启用开关保留持有者确认。 - 关掉
ObjectGrid带来的个性化列、导出、批量选择、行内编辑。 - 列来自 元数据列表列改为在 spec 里声明,经 /meta/types 下发(像表单布局一样);第一批补上 hook、flow、job 等类型的关键列 #36860 下发的列声明;排序、搜索、分页用受控属性,接 1-1a 的地址状态。
- 列表「新建」:只读底包上走配对包落到
.custom;对象新建带组织级默认共享选择(SDS:8326-8385)和「新对象加入应用菜单」(SD/newObjectJoinsAppMenu.ts);流程新建带预设(SD/flowPresets.ts)。(三个设计器卡会把它们自己的新建入口删掉,依赖这里。) - 仪表盘、报表列表的「新建」按决定 13 留给 3-4 接。
ValueDataSource是内存数据源:在~all下量一次最大类型的全量规模,写进 PR。
验收
- 每种类型列表都是同一种表格,原有的诊断、锁、启用开关、克隆、自带列都在。
- 在 HotCRM(安装来的应用)上新建对象、流程,落到
.custom包;在自建应用上新建落到本包。 - 引用列表页的测试(约 37 个文件)通过。
Blocked-by: #36896
Grading: area:ux · Feature · metadata list (each type renders a different table) · builders, every list visit · evidence: read from code. Topic child ⇒ p2.
Dedupe: ObjectGrid metadata list / ValueDataSource (open: #35836, #35834 are ValueDataSource comparand bugs, not this change).
Reader: seat repo:objectstack#3, one os-dev card. Size L. Metadata-protocol: none. Wave 2.
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x
Claim: PM loop round 1
Session:
session_01WGufzgNtKtppbRbXmHGH8xAccount:
os-support-aiBranch:
claude/issue-36897-list-objectgridWorktree:
objectstack-issue-36897Domain:
domain:uiSeat:
repo:objectstack#3Area: ux-E2
File surface:
ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsxand NEW modules beside it (the/meta/:type→ValueDataSourceadapter with a real schema, row-info lookup by name, the list-create flow that lands in the paired.custompackage on a read-only base, with object sharing-default + join-app-menu and flow presets reused fromstudio-design/newObjectJoinsAppMenu.ts,flowPresets.tsandpackages-io.ts#ensureCustomizationPackage), generic host-cell and row-tint props inui/packages/plugin-grid/src/**(no product-named component),ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsxonly where/:type/newon a read-only base must reach the paired create, the tests that pin the old table, new test files named for the card, Studio strings inui/packages/i18n/**, and a changeset36897-list-objectgrid.md; reads (does not edit)ui/packages/app-shell/src/services/builtinComponents.tsx; ⛔ noStudioDesignSurface.tsx(an extraction that needs it stops and goes to the seat for an SDS slot) (stop on breach; explain in the report)Container & model:
L,mode:subagent,model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate",effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: none
Premise: holds (read on origin/main 69c3dc4:
ObjectGridhost seams arerowOperations/rowAdornment/recordLinkAdornment(ui/packages/plugin-grid/src/ObjectGrid.tsx:347, 364, 381), no host cell prop;StudioMetadataArea.tsx:181-189AreaCreatesends a read-only package's/:type/newback to the list;ensureCustomizationPackageis a standalone export (studio-design/packages-io.ts:281);newObjectJoinsAppMenu.tsandflowPresets.tsare standalone modules; 38 test files nameResourceListPage)Pre-claim lane: repo:objectstack seat 3 area ux-E2 (epic #36890 list side, seat order 08:58Z; seat 10:25Z: start #36897 in the freed slot); paths under
ui/packages/app-shell/src/views/metadata-admin/,ui/packages/plugin-grid/src/,domain:ui,area:uxPre-claim deps:
Blocked-by: #36896— PR #36939 MERGED 2026-11-24T11:16Z (bac4864);pm:blockedremoved on that mergePrior rulings read: card thread 0 comments; governing text is epic #36890 (one table for every type; columns from #36860; decision 13 leaves dashboard/report 「新建」 to #36906/#36907) and ruling 7126661936 (Studio lists with 新建 and edit are the scope); review notes
studio-plan-fable-review.md§8 (新建 on a read-only base lands in.custom) and §1-1bSerial constraints cleared: open PR #36926 (#36860 part (b), another thread) edits
builtinComponents.tsx,anchors.tsandservedListColumns.tsx— this card only reads them; overlap-check against #36926 before every push, any conflict goes to the seat;StudioDesignSurface.tsxnot edited (no SDS slot taken); size watched against the 3,000-line line (L card, 38 pinned test files): past ~2,500 the dev stops and reports, and over 3,000 the PR is Tier H for the seatobjectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x
os-dev-report
Posted 2026-11-24T15:15Z.
{ "issue": 36897, "status": "done", "branch": "claude/issue-36897-list-objectgrid", "pr": "https://github.com/objectstack-ai/objectstack/pull/36978", "pr_number": 36978, "remote_head": "origin/claude/issue-36897-list-objectgrid @ 00e524f133515622aebd06018b6678f2d72cb85b", "session": "session_01WGufzgNtKtppbRbXmHGH8x", "premise_still_valid": true, "summary": "Every metadata type's list (Setup and Studio's All metadata area) is now drawn by ObjectGrid in host mode. The grid is fed a schema declared from the columns, not one guessed from the first row (metadataListGrid.ts / MetadataListSource), and rows already filtered and sorted by applyListState, so its visible order is the detail's ‹ › order (pinned). Diagnostics tint, lock, served and console columns, the Active switch with its holder confirmation, Clone and the re-hosted 修改时间 column from #36898 are page host cells, through two new generic ObjectGrid props, hostCells and rowTint. Sort and page live in the URL. The grid's search, selection, inline edit, resize/reorder and export are off. On a read-only base the list's 新建 creates in the paired .custom package: a new MetadataListCreateDialog for an object (with its OWD) and a flow (presets), and AreaCreate opens the pair's create for other types. It is offered exactly where the area can create in the pair (host.pairCreate), so none on a walled door or a kernel package. SDS and the pillar files are untouched. Verified on booted HotCRM: an object and a flow landed in app.objectstack.hotcrm.custom, and on a self-built package they landed in that package.", "tests": "At 00e524f13: 43 files / 508 tests pass (the 36 suites naming ResourceListPage, listChangedAt, listDraftMarks, metadataListGrid, MetadataListCreateDialog.pairCreate, StudioMetadataArea.routes, rowAdornment, CreateItemDialog.oneLabel). app-shell and plugin-grid type-check are Done, lock VERDICT command-exit 0. No ablation run: the new behaviour is new code pinned by new tests with CONTROL legs, and no existing tested behaviour was mutated.", "gates": "Local: dispatch-gates --commands derived 39 families. All exit 0; --ran reconciliation: 39 derived, 39 run, 0 NOT-MEASURED (a derived zero). check:test-source-alias was red once and fixed with collection-time imports in 6 suites. The ui vitest scripts/ family was OOM-killed once beside the booted app, then re-ran green (172 files). Most families ran at 2c60bdf3a. Re-run at 490aad241: test-source-alias, type-check-debt, type-check-coverage, undeclared-dep-imports, cross-package-test-inputs, published-files, nul-bytes, all exit 0. At 00e524f13: test-source-alias and nul-bytes exit 0. check:new-line-citations: 0 new. CI on head 00e524f13: 40 success and 13 skipped, mergeable_state clean. It includes Test UI 1-16/16, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, Check PR Size, Lint & Repo Gates, all Lint and Type Check lanes, Test Core and Dogfood Regression Gate. An earlier head, 1137895, failed Test UI 2/16 and 7/16; both were fixed by 23cc54e.", "dogfood_battery": "n/a — no ! in the PR title and Clause-② is no without a (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay strokes: (1) pr_create through fleet-write dispatch (run 45400330613: POST /repos/objectstack-ai/objectstack/pulls plus the assignee leg POST /issues/36978/assignees); (2) this os-dev-report comment through post-stamped (POST /repos/objectstack-ai/objectstack/issues/36897/comments). git pushes are not REST writes.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — ObjectGrid gives every pinned:'right' column sticky right-0, so two right-pinned columns overlap. This list pins one. No reach: no second producer measured.", "carrier: none · noted, not filed — on HotCRM booted from its pinned @objectstack/cli 18.6.0 with this tree's console, the customization read says 'answered a body its declaration refuses'. This is skew between a released server and main's reader, not a defect at one version." ], "line_budget": "2195 changed lines against origin/main (1771+, 424-): src 1509, tests 673, changeset 13, generated 0. The merge of #36898 and its re-host on the grid added 68 lines (2127 before). Under the 2500 stop line.", "files_changed": [ "ui/packages/plugin-grid/src/ObjectGrid.tsx", "ui/packages/plugin-grid/src/useRowColor.ts", "ui/packages/plugin-grid/src/__tests__/rowAdornment-13330.test.tsx", "ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx", "ui/packages/app-shell/src/views/metadata-admin/metadataListGrid.ts", "ui/packages/app-shell/src/views/metadata-admin/metadataListGrid.test.ts", "ui/packages/app-shell/src/views/metadata-admin/MetadataListCreateDialog.tsx", "ui/packages/app-shell/src/views/metadata-admin/MetadataListCreateDialog.pairCreate-36897.test.tsx", "ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.pairCreate-36897.test.tsx", "ui/packages/app-shell/src/views/metadata-admin/metadataAreaHost.ts", "ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx", "ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.routes-28561.test.tsx", "ui/packages/app-shell/src/views/studio-design/CreateItemDialog.oneLabel-11787.test.ts", "ui/e2e/live/declared-sharing-rules-reach-13091.spec.ts", "8 existing ResourceListPage/area suites changed where they pinned the old table DOM or its timing (bundleMember, declaredSharingRules, listStateInUrl, objectExtensionName, positionGrants, setupLabelFirst, changedColumn-36898, metadataAreaHost.customizations)", ".changeset/36897-list-objectgrid.md" ], "deviations": [ "Screenshots (deviceScaleFactor 2) are hosted on a no-PR, images-only branch, claude/issue-36897-list-objectgrid-shots (3c488ba2), and embedded in the PR body by raw URL. The relay has no attachment upload.", "The PR body was written once, at pr_create (head 1137895). It does not yet describe five later changes: the kernel-package no-pair fix, the CreateItemDialog enumeration test, the merge of #36977 (StudioMetadataArea conflict), the #36898 re-host (修改时间 column, changed sort, header-sort pin) and the customizations-28568 await fix. os-dev forbids a dev PATCH, so the seat brings the body to head.", "HotCRM verification ran HotCRM's pinned published server (cli 18.6.0) with this tree's console on Vite (VITE_SERVER_URL), per the dogfood skill's authoritative-console route. It used a scratch worktree of the HotCRM repo, since removed.", "One push went out while overlap-check reported exit 1, because the check and the push were chained in one command. The conflicts were with the open PRs #36983 and #36977, not with main, and both have since merged into this branch.", "git reset --hard HEAD was used once, on a throwaway local prep branch, to drop an unfinished trial merge. No committed or pushed work was involved.", "The 39-family local derivation ran mostly at 2c60bdf3a, not at the final head. A ratchet subset was re-run later, and CI is green on the final head." ], "conflicts_reported": "#36983 (#36898) conflicted in ResourceListPage.tsx and #36977 (#36901) in StudioMetadataArea.tsx. Both merged to main and are now merged into this branch, resolved and tested. #36926 never overlapped. overlap-check at 00e524f13: clean, 0 PR heads.", "dev_effort": "high", "rounds": 1 }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x
Claim amendment 2026-11-24T15:18Z, before L1 (precedent: L1-b (3) on #36983, REWORK 7133485320 S1; #36846 amendment 7122541004):
Clause-②: yes (widening) (was
no)Metadata-protocol: none
The widening:
ObjectGridComponentProps, exported from@object-ui/plugin-grid's entry, gains the optionalhostCellsandrowTintmembers, an addition to that published package's public surface. No metadata an author writes changes; patch levels stand. Owes a TIER_DEFAULT contract review.File surface adds:
ui/packages/app-shell/src/views/metadata-admin/metadataAreaHost.ts,ui/packages/plugin-grid/src/useRowColor.ts,ui/e2e/live/declared-sharing-rules-reach-13091.spec.ts,ui/packages/app-shell/src/views/studio-design/CreateItemDialog.oneLabel-11787.test.ts(each named in the PR's deviations).objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x
Close-out 2026-11-24T16:22Z: PR #36978 merged 2026-11-24T16:22Z (c48f06c), closing this card by
Fixes. Delivered: every metadata type's list (Setup and Studio's All metadata area) is anObjectGridfed a declared schema and the list's own filtered and sorted rows, so the visible order is the detail's ‹ › order; diagnostics tint, lock, served and console columns, the Active switch with holder confirmation, Clone and the 「修改时间」 column (#36898) are host cells through two new genericObjectGridprops,hostCellsandrowTint(Clause-②: yes (widening)); sort and page in the URL; the grid's search, selection, inline edit, resize/reorder and export off. On a read-only base, 新建 creates in the paired.custompackage (object with its sharing default, flow with presets, other types via the area's pair create); none under the customization wall or on a kernel package. Verified on HotCRM. L1 ACCEPT 7136660900, L2 PASS 7136626887. Nothing left on this card. Follow-up note (review N2, not filed): the pair-create address inAreaCreatemay move ontostudioMetadataAreaAddressonce #36973 lands.