Skip to content

记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35590(专题:记录详情页重做,维护者直派)。⛔ 不是认领。

维护者 2026-11-20 至 21 原话:

  • (看 Twenty 的记录页)「你看一下另外一套软件,和我们类似,没有概览,右侧打开的时候显示的是记录详情,全屏的时候,记录详情移到左侧」
  • 「如果按照新的设计效果,概览右侧也没有子表区域了。」
  • 「一个子表都没有,动态也可能没有,那就是相当于表单撑满,没有右侧的选项卡」
  • 「手机记录页和电脑端右侧的 drawer 一样吧,第一个选项卡是详情,后续的选项卡就是子表。」
  • 「记录页图 41 的方向定了,立卡」

参照产品是 Twenty(只参照行为:它的规则是「第一个页签在宽屏整页时钉到左边,在侧边面板和手机上是普通的第一个页签」;⛔ 不抄代码,AGPL)。

现状(本机环境实测于 7878cf0557,代码位置核对于主干 8c18a362a2)

要做的

效果图(图 41):

报价单 宽屏整页

客户 宽屏整页(字段多)

抽屉

没有其他页签时撑满

  1. 一条规则:记录页的第一个页签是字段。宽屏整页时它钉到左栏,不再是一个页签;右边是从第二个开始的页签,默认停在其中第一个。抽屉、窄屏整页、手机上,它仍是普通的第一个页签。同一份页签配置,只是第一个页签摆在哪不同。
  2. 左栏:字段单列,分组和顺序就是对象上配的那一套(分组标题、收起状态照旧);长文本占整行、完整显示。左栏和右边各自滚动,互不带动。
  3. 右边默认停在哪:其余页签里的第一个。有子表时是第一张子表,一张子表都没有但有动态时是「动态」。
  4. 没有其他页签时(没有子表,附件、审批、动态也都没有):不分左右,也不画页签条,字段撑满整页按宽度排多列,和现在的整页一样。抽屉里同理,只有一个页签时不画页签条。
  5. 取消右栏摘要卡:三种宽度下都不再画。它原来给的信息由页签上的条数承担。
  6. 这条记录正在审批时:记录名旁边显示一个「审批中 · 当前步骤」的标签,点它跳到「审批」页签。轮到自己审批时仍是现有的「待你审批」加通过、拒绝按钮(记录页头部压成一行;只有一组按钮,随记录状态换内容(等我审批时是通过、拒绝);审批状态只留一个短标签 #35593)。

协调席加的(图上标了「待定」,维护者说「方向定了」,没有逐条说过;有异议以维护者为准)

取代和影响

不做的

  • 不改手写记录页(自己声明页面结构的对象),只改自动生成的默认页。
  • 不做「概览」摘要页(参照 Attio 的那种指标卡片概览没有采用)。
  • 页签显示哪些、什么顺序的配置方式(对象上的 relatedLists)另行讨论,本卡沿用现在的页签。

验收

  • 1440 宽整页打开一条有子表的记录:左边是字段,右边是页签且停在第一张子表;页签条里没有「概览」或「详情」这一项;没有右栏摘要卡。
  • 滚动左栏,右边不动;切换右边的页签,左栏的滚动位置不变。
  • 同一条记录在抽屉里打开:第一个页签是字段,其后是子表页签,和现在一致。
  • 把窗口从 1440 拖窄到出现右栏的档位以下:左栏变回第一个页签,当前选中的页签不丢。
  • 一个没有子表、关闭了附件和动态的对象:整页字段撑满多列,没有页签条。
  • 字段 30 个以上的对象:左栏可以滚到底,收起的分组保持收起。
  • 正在审批、当前人不是审批人:记录名旁有「审批中」标签,点它右边切到「审批」页签。
  • 刷新、从链接直接打开,都是同样的结果;带页签参数的链接仍然打开对应页签。

Reader: domain:ui 车道。ui/packages/plugin-detail/src/RecordPageColumns.tsx、ui/packages/plugin-detail/src/synth/recordPageColumns.ts、ui/packages/plugin-detail/src/RecordSummaryRail.tsx、ui/packages/app-shell/src/views/RecordDetailView.tsx。

Dedupe: 记录页 左栏 钉 页签、记录页 右栏 取消(objectstack,open)→ 0。相邻:#35835、#35853、#35854(关系见上)。

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · wide full-page record: the first tab (fields) pinned left, the other tabs on the right, fields fill the page when no other tab exists, right-column summary cards removed (figure 41); child of topic #35590, maintainer: 「记录页图 41 的方向定了,立卡」 → p2 as set by the coordinator · size M.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T14:07Z · area b1-R2 (epic #35590 child; the maintainer set the fig. 41 direction on the epic).
    Area: b1-R2
    Session: session_01L6bhgUZTwDqtEFzNFCVTri (card thread)
    Account: os-sales
    Branch: claude/project-thread-j77l7i
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: plugin-detail RecordPageColumns.tsx, synth/recordPageColumns.ts (the pin rule), RecordSummaryRail.tsx (removed; the ?related=approvals|attachments values, the approval badge rows and the attachment count move to a small file with the same values), defaultRecordPage.ts, DetailSection.tsx, RecordTabRow.tsx, a left-column resize handle; app-shell RecordDetailView.tsx (full-page flag, left-width preference, the rail toggle and its shortcut removed, the activity peek, the approval chip step) and the workspace preference key; detail.recordTabOverview text in every locale plus one approval-chip string; tests, changeset. No packages/spec, no governed surface, hand-written record pages untouched.
    Container & model: L, card thread, model: opus, effort: high
    Clause-②: yes (widening) (optional RecordPageColumns props; rightColumn / rail kept and marked deprecated rather than removed; the seat runs the declaration-face L2)
    Metadata-protocol: none
    Premise (thread, read on main 493ad095, file build-seat1/35890/premise-read.md in the project folder): holds. The tiers measure the record-page container, not the window: under 760 one column, 760 adds a 320 rail, 1120 is the wide tier with a 380 rail. RecordSummaryRail has one caller and is not exported.
    Basis: card #35890 (fig. 41, the maintainer: 「记录页图 41 的方向定了,立卡」); epic #35590.
    Scope, the seat's reading: the card's six items and the coordinator lines. Pinned only on a full page, at the wide tier, with at least one other tab, and when no field group carries a master-detail table (#35889). Left column 400, draggable from 320 up to leaving 400 on the right, the dragged width kept per person per object in workspace preferences. The first tab is renamed 「详情」. The 「审批中」 chip from #35593 gains 「 · 当前步骤」. Narrowing out of the pinned layout writes the implied right tab into the URL so the selection is kept. The right-rail toggle goes with the rail. With the comment panel (#36075) open, the record page gives way and lands in whichever tier its container now fits; neither side needs to know about the other.
    Open: which container width counts as "wide". The card's coordinator line says "the width where the right rail appears today" (760); the thread proposes the existing wide tier 1120, because at 760 a 400 left column leaves 288 for a full related list (#35892). The cost is that at 1280 and 1440 windows, opening the comment panel drops the page back to tabs. This goes to the maintainer; the thread writes 1120 as one constant until then.
    Resume-from: none
    Fold-or-serial: parallel with #35892 (the right column's tab content), #36075 (whichever merges second resolves RecordDetailView.tsx), #35923, #36095. overlap-check.mjs before each push. L1 at L1-c. The PR carries Fixes #35890.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T14:24Z · #35890 (and #36075's open item 7): when the record page pins fields left (reviewed by fable first)

    At 2026-11-21T14:24Z the maintainer picked option A on the seat's decision card, "pin whenever it fits, the left column narrows on its own": the record page pins the fields column whenever its container fits a left column of 320 plus a right side of 400 (about 792 with gaps and padding). When space is tight the left column narrows from 400 toward 320 on its own; only when even that does not fit does the page fall back to tabs. Both numbers are the card's existing drag bounds, so no new design number is introduced.

    This replaces the coordinator line "the width where the right rail appears today" (760) and the thread's interim 1120. What users see: on the common 1280–1755 laptop windows, opening the comment panel (#36075, gives way at windows ≥ 1280) keeps three columns side by side, fields | tabs | comments, with the related list about 400–466 wide; it does not jump back to tabs. Below a window of about 1168 with the panel closed, the page also pins (1024 → right side about 504).

    On #36075 this closes item 7 (待定) and the first "not checked" line: the approved mock-up's three columns stand, with the real middle width about 400 rather than the 600 the mock-up drew. #36075's "gives way at 1280" is unchanged.

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    提醒(2026-11-21T16:40Z):维护者 2026-11-22 定了「字段区统一成一列、三处共用一个组件」,新卡 #36147 管这件事。

  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    座位回复 · 2026-11-21T21:04Z · 回 7065828359(共用字段区组件谁出):本卡和 #36147 都在本席位,已对齐。

  9. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat note · 2026-11-21T22:00Z · ruling 7064066204's rule is unchanged (pin when 320 + 24 + 400 fit). But with the maintainer's #36112 F1 answer (sidebar expanded from 1280), windows of about 1280–1475 with the sidebar expanded drop to the tab row when the comment panel opens; collapsing the sidebar restores fields | tabs | comments. The maintainer chose this knowing the cost, which the F1 card stated. PR #36136's measured table (evidence 7069589957) shows the same boundary at 1440 with the nav open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions