Skip to content

自定义记录页只在电脑整页生效:手机和右侧预览一律用平台标准记录页 #36150

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

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

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

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

对象配了自定义记录页时,手机和右侧预览里也用自定义的那一套(RecordDetailView.tsx 里 assignedPage 的分支;默认页的手机头部只在 !assignedPage 时才用)。

  • HotCRM 的线索配了自定义页。手机上:两列重点字段、每个字段旁边一支铅笔、值被截断(邮箱只显示「mira.costa…」)、页签是「详情、相关、活动、历史」,子表都塞在「相关」里。
  • 没配自定义页的对象(测试应用的销售商机),手机上是平台默认页:字段一列、页签「概览、跟进记录、动态」。

现状:HotCRM 线索在手机上,用的是自定义页

现状:没配自定义页的对象在手机上,平台默认页

要做的

  1. 自定义记录页只在电脑整页生效。手机整页、电脑右侧预览(抽屉)里,一律渲染平台标准记录页,不管这个对象有没有配自定义页。
  2. 「不生效」的只是版面(几列、区块怎么摆、放了哪些组件)。下面这些和版面无关,标准页里照常遵守:
    • 对象上配的字段分组和顺序;
    • 字段的权限、显示条件;
    • 对象上的动作按钮;
    • 有哪些子表(每张一个页签);
    • 阶段、审批状态。
  3. 没有例外开关:不提供「这个自定义页在手机上也用」的选项。
  4. 电脑右侧预览里「打开整页」照常;打开后是自定义页。
  5. 开工前先列清单贴在卡上:现在的自定义页上,有哪些东西是只能在页面上配、对象上配不了的(比如只挂在页面上的动作、只在页面上声明的子表或区块)。这些东西按本卡做完会在手机和预览里消失。清单出来后有需要保留的,先在卡上问,不要自行决定。

不做的

  • 不改电脑整页上自定义页的任何行为。
  • 不改 Studio 里设计记录页的界面。
  • 不改 HotCRM 这类应用包(hotcrm#2720 是包那边的事)。
  • 不做「按宽度自动把自定义页压成一列」这种适配。

验收

  • HotCRM 的线索,手机宽度下打开一条记录:是平台标准页——字段一列、没有两列重点字段、没有铅笔;页签是「详情、各张子表、动态」。
  • 同一条线索在电脑上从列表侧边打开:预览里同样是标准页。
  • 同一条线索在电脑上整页打开:还是 HotCRM 的自定义页,和改动前一样。
  • 线索上的动作(如「确认线索」)在手机和预览里仍然能找到、能用。
  • 没有权限看的字段,在标准页里同样看不到。
  • 没配自定义页的对象:三处都和改动前一样。
  • PR 正文附 HotCRM 线索在手机、预览、整页三处的截图,以及第 5 项的清单和处理结果。

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

维护者定的是「自定义记录页在手机和右侧预览里不生效、统一用标准页」。下面是协调席补的:

  • 第 2 项「不生效的只是版面」和列出的五样照常遵守的东西。
  • 第 3 项没有例外开关。协调席给过两种做法(没有例外;或者自定义页可以声明手机也用),建议前者;维护者的原话没有提例外,按没有例外写。
  • 第 5 项开工前先列清单。

没有核对的

  • 自定义页里有没有只能在页面上配的东西,没有逐项查。这是本卡最大的不确定,所以有第 5 项。
  • HotCRM 有几个对象配了自定义记录页,没有数。
  • 自定义页里声明的页签(如 HotCRM 的「活动」「历史」)对应的内容,标准页里有没有等价的位置,没有对。

Reader: domain:ui 车道。ui/packages/app-shell/src/views/RecordDetailView.tsx(assignedPage、phonePage、embedded 几个分支,约 :4245、:4460、:5134)、recordPagePayload.ts、recordDetailSections.ts。

Dedupe: 自定义 记录页 手机、authored record page phone(objectstack,open)→ 0。相关:hotcrm#2720(HotCRM 手写记录页回到平台默认结构,进行中)。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 21, 2026
  2. 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 · a custom record page applies only to the desktop full page; phone and side preview always use the platform standard record page; topic #35590 → p2 as set by the coordinator · size S.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    卡第 5 项要的清单(2026-11-21T16:53Z)。卡线程 session_01L6bhgVHYk1S4MD4WibYGKk 读的是代码,没开浏览器。第 3 节的 F1–F7 先交 Fable 审读,再请维护者定,线程不会自己拿主意。定下来之前不写代码。

    线程 session session_01L6bhgVHYk1S4MD4WibYGKk · 分支 claude/project-thread-0slbpo · 读的树:objectstack origin/main @ f5553525,HotCRM origin/main @ 1468877(另读了 HotCRM 245489e,卡上截图量的那一版)。按代码读,没开浏览器。
    预计 Clause-②: no(不改导出和类型),Metadata-protocol: semantic(手写整页的含义变了:只在电脑整页生效),changeset @object-ui/app-shell minor。

    0. 先更正卡上的两个前提

    1. HotCRM 主干已经没有手写记录页了。 hotcrm#2671(chore: version packages #2382,11-18 23:57Z 合并)把线索、商机、工单、客户四张手写页退成了平台默认页,线索、工单只留告警横幅(kind: 'slotted' 的 alerts 插槽)。HotCRM 主干的 7 张记录页:5 张是插槽页(线索、工单、项目、报价、合同),2 张是打印页(报价、合同,不是默认页,只在打印和命名路由用)。手写整页(kind: 'full' 且会被分配)一张都没有。
    2. 电脑上从列表点记录,默认就是开右侧预览(recordAction 缺省 drawer)。所以本卡之后,电脑用户平常看到的也是标准页,手写页只在「打开整页」或直接访问网址时出现。卡第 4 项是这么写的,这里只是提醒影响面比"手机"大。

    1. 仓库里的手写记录页(9 张,全是 kind: 'full' + 默认页)

    每行:页面上有、对象上配不了的东西 → 本卡之后在手机和预览里变成什么。电脑整页全部不变。

    showcase(演示应用,4 张)

    页面 只在页面上的东西 手机 / 预览里
    项目 project-detail ①「Tasks」页签:可行内编辑的任务表格(record:line_items,一起保存) ② 字段分三节(概况 / 财务 / 时间),对象没有字段分组 ③ 自选的重点字段条 ④ 页尾讨论区 ① 没了。任务还在,走主从关系的默认子表(只读,除非对象的字段分组点名这张表,#35889 裁决 B) ② 变成一组不分节的字段 ③ 换成对象的默认重点字段 ④ 评论去「动态」页签(手机)或评论栏(预览,#36114 合并后)
    任务 task-detail ①「评审中」提示横幅 ② 「重新估算」按钮(record_section 动作,标准页不画这一类) ③ 字段分三节,对象没有字段分组 ④ 阶段条 ① 没了 ② 没了,手机和预览里找不到这个动作 ③ 不分节 ④ 换成标准页头部的阶段标签菜单(来自状态字段的选项,对象层面,保留)
    设置 settings 字段分两节(外观 / 通知);这页故意没有头部和页签 不分节;多出标准头部和「动态」等页签
    发票 invoice-document(打印页,也是默认页) 抬头、页脚文字,打印用的明细表,「打印」按钮 标准页;没有「打印」按钮(只有页面声明了 print 才给)。明细行还在,走主从子表

    平台自带(5 张)

    页面 只在页面上的东西 手机 / 预览里
    审批请求 sys_approval_request record:approval_decision 整块:同意 / 驳回 / 回复按钮、提交时的业务记录原样、改了什么、审批进度栏 全没了。决策按钮是 record_section 动作,标准页不画。审批人在手机上从审批页签打开一条请求,看不到记录内容,也不能在页面上同意或驳回(收件箱面板里的就地同意 / 驳回还在)。电脑上从列表点开(预览)也一样
    用户 sys_user ①「安全」页签(只本人可见):改密码、改邮箱、两步验证开关和备用码、重发验证邮件、注销账号,都是 record_section 动作 ②「权限集」页签里的有效权限块 ③「AI 助手」页签(平台管理员) ④ 本人邮箱未验证的提示横幅 ⑤「业务单元」列表的「添加」选择器 ⑥ 11 个页签只挑了 9 张子表,列、排序、条数都定了 ①–⑤ 全没了 ⑥ 标准页按关系把所有指向用户的子表各开一个页签:仓库里约 59 个查找字段指向 sys_user(去掉创建人 / 修改人 / 负责人后),按读权限过滤后管理员仍会看到几十个页签。#35897(PR #35923,未合并)落地后对象才能用 relatedLists 限定哪些子表成页签
    组织 sys_organization 成员 / 邀请 / 团队三个页签,列和排序定了 三张都还在(都是查找关系),但标准页还会把另外约 20 个指向组织的子表也开成页签;列和排序换成子对象默认的。讨论:对象关了评论,两边都没有
    队列 sys_queue 「成员」列表:sys_queue_member.queue 是存名字的文本字段,不是查找关系 没了(标准页只认查找关系)。页尾讨论区 → 动态 / 评论栏
    审计日志 sys_audit_log ① 「同一记录的变更」列表(按 record_id 文本值配对,不是关系) ② 字段分五节(事件 / 目标 / 变更 / 客户端 / 上下文),对象没有字段分组 ① 没了 ② 不分节。讨论区 → 动态 / 评论栏

    HotCRM

    • 主干:手写整页 0 张,见第 0 节。插槽页的内容(线索、工单的告警横幅,项目「概览」里的甘特图)今天就画在标准页上,本卡不动(见问题 F7)。
    • 245489e(卡上量的那版,也是已经装出去的老包):线索、商机、工单三张手写整页。页面独有的是:告警横幅两三条、阶段条、「相关」页签里的折叠面板(3 张子表挤在一起)、「活动」页签(带输入框的 record:activity)、「历史」页签(record:history)、商机的右栏 record:reference_rail。手机 / 预览里:横幅没了;阶段条换成阶段菜单;子表各一个页签;活动和历史合进「动态」页签(含变更)。这正是卡要的效果。

    2. 评论去哪(和 #36075 方案 C 的关系)

    3. 需要先定的问题(交席位 → Fable → 维护者,线程不自己定)

    • F1 审批请求页(建议保留,最要紧):按卡做,手机审批人打开请求页不能同意 / 驳回,也看不到提交的记录。建议:审批请求的标准页也画审批决策块(宿主已经认这个对象,卡第 2 项本来就要保留"审批状态"),不是作者开关。备选:平台自带的这一页不在本卡范围,等它有对象层面的位置。
    • F2 用户页(建议本卡先不动这一页,或者接受损失):手机 / 预览里会丢掉安全设置、有效权限、AI 助手,还会冒出几十个子表页签。建议:等 relatedLists 管记录页页签的显示和顺序:声明了就只显示列出来的;附件、审批、动态用对象名 sys_attachment、sys_approval_request、sys_activity 列进来 #35897 让对象能限定页签、record_section 动作在标准页有位置之后再纳入;本卡期间这一页照旧。备选:照卡做,接受损失。
    • F3 record_section 类动作(建议保留):标准页不画这一类动作,所以任务的「重新估算」、用户安全设置的按钮、审批决策都会在手机和预览里找不到。卡的验收要求"动作仍然能找到、能用"。建议:标准页把对象的 record_section 动作放进头部的「⋯」菜单。注意这同时改了所有默认页(今天默认页也不画这一类),要维护者点头。备选:接受这些动作只在电脑整页上有。
    • F4 队列成员、审计日志"同一记录的变更"(建议接受):两张列表按文本值配对,对象层面声明不了,手机和预览里会消失。建议接受,记一张后续卡。
    • F5 命名记录页网址(/record/:id/page/:页面名)在手机上(建议照旧打开那张页):网址点名了页面(打印页、文档页都这么打开),建议手机上照旧画它,只有"对象默认分配的页"改用标准页。备选:手机上也一律标准页。
    • F6 发票这种"默认页就是打印页"(建议接受):手机和预览里没有「打印」按钮,要打印得打开整页。
    • F7 插槽页(建议保留):卡只说手写页(assignedPage 分支)。插槽页今天就是标准页加几块内容(HotCRM 线索 / 工单的告警、项目的甘特图),建议三处都照旧保留这些插槽。备选:手机和预览里连插槽也不要。

    4. 做法草图(定了再写)

    • RecordDetailView 一处判断:embedded(抽屉、分栏预览、界面页预览)或手机整页时,不取对象分配的手写整页,走标准页(buildDefaultPageSchema)。usePhoneViewport 提到分配之前。电脑整页、「打开整页」不变。
    • F1 / F3 / F5 / F7 按裁决加或不加。
    • 测试:手写页在手机、抽屉、电脑整页三处;没手写页的对象三处不变;字段权限、对象动作在标准页照旧。文档 content/docs/ui/pages.mdx 加一句。
    • 大小:不含 F1 / F3 约 M;加 F1、F3 接近 L。
  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T17:01Z · area b1-R2 (epic #35590; taken from the mailbox, record 7065854971).
    Area: b1-R2
    Session: session_01L6bhgVHYk1S4MD4WibYGKk (card thread)
    Account: os-sales
    Branch: claude/project-thread-0slbpo
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: app-shell RecordDetailView.tsx (the assignedPage branch: an authored full page draws only on the desktop full page; phone and the side preview take the standard page), recordDrawerStack as needed; tests; content/docs/ui/pages.mdx; changeset.
    Container & model: M/L, card thread, model: opus, effort: high
    Clause-②: no (expected: no export or type change; re-measured on built declarations before push)
    Metadata-protocol: semantic (what an authored full record page means changes: it applies on the desktop full page only). Changeset minor on @object-ui/app-shell per ruling A.
    Premise (thread, read on main f5553525, file build-seat1/36150/premise-item5.md in the project folder): item 5's list is posted on this card. Two corrections to the card: HotCRM main has no authored full record page since hotcrm#2671, so the lead screenshots on the card show an older package; and on desktop a list click opens the side preview by default, so desktop readers also see the standard page unless they open the full page.
    Basis: card #36150; epic #35590.
    Scope, the seat's reading after a Fable review (build-seat1/36150/fable-decisions.md): named-page URLs (print and other named routes) keep drawing that page everywhere (objectui#12715); slotted pages are already the standard page plus slots and are untouched; only the assignedPage full-page branch changes. Two questions are with the maintainer on decision cards: (1) whether the approval request page and the user page keep their own page on phone and in the preview (recommended: both keep it; the approval page carries the only decision actions and the maintainer set it on 11-17 to show the full record); (2) the rest as a bundle (recommended: record_section actions are not drawn on the standard page, authors add record_more; queue members and the audit "same record" list stay full-page only with a follow-up card; the invoice print button stays full-page only; evidence moves to the showcase project page with HotCRM main as the no-change control). The thread builds the recommended options until the answers and amends nothing it cannot undo.
    Resume-from: none
    Fold-or-serial: overlap with #36114 (#36075), #36136 (#35890), #36129 (#35892) and #36147 on RecordDetailView.tsx. overlap-check.mjs before each push; whoever lands later merges main. L2 at CONTRACT_REVIEW_TIER (the Metadata-protocol: semantic line makes it a contract face); L1 at L1-c. The PR carries Fixes #36150.

  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:26Z · #36150: whether the approval request page and the user page take the standard page on phone and in the preview (reviewed by fable first)

    At 2026-11-21T17:26Z the maintainer picked option A on the seat's decision card, 「两页都照旧,其余按卡」: both pages keep their own page on phone and in the side preview. The other platform pages (organisation, queue, audit log) follow the card and take the standard page there.

    The bundle question (record_section actions, queue members and the audit list, the print button, the evidence source) is a separate card and is still open.

  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T17:27Z · #36150: the remaining items as a bundle (reviewed by fable first)

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

    1. The standard page does not draw record_section actions; the spec defines them as drawn inside a page body section. An author who wants an action on phone and in the preview adds record_more. The showcase task's re-estimate action gets record_more in this PR, and content/docs/ui/pages.mdx says so.
    2. The queue's members list and the audit log's "changes to the same record" list are not shown on phone or in the preview. The seat files a follow-up card so that a list paired by text value can be declared on the object.
    3. An object whose default page is a print page shows no Print button on phone or in the preview; to print, open the full page.
    4. The organisation page takes the standard page. Its three related lists remain, and about 20 more lists that point at the organisation also appear as tabs, until relatedLists 管记录页页签的显示和顺序:声明了就只显示列出来的;附件、审批、动态用对象名 sys_attachment、sys_approval_request、sys_activity 列进来 #35897 lets an object limit its tabs.
    5. The acceptance evidence uses the showcase project page on all three surfaces, with HotCRM main as the no-change control (HotCRM main has no authored full record page since hotcrm#2671).

    Named-page URLs (print and other named routes) keep drawing that page on every surface (objectui#12715), and slotted pages are untouched; neither needed a ruling. Together with ruling 7066490078 this closes every open question on the card.

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