Skip to content

记录页概览:主从子表排到了主记录字段的上面,行高 65;应在字段下面、按密排行高 #35742

Closed
2 of 2 issues completed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者 2026-11-20 原话:「更新并验证」。这是验证 #35597(PR #35691)合入效果时看到的。原裁决(2026-11-19):「主从 的子表是否应该始终显示?主从的子表是否应该默认出现在概览的左侧区域?关键字段下面。」

现状(主干 598a34d043,本机环境,1280 宽,浏览器实测)

对象「会议」,它的主从子表是「待办事项」,会议没有阶段条和关键字段条:

  • 概览里第一块就是「待办事项」表格,会议自己的字段(负责人、会议日期、会议地点)排在表格下面。打开一条记录,先看到的是子表,不是这条记录本身的信息。
  • 子表每行高 65(实测),主记录字段是每行 32 的密排,两者不一致。
  • 表格右侧被容器裁掉,「备注」列只露出一半,要在表格里横向滚动。
  • 没有数字列,所以看不到合计,这一点无法在这个对象上验证。

现状:待办事项表格排在会议字段的上面

说明:本机环境只替换了界面,服务端仍是较早的固定版本;#35691 同时改了规范。位置和行高是界面行为,实现方请在完整环境里确认一次。

要做的

  • 概览左侧的顺序:阶段条(有的话)→ 关键字段条(有的话)→ 主记录的字段分组 → 主从子表。没有阶段条和关键字段条的对象,字段分组在最上面。
  • 「更多详情」这类默认折叠的分组排在主从子表后面还是前面,由实现方按「常用字段在子表前」的原则定,并在 PR 里说明。
  • 主从子表的行高与列表的密排一致(33),表头 32。
  • 表格宽度不超出左栏;列放不下时按列的优先级省略或在表格内滚动,但不出现半截的列。

不做的

验收

  • 「会议」这类没有阶段条和关键字段的对象:打开记录,概览最上面是会议自己的字段,「待办事项」表格在它下面。
  • 有关键字段条的对象:顺序是关键字段条、字段分组、主从子表。
  • 主从子表的数据行高 33。
  • 1280 宽下子表没有被裁掉一半的列。

Reader: domain:ui 车道。ui/packages/app-shell/src/views/buildDefaultPageSchema.ts、RecordPageColumns.tsx、主从子表的表格渲染(ui/packages/plugin-detail)。

Dedupe: 主从子表 概览 位置 字段上面(objectstack,open)→ 无同题卡;相关:#35597(已关)。

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    bug
    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 · Bug (the record Overview draws master-detail tables above the header fields at row height 65; they belong under the fields at the dense height) · from the maintainer's record-page topic #35590 walkthrough → p2 as set.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Claim · area ux-2 · 2026-11-20T07:45Z · child of #35590 (maintainer direct dispatch), a fix-up of ux-2's #35597; seat ruling 11-20 07:43Z
    Area: ux-2
    Session: session_01Utp6CZrgaiMgTJCnswR6jQ
    Account: os-bill
    Seat: repo:objectstack#5
    Branch: claude/issue-35742-overview-body-table-order (cut after #35763 lands)
    File surface: ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts (the body-table placement only: field groups before body tables), ui/packages/plugin-detail/src/RecordPageColumns.tsx (the overview left column's order, if placement lives there), the body-table renderer's row/header height and width containment in ui/packages/plugin-detail (RelatedList.tsx body-table face / record-related-list.tsx), and their tests. ⛔ Tab rules, the right rail and the header stay ux-1's / ux-4's (#35763).
    Clause-②: no
    Metadata-protocol: none
    Pre-claim deps: ux-1's PR #35763 (#35595/#35596) rewrites RecordPageColumns.tsx and buildDefaultPageSchema.ts; it is in the merge queue. Dispatch waits for it to land, and this PR merges main and goes second.
    Prior rulings read: the maintainer's 11-19 ruling on #35597 (body tables always shown, in the overview's left column under the key fields) binds; ADR-0035 as amended by #35597.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Claim: area ux-2 · 2026-11-20T09:20Z · child of #35590 (maintainer direct dispatch), a fix-up of ux-2's #35597; seat ruling 11-20 07:43Z
    Area: ux-2
    Session: session_01Utp6CZrgaiMgTJCnswR6jQ
    Account: os-bill
    Seat: repo:objectstack#5
    Branch: claude/issue-35742-overview-body-table-order (cut after #35763 lands)
    File surface: ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts (the body-table placement only: field groups before body tables), ui/packages/plugin-detail/src/RecordPageColumns.tsx (the overview left column's order, if placement lives there), the body-table renderer's row/header height and width containment in ui/packages/plugin-detail (RelatedList.tsx body-table face / record-related-list.tsx), and their tests. ⛔ Tab rules, the right rail and the header stay ux-1's / ux-4's (#35763).
    Clause-②: no
    Metadata-protocol: none
    Pre-claim deps: ux-1's PR #35763 (#35595/#35596) rewrites RecordPageColumns.tsx and buildDefaultPageSchema.ts; it is in the merge queue. Dispatch waits for it to land, and this PR merges main and goes second.
    Prior rulings read: the maintainer's 11-19 ruling on #35597 (body tables always shown, in the overview's left column under the key fields) binds; ADR-0035 as amended by #35597.

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    范围追加,来自 2026-11-20 的再次确认(主干 7878cf0557)。维护者看着这一页问:「右侧这个界面好看吗」。主从子表这一块除了位置和行高,样子上还有三处,请一并处理:

    • 框套框:外面一个圆角卡片,里面的表格又有自己的边框和圆角,两层框。改成一层:分组标题一行,下面直接是表格,用分隔线,不再套卡片。
    • 标题行的按钮太重:「全部列」「↗」「+ 新建」是三个带边框的胶囊按钮,比页面头部的「编辑」还抢眼。改成和列表视图栏一样的文字按钮或图标按钮。
    • 阅读和编辑两种状态行高差很多:阅读时每行 65,进入编辑后同一张表每行约 22。两种状态用同一个密排行高(33)。
  8. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
    os-dev-report

    {
     "issue": 35742,
     "status": "done",
     "branch": "claude/issue-35742-overview-body-table-order",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35824",
     "head": "873a23d10b0aa51d4b89034e56958bf05fb3a994",
     "session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
     "premise_still_valid": true,
     "summary": "bodyTablePlacement (plugin-detail synth) now puts master-detail body tables AFTER the field sections the page draws open: strip (key fields, stage bar; unchanged, full width) then field groups then body tables; an object with no stage or key fields opens on its own fields; group-placed tables keep their group position. Default-collapsed call: closed sections (group collapse 'collapsed', or enumerated collapsible+defaultCollapsed) that TRAIL the last open one follow the tables; a closed section between open ones keeps its place; all-closed puts the tables last. The host's 'More details' opens expanded (defaultCollapsed false) so it stays before the tables; the card calls it default-collapsed, which it is not on main. RelatedList body-table face only: BODY_TABLE_DENSITY gives a 32px header and 32px cells (no vertical padding, row-actions cell included), and the table draws the leading columns (priority order) that fit whole, the rest behind the labelled 'All columns' enlarge; only a first column wider than the box still scrolls, pinned. handleAddRecords, tabs, rail, header and the RecordBodyTableEditorSlotContext edit path untouched. Merged origin/main (873a23d1); no overlap with my files.",
     "tests": "All under os-verify-lock, --maxWorkers=1, one group at a time. Final head 873a23d1: plugin-detail type-check (tsc --noEmit && tsc -p tsconfig.test.json) exit 0, plus buildDefaultPageSchema.bodyTables-27055 + RelatedList.bodyTable-27055 + record-related-list.editorSlot-35599: Test Files 3 passed (3), Tests 59 passed (59), VERDICT command-exit 0. Pre-merge on the same diff (523e8d50): plugin-detail synth/ + renderers record-related-list*: 25 files / 271 tests passed; plugin-detail __tests__/RelatedList* + RecordPageColumns*: 59 files / 402 tests passed; app-shell RecordDetailView.harness, recordPageTiers-26678, childWriteRefreshesParent-12244, relatedListFilter-4664, recordEditState.helpers-35599 + plugin-grid emptyArrayCell-8481, relatedListRowActionDisabled-33215: 7 files / 105 tests passed. Migrated pins (6 placement cases, 2 width cases) and new pins named in the PR body table. Ablation 1 (ablation-replace.mjs): tablesAt  to  0 in buildDefaultPageSchema.ts, anchor 1 to 0, blob a0218d67 to e8e8dbe2: 15 failed / 9 passed (CONTROL green); restored blob a0218d67 == HEAD, git diff HEAD empty, marker counts 0/1. Ablation 2: bodyTableColumnsThatFit over-budget branch  to  return null, blob eb8e3656 to 107ffa88: 4 failed / 28 passed (CONTROL + density green); restored eb8e3656 == HEAD, diff empty. No dist build involved (vitest resolves both modules from src by relative import).",
     "gates": "dispatch-gates --commands (tree 523e8d50, pre-merge): 38 commands run, results recorded with exit codes; dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED (derived zero), exit 0. 37 exit 0. 'pnpm --dir ui exec vitest run scripts/' exit 1 with 7 failures in 2 files (spec-symbol-ledger-plugin-detail-7265: spec export-name probe read 0 names; check-doc-snippet-types root bound): cause was my own OS_SKIP_DTS=1 server build wiping packages/spec/dist d.ts; after a full spec rebuild (check-dts-emitted 38/38) both files: 2 passed / 129 tests, VERDICT command-exit 0; the rest of that 10m run was green and was not re-run whole. ui check:new-line-citations: 0 new citations. PR #35824 check-runs at 873a23d1 when reported: success — Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, PR-body guards, Test Core, Type Check · workspace/source gates/consumer gates/debt ledger, Dogfood Regression Gate, Live E2E UI, Build UI Deps, Plan Test UI shards; in_progress — Test UI 1-16, Type Check UI, Lint UI, Build & E2E UI, TypeScript Type Check, Lint · PM dispatch-gates, Lint · CI release & engine gates, Lint · scoped (3); not waited on.",
     "a4": "MEASURED: showcase backend (--fresh, port 38742) + Console vite dev (5742), headless Chromium 1280x900 DSF 2, expense report EXP-2001 (stage bar, groups Report/Totals/Other, master-detail Expense Lines), tier wide. Details column top-to-bottom: field groups y236, body table y668, footer y972. Header 32px, row pitch 32px — identical to the expense-line list page measured in the same session (header 32, pitch 32; both border-collapse). data-body-table-columns-omitted=1, 5 columns drawn, last ends x810 inside box right edge x811, scrollWidth 744 == clientWidth 744, 'All columns' offered; page errors 0. Screenshots: /mnt/project-files/objectstack-seat5/area-ux/ux-2/a4-35742/expense-1280x900.png, expense-body-table.png, expense-1280-fullpage.png. No-stage object NOT MEASURED in browser: showcase invoice and project draw authored pages; that case is pinned in unit tests only. Servers stopped (ports 38742/5742 clear).",
     "dogfood_battery": "n/a — no ! in the PR title and Clause-② is 'no' with no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — pr_create via fleet-write relay (POST /repos/objectstack-ai/objectstack/pulls + POST issues/35824/assignees os-bill; read-back identical 12909 bytes); os-dev-report comment on #35742 via post-stamped.mjs. Plus git push (not REST).",
     "deviations": [
      "Backend for A4 started with 'pnpm --filter @objectstack/example-showcase dev --fresh -p 38742' instead of 'pnpm dev:showcase': the dev-prereqs check refused because 25 ui workspace packages had no dist (the Console was served by its own vite dev server from src, so they were not needed). Stopped afterwards by recorded PID/port.",
      "Server closure built with OS_SKIP_DTS=1 to save time; it removed packages/spec dist d.ts and caused the 7 local scripts/ vitest failures above; spec rebuilt in full and the 2 failing files re-run green. Only those 2 files were re-run, not the whole scripts/ family.",
      "Derived gates ran on the pre-merge tree (523e8d50); after merging origin/main (no overlap with my 5 files) only type-check and the pinned files were re-run on 873a23d1.",
      "Overlap with #35726 (RelatedList.tsx handleAddRecords): none — my RelatedList.tsx hunks are a module-level density constant and two helpers, the body-table column-cap state, the viewSchema columns/className, the overflow layout effect's read(), the enlarge-button condition and two data attributes; handleAddRecords not touched. Expect a textual merge on RelatedList.tsx only if their hunks sit next to these."
     ],
     "open_questions": [
      {
       "question": "ADR-0035's 2026-11-19 amendment note says a body table sits 'under the header strip and above the field sections'; this PR implements the card's order (field groups first), so the ADR text is now stale. Who writes the add-only amendment note?",
       "options": [
        "A — the seat files/writes an add-only ADR-0035 note citing #35742 as its own Tier S PR (docs/adr is governed and outside this claim's file surface)",
        "B — add the note to PR #35824 now (makes this PR governed; landing waits for a contract-tier record)"
       ],
       "recommendation": "A, because it keeps this UI fix on the ordinary landing path and the ADR edit gets its own contract review."
      },
      {
       "question": "Default-collapsed placement: rule keys on what is drawn closed, so the host's 'More details' (opens expanded) stays BEFORE the tables. Should 'More details' instead always follow the tables because it holds secondary fields?",
       "options": [
        "A — keep: drawn-closed trailing sections follow the tables; More details (open) stays before",
        "B — also move the host's 'More details' section after the tables"
       ],
       "recommendation": "A, because it follows what the reader sees and needs no special case for one section name; B would be a one-line change in bodyTablePlacement if the maintainer prefers it."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: seat (ux-2) · ADR-0035 amendment note now describes the superseded body-table position ('above the field sections') · noted in PR Acceptance notes and open_questions, not filed",
      "carrier: none · A body table's totals row loses the total of a column it omits for width; the 'All columns' enlarged tab still shows it · noted in PR Acceptance notes, not filed"
     ]
    }
  9. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Seat ruling (2), recorded here for the card: the host-written "More details" section opens expanded (defaultCollapsed: false), so it stays before the body tables under the placement rule; no change. Seat ACCEPT for the ADR-0035 note: PR #35845 is handed to the approvers (Tier H); ux-2 lands it and then closes out this card.

  10. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Closed-out · area ux-2 · 2026-11-20T22:10Z

    reading value
    PR #35824 MERGED (Fixes #35742; this card closed completed)
    review record L1-a ACCEPT 7037129863; no L2 owed (no packages/spec face)
    rulings seat 10:12Z: (2) 「More details」 opens expanded and stays before the tables
    ADR note PR #35845 closed unmerged on the maintainer's ruling 2026-11-20 22:08Z, 「35845 和新规则冲突,直接关闭作废」 (7051808896). That drops it from this card's done-criteria. ADR-0035 is unchanged.
    follow-ups #35831 (p3, totals of columns dropped for width) and #35846 (p2, platform checklist item's stale order), both nested here and in pm:queue

    Delivered:

    • The record Overview reads: header strip, the open field sections, the master-detail body tables, then trailing collapsed sections.
    • Body tables use list density (32px header and rows) and draw only the columns that fit whole. The rest sit behind 「All columns」.

    State: pm:dispatched removed.

  11. removed
    pm:dispatched
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions