Repository navigation
fix(plugin-detail): the record page names the owner once when a details section draws owner_id - #35989
Conversation
… 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
…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
|
repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv Final green head · 2026-11-21T05:38Z · area b1-DB
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — REWORK (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
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 |
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
recordBodyFields.tsin@object-ui/plugin-detail, collects the field rows the page's details sections actually mount.DetailSectionreports 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 contextrecord:detailsalready sets when it carries no data binding). So a field the reader may not read, a field or group hidden byvisibleWhen, ahiddenfield, or a collapsed section reports nothing, and a section drawn for another record (a boundrecord:details, a drawer portalled from a related list) reports nothing either.RecordMetaFooterleaves the owner out when the strip drawsowner_id(unchanged) OR the body registry holdsowner_id. Outside a registry it readsnulland keeps the strip-only rule.RecordPageColumnscreates the registry and provides it around the details column and the meta line that closes it.deriveFieldGroupLayout's keyless trailing bucket) and the auto split all resolve to whateverrecord:detailsactually draws.RecordDetailView.tsxis not touched.Acceptance notes
RecordDetailView's!pageColumnsbranch). That footer and the body are siblings in the host, so the registry would have to be mounted byRecordDetailView, 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 touchRecordDetailView.tsxwhile two open PRs edit it.owner_idkeeps 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.tsxandRecordMetaFooter.drawnStrip-28909.test.tsxpass unchanged. Neither pins a rule this change supersedes: both render the footer with no registry, where the strip-only rule still holds.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 realRecordDetailViewwhose lead declares no field groups, soowner_idlands 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 theexpect(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 drawsowner_id, the owner's name is painted exactly once on the page and the meta line has no owner entry. A lead whoseowner_idishidden, 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 asRecordDetailViewdoes (deriveRecordDetailSections→buildDefaultPageSchema→buildDefaultPageColumns→RecordPageColumnswith the realrecord:detailsblock andRecordMetaFooter) and counts the owner's name over the whole page:owner_id: painted once, in the body, footer without owner;owner_idout (it lands in "Other"): once;owner_idout and it is drawn nowhere (hidden: true): the owner is on the meta line, once;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)
pnpm --dir ui exec vitest run packages/plugin-detail/: Test Files 394 passed, 1 skipped (395); Tests 3626 passed, 18 skipped.RecordDetailView.oneProvenanceFooter-12307with the new file: Test Files 2 passed (2), Tests 8 passed (8).false(viascripts/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.true: Tests 1 failed, 4 passed; only the collapsed-group case went red.src(the ui vitest config aliases@object-ui/plugin-detailto its source), so nodistrebuild was involved.RecordDetailView.phoneOwnerLine-28909file gave Test Files 1 passed (1), Tests 4 passed (4). The same file at c817146 (control) gave Tests 2 failed (2). Every app-shellRecordDetailView*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(thedrawsContentcondition 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
--freshbackend, plus the Console served by Vite from this tree'sui/source. The record is ashowcase_contactnamed "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 statusclean).Ownershipgroup listingowner_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.owner_idwas declaredhiddenand 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.Ownershipgroup. 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.owner_idlands 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.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv