Skip to content

记录的字段区统一成一列:右侧预览、手机记录页、宽屏左栏共用一个组件,不管多宽都只排一列;分组箭头在右 #36147

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者说过的(2026-11-22)

  • 看着 Twenty 的窄屏记录页:「手机记录页是不是应该和,电脑端右侧drawer预览的效果,和宽屏左侧记录预览效果一致,只显示一列,」「而且可以切换子表」
  • 「字段区统一成一列、三处共用一个组件,我同意」
  • 「手机上那块两列的「重点字段」去掉,好像本来就不应该有」
  • 「现有的右侧界面也要看看如何进一步优化」
  • 看过效果图(设计板图 48)和协调席加的五条后:「可以,立卡」
  • 「自定义记录页在手机和右侧预览里不生效、统一用标准页」
  • 「字段分组下拉的位置,我觉得放在右边比较好看,你看右侧浏览器」

现状(界面 db9e34ad32、服务端 18.6.0,本机环境浏览器实测)

平台默认的记录页按容器宽度排字段(ui/packages/app-shell/src/views/RecordDetailView.recordPageTiers-26678.test.tsx 里写的规则):宽度 ≥1120 三列,≥760 两列,小于 760 一列。

三处宽度都在三四百到七百之间,却不是同一个样子;预览拉宽一点就会从一列变两列。

现状:右侧预览里字段两列,值被截断

现状:平台默认的手机记录页,已经是一列

参照(Twenty 窄屏记录页、Attio 侧边记录面板,只参照行为)

字段一列,一行一个:左边图标加字段名,右边是值;按分组显示,分组标题在左、折叠箭头在最右。

效果图(设计板图 48,维护者已同意)

右侧预览:字段一列

手机记录页和宽屏左栏:同一个字段区

要做的

  1. 一个字段区组件,三处共用:电脑右侧预览(抽屉)、手机记录页的「详情」页签、宽屏整页的左栏(记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890)。
  2. 不管容器多宽,这个字段区都只排一列。一行一个字段:字段名在左(固定宽度,灰色小字),值在右,值可以换行、完整显示,不截断。
  3. 分组:分组标题在左,折叠箭头在最右;点整行折叠或展开。没有分组的字段排在最前,不画分组标题。
  4. 关联记录的值显示成带对象色块的小块,不是蓝色文字;点小块打开那条记录。
  5. 空字段默认收起:这一列最后一行「显示 N 个空字段」,点了展开。
  6. 系统信息:创建人、创建时间、修改人、修改时间、记录编号,收进最下面一个叫「系统信息」的分组,默认收起。现在它们在页面底部一行小字里。
  7. 点值直接改:字段旁边不放铅笔图标;能改的字段点值进入编辑,不能改的点了没反应。(就地编辑的行为沿用现有的,本卡只管入口的样子。)
  8. 手机记录页上不出现两列的重点字段块(平台默认页现在已经没有;本卡保证换成新组件后也没有)。

不做的

  • 不改记录页的页签规则(每张子表一个页签,已定)。
  • 不改整页没有左栏时的多列排法。
  • 不改预览的宽度、头部按钮(另卡)。
  • 不改编辑、保存的逻辑。
  • 不处理自定义记录页(另卡)。

验收

  • 电脑上从列表在侧边打开一条记录:字段一列。把预览拖宽到 900:仍然一列。
  • 「所属客户」的值完整显示,是带色块的小块;点它打开那个客户。
  • 手机宽度下打开同一条记录:「详情」页签里的字段排法和预览里相同(同样的行、同样的分组、同样的顺序)。
  • 宽屏整页(记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890 合并后):左栏的字段排法和上面两处相同。
  • 有分组的对象:分组标题在左、箭头在最右;点了折叠,再点展开。
  • 有空字段的记录:最后一行「显示 N 个空字段」,点了出现。
  • 「系统信息」分组默认收起,展开后有创建人、创建时间、编号。
  • 字段旁边没有铅笔图标;点可编辑字段的值能改。
  • PR 正文附预览、手机两处的改动前后截图。

协调席自己加的(不是维护者原话)

维护者定的是:一列、三处共用、分组箭头在右、去掉两列重点字段。下面是协调席补的,维护者看过效果图说了「可以,立卡」:

  • 第 4 项关联记录显示成小块。
  • 第 5 项空字段收起。
  • 第 6 项系统信息分组。
  • 第 7 项去掉铅笔、点值直接改。
  • 第 2 项里「没有左栏时仍按宽度排多列」不在范围内。

没有核对的

Reader: domain:ui 车道。ui/packages/app-shell/src/views/RecordDetailView.tsx(按宽度分档的逻辑)、recordDetailSections.ts、ui/packages/plugin-detail(字段区的画法)、record-detail-system-fields.ts、RecordMetaFooter。

Dedupe: 抽屉 字段 一列、记录 抽屉 两列、手机 记录页 字段(objectstack,open)→ 都是 0。相关:#35890(宽屏左栏,进行中)、#35602(字段密排,已关闭)。

Activity

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

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    维护者指示(2026-11-21T16:42Z):协调席问「要通知 os-sales 席位派发这四张卡吗?」,维护者:「用信箱通知开发」。

  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · one single-column field area shared by the side preview, the phone record page and the wide left column, group arrows on the right; topic #35590, maintainer: 「字段区统一成一列、三处共用一个组件,我同意」 → p2 as set by the coordinator · size M.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T17:02Z · area b1-R2 (epic #35590; taken from the mailbox, record 7065854971).
    Area: b1-R2
    Session: session_01L6bhgWmyKFrcthV9y5wUiP (card thread)
    Account: os-sales
    Branch: claude/project-thread-sjuwgb
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: plugin-detail DetailSection.tsx (one column, chevron on the right, empty fields collapsed into one "show N empty fields" row, system info as the last collapsed group, single-click edit on editable values), the frameless face shared by the side preview, the phone record page and the wide-screen left column (#36136's DetailsColumnCapContext), relation chips in the object's colour; @object-ui/fields if the chip needs a small export; tests; changeset.
    Container & model: L, card thread, model: opus, effort: high
    Clause-②: yes (widening), expected: a small export or optional prop on @object-ui/fields for the coloured chip; becomes no if CSS alone does it, amended here then.
    Metadata-protocol: none
    Premise (thread, file build-seat1/36147/premise-read.md in the project folder): holds. Code starts after #36136 merges, on fresh main, not stacked.
    Basis: card #36147; epic #35590.
    Scope, the seat's reading after a Fable review (build-seat1/36147/fable-decisions.md): items 5–7 flip existing behaviour (click-to-copy on read-only rows, double-click to edit, the empty-field ratio rule, the system-info footer line from objectui#12307). They are with the maintainer on one decision card, recommended "all as the card says": read-only rows no longer copy on click (the desktop hover/focus copy icon stays; phone uses long-press selection, which the thread checks on a device); editable values enter edit on a single click; on an editable lookup the chip or link opens and the rest of the row edits (#36015 precedent). Relation chip colour follows #35985 (no question); the grey list chip is recorded on #35985 as its follow-up. The thread builds the recommended option until the answer.
    Resume-from: none
    Fold-or-serial: order #36136 → #36147 → #36151 (the phone bar removes Edit only after in-place editing here works); #36149 may run alongside, but its "click a value to edit" check needs this merged. Overlap on RecordDetailView.tsx with #36114, #36129, #36150; overlap-check.mjs before each push. Declaration L2 at TIER_DEFAULT on the green head; L1 at L1-c. Split if the PR would go over 3,000 lines. The PR carries Fixes #36147.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T17:28Z · #36147: the existing behaviours the card's items 5–7 change (reviewed by fable first)

    At 2026-11-21T17:26Z the maintainer picked option A on the seat's decision card, 「全部按卡」:

    1. Read-only fields: clicking the row no longer copies. On desktop, the copy icon on hover or keyboard focus stays. On phone there is no copy icon, and the value is copied by long-press text selection; the thread checks on a device that long-press selects the value.
    2. Editable fields: a single click on the value enters edit (it was a double-click), with no pencil. The same holds on phone (where a tap used to copy).
    3. Relation chips and links: clicking the chip or link opens it; clicking the rest of the row's value edits (the 列表格子里单击只选中:去掉邮箱、电话格里的复制按钮;链接和人员标签不在单击时跳转;关联记录标签单击在侧边打开(名称列除外) #36015 precedent).
    4. Empty fields: one "show N empty fields" row at the end of the field area, collapsed by default, replacing the ratio rule; the open choice is remembered per object.
    5. System info: the footer line (objectui#12307) becomes the last group, collapsed by default.
    6. Chip colour: the field area uses the object colour, per 对象加颜色:从固定的一小组色板里选,图标画成彩色圆角小方块里的白色图标,菜单、标题、关联标签处处同一个样子 #35985. The grey list chip is recorded on 对象加颜色:从固定的一小组色板里选,图标画成彩色圆角小方块里的白色图标,菜单、标题、关联标签处处同一个样子 #35985 as its follow-up.

    Unchanged whatever the option: one column, the same face on all three surfaces, the group chevron on the right, one save bar, field permissions and masked fields not copyable, the remembered expand state, multi-column on a full page with no left column.

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