Skip to content

记录页概览右栏:只在概览里,是各页签的摘要卡(审批、附件、最近动态、其他相关),不显示空的子表 #35596

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35590(专题:记录详情页重做,维护者直派)。⛔ 不是认领。优先级 p2(维护者 2026-11-19:「这一批卡p2」)。

维护者 2026-11-19 原话:「相当于我们概览右侧的子表区域不用改,只是优化界面样式」「还有 8 个空关联 这种不需要吧」「概览右侧还能看到附件、动态、审批状态吗?」「一个客户下面有七八张子表都有记录,感觉都显示页没问题。但是主要子表,附件、审批、动态,肯定是要放在前面的。」「右侧应该不现实空的子表」。

目标(图 37 上半张的右栏)

图 37 记录页:概览、相关表页签、抽屉

现状

现状:平台默认记录页(合同 CTR-0003)

图是深色稿,只表达结构和尺寸,颜色沿用现有主题变量。参照对象 Twenty 是 AGPL,只参照结构,⛔ 不抄代码。代码读数取自 origin/main 7ece0204a6。外壳(顶栏、左侧栏)不动。

  • 默认页的右栏只在概览里画(RecordPageColumns.tsx:413-441),内容是相关卡片、附件面板、动态面板。
  • 最上面一行「还有 N 个空关联 · … · 展开」(ui/packages/components/src/custom/record-reference-rail.tsx:783)。
  • 附件为空时也是一张带上传按钮和提示语的大卡;动态卡是整个动态流。
  • 相关卡片里每条记录只显示名称。卡片圆角 14、标题 14 号。
  • record:reference_rail 画不了审批、附件、动态的摘要卡。手写页面如果把右栏放在页签外,它会在每个页签下都出现(HotCRM 商机页就是这样)。

要做的

  1. 右栏只在「概览」里出现,位于通栏的阶段条和关键字段之下。
  2. 每样一张小卡:标题、条数或状态,最多三行,整行标题可点(末尾「›」),跳到对应页签。
    • 审批:有进行中的审批时出现。每一步一行:步骤名、状态(已通过 / 等你审批 / 等某人)。
    • 附件:有文件时出现。最近三个文件名和大小。
    • 最近动态:有动态时出现。最近三条:谁做了什么,时间靠右。
    • 其他相关:小标题之下,其余有记录的普通关联子表各一张卡,有多少显示多少;每条是名称加一个关键值(由相关列表的列定义取第一个金额或状态列)。
  3. 顺序固定:审批、附件、最近动态、其他相关。主从子表不在右栏(它们在概览左侧,见子卡「主从子表」);在该子卡合入之前,主从子表的卡排在审批之后。
  4. 没有内容的不出现,也不写「还有 N 个空关联」那一行。审批结束后审批卡不再出现。
  5. 样式:圆角 8、标题 13 号、行高 26;条数是标题后的灰色数字,不用徽标。
  6. 抽屉里不显示右栏。

不做的

  • 不改右栏的宽度断点和它在哪些宽度下折到下方的规则。
  • 不在右栏里放可编辑的内容或上传入口。

承接

#34590(右栏里动态放最后):顺序由本卡重新定,同笔改它的测试。

验收(1280×800,zh-CN)

  • 托管环境那条合同:右栏没有「还有 5 个空关联」,没有空的附件卡;只有「最近动态」一张卡,三行以内。
  • HotCRM 待审批的商机:右栏从上到下是审批、最近动态,然后「其他相关」下面是报价单;每条带金额。
  • 切到任一非概览页签,右栏不出现。
  • 点「审批」卡的标题进入「审批」页签;点「报价单」卡的标题进入报价单页签。
  • 一次合入、一次验收。PR 正文列出迁移和作废的测试,以及同笔修改的 docs/qa/platform-checklist 条款。

Reader: domain:ui 车道。ui/packages/components/src/custom/record-reference-rail.tsx、ui/packages/plugin-detail/src/RecordPageColumns.tsx、synth/recordPageColumns.ts。依赖子卡「页签规则」提供的页签。

Dedupe: 右栏 空关联 记录页、record reference rail empty related(objectstack,open)→ 0。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature (the Overview right rail becomes summary cards of the other tabs) · a child of the maintainer's record-page topic #35590 (his words for this batch: 「这一批卡p2」) → p2 as he set it.

  3. added
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 · rides #35595 (same branch and PR; this card depends on #35595's tabs; seat 5's fold) · 2026-11-20T00:41Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Area: ux-1
    Branch: claude/issue-35595-record-tabs-rail
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: as the #35595 claim, chiefly record-reference-rail.tsx, RecordPageColumns.tsx and synth/recordPageColumns.ts, plus new summary-card component(s).
    Container & model: rides #35595 (L, effort: high)
    Clause-②: no
    Metadata-protocol: none
    Thread-read: 7017235795
    Scope: card items 1–6. It supersedes #34590's activity-last order and edits its tests in the same change. Fixes #35596.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  6. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Seat ACCEPT for #35596: 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.

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Close-out · 2026-11-20T08:43Z: rode #35595 in PR #35763, merged as b0c624a. This card closed on the merge.

    What changed:

    • The Overview's right rail is now summary cards: approvals, attachments, recent activity, and the other related lists that have records.
    • Each card shows at most 3 rows, and its title opens its tab.
    • Empty cards are not shown, and the 「还有 N 个空关联」 line is gone.
    • The drawer draws no rail.
    • The rail reads nothing beyond the page payload.

    pm:dispatched removed.

  8. removed
    pm:dispatched
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions