Skip to content

记录页页签规则:第一个叫「概览」并含通栏的阶段条和关键字段;列出全部子表、带条数、只按宽度收进下拉;附件、审批、互动各一个页签 #35595

Closed
1 of 1 issue completed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者 2026-11-19 原话:「阶段条是否建议放到明细(或者应该叫概览)」「概览中的关键信息是否建议把现在顶部区域的关键信息样式直接平移过去」「之前顶部的高亮字段和状态,迁移到概览中后,是不是还应该占全宽?」「选项卡标题没有数量不好,看不清」「要注意,顶部选项卡应该列出所有的子表,根据屏幕宽度显示下拉」「顶上一排审批相关的状态是否写太多,有的是否应该放到审批选项卡中」。

目标(图 37)

图 37 记录页:概览、相关表页签、抽屉

现状

现状:平台默认记录页(合同 CTR-0003)

图是深色稿,只表达结构和尺寸,颜色沿用现有主题变量。参照对象 Twenty 是 AGPL,只参照结构,⛔ 不抄代码。代码读数取自 origin/main 7ece0204a6。外壳(顶栏、左侧栏)不动。

要做的

  1. 第一个页签叫「概览」。阶段条和关键字段从页签上方挪进概览,位于概览最上面,占全宽(横跨左右两栏)。关键字段沿用现在那一排的样式(标签在上、值在下),一排几个随宽度变。
  2. 页签列出这个对象的全部普通关联子表,不管有没有记录,顺序由对象的 relatedLists 决定。已经放在概览里的主从子表不占页签(维护者:「如果主子表已经在 概览中,还需要出现在右侧和顶部tab中吗」);被 relatedList 设置移出概览的主从子表才有页签。有记录的带条数;没有记录的不带数字、字色稍淡,点进去是空状态和添加入口。
  3. 只按宽度收:放不下时靠后的进「更多 N ▾」,下拉里每一项仍带各自的条数。不再按有没有记录来收。
  4. 附件、审批、互动各一个页签,排在子表之后:
    • 附件:对象开了附件时始终有;有文件时带数字。
    • 审批:对象配了审批流程时才有;有进行中的审批时带一个圆点。里面是审批进度、等待的审批人、催办、审批动态、原因说明、锁定说明。
    • 互动:始终有,带条数。
  5. 页面底部不再有常驻的审批区和附件卡;手写页面没摆放它们时,兜底放进对应的页签,而不是页面底部。
  6. 一张子表一个页签是默认。把多张表并进一个页签只能由页面定义显式配置,这时页签标题不带数字,平台不替它算总数。
  7. 页签条吸顶时不透出下面的内容(记录页的页签条吸顶后是半透明的,滚动时下面的内容透出来叠在页签上 #35414 的行为保持)。

不做的

  • 概览右栏的内容(子卡「概览右栏」);主从子表进概览(子卡「主从子表」);字段和互动、附件的排版(子卡「字段密排与互动、附件样式」)。
  • 手机端记录页。

取代与承接

验收(1280×800,zh-CN)

Reader: domain:ui 车道。ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts、recordPageColumns.ts、RecordPageColumns.tsx、ui/packages/app-shell/src/views/RecordDetailView.tsx、ui/packages/components/src/renderers/layout/containers.tsx。

Dedupe: 记录页 页签 子表 概览、record page tabs related list overview rail(objectstack,open)→ 0;承接 #35483、#35484;取代 #28469。

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature (tab rules: the first tab is Overview with the stage bar and key fields; every child table gets a tab) · a child of the maintainer's record-page topic #35590 (his words for this batch: 「这一批卡p2」) → p2 as he set it.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Section note before editing buildDefaultPageSchema.ts (seat 5's epic #35590 fence, the record page redo split) · 2026-11-20T00:40Z

    Area ux-1 takes #35595 and #35596 folded into one branch. In ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts at c03a8a3 it changes:

    • synthTabs (around 943-1033): the tab list itself, meaning the Overview naming, every ordinary related list as its own tab with no fold-by-records, and the attachments, approvals and activity tabs. It ⛔ does not touch the isBody / bodies split around 972-980.
    • buildDefaultTabs (around 916).
    • buildDefaultPageSchema's assembly (around 1088-1209): the highlight strip and stage path move from above the tabs into the Overview tab's top, full width.
    • buildDefaultAttachments / buildDefaultTimeline only where a tab or the rail needs them.

    It ⛔ does not touch bodyTablePlacement (825-~915), BODY_TABLE_PAGE_SIZE, the isBody option in BuildPageOptions, or anything else ux-2's #35597 (PR #35691) edits. Whichever PR lands second merges main.

  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 · epic #35590 sub-cards: tab rules + overview right rail, folded (seat 5's rebalance 2026-11-20 00:34Z after the maintainer's 「专题的相关任务还能加速吗」; the maintainer named the epic, so p2 is in scope) · 2026-11-20T00:40Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Area: ux-1 (moved from ux-4 by the seat)
    Branch: claude/issue-35595-record-tabs-rail
    Worktree: objectstack-issue-35595
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface:

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim amendment to comment 7026619906 (area ux-1): the File surface ADDS these, each requested by the dev before editing · 2026-11-20T00:49Z

  8. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim amendment 2 to comment 7026619906 (area ux-1), File surface ADDS, requested by the dev before editing · 2026-11-20T01:29Z

  9. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim amendment 3 to comment 7026619906 (area ux-1): File surface ADDS two small edits in RecordDetailView's header region. The dev asked for them after #35679 (#35593) merged as 72d19c4 · 2026-11-20T02:51Z

    • Approval tag click (around 5412): the approvals panel now lives in the Approvals tab, so the click opens that tab instead of scrolling. It uses ?related=approvals, or ?tab=approvals on a page drawn as written. Pinned, with an ablation.
    • Right-column switch (around 5108): it is no longer drawn when the page is embedded. A drawer or pane draws no rail, so the switch would do nothing there.
    • Open-PR scan, taken at the time stamped above: no open PR touches RecordDetailView.tsx. The header region's own PR, feat(record): one header row and one button group on the record page (#35593, #35419) #35679, has merged.
  10. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 35595,
      "status": "done",
      "branch": "claude/issue-35595-record-tabs-rail",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35763",
      "session": "session_01Utp6CbSphdunq2aJq7ktuY",
      "premise_still_valid": true,
      "summary": "One draft PR (#35763) fixes both #35595 and #35596. Tabs: Overview, then one tab per side related list in relatedLists order (empty ones greyed with no number; a refused count keeps its place, unmuted), then Attachments / Approvals (a dot) / Activity last. Every tab is there at first paint, and the only fold is by width into 「更多 N ▾」, whose items keep their counts. A merged tab carries no count. The strip shows on Overview only. A page drawn as written gets its unplaced approvals and attachments as tabs (withFallbackRecordTabs) and draws one approval band across several details bodies (ApprovalBandOnceScope, pinning #35483 and #35484). Rail (RecordSummaryRail): on Overview only and absent when embedded, in the order approvals, attachments, recent activity, then 其他相关 cards for lists with records. Each card has at most 3 rows, a title that opens its tab and a grey count; empty cards are not drawn and there is no 「还有 N 个空关联」 line. Rows come from the page payload via RelatedCountStore.takeRows, cached per question so StrictMode does no second read. Supersedes #28469, whose partition is retired. Header region: two coordinator-approved edits (the approval tag opens the 审批 tab; no ⊟ switch when embedded). The strip itself needed nothing there.",
      "tests": "All runs on the tree of head 7557c0359b6 under os-verify-lock (VERDICT command-exit 0 each). vitest packages/plugin-detail/: 391 files passed / 1 skipped, 3563 tests passed / 18 skipped. vitest RecordDetailView* + views/__tests__/RecordAttachmentsPanel* + components page-* + packages/i18n/: 266 files, 3354 tests passed / 13 skipped. vitest app-shell utils + ObjectFieldInspector.relatedList-27054 + harness: 61 files, 990 passed; these were red against a stale packages/spec dist and green after rebuilding it. vitest scripts/: 171 files, 5092 passed. Playwright e2e/record-tabs-rail-35595.spec.ts (Chromium /opt/pw-browsers, zh-CN): 5 passed. type-check for plugin-detail, components, i18n and app-shell after a closure build: all Done. Ablations were committed first and restored with git checkout HEAD (blob == HEAD and git diff HEAD empty each time). Red: rail empty cards, order, rows cap, collapse, payload rows (28737), muted empty tab, band once in plugin-detail, band once at the page (ApprovalBandOnceScope dropped from RecordDetailView: 1 failed / 4 passed, the two-body test red and its CONTROL green; restore 5/5), merged-tab whole guard, approval tag. Green: merged-tab list half only, which has no pin of its own (noted).",
      "gates": "Local: dispatch-gates --commands derived 49 families on 7557c0359b6. All 49 ran and each exited 0 (captured before any pipe; the vitest one ran under the lock). --ran: 49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. check-platform-checklist --changed-from origin/main: exit 0 (7 anchors, 0 lost). overlap-check: exit 1, one file with #35755 (see summary of the 35599 collision in the PR's Acceptance notes); clean against origin/main. Not run locally: check:dev-prereqs and check:skill-frame-freshness (no packages/spec or frame edits). CI on PR #35763 at report time: Governed Surface Queue Guard success; Check Changeset, Check PR Size, Lint x8, Type Check x4, PR-body guards and filter all in_progress; the opt-in jobs skipped.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: no)",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/35763/assignees os-bill, read back 13174/13174 bytes identical) and this os-dev-report comment (POST /issues/35595/comments via post-stamped.mjs). git push x1 this round (force-with-lease from 4b6fb48a5be to 7557c0359b6), which is not REST.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the packages/spec relatedList prose still says 'shared Related tab'. This is prose drift outside the fence (spec is fenced out) and a spec-docs follow-up.",
        "carrier: none · noted, not filed: RelatedCardStack and RecordTimelinePanel are no longer drawn on the record page (dead code there).",
        "carrier: none · noted, not filed: the Attachments tab re-reads once under React StrictMode (dev only), because RecordAttachmentsPanel's hand-off is take-once and the panel is outside the fence.",
        "carrier: none · noted, not filed: the payload expand is no longer read by the rail.",
        "carrier: #35755 · noted: one hunk collides in RecordDetailView.tsx on the authored-page SchemaRenderer line (mine wraps ApprovalBandOnceScope and feeds fallbackTabs.page; theirs feeds layoutPage). The second lander passes layoutPage into withFallbackRecordTabs."
      ],
      "pr_number": 35763,
      "final_head": "7557c0359b6390ebc74d0c08d832c6c19d4735b3",
      "diff_lines": "66 files, +3315 / -1283 = 4598 lines; 3046 of them in test and e2e files",
      "readings_no_longer_hold": [
        "synthTabs sits at about buildDefaultPageSchema.ts 943-1033, not 938-1022",
        "「还有 N 个空关联」 comes from RelatedListEmptyFold drawn through RelatedCardStack in the shared Related tab, not from the rail",
        "record-reference-rail.tsx:783 lives under plugin-detail/src/renderers",
        "the 900 px fold: on a 900 px-wide page the fixture's twelve tabs fit the 852 px row, so the Playwright case reads a 900 px window (a 644 px page with the sidebar open)",
        "#35691 and #35597 landed after the readings were taken: master_detail children are overview body tables by default and sit before the field sections, so they take no tab and no rail card"
      ],
      "header_region": "Not needed for moving the strip to Overview. Two small edits after #35679 merged, both approved by the coordinator (claim amendment 7028805451): the approval tag's click opens the 审批 tab, and the ⊟ switch is not drawn when embedded."
    }
  11. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Seat ACCEPT for #35595: PR #35763 (folded #35595 + #35596) is handed to the approvers (over 3,000 lines). Seat record on the PR at head 08f9d8a5. Lands by ux-1 after an APPROVED review.

  12. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Close-out · 2026-11-20T08:43Z: PR #35763 merged as b0c624a. It folds #35595 and #35596. L1-a gave ACCEPT 7032791068, and the seat ran the Tier H approver handoff (7033230940). This card closed on the merge.

    What changed:

    Follow-up: #35783 (p1, the maintainer's 「先合并,另开卡恢复」) brings back move, hide and reset on the tab menus.

    pm:dispatched removed.

  13. 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:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions