Skip to content

fix(plugin-detail): the record page names the owner once when a details section draws owner_id - #35989

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35941-owner-once-footer
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35941-owner-once-footer

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread
Fixes #35941
Clause-②: no
Metadata-protocol: none
Skills-docs: none (no file under skills/** names the record page's owner meta line; skills/** is not edited)

repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

Implements the maintainer ruling recorded on the card in comment 7056427422 (option A, 「底部行不再显示」): when a field group on the record page renders owner_id, the bottom meta line leaves the owner out; when no group renders it, the meta line shows the owner as before; the body's groups stay as declared. The facts are the seat's correction, comment 7053437630.

维护者速读

  • 用户能看到什么变化:在默认记录页上,详情正文的某个分组已经显示负责人时,底部信息行不再重复显示负责人,负责人只出现一次,就在正文里可以修改的那一格。
  • 为什么做:属于记录页重做这个大项,解决负责人在页面上出现两次的问题(之前的去重只看关键字段条,默认页已不再画那一条)。
  • 出错会怎样:最坏情况是某页负责人一处都不显示或仍显示两次,只影响显示,不改数据,可以直接撤回这次改动。
  • 要你做什么:无。

What changes

  • The body reports what it draws. A new module-internal registry, recordBodyFields.ts in @object-ui/plugin-detail, collects the field rows the page's details sections actually mount. DetailSection reports its laid-out rows while its content is mounted (the frameless face and the card disclosure mount it only open; the non-collapsible card always does), and only when it draws the page's own record (RecordPageProvenanceContext, the context record:details already sets when it carries no data binding). So a field the reader may not read, a field or group hidden by visibleWhen, a hidden field, or a collapsed section reports nothing, and a section drawn for another record (a bound record:details, a drawer portalled from a related list) reports nothing either.
  • The meta line reads it. RecordMetaFooter leaves the owner out when the strip draws owner_id (unchanged) OR the body registry holds owner_id. Outside a registry it reads null and keeps the strip-only rule.
  • The laid-out page mounts it. RecordPageColumns creates the registry and provides it around the details column and the meta line that closes it.
  • The answer comes from the rows the body mounts, not from a second derivation of the sections: the declared group, the "Other" bucket (deriveFieldGroupLayout's keyless trailing bucket) and the auto split all resolve to whatever record:details actually draws.
  • No prop, export or locale key is added; RecordDetailView.tsx is not touched.

Acceptance notes

  • One mount is not covered: the footer a default page draws below its tab strip when the strip cannot be laid out (RecordDetailView's !pageColumns branch). That footer and the body are siblings in the host, so the registry would have to be mounted by RecordDetailView, which means a new export from @object-ui/plugin-detail (a widening, Clause-② yes). On that branch the footer keeps the strip-only rule. The seat ruled (2026-11-21, option A) that this PR leaves it and no card is filed: the branch is rare (a default page whose tab strip cannot be laid out), and covering it would widen @object-ui/plugin-detail's public surface and touch RecordDetailView.tsx while two open PRs edit it.
  • A collapsed group holding owner_id keeps the owner on the meta line; when the reader opens the group, the owner moves into the group and leaves the meta line (pinned).
  • RecordMetaFooter.ownerOnce-28868.test.tsx and RecordMetaFooter.drawnStrip-28909.test.tsx pass unchanged. Neither pins a rule this change supersedes: both render the footer with no registry, where the strip-only rule still holds.
  • One pin is superseded and rewritten: RecordDetailView.phoneOwnerLine-28909.test.tsx. It pinned "on a phone / on a desktop: no strip, and the meta line names the owner". It mounts a real RecordDetailView whose lead declares no field groups, so owner_id lands in the auto-derived section and the body draws it. Under the maintainer ruling in card comment 7056427422 (option A, 「底部行不再显示」), the owner is then that body field and the meta line leaves it out. On c817146 the old pin failed at both widths (the owner entry was missing from the meta line). CI Test UI 9/16 caught it, and a local control run reproduced it: Tests 2 failed (2), at the expect(owner).toBeTruthy() line. The rewrite keeps Record page on a phone: an owner_id declared 5th or 6th in highlightFields is shown neither in the phone header nor in the meta line #28909's intent, that the owner is on the page once at every width. At 390 px and at 1440 px it now pins the following. When the body draws owner_id, the owner's name is painted exactly once on the page and the meta line has no owner entry. A lead whose owner_id is hidden, so the body draws none, keeps the owner on the meta line, also painted once. In both cases the rest of the meta line (the record id) is still drawn. The file's header names the superseded pin and the ruling.

Tests

New: ui/packages/app-shell/src/views/RecordMetaFooter.ownerOnceBody-35941.test.tsx. It composes the default page as RecordDetailView does (deriveRecordDetailSections → buildDefaultPageSchema → buildDefaultPageColumns → RecordPageColumns with the real record:details block and RecordMetaFooter) and counts the owner's name over the whole page:

  • a declared group holding owner_id: painted once, in the body, footer without owner;
  • no declared groups (auto-derived section): once;
  • declared groups that leave owner_id out (it lands in "Other"): once;
  • groups that leave owner_id out and it is drawn nowhere (hidden: true): the owner is on the meta line, once;
  • a collapsed group holding owner_id: on the meta line, then in the body once the group opens, once each time.
Readings (head c817146; the new file and the 28868 / 28909 footer files re-run on this tree: Test Files 3 passed, Tests 17 passed)
  • New file: Test Files 1 passed (1), Tests 5 passed (5).
  • pnpm --dir ui exec vitest run packages/plugin-detail/: Test Files 394 passed, 1 skipped (395); Tests 3626 passed, 18 skipped.
  • RecordDetailView.oneProvenanceFooter-12307 with the new file: Test Files 2 passed (2), Tests 8 passed (8).
  • Ablation 1, the meta line's body check replaced with false (via scripts/ablation-replace.mjs, mutation landed anchor 1 → 0, restored blob == HEAD): Tests 4 failed, 1 passed; the four body-draws cases went red and the hidden-owner control stayed green.
  • Ablation 2, the section's collapse condition replaced with true: Tests 1 failed, 4 passed; only the collapsed-group case went red.
  • Both ablations run against src (the ui vitest config aliases @object-ui/plugin-detail to its source), so no dist rebuild was involved.
  • Fix round 1 (head a61e3b2): the rewritten RecordDetailView.phoneOwnerLine-28909 file gave Test Files 1 passed (1), Tests 4 passed (4). The same file at c817146 (control) gave Tests 2 failed (2). Every app-shell RecordDetailView* suite plus every test that asserts the owner or the meta line (recordPageV3Face-27055, RecordMetaFooter.drawnStrip-28909, RecordMetaFooter.ownerOnce-28868, DetailView.title2688, detailPage.emptinessAuthority-8394, record-details.pageProvenance-12307, ObjectView.recordDrawer-27545, AppContent.recordSaveOneToast-27999, the new 35941 file) gave Test Files 106 passed (106), Tests 820 passed (820).

Verification

Read first: ui/packages/plugin-detail/src/DetailSection.tsx (the drawsContent condition must match the render branches below it), ui/packages/plugin-detail/src/recordBodyFields.ts, ui/packages/plugin-detail/src/RecordMetaFooter.tsx.

Two-minute check: pnpm --dir ui exec vitest run packages/app-shell/src/views/RecordMetaFooter.ownerOnceBody-35941.test.tsx → 5 passed. In the Console, open a record of an object with an owner on the default page: the owner shows in the details body and no "Owner" entry is on the meta line at the foot of the details column.

Browser reading (head a61e3b2; Chromium via Playwright, deviceScaleFactor 2, at 1280 and 375 wide). The stack was the showcase app: a --fresh backend, plus the Console served by Vite from this tree's ui/ source. The record is a showcase_contact named "Grace Hopper", created through the REST API and owned by Dev Admin. The metadata edits were temporary and uncommitted; afterwards the file was restored from HEAD (blob equal to HEAD, git status clean).

  • (a) The object gained an Ownership group listing owner_id. Result: one Owner row, in that group, and no owner on the meta line. Files: /mnt/project-files/build-seat1/35941/a-group-open-1280.png, /mnt/project-files/build-seat1/35941/a-group-open-375.png.
  • (b) owner_id was declared hidden and placed in no group. Result: no Owner row in the body, and "Owner Dev Admin" on the meta line. Files: /mnt/project-files/build-seat1/35941/b-hidden-open-1280.png, /mnt/project-files/build-seat1/35941/b-hidden-open-375.png.
  • Collapsed Ownership group. While collapsed, the owner is on the meta line. After the group is expanded, the Owner row is in the group and the meta line has no owner. Files: /mnt/project-files/build-seat1/35941/c-collapsed-collapsed-1280.png, /mnt/project-files/build-seat1/35941/c-collapsed-expanded-1280.png, /mnt/project-files/build-seat1/35941/c-collapsed-collapsed-375.png, /mnt/project-files/build-seat1/35941/c-collapsed-expanded-375.png.
  • Stock showcase, with no edit: owner_id lands in the "Other" group. Result: one Owner row there, and no owner on the meta line. Files: /mnt/project-files/build-seat1/35941/d-stock-other-open-1280.png, /mnt/project-files/build-seat1/35941/d-stock-other-open-375.png.
  • A sampler ran on every animation frame from the moment the meta line mounted. It counted Owner rows in the body plus the meta line's owner entry, about 160 frames per load and about 60 after each expand. No sampled frame showed the owner twice or missing from both places, in any run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv

… section draws owner_id

The record page's details sections report the field rows they actually
mount for the page's own record (not while collapsed away, not for a bound
block or a portalled drawer), through a module-internal registry that the
laid-out page (RecordPageColumns) provides around the details column and
its meta line. RecordMetaFooter leaves the owner out when the strip draws
owner_id, as before, or when the body reports it, so the owner appears
once, as the editable body field. The highlight-strip rule is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales November 21, 2026 04:47
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
…n-the-body ruling

The default page's body draws owner_id (the auto-derived section), so the
owner is that field and the meta line leaves it out, at 390 px and at
1440 px; a lead whose owner_id is hidden keeps the owner on the meta line
at both widths. The superseded pin was "no strip, and the meta line names
the owner".

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

Final green head · 2026-11-21T05:38Z · area b1-DB

  • Head a61e3b2dc58b78ae7e9785149af39fdbeefc1cae: 44 success, 15 skipped, 0 failed; mergeable clean.
  • check-governed-merges --pr 35989: NOT governed (0 of 7 paths), +429 / −14.
  • Fix round 1 (one new commit, test only): RecordDetailView.phoneOwnerLine-28909 pinned the rule ruling 7056427422 supersedes (its lead declares no field groups, so the body draws owner_id). Rewritten to the ruling at 390 px and 1440 px: owner painted once, meta line without owner when the body draws it; a hidden owner_id keeps it on the meta line. The earlier plugin-grid ObjectGrid.autosave-35685 red was a flake unrelated to this diff (passed on this head); the seat filed it as ObjectGrid.autosave-35685 "an earlier save's Undo is guarded by the newest version" fails intermittently in Test UI on unrelated PRs #35999.
  • Residual !pageColumns branch: left, per the seat (option A, no card).
  • Clause-②: no. Metadata-protocol: none.
  • Next: L1-c review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 做法和你的裁决一致:记录页正文的分组里已经显示负责人时,底部信息行不再显示;正文没显示(隐藏、无权限、条件隐藏、分组折叠)时,底部仍显示。代码我核过,没有问题。
  • 退回补一样东西:还没有在真实浏览器里看过,手机宽度(375)也没有截图。只要补一次浏览器截图,不用改代码。
  • 要你做什么:现在不需要。

席位核对 — REWORK (L1-c) · repo:objectstack#1 · head a61e3b2dc5 · 2026-11-21T05:40Z

Read at a61e3b2d: 7 files, +429/−14. The face is Clause-②: no, Metadata-protocol: none. No contract face and not Tier H, so no L2 is owed. The code needs no change. One evidence item is owed.

Should-fix

  1. No browser reading, and no phone evidence at 375. The card's two acceptance lines are pinned in jsdom, through the real deriveRecordDetailSections → buildDefaultPageSchema → RecordPageColumns chain, at 390 and 1440. The layout-effect report and useSyncExternalStore read are exactly the kind of thing jsdom can get right while a real page flickers or paints the owner twice for a frame. One run on the showcase stack would close it, with screenshots in /mnt/project-files/build-seat1/35941/:

    • a record whose field group draws owner_id (the owner painted once, in the body, with no owner on the meta line);
    • the same object with owner_id left out of the body (the owner on the meta line);
    • both at 1280 and 375.

    A temporary, uncommitted metadata edit is fine, as 字段分组自己列出成员和顺序(fieldGroups[].fields);字段上的 group 作为旧写法继续读 #35900 and 记录页默认页不再画阶段条和顶部关键字段条;阶段改成记录名旁的状态标签,点开下拉切换(图 41) #35891 did. If a collapsed group is easy to reach, read it too, but that is not owed.

Checked and fine

  • Shape. Draft, base main. Fixes #35941 is right: both acceptance lines and every point of ruling 7056427422 (option A, 「底部行不再显示」) are delivered, and the field groups are drawn as declared.

  • What a section reports is what it draws.

    • record-details drops denied fields (filterList → readableFields), redacted fields, hideFields, and rows whose field or group visibleWhen is false before DetailSection sees section.fields.
    • DetailSection reports layoutFields, which is after the empty-row auto-hide.
    • A collapsed section reports nothing, except the card face that cannot collapse.
    • A section drawn for another record (RecordPageProvenanceContext false) reports nothing.

    So the owner can drop from the meta line only when a row really draws it, and it never goes missing from both places.

  • Hook order. useBodyDrawnFieldNames runs before RecordMetaFooter's early return. useReportBodyFields sits above DetailSection's all-empty early return, which the file says must follow every hook.

  • The registry. It is module-internal (not in the barrel), and RecordPageColumns creates it once per mount. report / withdraw recompute the union and notify only when it changes, and the layout effect reports before paint. Outside a registry the footer reads null and keeps the strip rule.

  • The !pageColumns branch. Leaving it is the seat's option A, and the body says why: covering it means a new export and a RecordDetailView.tsx edit.

  • Superseded pin. RecordDetailView.phoneOwnerLine-28909 is rewritten to the ruling at 390 and 1440, with the hidden-owner control. Its header names the ruling.

  • Tests and ablations.

    • The five new cases cover a declared group, the derived section, the Other bucket, a hidden owner, and a collapsed-then-opened group.
    • With the body check ablated, 4 of the new cases go red and the hidden-owner control stays green.
    • With the collapse condition ablated, only the collapsed case goes red.
  • Changeset. @object-ui/plugin-detail: patch. I read it sentence by sentence, and it matches the diff.

  • Gates. At a61e3b2dc5: 44 success, 15 expected skip, 0 failed, 0 pending. mergeable_state is clean and l1-face is CLEAN.

A delta re-read is owed only for finding 1. If no code changes, the ACCEPT goes on this head.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 上次退回只差浏览器截图,现在补齐了:电脑宽度(1280)和手机宽度(375)都看过。分组里显示负责人时,底部信息行就不再显示;负责人被隐藏或分组折叠时,底部信息行照常显示。两处都显示、两处都没有的情况一次也没出现。
  • 代码没有改,上次的代码核对仍然有效。
  • 要你做什么:现在不需要。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head a61e3b2dc5 · 2026-11-21T06:15Z

Delta read for REWORK finding 1 only. The head is unchanged at a61e3b2d, and only the body's Verification section changed, so the code read in the REWORK record stands.

Finding 1: browser reading and phone evidence. Closed.

The reading ran on the showcase stack, with the Console built from this head's ui/ source, in Chromium at 1280 and 375. Ten screenshots are in /mnt/project-files/build-seat1/35941/. I opened a-group-open-375, b-hidden-open-375 and c-collapsed-collapsed-1280.

  • (a) A group draws owner_id. There is one Owner row, in the Ownership group, and the meta line reads only "Created by … · 3m ago" plus the id. The owner is drawn once.
  • (b) owner_id is hidden and in no group. The body has no Owner row, and the meta line reads "Owner Dev Admin".
  • Collapsed group (not owed, read anyway). While the group is collapsed, the owner is on the meta line. After it expands, the owner is in the group and gone from the meta line.
  • Stock showcase. owner_id lands in Other, the same as (a).
  • Per-frame sampler. It ran about 160 frames per load and about 60 after each expand. No frame showed the owner twice, and no frame showed it in neither place. It counts the Owner entry rather than the name, because the creator is also Dev Admin. That is the right thing to count.

The metadata edits were temporary and restored from HEAD, and git status is clean. The body now states all of this under "Browser reading".

Gates

At a61e3b2dc5: 46 success, 17 expected skips, 0 failed, 0 pending, after the re-run that the body edit triggered. mergeable_state is clean and l1-face is CLEAN. No L2 is owed (no contract face, not Tier H).


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T06:16Z · Area b1-DB's PR for #35941 (maintainer ruling 7056427422, A): when a field group draws owner_id, the record page draws the owner once, not again on the meta line. The residual !pageColumns branch stays as it is, per the seat's call recorded in the body. Fix round 1 rewrote one pin that held the rule this ruling replaced (RecordDetailView.phoneOwnerLine-28909); no code changed. Clause-②: no, so no contract L2 is owed. L1-c REWORK 7058081053 asked only for a browser reading, then ACCEPT 7058486142 on a61e3b2d (this head); evidence at 1280 and 375 px. check-governed-merges --pr 35989 reads NOT governed (+429/−14). landing-k could not answer (no Test Core shard ran in the last green run), so the seat read K by hand: K = 13, under 15, and the PR touches neither translations/ nor skills/. On this head, 46 check-runs are success, 17 are skipped and none failed; mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35941.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 06:16
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit cf45e4f Nov 21, 2026
64 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35941-owner-once-footer branch November 21, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Record page: the owner shows twice when a field group draws owner_id (header meta line plus the group's field)

2 participants