Skip to content

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

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
    on Nov 27, 2026
  11. 11 remaining items

  12. added
    pm:queue
    and removed
    pm:blocked
    on Nov 30, 2026
  13. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

    Claim: PM loop round (seat card thread)
    Session: session_01ADHkmSAjFEZHRpRq3WCj6z
    Thread session: pending
    Account: os-steve
    Branch: pending
    Worktree: objectstack (the card thread's own container, from origin/main d042837)
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: o3-U
    File surface: packages/spec/src/data/object.zod.ts (the object-level pinOverview key) and its tests and generated references, ui/packages/plugin-detail/src/synth/recordPageColumns.ts, ui/packages/plugin-detail/src/RecordPageColumns.tsx and the record-page renderer files they feed, their tests, content/docs/** pages that document object keys or the record page, and root .changeset/37792-*.md (stop on breach; explain in the report). ⛔ docs/adr/**: the ADR-0085 Note's Built by line asked for in this card's carrier notes goes as a carrier row on #38438 after merge, so this PR stays off governed surfaces.
    Container & model: L, mode:thread, model: default, effort: high
    Clause-②: yes (widening)
    Metadata-protocol: widened
    Responsibility: the platform's object schema and record page (packages/spec, ui/packages/plugin-detail), so a platform card carries the key | no platform path covers it: an object cannot say how its record page lays out its field groups | any app whose object declares pinOverview (absent = unchanged)
    Premise: holds as filed (maintainer-asked, ruled 2026-11-27 decision card 「例外 + 新键 fieldTabs」; Blocked-by #37800 closed completed 2026-11-27T17:18Z); the thread re-measures the record-page facts of the Fable review on origin/main before code and reports a moved fact rather than building over it.
    Prior rulings read: the 2026-11-27 decision card (ADR-0085 ruled exception; field tabs a sibling object key; relatedLists untouched; no rename); the ADR-0085 Note from #37800 (PR #38010); carrier notes on this card. No conflict.
    Pre-claim lane: packages/spec/src/data/object.zod.ts → domain:spec, ui/packages/plugin-detail/** → domain:ui (file ownership only); built in this seat's card thread.
    Pre-claim deps: #37800 closed completed; no open Blocked-by:.
    Serial: First of two cards run serially in one card thread (#37792 then #37802, same record-page synth and object schema).

  14. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 30, 2026
  15. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

    Claim: PM loop round (seat card thread) · amendment 1: branch and served model
    Session: session_01ADHkmSAjFEZHRpRq3WCj6z
    Thread session: session_01ADHkmS5m6C7eVVzJhUPsav
    Account: os-steve
    Branch: claude/project-thread-j5hs80
    Worktree: objectstack (the card thread's own container, from origin/main d042837)
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: o3-U
    File surface: packages/spec/src/data/object.zod.ts (the object-level pinOverview key) and its tests and generated references, ui/packages/plugin-detail/src/synth/recordPageColumns.ts, ui/packages/plugin-detail/src/RecordPageColumns.tsx and the record-page renderer files they feed, their tests, content/docs/** pages that document object keys or the record page, and root .changeset/37792-*.md (stop on breach; explain in the report). ⛔ docs/adr/**: the ADR-0085 Note's Built by line asked for in this card's carrier notes goes as a carrier row on #38438 after merge, so this PR stays off governed surfaces.
    Container & model: L, mode:thread, model: default (served claude-opus-5-5, read by the thread from its session), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: widened
    Responsibility: the platform's object schema and record page (packages/spec, ui/packages/plugin-detail), so a platform card carries the key | no platform path covers it: an object cannot say how its record page lays out its field groups | any app whose object declares pinOverview (absent = unchanged)
    Premise: holds as filed (maintainer-asked, ruled 2026-11-27 decision card 「例外 + 新键 fieldTabs」; Blocked-by #37800 closed completed 2026-11-27T17:18Z); the thread re-measures the record-page facts of the Fable review on origin/main before code and reports a moved fact rather than building over it.
    Prior rulings read: the 2026-11-27 decision card (ADR-0085 ruled exception; field tabs a sibling object key; relatedLists untouched; no rename); the ADR-0085 Note from #37800 (PR #38010); carrier notes on this card. No conflict.
    Pre-claim lane: packages/spec/src/data/object.zod.ts → domain:spec, ui/packages/plugin-detail/** → domain:ui (file ownership only); built in this seat's card thread.
    Pre-claim deps: #37800 closed completed; no open Blocked-by:.
    Serial: First of two cards run serially in one card thread (#37792 then #37802, same record-page synth and object schema).

  16. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

    Claim: PM loop round (seat card thread) · amendment 2: Metadata-protocol added (the closed set; widened was wrong)
    Session: session_01ADHkmSAjFEZHRpRq3WCj6z
    Thread session: session_01ADHkmS5m6C7eVVzJhUPsav
    Account: os-steve
    Branch: claude/project-thread-j5hs80
    Worktree: objectstack (the card thread's own container, from origin/main d042837)
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: o3-U
    File surface: packages/spec/src/data/object.zod.ts (the object-level pinOverview key) and its tests and generated references, ui/packages/plugin-detail/src/synth/recordPageColumns.ts, ui/packages/plugin-detail/src/RecordPageColumns.tsx and the record-page renderer files they feed, their tests, content/docs/** pages that document object keys or the record page, and root .changeset/37792-*.md (stop on breach; explain in the report). ⛔ docs/adr/**: the ADR-0085 Note's Built by line asked for in this card's carrier notes goes as a carrier row on #38438 after merge, so this PR stays off governed surfaces.
    Container & model: L, mode:thread, model: default (served claude-opus-5-5, read by the thread from its session), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: the platform's object schema and record page (packages/spec, ui/packages/plugin-detail), so a platform card carries the key | no platform path covers it: an object cannot say how its record page lays out its field groups | any app whose object declares pinOverview (absent = unchanged)
    Premise: holds as filed (maintainer-asked, ruled 2026-11-27 decision card 「例外 + 新键 fieldTabs」; Blocked-by #37800 closed completed 2026-11-27T17:18Z); the thread re-measures the record-page facts of the Fable review on origin/main before code and reports a moved fact rather than building over it.
    Prior rulings read: the 2026-11-27 decision card (ADR-0085 ruled exception; field tabs a sibling object key; relatedLists untouched; no rename); the ADR-0085 Note from #37800 (PR #38010); carrier notes on this card. No conflict.
    Pre-claim lane: packages/spec/src/data/object.zod.ts → domain:spec, ui/packages/plugin-detail/** → domain:ui (file ownership only); built in this seat's card thread.
    Pre-claim deps: #37800 closed completed; no open Blocked-by:.
    Serial: First of two cards run serially in one card thread (#37792 then #37802, same record-page synth and object schema).

  17. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmS5m6C7eVVzJhUPsav

    os-dev-report

    {
     "issue": 37792,
     "status": "done",
     "branch": "claude/project-thread-j5hs80",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38679",
     "session": "session_01ADHkmS5m6C7eVVzJhUPsav",
     "head": "482b7f3c70114f20301194dece23f0e5fd98891c",
     "premise_still_valid": true,
     "gates": "dispatch-gates --commands at 482b7f3c70: 128 derived; first pass 124 exit 0, 1 exit 3 (check-plugin-teardown-shape --self-test, shallow clone) and 2 exit 1 (metadata-core object-schema-fls-references.test.ts and metadata-protocol protocol.meta-types-degenerate-derivation.test.ts, both red on the new key, fixed in 482b7f3c70); after git fetch --unshallow and the fix the 3 re-ran exit 0, plus the newly derived check:durability-log-level exit 0 and the changeset gates re-run on the final changeset. --ran: 128 derived, 128 run, 0 NOT-MEASURED. Record: /mnt/project-files/objectstack-seat3/37792-gates-ran.txt. spec test 913/913 files, 28904 tests; spec typecheck 0; ui plugin-detail 423 files, 4006 tests; plugin-detail and app-shell type-check 0; check-i18n-bundles in sync. CI check-runs: not yet read (report precedes CI).",
     "line_budget": "39 files, +307 -11 (git diff --shortstat origin/main...HEAD)",
     "files_changed": 39,
     "deviations": [
      "Outside the claim's named file surface, each forced by a gate or by the card body: packages/spec/src/data/object.metadata-form.ts (metadata-form reconciliation gate: every authorable root key offered or ledgered; offered as a boolean row), packages/platform-objects translation bundles (check:i18n regeneration of that row; zh-CN hand-translated), packages/metadata-core/src/object-schema-fls-references.ts (the FLS classification map must classify every top-level ObjectSchema key), packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts (served object property count 53 to 54), ui/packages/app-shell/src/views/RecordDetailView.tsx (the host that threads the key, named by the card body), packages/spec/liveness/object.json (ADR-0049 ledger row the card asks for)",
      "Changeset levels: minor on every published package the diff moves (spec, plugin-detail, app-shell, platform-objects, metadata-core), per AGENTS.md Post-Task Checklist step 3 for kind added",
      "维护者速读 written as four lines (os-dev.md fixes four; the standard order asked six; os-dev.md wins on conflict)",
      "Browser verification (dogfood-verification, screenshots) not run in this container: NOT MEASURED, named in the PR's Acceptance notes",
      "spec full test ran before the origin/main merge (bdf49f9e); after the merge only spec build + check:generated (14/14 up to date) were re-run"
     ]
    }
  18. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

    Release · 2026-11-30T07:04Z

    PR #38679 merged as d2caaec40d73a6e8a5bc88554518f5333715ef63 and closed this card by Fixes #37792. pm:dispatched removed. The ADR-0085 note line rides #38438 (row 7271302663); the record-page skill sentence rides #38680.

  19. removed
    pm:dispatched
    on Nov 30, 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:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions