Skip to content

记录页布局开关:对象新键 pinOverview,控制概览在宽屏整页是否钉到左栏 #37792

Backlog

Description

@objectstack-fleet

epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

Filing gate: ① maintainer-asked. Jack in the seat thread, 2026-11-27: 「现在记录详情页可以配置不按左右栏显示吗?」 (03:34Z); 「我觉得这个应该是一个元数据的配置项吧,这种应该是常见需求。」 (03:36Z); 「我能够具体配置每一个页签显示哪些分组吗?然后还有一个开关控制第一个页面要不要pin到左侧」 (03:40Z); 「是否建议保留 relatedList 这个语法」 (03:51Z, no rename); 「同意,立卡 p1」 (03:52Z); 「刚才的任务以及你现在的建议用 fable 评审」 (03:55Z); decision card 04:07Z: 「例外 + 新键 fieldTabs」 (ADR-0085 ruled exception; field tabs as a sibling object key, relatedLists untouched; three cards S, S–M, M).
Fable review (code-verified at objectstack 3ed97b7): /mnt/project-files/record-page/fable-review.md. Trigger app: brightrule policy record (long 正文 in a 276 px value cell).
Grading: domain:ui · Task · p1 · size S–M · reach: objects that declare it (absent = unchanged).
Dedupe: searched single column record page, pinned details, 35890, 左栏: only the closed design cards #35590 / #35890 / #36147 / #36226.
Blocked-by: #37800 (ADR-0085 Note, AGENTS.md rule 13). Scope narrowed 04:10Z after the Fable review: field tabs moved to #37802 (fieldTabs); long-text reading style is #37801, relatedLists untouched.

维护者速读

  • 是什么:对象上新增 pinOverview: boolean。不写或 true 是现在的行为(宽屏完整页把字段概览钉在左栏);false 时不钉,概览是第一个页签并默认打开,字段区按宽度排 1–3 列。
  • 影响:只影响桌面完整的标准记录页;侧边预览、手机本来就不钉,不受影响。编辑表单不变。
  • 要你做什么:无。

