Repository navigation
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #35590(专题:记录详情页重做,维护者直派)。⛔ 不是认领。优先级 p2(维护者 2026-11-19:「这一批卡p2」)。
维护者 2026-11-19 原话:「阶段条是否建议放到明细(或者应该叫概览)」「概览中的关键信息是否建议把现在顶部区域的关键信息样式直接平移过去」「之前顶部的高亮字段和状态,迁移到概览中后,是不是还应该占全宽?」「选项卡标题没有数量不好,看不清」「要注意,顶部选项卡应该列出所有的子表,根据屏幕宽度显示下拉」「顶上一排审批相关的状态是否写太多,有的是否应该放到审批选项卡中」。
目标(图 37)
现状
图是深色稿,只表达结构和尺寸,颜色沿用现有主题变量。参照对象 Twenty 是 AGPL,只参照结构,⛔ 不抄代码。代码读数取自 origin/main 7ece0204a6。外壳(顶栏、左侧栏)不动。
- 默认页由
ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts(synthTabs:938-1022)和RecordPageColumns.tsx:355-403生成:页签是概览、有记录的子表各一个(带条数)、动态;空的子表收进「+N」下拉(Record page tab row: tabs of related lists with records come first, and the tabs of empty related lists sink into the 「+N」 dropdown, the rule the right column already applies to empty panels #28469)。 - 关键字段一排和阶段条在页签上方,每个页签下都在。
- 审批记录和附件在默认页里是右栏的面板;手写页面没摆放它们时,由宿主兜底加在页面底部,每个页签下都在(
RecordDetailView.tsx:5610-5639)。 - 页签条数由
ui/packages/components/src/renderers/layout/containers.tsx:547-644自动算(相关列表、附件);审批只有传入时才有条数;动态条数来自RecordTimelineCountProbe。
要做的
- 第一个页签叫「概览」。阶段条和关键字段从页签上方挪进概览,位于概览最上面,占全宽(横跨左右两栏)。关键字段沿用现在那一排的样式(标签在上、值在下),一排几个随宽度变。
- 页签列出这个对象的全部普通关联子表,不管有没有记录,顺序由对象的
relatedLists决定。已经放在概览里的主从子表不占页签(维护者:「如果主子表已经在 概览中,还需要出现在右侧和顶部tab中吗」);被relatedList设置移出概览的主从子表才有页签。有记录的带条数;没有记录的不带数字、字色稍淡,点进去是空状态和添加入口。 - 只按宽度收:放不下时靠后的进「更多 N ▾」,下拉里每一项仍带各自的条数。不再按有没有记录来收。
- 附件、审批、互动各一个页签,排在子表之后:
- 附件:对象开了附件时始终有;有文件时带数字。
- 审批:对象配了审批流程时才有;有进行中的审批时带一个圆点。里面是审批进度、等待的审批人、催办、审批动态、原因说明、锁定说明。
- 互动:始终有,带条数。
- 页面底部不再有常驻的审批区和附件卡;手写页面没摆放它们时,兜底放进对应的页签,而不是页面底部。
- 一张子表一个页签是默认。把多张表并进一个页签只能由页面定义显式配置,这时页签标题不带数字,平台不替它算总数。
- 页签条吸顶时不透出下面的内容(记录页的页签条吸顶后是半透明的,滚动时下面的内容透出来叠在页签上 #35414 的行为保持)。
不做的
- 概览右栏的内容(子卡「概览右栏」);主从子表进概览(子卡「主从子表」);字段和互动、附件的排版(子卡「字段密排与互动、附件样式」)。
- 手机端记录页。
取代与承接
- 取代 Record page tab row: tabs of related lists with records come first, and the tabs of empty related lists sink into the 「+N」 dropdown, the rule the right column already applies to empty panels #28469(空的进下拉):同笔改
RecordTabRow.recordsFirst-28469等测试和验收条款。 - 承接 record page: a synthesized page that falls back to page tabs may still draw the approval-lock band once per details part #35483、record page: an authored page with two details nodes draws the approval-lock band in each #35484(审批带、锁定标记在回退到页签的合成页和有两个明细节点的手写页上重复出现):验收里带上这两个场景。
- 审批页签里的岗位名显示仍按 审批动态里显示内部岗位名(crm_sales_manager),系统转交的操作人显示为「—」 #35418。
- 关键字段进概览后一排几个由宽度决定,lint: field-group-shadowed judges the first 4 highlightFields while the 18.6.0 record page hoists 6, so a valid list is refused and a list that hides a group passes #35252 的 lint 口径(只判前 4 个)届时要一并核对。
验收(1280×800,zh-CN)
- 托管环境那条合同(5 张子表全空):页签依次是概览、5 张子表(灰色、不带数字)、附件、互动 2;没有「+5」下拉。窗口缩到 900 宽时靠后的进「更多」,下拉里各项带条数。
- 切到任一子表页签:看不到阶段条和关键字段;切回概览:它们在最上面,横跨整个宽度。
- 页面底部没有审批区和附件卡。待审批的记录有「审批」页签并带圆点;没有审批流程的对象没有这个页签。
- record page: a synthesized page that falls back to page tabs may still draw the approval-lock band once per details part #35483、record page: an authored page with two details nodes draws the approval-lock band in each #35484 描述的两种页面上,审批信息只出现一处。
- 一次合入、一次验收。PR 正文列出迁移和作废的测试,以及同笔修改的
docs/qa/platform-checklist条款。
Reader: domain:ui 车道。ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts、recordPageColumns.ts、RecordPageColumns.tsx、ui/packages/app-shell/src/views/RecordDetailView.tsx、ui/packages/components/src/renderers/layout/containers.tsx。
Dedupe: 记录页 页签 子表 概览、record page tabs related list overview rail(objectstack,open)→ 0;承接 #35483、#35484;取代 #28469。


Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Feature (tab rules: the first tab is Overview with the stage bar and key fields; every child table gets a tab) · 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_01Utp6CbSphdunq2aJq7ktuY
Section note before editing
buildDefaultPageSchema.ts(seat 5's epic #35590 fence, the record page redo split) · 2026-11-20T00:40ZArea ux-1 takes #35595 and #35596 folded into one branch. In
ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.tsat c03a8a3 it changes:synthTabs(around 943-1033): the tab list itself, meaning the Overview naming, every ordinary related list as its own tab with no fold-by-records, and the attachments, approvals and activity tabs. It ⛔ does not touch theisBody/bodiessplit around 972-980.buildDefaultTabs(around 916).buildDefaultPageSchema's assembly (around 1088-1209): the highlight strip and stage path move from above the tabs into the Overview tab's top, full width.buildDefaultAttachments/buildDefaultTimelineonly where a tab or the rail needs them.It ⛔ does not touch
bodyTablePlacement(825-~915),BODY_TABLE_PAGE_SIZE, theisBodyoption inBuildPageOptions, or anything else ux-2's #35597 (PR #35691) edits. Whichever PR lands second merges main.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Claim: area ux-1 · epic #35590 sub-cards: tab rules + overview right rail, folded (seat 5's rebalance 2026-11-20 00:34Z after the maintainer's 「专题的相关任务还能加速吗」; the maintainer named the epic, so p2 is in scope) · 2026-11-20T00:40Z
Session:
session_01Utp6CbSphdunq2aJq7ktuYAccount:
os-billArea: ux-1 (moved from ux-4 by the seat)
Branch:
claude/issue-35595-record-tabs-railWorktree:
objectstack-issue-35595Domain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/app-shell/src/views/RecordDetailView.tsx: only the tab region and the bottom approval/attachments fallback (around 5610-5639 at c03a8a3).ui/packages/components/src/renderers/layout/containers.tsx: only the tabs container (around 547-644).ui/packages/plugin-detail/src/RecordPageColumns.tsx.ui/packages/plugin-detail/src/synth/recordPageColumns.ts.ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts: only the sections named in the section note on this card (7026606298).ui/packages/plugin-detail/src/renderers/record-reference-rail.tsx: the card names acomponents/custom/path, but the file lives here.ui/packages/i18n/src/locales/*.ts.docs/qa/platform-checklist/areas/*.json: the record-tab and rail items.ui/e2e/, and the root.changeset/.containers.tsx/record-top-bar.tsxbelong to ux-4's 记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593 (PR feat(record): one header row and one button group on the record page (#35593, #35419) #35679).bodyTablePlacement/isBodyand RecordDetailView around 5071, 2307 and 5665 belong to ux-2.packages/spec/**. If a change there is needed, stop and report first.Container & model:
L,mode:subagent,model: default tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a. This is not a defect card; it is a maintainer-ordered redesign, epic 专题:记录详情页重做(头部两行;宽屏时字段在左、页签在右;全部子表各一页签;主从子表默认只是页签,分组指定才进字段区并随主记录一起保存) #35590.
Thread-read: 7026606298
Premise: the card's readings were taken at 7ece020. The dev re-reads
origin/main(c03a8a3).Prior rulings read:
check-prior-rulings --terms "record tabs,overview,related list tab,reference rail,empty related" --paths <the five source files>returned 0 ADR hits and 0 thread rulings. Refs read: Record page tab row: tabs of related lists with records come first, and the tabs of empty related lists sink into the 「+N」 dropdown, the rule the right column already applies to empty panels #28469 is closed and this card supersedes it. 记录页的页签条吸顶后是半透明的,滚动时下面的内容透出来叠在页签上 #35414 is closed; its behaviour is kept. record page: a synthesized page that falls back to page tabs may still draw the approval-lock band once per details part #35483 and record page: an authored page with two details nodes draws the approval-lock band in each #35484 are open and their scenarios are carried in acceptance. 审批动态里显示内部岗位名(crm_sales_manager),系统转交的操作人显示为「—」 #35418 is open and is not touched. lint: field-group-shadowed judges the first 4 highlightFields while the 18.6.0 record page hoists 6, so a valid list is refused and a list that hides a group passes #35252 is closed; its lint is re-checked.Serial constraints cleared: an open-PR file scan found overlaps only with the fenced PRs feat(record): one header row and one button group on the record page (#35593, #35419) #35679 (ux-4 header) and feat(spec, ui): master_detail children are overview body tables by default #35691 (ux-2 body tables). Their hunks were read, and the regions are disjoint. Whichever lands second merges main.
os-verify-lock --depth: depth 1 → go.Scope: 记录页页签规则:第一个叫「概览」并含通栏的阶段条和关键字段;列出全部子表、带条数、只按宽度收进下拉;附件、审批、互动各一个页签 #35595 (Overview first, holding the stage bar and key fields full width; every ordinary related list as a tab with counts, folded into 「更多 N」 by width only; attachments, approvals and activity tabs; no page-bottom approval band or attachment card) and 记录页概览右栏:只在概览里,是各页签的摘要卡(审批、附件、最近动态、其他相关),不显示空的子表 #35596 (the overview-only right rail of summary cards: approvals, attachments, recent activity, other related; empty ones hidden; no 「还有 N 个空关联」). One branch. One PR if it stays ≤3,000 lines; otherwise tabs first (
Part of), then the rail (Fixesboth). Supersedes Record page tab row: tabs of related lists with records come first, and the tabs of empty related lists sink into the 「+N」 dropdown, the rule the right column already applies to empty panels #28469.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Claim amendment to comment 7026619906 (area ux-1): the File surface ADDS these, each requested by the dev before editing · 2026-11-20T00:49Z
ui/packages/plugin-detail/src/RecordTabRow.tsxandui/packages/plugin-detail/src/synth/recordTabRow.ts, with their tests (RecordTabRow-27524,RecordTabRow.recordsFirst-28469). The tab row draws the 「+N ▾」 trigger and Record page tab row: tabs of related lists with records come first, and the tabs of empty related lists sink into the 「+N」 dropdown, the rule the right column already applies to empty panels #28469's empty-tab partition. 「更多 N ▾」, the muted empty tabs and the approvals dot are drawn there too.ui/packages/plugin-detail/src/index.tsx: one export line forApprovalBandContext, so the authored-page path draws the approval band once per page (record page: an authored page with two details nodes draws the approval-lock band in each #35484).origin/main: on the default page, 「还有 N 个空关联」 is drawn byRelatedListEmptyFold.tsxthroughRelatedCardStack.tsx.record-reference-rail.tsx:783is the authored rail's 「+ N empty」 button. The route swapsRelatedCardStackfor a new summary-rail component inRecordPageColumns.tsx, so neither of those two files is edited.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Claim amendment 2 to comment 7026619906 (area ux-1), File surface ADDS, requested by the dev before editing · 2026-11-20T01:29Z
ui/packages/plugin-detail/src/defaultRecordPage.ts: a page-scoped band claim (ApprovalBandOnceContext) beside the existingApprovalBandContext.ui/packages/plugin-detail/src/DetailView.tsx: ONE hunk, at the approval-band gate only (theApprovalBandContextread around line 331 and the band render around 1747 at c03a8a3).recordOpenRequests-12701CONTROL requires.defaultRecordPage.tsis in no open PR.DetailView.tsxis in feat(record): one header row and one button group on the record page (#35593, #35419) #35679 only, and its hunks don't overlap ours.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Claim amendment 3 to comment 7026619906 (area ux-1): File surface ADDS two small edits in RecordDetailView's header region. The dev asked for them after #35679 (#35593) merged as 72d19c4 · 2026-11-20T02:51Z
?related=approvals, or?tab=approvalson a page drawn as written. Pinned, with an ablation.RecordDetailView.tsx. The header region's own PR, feat(record): one header row and one button group on the record page (#35593, #35419) #35679, has merged.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
os-dev-report
{ "issue": 35595, "status": "done", "branch": "claude/issue-35595-record-tabs-rail", "pr": "https://github.com/objectstack-ai/objectstack/pull/35763", "session": "session_01Utp6CbSphdunq2aJq7ktuY", "premise_still_valid": true, "summary": "One draft PR (#35763) fixes both #35595 and #35596. Tabs: Overview, then one tab per side related list in relatedLists order (empty ones greyed with no number; a refused count keeps its place, unmuted), then Attachments / Approvals (a dot) / Activity last. Every tab is there at first paint, and the only fold is by width into 「更多 N ▾」, whose items keep their counts. A merged tab carries no count. The strip shows on Overview only. A page drawn as written gets its unplaced approvals and attachments as tabs (withFallbackRecordTabs) and draws one approval band across several details bodies (ApprovalBandOnceScope, pinning #35483 and #35484). Rail (RecordSummaryRail): on Overview only and absent when embedded, in the order approvals, attachments, recent activity, then 其他相关 cards for lists with records. Each card has at most 3 rows, a title that opens its tab and a grey count; empty cards are not drawn and there is no 「还有 N 个空关联」 line. Rows come from the page payload via RelatedCountStore.takeRows, cached per question so StrictMode does no second read. Supersedes #28469, whose partition is retired. Header region: two coordinator-approved edits (the approval tag opens the 审批 tab; no ⊟ switch when embedded). The strip itself needed nothing there.", "tests": "All runs on the tree of head 7557c0359b6 under os-verify-lock (VERDICT command-exit 0 each). vitest packages/plugin-detail/: 391 files passed / 1 skipped, 3563 tests passed / 18 skipped. vitest RecordDetailView* + views/__tests__/RecordAttachmentsPanel* + components page-* + packages/i18n/: 266 files, 3354 tests passed / 13 skipped. vitest app-shell utils + ObjectFieldInspector.relatedList-27054 + harness: 61 files, 990 passed; these were red against a stale packages/spec dist and green after rebuilding it. vitest scripts/: 171 files, 5092 passed. Playwright e2e/record-tabs-rail-35595.spec.ts (Chromium /opt/pw-browsers, zh-CN): 5 passed. type-check for plugin-detail, components, i18n and app-shell after a closure build: all Done. Ablations were committed first and restored with git checkout HEAD (blob == HEAD and git diff HEAD empty each time). Red: rail empty cards, order, rows cap, collapse, payload rows (28737), muted empty tab, band once in plugin-detail, band once at the page (ApprovalBandOnceScope dropped from RecordDetailView: 1 failed / 4 passed, the two-body test red and its CONTROL green; restore 5/5), merged-tab whole guard, approval tag. Green: merged-tab list half only, which has no pin of its own (noted).", "gates": "Local: dispatch-gates --commands derived 49 families on 7557c0359b6. All 49 ran and each exited 0 (captured before any pipe; the vitest one ran under the lock). --ran: 49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. check-platform-checklist --changed-from origin/main: exit 0 (7 anchors, 0 lost). overlap-check: exit 1, one file with #35755 (see summary of the 35599 collision in the PR's Acceptance notes); clean against origin/main. Not run locally: check:dev-prereqs and check:skill-frame-freshness (no packages/spec or frame edits). CI on PR #35763 at report time: Governed Surface Queue Guard success; Check Changeset, Check PR Size, Lint x8, Type Check x4, PR-body guards and filter all in_progress; the opt-in jobs skipped.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: no)", "mcp_calls": "0", "api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/35763/assignees os-bill, read back 13174/13174 bytes identical) and this os-dev-report comment (POST /issues/35595/comments via post-stamped.mjs). git push x1 this round (force-with-lease from 4b6fb48a5be to 7557c0359b6), which is not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: the packages/spec relatedList prose still says 'shared Related tab'. This is prose drift outside the fence (spec is fenced out) and a spec-docs follow-up.", "carrier: none · noted, not filed: RelatedCardStack and RecordTimelinePanel are no longer drawn on the record page (dead code there).", "carrier: none · noted, not filed: the Attachments tab re-reads once under React StrictMode (dev only), because RecordAttachmentsPanel's hand-off is take-once and the panel is outside the fence.", "carrier: none · noted, not filed: the payload expand is no longer read by the rail.", "carrier: #35755 · noted: one hunk collides in RecordDetailView.tsx on the authored-page SchemaRenderer line (mine wraps ApprovalBandOnceScope and feeds fallbackTabs.page; theirs feeds layoutPage). The second lander passes layoutPage into withFallbackRecordTabs." ], "pr_number": 35763, "final_head": "7557c0359b6390ebc74d0c08d832c6c19d4735b3", "diff_lines": "66 files, +3315 / -1283 = 4598 lines; 3046 of them in test and e2e files", "readings_no_longer_hold": [ "synthTabs sits at about buildDefaultPageSchema.ts 943-1033, not 938-1022", "「还有 N 个空关联」 comes from RelatedListEmptyFold drawn through RelatedCardStack in the shared Related tab, not from the rail", "record-reference-rail.tsx:783 lives under plugin-detail/src/renderers", "the 900 px fold: on a 900 px-wide page the fixture's twelve tabs fit the 852 px row, so the Playwright case reads a 900 px window (a 644 px page with the sidebar open)", "#35691 and #35597 landed after the readings were taken: master_detail children are overview body tables by default and sit before the field sections, so they take no tab and no rail card" ], "header_region": "Not needed for moving the strip to Overview. Two small edits after #35679 merged, both approved by the coordinator (claim amendment 7028805451): the approval tag's click opens the 审批 tab, and the ⊟ switch is not drawn when embedded." }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Seat ACCEPT for #35595: PR #35763 (folded #35595 + #35596) is handed to the approvers (over 3,000 lines). Seat record on the PR at head
08f9d8a5. Lands by ux-1 after an APPROVED review.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Close-out · 2026-11-20T08:43Z: PR #35763 merged as b0c624a. It folds #35595 and #35596. L1-a gave ACCEPT 7032791068, and the seat ran the Tier H approver handoff (7033230940). This card closed on the merge.
What changed:
Follow-up: #35783 (p1, the maintainer's 「先合并,另开卡恢复」) brings back move, hide and reset on the tab menus.
pm:dispatched removed.
feat(record-page): the side preview opens 460 wide, puts the record's…