Repository navigation
Closed
Feature
Copy link
Labels
area:builddomain:specDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #35896(专题:记录页的页签和字段分组改由父对象一处声明,维护者直派)。⛔ 不是认领。完整的元数据例子在父单。
维护者 2026-11-20 至 21 原话:「但是你看右侧,他显示哪些子表都是通过tab配置出来的。删除tab就是不现实。」(意为不显示)「其实除了 overview,我们直接用 relatedLists 是不是就可以。」「三个内置项,是不是可以直接用对应的对象名」「按对象名这版,立专题」。
现状(主干 8c18a362a2)
relatedLists(packages/spec/src/data/object.zod.ts:4470)只管顺序:列出来的排前面,没列的跟在后面照样出现。规范的说明里写着「It orders; it does not show or hide」。合并逻辑在ui/packages/app-shell/src/utils/deriveRelatedLists.ts:269(resolveRelatedListOrder)。- 想让一张子表不出现,要去子对象的关系字段上写
relatedList: false。 - 附件、审批、动态三个页签不在
relatedLists里,顺序写死:全部子表之后依次是附件、审批、动态(ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:1064-1080)。 - 每一项只能是子对象名或「对象.字段」。
sys_、cloud_、ai_开头的名字构建时不判断是否存在,留给运行时,所以今天写'sys_attachment'不会被拒绝,只是页面不认它。
要做的
- 没声明
relatedLists:和现在完全一样,全部子表自动显示(主从在前、查找在后),然后附件、审批、动态。 - 声明了
relatedLists:记录页的页签只显示列出来的,按列的顺序。从列表里拿掉一项就是不显示。 - 三个内置页签用对象名列进来:
'sys_attachment'→ 附件页签'sys_approval_request'→ 审批页签'sys_activity'→ 动态页签(活动、讨论、变更合成的那一条流;三部分各自有没有,仍由对象上的三个开关决定)
- 这三个名字映射到现有的三种专门画法(文件行、审批步骤、时间流),⛔ 不要把它们当成普通子表去查数据画成表格。
- 这三项只能用简写,不能带列。
'sys_comment'、'sys_audit_log'不作为页签名,写了在校验时提示改用'sys_activity'。 - 各自原有的条件照旧叠加:附件要对象上开了
enable.files才显示(没开,列了也不显示);审批要这条记录有过审批单才显示。 - 关系字段上的
relatedList: false继续认:两边任何一边说不显示就不显示。 - Studio 的「相关列表」编辑器(
ui/packages/app-shell/src/views/studio-design/RelatedListsEditor.tsx)跟着改:能加入、拿掉、拖动,三个内置页签和子表列在一起;还没加进来的子表明显列出。 - 规范说明、迁移登记、升级说明同步更新:这是
relatedLists含义的变化(从「只排序」到「声明了就以它为准」)。
协调席加的(维护者没有逐条表态,有异议以维护者为准)
- 审批、动态即使没列也出现,排在列出的各项之后;只能通过列进去来调位置,不能拿掉。理由:避免有人把审批藏掉。附件可以拿掉。
- 声明了之后,同一个包里后来新建的子表不自动出现,要列进去才显示。
- 来自扩展包的子表例外,自动出现(见父单子卡 4)。
影响面
仓库示例和 HotCRM 里没有对象声明 relatedLists,所以现有页面都走「没声明」那一条,不会变。已经声明了的第三方对象会从「没列的也显示」变成「只显示列出来的」,升级说明里要写。
不做的
- 不带列和标题(子卡 2)。
- 不做扩展包的位置声明(子卡 4)。
- 不动字段区里由分组放进去的子表。
验收
- 没声明
relatedLists的对象:页签和改之前逐项相同。 - 声明
['task', 'sys_attachment', 'contact']且对象开了附件:页签依次是任务、附件、联系人,然后(未列出的)审批在有审批单时出现、动态在最后;其他子表不出现。 - 把
'sys_attachment'从列表里拿掉:没有附件页签。 - 列了
'sys_attachment'但对象没开附件:没有附件页签,校验给出一句提示而不是报错。 - 写
'sys_comment':校验提示改用'sys_activity'。 - 写一个带列的内置项(
{ list: 'sys_attachment', columns: [...] }):校验拒绝。 - 附件页签仍然是文件行的样子,不是表格。
- Studio 里拖动、加入、拿掉后保存,记录页页签随之变化。
Reader: domain:spec 牵头,domain:ui 配合。packages/spec/src/data/object.zod.ts、ui/packages/app-shell/src/utils/deriveRelatedLists.ts、ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts、RelatedListsEditor.tsx。
Dedupe: 见父单。
Metadata
Metadata
Assignees
Labels
area:builddomain:specDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-20T17:39Z
Area: b1-RS
Session:
session_01L6bhgTgsPwrw3VbvRRcqth(the card thread)Account:
os-salesBranch:
claude/project-thread-7vyy7l(this card thread can push only this branch, a measured platform exception to the issue-numbered branch name)Seat:
repo:objectstack#1Domain:
domain:spec(UI read indomain:ui)File surface: spec
data/object.zod.ts(relatedListsas a union of a name and an object entry with title and columns; built-ins take no columns),stack.zod.tscollectRelatedListNameErrors(skips the three built-in names),data/object.form.ts, a newmigrations/entries/semantic/entry, the generated schema/docs/api-surface/authorable-surface, their describe pins; lintvalidate-related-list-refs.ts; UI plugin-detailrelatedListEntry.ts, the tab-list part ofbuildDefaultPageSchema.tssynthTabs(not the header or overview), app-shellderiveRelatedLists.ts, one hunk inRecordDetailView.tsx;docs/adr/0035anddocs/adr/0085amendment notes; changeset. The StudioRelatedListsEditor/relatedListVocabularypart waits until #35889 S1 merges (same editor).Container & model:
L(two cards folded),mode:thread,model: opus — dispatch-gates --tier mandates claude-fable-5-2 (CONTRACT_REVIEW_TIER) for docs/adr/**; measured quota exemption (the mandated tier EXHAUSTED ⇒ TIER_DEFAULT): the account's Fable quota returned HTTP 429 on 2026-11-20 (b1-D 08:5xZ; #35582's isolated review 16:3xZ), so the build runs at opus. The contract review is ⛔ not downgraded: its CONTRACT_REVIEW_TIER L2 (published schema) waits for the quota,effort: highClause-②: yes (widening: the object-form entry; the three built-in names stop being refused as "no reverse relationship")
Metadata-protocol: semantic (a declared
relatedListsnow shows only what it lists; ADR-0087 semantic migration entry)Premise: re-read on main
f44758b2by the thread:relatedListsonly orders, the built-in tab order is hard-coded insynthTabs, the Studio editor takes strings only.Readings the thread builds on: (1) detail tables placed by a field group are outside the
relatedListsvisibility rule (the maintainer 2026-11-20 17:34:55Z: 「明细表应该改成指看分组的定义了。」); title and columns are shared. (2) Approvals and activity appear even when not listed, attachments only when listed, per the cards' acceptance. (3) The three built-in names always mean the built-in tabs, even when a parent has a real reverse relationship to thatsys_object.Governance:
docs/adr/**⇒ Tier H, os-zhuang approves after the L2.Basis: epic #35896 children; the maintainer took the epic into this seat on 2026-11-20 17:34Z 「你在看一下专题卡 35896」; scope per the epic's quoted maintainer words.
Resume-from: none
Fold-or-serial: fold. #35897 and #35899 are one PR (same key; the epic's 7046204274 asks for the same person); the PR carries
Fixes #35897andFixes #35899.objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec·pm:dispatched(as set); rationale: area:records · Feature ·relatedListsdecides which record-page tabs show and their order, with the three built-ins named by object name; child of topic #35896 → p2 as set by the coordinator · size M.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Seat reading · 2026-11-20T19:11Z · Where #35889 and this card meet: a master-detail child that a parent field group places in the overview, on an object that DECLARES
relatedListswithout listing that child.relatedLists.relatedListsthe tab list: visibility and order. So whenrelatedListsis declared, it decides the tabs: an unlisted child gets no tab. The group still places its table in the overview.Owed on the head that has #35921 merged in (PR #35923):
deriveRelatedLists/arrangeDeclaredTabsstop appending an unlisted group-placed body table as a trailing tab whenrelatedListsis declared, and one test pins both cases (declared: no tab, table in overview; not declared: tab with count, per #35889 item 4).objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Maintainer ruling · 2026-11-22T01:51Z · #35897, cross-package child lists (PR #35923)
On the seat's decision card (reviewed by fable first, PR #35923 records 7071342837 S2 and 7072311535), the maintainer chose 「先隐藏,#35901 再解决」: when a parent declares
relatedLists, a child list that another package adds gets no tab until the parent names it, and #35901 brings the cross-package placement. This is the behaviour PR #35923 ships and states in its describe, ADR notes and migration entry. The card's line that extension-package lists appear automatically is delivered by #35901, not by this card.docs(spec): place's migration entry, changeset, ADR-0085 and ADR-0146…
fix(objectql,spec,lint): an extension places only its own items at ev…
feat(app-shell): an authored record page is drawn on the desktop full…
feat(spec): relatedLists is the record page's tab list, with built-in…
feat(spec): an object extension places the fields, groups and child l…