Repository navigation
Closed
Feature
1 / 11 of 1 issue completed
Copy link
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #35590(专题:记录详情页重做,维护者直派)。⛔ 不是认领。优先级 p2(维护者 2026-11-19:「这一批卡p2」)。
维护者 2026-11-19 原话:「子表中的记录会很多到需要筛选过滤排序吗」「其他系统是怎么处理的,真的需要的话,跳转到全屏的列表页,带上过滤条件页面操作?」;看过 Twenty 的演示后指出图 38 里残留的筛选行:「图38 下面的子表筛选你没去掉」。关于添加:「他只是把子表增加了一种编辑的入口 可以批量选」。
目标(图 38;图里用产品明细举例只为示意表格和工具栏的样子,主从子表实际放在概览里,页签里是普通关联的子表)
图是深色稿,只表达结构和尺寸,颜色沿用现有主题变量。参照对象 Twenty 是 AGPL,只参照结构,⛔ 不抄代码。代码读数取自 origin/main 7ece0204a6。外壳(顶栏、左侧栏)不动。
现状
- 相关列表的配置:对象、关系字段、列、排序、条数上限(默认 5)、筛选、标题、
showViewAll、动作、add(packages/spec/src/ui/component.zod.ts:1655-1834)。 - 「新建」打开子对象的新建表单并预先关联父记录(
RelatedRecordActionsBridge.tsx:649+)。「添加」只在页面配置了add时出现,打开RecordPickerDialog(可搜索、多选、翻页、已选数量);保存时一条一条写,不是原子的(ui/packages/plugin-detail/src/RelatedList.tsx:2028-2050)。 - 「查看全部」已经会跳到子对象的列表页并带
filter[field]=parentId(RelatedRecordActionsBridge.tsx:633-647、useOpenRecordList.ts:42-52);但在空列表和正文表格上是隐藏的(RelatedList.tsx:3937)。 - 实测(本机,HotCRM 商机的产品明细):右上角同时有「添加」和「新建」两个按钮,字面上看不出区别。
要做的
- 不放筛选、排序、选项、搜索,也不放条件行。排序靠点表头;排序和列宽按人记住。
- 条数只写在页签标题上,页签里不再重复标题和条数。
- 右上角两样:「↗」(在列表中打开,小图标)和「+ 添加」。
- 「+ 添加」合成一个入口:
- 主从子表(行只属于这条记录):有可选的来源目录时(如产品)打开批量选择框,框里最上面一项是「新建一条」;没有来源目录时直接新增一行。
- 普通关联(对方是独立存在的记录):打开批量选择框,可搜索、勾选已有的,最上面一项是「新建」。
- 相关列表不需要页面显式配置
add才有这个入口,按关系类型自动给。
- 批量添加原子化:一次选多条,走批量接口,同一个事务,全成或全不成;失败时指出是哪一条。
- **「在列表中打开」**在空列表和正文表格上也显示。跳过去后:视图栏下有一枚条件标签「所属 X:记录名 ×」(用列表筛选卡 列表筛选重做:点「筛选」出可搜索的字段清单,按字段类型选值,条件以标签留在视图栏下 #35549 的条件标签);路径里写明来源(「对象 / 记录名 / 子表名」);「重置」回到带着来源条件的状态;在那里点「新建」自动带上父记录。
- 任务这类有状态的子表默认按状态分组显示(未完成的组在前、已完成的在后,可折叠),不用预设筛选条件。
- 表格样式与列表页一致(列表框架:页面栏 + 视图栏两条、表头 32 / 行高 33、统一 13 号字、合计与列对齐(图 36) #35548),合计与列对齐。
不做的
- 不在子表页签里做筛选流程;需要筛选一律去列表页。
- 不改
RecordPickerDialog的列和搜索能力。
验收
- 任意子表页签:没有筛选、排序、选项按钮,没有条件行;右上只有「↗」和「+ 添加」。
- 商机产品明细点「+ 添加」:打开产品选择框,勾 3 个确认,只发一次批量请求,加进 3 行;把其中一个改成会失败的,结果是一行都没加,并提示是哪一个。
- 点「↗」:到产品明细的列表页,有条件标签,条数等于这条商机下的行数;删掉标签看到全部,点「重置」回到只看这条商机。
- 空的子表页签里「↗」和「+ 添加」都在。
- 任务子表按状态分组,已完成的在最后一组。
- 一次合入、一次验收。PR 正文列出迁移和作废的测试,以及同笔修改的
docs/qa/platform-checklist条款。
Reader: domain:ui 车道。ui/packages/plugin-detail/src/RelatedList.tsx、RelatedRecordActionsBridge.tsx、useOpenRecordList.ts、ui/packages/components/src/custom/record-related-list.tsx、packages/rest/src/batch-routes.ts。条件标签依赖 #35549。
Dedupe: 相关列表 添加 新建 批量、related list add picker atomic(objectstack,open)→ 0。
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
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 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Feature (related-table tabs keep only Add and Open in list; bulk add reworked) · a child of the maintainer's record-page topic #35590 (his words for this batch: 「这一批卡p2」) → p2 as he set it.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim: PM loop round 19 · area ux-2 (maintainer direct dispatch: epic #35590, Bill 2026-11-19 「继续处理 35590 的记录详情页子卡」, overrides the p1-only rule for this epic's cards; seat split names #35601 second in the ux-2 lane, after #35597, which merged as
9b6db730b2; its condition-tag dependency #35549 landed via PR #35643378c9557e7) · 2026-11-20T02:22ZFold: #35710 (p2, child of #35597, same file
RelatedList.tsxbody-table totals) rides in this PR per Bill's fold rule (17:01Z: cards sharing files go in one branch and one PR, ≤3000 lines). A separate claim comment goes on #35710.Area: ux-2
Session:
session_01Utp6CZrgaiMgTJCnswR6jQAccount:
os-billBranch:
claude/issue-35601-related-tab-addWorktree:
objectstack-issue-35601Domain:
domain:ui(+packages/rest/src/batch-routes.tsonly if the existing batch route cannot carry an all-or-nothing add)Seat:
repo:objectstack#5File surface:
ui/packages/plugin-detail/src/RelatedList.tsx(related-tab toolbar, add / picker save path, View All on empty and body tables, status grouping, and #35710's totals currency branch),ui/packages/plugin-detail/src/RelatedRecordActionsBridge.tsx,ui/packages/app-shell/src/hooks/useOpenRecordList.ts(and the list route's condition-tag / breadcrumb / reset wiring it needs, reusing #35549's tag),ui/packages/components/src/custom/record-related-list.tsx,packages/rest/src/batch-routes.ts(only as above), their tests,docs/qa/platform-checklistitems it changes, root.changeset/. ⛔ NotRecordDetailView.tsx's header (~5522) / tab (~5610) regions,containers.tsx,RecordPageColumns.tsx,recordPageColumns.ts,record-reference-rail.tsx,DetailView.tsx,buildDefaultPageSchema.ts(another area); no list-page epic sources beyond reusing the merged condition tag (ObjectView.tsx, plugin-list / plugin-view / plugin-grid internals); noRecordPickerDialogcolumn/search change (card: not here); nopackages/spec/**; no new endpoint. Stop on breach and report.Container & model:
L,mode:subagent,model: default — no path-derived mandate,effort: highClause-②: no (measure; a REST contract change would make it yes — report before making one)
Metadata-protocol: none (measure)
Responsibility: ui
plugin-detail/app-shellin objectstack draw record-page related tabs and their add / open-in-list actions; the REST batch route already carries transactional multi-writes; every record page with related listsThread-read: none
Premise: holds as filed (card readings at
7ece0204a6; re-read on current main — #35691 moved the body-table branches ofRelatedList.tsx)Serial constraints cleared: #35597 / PR #35691 merged; no open PR touches the listed files (live read of all open PRs' files at claim time); #35599 (same area,
batch-routes.ts) runs after this onePre-claim lane:
domain:uiPre-claim deps: none open (#35597 closed, #35549 landed)
Prior rulings read (
check-prior-rulings --card 35601 --paths RelatedList.tsx,RelatedRecordActionsBridge.tsx,useOpenRecordList.ts,batch-routes.ts): ADR-0119 D4 (atomicis real or refused) and ADR-0035 runtime backbone (parent + children in one transactionalPOST /api/v1/batch) bind the all-or-nothing add — reuse, never a client loop; ADR-0067 D1/D2 (atomic commits) read;batch-routes.ts~:463 (maintainer ruling option C, #14147) and ~:495 (A-prime ruling) untouched unless the dev reports otherwise;RelatedList.tsx~:341 seam ruling (objectui#5935 option C), ~:2747 (#10235 ruling A), ~:2120 (objectui#6837 protocol normalization) untouched; ADR-0035 §read-side mirror as amended by #35597 binds what a body table isobjectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
os-dev-report
{ "issue": 35601, "status": "needs_decision", "branch": "claude/issue-35601-related-tab-add", "pr": "https://github.com/objectstack-ai/objectstack/pull/35725", "head": "6ea1cb96", "session": "session_01Utp6CZrgaiMgTJCnswR6jQ", "premise_still_valid": true, "summary": "Related tab (RelatedList enlarged face) now carries only ↗ and + 添加; the add entry is derived from the relationship (lookup: child picker with New first row; master_detail with one required catalog lookup: catalog picker creating rows; master_detail without: New form). A multi-pick is ONE dataSource.batchTransaction (POST /api/v1/batch, atomic) and a failure adds nothing and shows the server message; stateful children group by status (status select + dueLike settledWhen; settled options last, collapsible); header sort and column state are remembered in the existing per-user record-page preference (new optional relatedLists slice); ↗ draws on empty lists and body tables; the list page opened by ↗ reads the record trail to name the record in its tag, draw a breadcrumb, Reset to the sourced condition and open New linked. Folded #35710: an unresolved-currency body-table total is drawn as an amount with no symbol from the same server aggregate. Status needs_decision because the batch route cannot name the failing op: the PR says Part of #35601 and Fixes #35710.", "tests": "plugin-detail whole package + RecordPickerDialog + react context + new app-shell file at 756d92bf: 3773 passed / 3 failed (nestedLabelsI18nLabel-10993, missing batch mock) → fixed, rerun 14/14. app-shell ObjectDataPage*, RelatedRecordActionsBridge*, RecordPreferencesProvider-25883: 136/136 (after control fix). console record-block-record-reach, public-block-binding-reach, PageBlockInspector-27178, plugin-grid relatedListRowActionDisabled-33215: 38/38. sourced-list file after lint import: 5/5 at 6ea1cb96. type-check react/fields/plugin-detail/app-shell exit 0 (both tsconfigs). Ablations (src import, no dist leg): #35710 'else plan.amount = true;' → 'else continue;' anchor 1→0 blob efaf47a4→28984401, 1 failed, restored blob==HEAD, git diff HEAD empty; batch 'await batch.call(dataSource, operations);' → per-op loop, 2 failed, restored blob==HEAD.", "gates": "dispatch-gates --commands (38 families, repo objectstack-ai/objectstack at 756d92bf): all exit 0 except check:test-source-alias exit 1 (new test reached @objectstack/lint dynamically) → fixed with module-top import, rerun exit 0 at 6ea1cb96. --ran: 38 derived, 38 run, 0 NOT-MEASURED (derived zero, exit codes recorded). check-nul-bytes OK. check:new-line-citations: no such script in package.json, NOT MEASURED. CI at 6ea1cb96: 22 check-runs, all in_progress or skipped at report time (Lint *, Type Check *, Check Changeset, Check PR Size, PR-body guards in_progress).", "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no (no narrowing arm)", "line_budget": "21 files, +1182 / -489 (1671 changed lines, under the ~2500 split line)", "files_changed": [ "ui/packages/plugin-detail/src/RelatedList.tsx", "ui/packages/fields/src/widgets/RecordPickerDialog.tsx", "ui/packages/app-shell/src/views/ObjectDataPage.tsx", "ui/packages/app-shell/src/views/RelatedRecordActionsBridge.tsx", "ui/packages/app-shell/src/context/RecordPreferencesProvider.tsx", "ui/packages/react/src/context/RecordPagePreferencesContext.tsx", "ui/packages/react/src/context/index.ts", ".changeset/35601-related-tab-open-and-add.md", "13 test files" ], "a_readings": { "A1": "existing transactional route reused: client data.batchTransaction → POST /api/v1/batch {operations, atomic:true}; measured live 200 with 3 update ops in one request", "A2": "failure body measured live: 404 {error:'Record ID not found in showcase_contact', code:'RECORD_NOT_FOUND', userMessage} — no op index; the route cannot name the failing item generically; batch-routes.ts NOT touched (stop rule)", "A3": "pins listed in PR Tests section (one batch of N; failed batch adds 0 with no single write; derived add by relation type; status groups; remembered sort/columnState; ↗ empty; sourced list tag/crumbs/reset/new; #35710 total no symbol)", "A4": "built console, headless Chromium 1440x900 DSF2, 16 screenshots in a4-35601/: showcase Contacts tab add-3 one batch, failing batch adds none (atomic verified by API), ↗ round trip; CRM activities grouped planned/in_progress/cancelled/completed; CRM line items Add opens form (no catalog), total 2,649.75 / 5,501.00 no symbol. CRM line-item add-3 not possible as filed (no catalog)" }, "deviations": [ "Part of #35601 instead of Fixes: failure naming is an open decision", "declared toolbarActions of the child still draw beside ↗ and Add", "master_detail without catalog opens the new-record form (no inline blank row)", "fence readings: RecordPickerDialog createRow prop (no column/search change); react RecordPagePreferencesContext + app-shell RecordPreferencesProvider gain relatedLists slice; ObjectDataPage.tsx carries the list-route wiring; useOpenRecordList.ts unchanged", "picker first-row label is 'New' (detail.new) for both lookup and catalog pickers, not a separate 新建一条 string (no new i18n key)", "authored add pickers everywhere now go through one batchTransaction instead of a client loop" ], "mcp_calls": "0", "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees leg), post-stamped comment on #35601 (POST /repos/objectstack-ai/objectstack/issues/35601/comments); plus git push x4 (not REST)", "open_questions": [ { "question": "Must a failed multi-pick add name WHICH record failed, in every case?", "options": [ "A: widen POST /api/v1/batch's error with the failing op index (batch-routes.ts, Clause-② yes widening), list names the item — separate card, small server change", "B: add a DataSource door over the per-object atomic batch /data/OBJECT/batch, which already reports per-row results — client-only contract, but one object per request", "C: accept the server's own message (names the record for not-found/permission errors, not for validation errors) and close #35601" ], "recommendation": "A, because the cross-object route is the one the ruling names, the index is the one fact missing, and every batch caller gains it" } ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: list page opened by ↗ (/apps/APP/OBJECT/data?filter[account]=ID&from=…) shows the list view's own locked chip 'Account: = 3zKQep1xNgNHlrBO' (raw id) under the named tag, and a second 'Reset' (screenshot 06-open-list-sourced.png) · evidence: A4 screenshot 06 · dedupe words: locked condition chip raw id, list view reset duplicate, url filter chip record name", "carrier: none · noted, not filed: unused i18n keys relatedFilter/relatedChips/relatedChipAll/Mine/Overdue/relatedExport/relatedRows left in packs" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim amendment · area ux-2 · 2026-11-20T04:36Z · amends claim 7028356460 (answers L1-a R1, 7030529410)
File surface, added (all already in PR #35725 at
05a187d4; nothing new is edited by this amendment):ui/packages/react/src/context/RecordPagePreferencesContext.tsx,ui/packages/react/src/context/index.ts,ui/packages/app-shell/src/context/RecordPreferencesProvider.tsxand itsRecordPreferencesProvider-25883.test.tsx.ui/packages/app-shell/src/views/ObjectDataPage.tsxand the newObjectDataPage.sourceList-35601.test.tsx.ui/packages/fields/src/widgets/RecordPickerDialog.tsx: one new optionalcreateRowprop (a dashed first row). The claim's ⛔ on its columns and search stands; neither changed.ui/packages/i18n/src/__tests__/residue-namespaces-3546.test.tsx(thedetail.addsite comment);ui/packages/plugin-form/src/affordanceGrantMap-12082.test.tsx(the add is onebatchsite);ui/packages/plugin-detail/src/renderers/__tests__/record-blocks.nestedLabelsI18nLabel-10993.test.tsx(its data source gainsbatchTransaction).Everything else in claim 7028356460 stands.
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Progress · area ux-2 · 2026-11-20T05:57Z
PR #35725 merged as
bae933b57c(Part of #35601). Delivered: the related tab keeps only ↗ and 「+ 添加」; the add follows the relationship (lookup: a picker of unlinked children with New first; master_detail with a catalog: a catalog picker that creates rows; without one: New); N picks are one atomic batch, all or none; status grouping; per-user sort and column widths; the list opened from ↗ names its source record with a breadcrumb, Reset and linked New.Left on this card: naming the failing item when a batch is refused, #35726 (nested here, now queued). This card stays open and claimed until it lands.
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Closed-out · area ux-2 · 2026-11-20T10:10Z
bae933b57c(Part of this card; with #35710 folded in)a8126d244d(Fixes #35726, the child that held this card's last done-criterion)Delivered:
LABEL: reason(rest: the cross-object batch refusal names the failing operation's index, so a multi-pick related-list add can say which record failed #35726).State: card closed completed;
pm:dispatchedremoved. Epic #35590 stays open.feat(ui): a record page's related tab is the child object's full list (…