Background (verified at objectstack 3ed97b7, Fable review fact table)

  • recordPagePinsDetails (ui/packages/plugin-detail/src/synth/recordPageColumns.ts:180-188) pins when: full page, content ≥ RECORD_PAGE_PIN_MIN_WIDTH (744, :167-168), another tab exists, and the overview holds no record:related_list table (from a field group or from an FK relatedList: 'primary', :187). Used at ui/packages/plugin-detail/src/RecordPageColumns.tsx:601 (plus otherTabs.length > 0). The file header (:37-45) says the layout is derived, never declared by metadata.
  • No metadata switch today. Single column happens only as a side effect: a body table in the overview, no other tab, width < 744, or an authored kind: 'full'|'html'|'react' page (packages/spec/src/ui/page.zod.ts:2151, :2165).
  • When the overview has other tabs beside it, the fields are capped to one "field list" column (RecordPageColumns.tsx:607, :792, 记录的字段区统一成一列:右侧预览、手机记录页、宽屏左栏共用一个组件,不管多宽都只排一列;分组箭头在右 #36147); a page with only the overview lays fields out in 1–3 columns by width.
  • Reader preferences: tab arrangement and the dragged left-column width live in workspace preferences (ui/packages/app-shell/src/views/RecordDetailView.tsx:1446, :1454).

What to do

  1. spec ObjectSchema.pinOverview: z.boolean().optional(). Absent or true = today. false = the desktop full standard record page never pins. Description says it affects only the desktop full standard record page; the side preview, phone, print pages and kind: 'full'|'html'|'react' pages do not read it. Not on ObjectExtensionSchema and not in CUSTOM_ARRANGEMENT_KEYS (field-customization.ts:128) in v1 (an admin toggle on installed objects is a later card).
  2. ui: thread the key to RecordPageColumns (from RecordDetailView.tsx near :6552); pinOverview === false makes the pin decision false. When not pinned on a full page, the overview is the first tab and opens by default, and its fields lay out in 1–3 columns by width like an overview-only page (seat decision, Fable's recommendation: one column at 850 px would leave the page mostly empty).
  3. Rewrite the recordPageColumns.ts:37-45 header: derived by default, with one declared exception (pinOverview, ADR-0085 Note). Leave the ADR id in the code.
  4. Liveness ledger (packages/spec/liveness/object.json) enforced in this PR (ADR-0049); gen:schema / gen:docs / gen:api-surface; changeset (@objectstack/spec minor, Metadata-protocol: added; ui as usual).

Acceptance

  • spec: absent / true / false parse; a non-boolean is refused; extension refuses the key.
  • ui unit: wide full page pins when absent and not when false; with false the default tab is the overview and fields use the width-based columns; the side preview is identical with and without false.
  • Browser (dogfood-verification skill): an object with pinOverview: false, desktop full page and side preview screenshots.

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 27, 2026
  2. changed the title [-]记录详情页布局可用元数据配置:不分左右栏(detailsPlacement),字段分组放进右侧页签(relatedLists 认 { group })[/-] [+]记录详情页布局可用元数据配置:概览是否钉左栏(pinOverview),每个页签放哪些字段分组(relatedLists 字段页签)[/+] on Nov 27, 2026
  3. changed the title [-]记录详情页布局可用元数据配置:概览是否钉左栏(pinOverview),每个页签放哪些字段分组(relatedLists 字段页签)[/-] [+]记录详情页布局可用元数据配置:relatedLists 改名 recordTabs 并可放字段分组页签,概览是否钉左栏(pinOverview)[/+] on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

    On hold 2026-11-27T03:46Z: Jack in the seat thread, 2026-11-27 03:46Z: 「现在知识讨论方案, 不要开发哦」. The design on this card is still under discussion; no seat claims or develops it until the seat lifts pm:on-hold after Jack's go-ahead.

  5. added
    pm:on-hold
    on Nov 27, 2026
  6. changed the title [-]记录详情页布局可用元数据配置:relatedLists 改名 recordTabs 并可放字段分组页签,概览是否钉左栏(pinOverview)[/-] [+]记录详情页布局可用元数据配置:relatedLists 可放字段分组页签,概览是否钉左栏(pinOverview)[/+] on Nov 27, 2026
  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

    Go-ahead 2026-11-27T03:53Z: Jack in the seat thread, 2026-11-27 03:52Z: 「同意,立卡 p1」, after agreeing to keep the relatedLists name (03:51Z). Hold lifted → pm:queue (lane domain:ui), priority p1. The body is the final design (no rename; field-tab entry in relatedLists + pinOverview). Framework card not started by this seat → objectstack#1's queue per Jack's 03:28Z hand-off rule.

  8. added
    pm:queue
    priority:p1
    and removed
    pm:on-hold
    priority:p2
    on Nov 27, 2026
  9. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

    On hold 2026-11-27T03:56Z: Jack 2026-11-27 03:55Z: 「刚才的任务以及你现在的建议用 fable 评审」. A Fable review of this card is running (output: /mnt/project-files/record-page/fable-review.md); the body may change.
    Restart-when: the review is folded into this body; the seat then moves it back to pm:queue at p1.

  10. added
    pm:on-hold
    and removed
    pm:queue
    on Nov 27, 2026
  11. changed the title [-]记录详情页布局可用元数据配置:relatedLists 可放字段分组页签,概览是否钉左栏(pinOverview)[/-] [+]记录页布局开关:对象新键 pinOverview,控制概览在宽屏整页是否钉到左栏[/+] on Nov 27, 2026
  12. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

    State 2026-11-27T04:11Z: Jack 04:07Z chose 「例外 + 新键 fieldTabs」 after the Fable review. Body rewritten to the pinOverview-only scope (field tabs → #37802, long-text style → #37801).
    Blocked-by: #37800

  13. added
    pm:blocked
    and removed
    pm:on-hold
    on Nov 27, 2026
  14. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · priority:p1 · pm:blocked · size M; rationale: record page layout switch, a new object key pinOverview that controls whether the overview pins to the left column on a wide page. Maintainer-asked, p1 as filed. It carried both pm:on-hold and pm:blocked; one state stays (pm:blocked on its named Blocked-by: #37800). area:ux added.

  15. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Carrier note 2026-11-27T15:50Z, from #37800 (PR #38010, contract record 7222395316, nit N3). The ADR-0085 Note dated 2026-11-27 says that neither pinOverview nor the object-level fieldTabs is in the spec yet. When this card lands its key, add a Built by #<this card> line to the end of that Note, as the actionLayout Note ends with "Built by #36629", so the sentence does not go stale.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:uienhancementpm:blockedpriority:p1

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions