Skip to content

feat(console): Change Owner on the record page, the list selection bar and the edit form (#35403) - #36343

Merged
objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-35403-change-owner-console
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/issue-35403-change-owner-console

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #35403

Clause-②: yes (widening) — new published @object-ui surface, measured on the export lists (merge base b3bcfefcb against head): onBulkChangeOwner and bulkChangeOwnerOffered props on ObjectGrid / ListView; CHANGE_OWNER_BULK_ACTION (plugin-grid); FormOwnerLine, FormOwnerLineProps, FormOwnerLineContext, FormOwnerActionTarget, FormOwnerLineHost (plugin-form; the last three also from /core); 'transfer' in RecordOperation (plugin-detail); grid.changeOwner and console.changeOwner.* keys in every locale (i18n); nothing removed or renamed
Metadata-protocol: none

Seat reading 2026-11-22 08:01Z: Q1 A, Q2 A

维护者速读

  • 控制台用户在记录页、列表批量选择栏和编辑表单上能看到「更改负责人」操作;编辑表单里负责人以只读显示,操作就在旁边。
  • 这是「更改负责人」三张卡里的最后一张(控制台界面);服务端接口和规则判断已经在前两张卡里合并。
  • 出错时最坏的情况是该显示的按钮没显示,或者在服务端本会拒绝的地方多显示了一个按钮;不改服务端,也不改任何数据规则,撤回这次合并即可。
  • 无。

What changes

The record page. The header gets a Change Owner entry in its ⋯ menu (sys_change_owner, in RecordDetailView's built-in header entries). It is drawn only when all three facts hold, as ruled:

  1. The object is structurally eligible.
  2. Its switch userActions.transfer is on. Facts 1 and 2 come from the spec's one resolution, resolveUserActionTransfer in @objectstack/spec/data.
  3. The explain engine's transfer verdict for this record is a definite allow.

The verdict comes from the record page's existing single read. Its explain list now asks transfer wherever facts 1 and 2 hold. seedRecordPageReaders seeds that answer into the same verdict cache useRecordVerdict reads, so there is no second per-record request. The queue Claim shares the same answer. If disabledWhen holds for the record, the entry is drawn disabled with the reason beside it, as the CRUD entries are.

One dialog (ChangeOwnerDialog), used by the record action, the form action and the bulk action:

  • The picker is labelled with the object's own label for owner_id. The served label is passed through fieldLabel, and "Owner" (i18n) is used only when the object serves none.
  • You can pick a person, or a queue where the object carries the ADR-0142 queue column. Queues are read from sys_queue only once the queue target is chosen.
  • An optional notify checkbox sends notify: true only when ticked.
  • One record calls data.changeOwner; two or more call data.changeOwnerMany, both from @objectstack/client. There is no server, spec, SDK or REST change.
  • A refusal shows the server's own sentence.
  • A bulk answer ends in a report: moved, already had this owner, did not move. Every row that did not move is listed with the server's sentence, unsampled.

The list. ObjectGrid's selection bar (and its row context menu's bulk section) offers Change Owner where the host wires the new optional onBulkChangeOwner prop, unless the new optional bulkChangeOwnerOffered is false; ListView forwards both. Wiring onBulkChangeOwner makes the rows selectable, as a bulk action does. The Console wires it wherever facts 1 and 2 hold (read client-side, no request), so a user with no bulk Delete, on a view with no authored bulk actions, still gets checkboxes. It passes bulkChangeOwnerOffered as the explain engine's transfer verdict for the OBJECT, which must be a definite allow (POST /security/explain with no recordId, one question per object and principal, shared by every list). The question is asked once a selection is open in the page's list, not when the list opens (useListChangeOwnerOffered(objectDef, listSelecting), reading the page's existing useListPageSelecting). Opening a list therefore costs the server no explain read, the posture the grid's row verdicts already take (useRecordCrudVerdicts). Rows that the switch's visibleWhen excludes are left out of the request with the same fail-closed fold the bulk Delete runs, and the dialog says how many it left out. The server judges every remaining row again.

The default edit form. owner_id is still dropped from the form's fields by filterSystemFields / SERVER_OWNED_FIELD_NAMES and never written by the form. It is now shown read-only on its own line above the fields, with the host's action beside it. The line appears only under a host that mounts FormOwnerLineContext (exported from @object-ui/plugin-form and its /core entry). The Console mounts it around its global edit dialog and the page-mode form. An embedded form without the context is unchanged.

Strings. All new strings are in all 11 console locales: grid.changeOwner and the console.changeOwner.* block. The two counted strings are plural families with a base key in every pack.

Tests

Rework round (L1 REWORK 7077241523, L2 FAIL 7077265450), head 7a1cdd56:

  • M1. The changeset's Clause-②: line reads yes (widening); its body lists the new surface per package. Measured with the TypeScript checker (getExportsOfModule and the members of each exported interface and type) on each entry, merge base b3bcfefcb against head. Added names: plugin-grid CHANGE_OWNER_BULK_ACTION; plugin-form FormOwnerActionTarget, FormOwnerLine, FormOwnerLineContext, FormOwnerLineHost, FormOwnerLineProps (root) and FormOwnerActionTarget, FormOwnerLineContext, FormOwnerLineHost (/core); plugin-list, plugin-detail (root and /core) and i18n add no name. Added members: ObjectGridComponentProps / ObjectGridProps onBulkChangeOwner, bulkChangeOwnerOffered; ListViewProps onBulkChangeOwner, bulkChangeOwnerOffered; RecordOperation "delete"|"update" to "delete"|"transfer"|"update". Removed: none. Re-read on the BUILT declarations of head 7a1cdd56 (the five packages' dist/*.d.ts, built under os-verify-lock): the same added names on every entry, and the same added members (ObjectGridComponentProps / ObjectGridProps / ListViewProps onBulkChangeOwner and bulkChangeOwnerOffered, RecordOperation with 'transfer', the FormOwner* members). The built and source lists differ only in declarations this diff does not touch (ColumnSummarySetting, ActivityFilterType, RecordStageMenuProps, a symbol id). The i18n surface is the locale packs' new keys: grid.changeOwner and the console.changeOwner.* block, in all 11.
  • S1. ObjectGrid turns multi-select on where onBulkChangeOwner is wired, and draws the entry only while bulkChangeOwnerOffered !== false; the Console wires the prop from facts 1 and 2 and passes the verdict asked once a selection is open. New pin ObjectView.bulkChangeOwnerReach-35403.test.tsx, through the real ObjectView and grid, for a user who may edit but not delete (can(…, 'delete') false) on an object with no authored bulk actions: checkboxes on open and no object-level transfer request; ticking both rows asks once and the bar carries sys_change_owner and no delete. A refused verdict leaves the rows selectable and the bar without Change Owner. Control: an ownership: 'none' object draws no checkboxes and asks nothing. 3/3.
  • Ablations on committed 7a1cdd56, through scripts/ablation-replace.mjs, each restore proved by blob == HEAD and an empty git diff HEAD. Dropping || onBulkChangeOwner from the multi-select arm (blob ba88537d73a0 to 1d7490f81be0) gave 2 failed, 1 passed: the transfer case and the refused case found no checkboxes, and the control stayed green. Dropping && bulkChangeOwnerOffered !== false (to 9d540e94f35b) gave 1 failed, 2 passed: the refused case drew Change Owner.
  • N3. The onBulkChangeOwner doc now says when the entry is drawn: at any count, except on a list page, where one selected record shows that record's own actions and the bulk entries start at two. That is what the bar does (singleRowMenu for one row on a list page); the code is unchanged.
  • Re-runs on 7a1cdd56, under os-verify-lock: every app-shell suite naming ObjectView or AppContent, plus changeOwner-35403, bulkChangeOwner-35403 and the payload pin: Test Files 289 passed (289), Tests 2639 passed (2639).

Earlier round, head 5d4ddea3:

Final head 5d4ddea3.

  • The six suites the object-level read had turned red, cause read. ObjectView.sharedViewSave-35955, ObjectView.objectBoundActions-7234, ObjectView.footerCalculationDraft-36194, ObjectView.readOnlyPackageViewSaves-35974, ObjectView.viewRefusal-12112 and AppContent.draftSaveKeepsList-35932 failed with the network-escape guard's Network escape: this test reached a REAL socket at http://localhost:3000/api/v1/security/explain. Every list open asked the explain engine. That was a product cost, not a missing double: the list now asks only once a selection is open, and these suites pass unchanged.
  • RecordDetailView.recordPagePayload-27627: the pin on the page request's explain list now reads ['update', 'delete', 'transfer']; the fixture object carries an owner, so the transfer verdict rides the same single read. The pin's intent (one request opens a record page) is unchanged.
  • ObjectView.phoneFabSelecting-35883 opens a selection, so it now gets an explain double answering no; any other request throws.
  • Runs, all under os-verify-lock:
    • every ObjectView.* suite plus AppContent, the payload pin and the card file, on 0e97ce47: Test Files 105 passed, 1 failed (the phone selection suite, fixed in df44c1a3);
    • every other app-shell suite naming ObjectView or AppContent, plus the phone selection suite, on df44c1a3: Test Files 188 passed (188), Tests 1720 passed (1720);
    • the whole @object-ui/i18n suite (with count-families-11445, de-quote-pairing-3876, untranslated-identity-4376, zh-hant-generated, all-locales-key-parity), the plugin-form affordanceGrantMap-12082 census, bulkChangeOwner-35403 and changeOwner-35403, on 5d4ddea3: Test Files 109 passed (109), Tests 2065 passed, 13 skipped. The first run of this set on a37c0ac5 was red in all-locales-key-parity (the two counted families had no base key in any of the 11 packs); 5d4ddea3 adds them.
  • Card pins, all in changeOwner-35403.test.tsx and bulkChangeOwner-35403.test.tsx: no action on ownership: 'none', managedBy and sys_* objects even for a platform admin; a controlled_by_parent detail shows none by default and shows it with userActions.transfer: true; a switched-off private object shows none for a modifyAllRecords holder; edit without transfer sees owner_id read-only and no action; the bulk report renders per-row failures. The five list-gate cases (allow asked once at object grain, refusal, refused read, no open selection asks nothing, ineligible object asks nothing) pass.
  • Ablation on committed 5d4ddea3, through scripts/ablation-replace.mjs: const asks = enabled && !!name && wanted; changed to drop && wanted, anchor 1 to 0, blob 293da7c28c7d to 8cae616fd61b; changeOwner-35403.test.tsx went 1 failed, 29 passed (the no-open-selection case); restore proved by blob 293da7c28c7d == HEAD and an empty git diff HEAD. The earlier visibility-leg ablations are on the previous dev's heads (structural 3 red, switch 2 red, verdict 3 red).
  • Type-check on 5d4ddea3: @object-ui/app-shell and @object-ui/i18n type-check (after building the @object-ui/app-shell^... closure): VERDICT command-exit 0.

Acceptance notes

  • L2 S2 and N2 carried by Change Owner follow-ups: bulk entry is grid-only (kanban/gallery have none) and the queue picker stops at 200 #36395.
  • Seat reading 2026-11-22 08:01Z: Q1 A, Q2 A. The list reads the explain engine's object-level transfer verdict, as the ruling words it. The Offboarding: banning a user says nothing about their open work, and there is no way to hand it over #30205 row cap stays server-only: over 500 rows the dialog shows the server's own VALIDATION_ERROR sentence.
  • N1 (the echo): a row whose owner already was the person picked reads "already had this owner", not "moved". On one record the dialog leaves the current owner out of the picker and refuses it with the reason shown. In a bulk report the unchanged count is capped at what the server counted updated. A queue target has no person to compare, so every admitted row reads as moved.
  • Change Owner is drawn on a definite allow only, on the record page, the form and the list. A deployment whose explain engine answers nothing shows no Change Owner anywhere, as the queue Claim beside it does.
  • On the list, Change Owner appears a moment after the selection bar the first time a selection opens for an object (one round trip); later selections read the kept answer at once.
  • Rows of an object that offers Change Owner are selectable for every user, the price of asking the verdict only on a selection. A user the verdict refuses, with no other bulk action, gets a selection bar with nothing but its count and its clear button.
  • On a list page, one ticked record shows that record's own actions, so the bulk Change Owner starts at two ticked records; that record's page offers Change Owner itself.
  • Not wired here (carrier: none; noted, not filed): the non-grid ListView bulk surfaces. onBulkChangeOwner reaches the grid only.
  • A dirty edit form saved after a Change Owner may meet the record's version check (the form re-reads in place only while pristine). Unchanged here.

Verification

Read first, by risk:

  1. ui/packages/plugin-grid/src/ObjectGrid.tsx: changeOwnerDrawn and the multi-select arm hasBulkActions || onBulkChangeOwner.
  2. ui/packages/app-shell/src/views/changeOwner.ts, useListChangeOwnerOffered (the wanted hold) and useRecordChangeOwnerOffer (the three-fact gate, verdict === true).
  3. ui/packages/app-shell/src/views/recordPagePayload.ts: transfer now seeds the record verdict as well as the Claim reader.

Two-minute check: pnpm --dir ui exec vitest run packages/app-shell/src/views/ObjectView.bulkChangeOwnerReach-35403.test.tsx packages/app-shell/src/views/changeOwner-35403.test.tsx. Expected: 33 passed.


Generated by Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
…eport; changeset

Co-Authored-By: Claude <noreply@anthropic.com>
… absence

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…t-level transfer verdict

The bulk gate read the owner field's write grant from /me/permissions, a
CRUD grant read outside the affordance-to-grant map, and not the explain
engine's transfer operation the ruling names. It now asks that operation
once per object.

Co-Authored-By: Claude <noreply@anthropic.com>
… regenerated

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
…ction is open, not on first paint

Opening a list asked the explain engine on every mount of an owner-bearing
object. The answer matters only to the selection bar, so the question waits
for an open selection, as the grid's row verdicts do. The record payload pin
reads the transfer verdict it now carries.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds
@objectstack-fleet objectstack-fleet Bot changed the title feat(console): Change Owner on the record page, the list selection bar and the edit form (part of #35403) feat(console): Change Owner on the record page, the list selection bar and the edit form (#35403) Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

Final head (area f7-list, 2026-11-22T09:27Z): 5d4ddea35a8c95307f41108be588edadf040813c — CI on it green (0 failed); dev report 7077135785. Body now Fixes #35403 with the seat reading (Q1 A, Q2 A); Clause-② amended to yes (widening) on the card. The six red suites were a product cost (an explain request on every list open), fixed by asking the object-level transfer verdict only once a selection is open; ablated. L1 (L1-d) + the seat's TIER_DEFAULT declaration-face review requested via seat repo:objectstack#7.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 5d4ddea · 2026-11-22T09:28Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf

L1 REWORK · head 5d4ddea35a8c95307f41108be588edadf040813c · 2026-11-22T09:34Z

维护者速读

要改的(1 项)

  1. changeset 的 Clause-② 行与 PR 不一致。 .changeset/35403-change-owner-console.md 第 12 行写的是 Clause-②: no,但 PR 正文已按新增键改成了 Clause-②: yes (widening)。diff 里确实是放宽:@object-ui/plugin-grid 新导出了 CHANGE_OWNER_BULK_ACTION,ObjectGrid 和 ListView 各多了一个可选 prop onBulkChangeOwner,@object-ui/plugin-form 和 /core 新导出了 FormOwnerLineContext,RecordOperation 加了 'transfer',11 个语言包加了 console.changeOwner.* 键。changeset 正文下一段也逐条写了这些新增,所以第 12 行和它自己的正文矛盾,而且会原样进 CHANGELOG。请把这一行改成 Clause-②: yes (widening),和正文一致。这一次只是改 changeset 的提交,我做增量审核时只核这一行加 CI。

席位核对

  • 形态:l1-face --pr 36343 CLEAN,13 项都没有标记;draft、base main、Fixes #35403。卡的完成标准逐条都有用例钉住(changeOwner-35403.test.tsx):ownership: 'none'、managedBy、sys_* 对平台管理员也不出现;controlled_by_parent 默认不出现,开了 userActions.transfer 才出现;关掉开关的 private 对象对 modifyAllRecords 持有者不出现;能编辑但不能转移的人只看到只读负责人、没有按钮;批量结果按行列出失败。所以用 Fixes 是对的。改动 39 个文件,+2070 −18;check-governed-merges 判定 NOT governed。
  • 实现读法:可见性等于三件事同时成立。前两件(结构上可转移、对象开关打开)由 spec 唯一的 resolveUserActionTransfer 判定,和服务端接口用来拒绝的是同一个;第三件是 explain 的 transfer 判定,只在明确为 true 时才显示。记录页上这个判定搭在记录页那一次读取里(explain 里加了 transfer,seedRecordVerdict 现在对 transfer 也写入),不会多发一次请求;列表上按对象问一次,不带 recordId。
  • 列表红套件的修法:useListChangeOwnerOffered 的 wanted 等于「这个列表里打开了选择」,所以打开列表时不发 explain 请求。有一条钉专门测「没有选择不问、打开问一次、再打开读缓存」,席位说已经消融过,我照收。批量时先按 visibleWhen 在前端剔掉不合格的行,并告诉用户剔了几行;其余行交给服务端逐行判。选当前负责人会在弹窗里直接拒绝,并说明原因。批量报告把服务端计入 updated、但负责人本来就是这个人的行算作「未变化」。
  • 默认表单:负责人一行只在宿主挂了 FormOwnerLineContext、处于编辑模式、对象有 owner_id 时才显示,只读,不进入保存的数据;嵌入到 Console 以外的表单不受影响。vite 的 plugin-form-core 分块正则加了 formOwnerLineContext,和 core.ts 的导出闭包一致。
  • changeset 逐句核:除了上面那一项,其余句子都和 diff 一致,包括三处入口、三件事的可见性条件、controlled_by_parent 默认关、选择打开后才问一次、剔除计数、批量报告的四类计数,以及表单负责人一行只在挂了 context 时出现。
  • 测试证据:app-shell 有 30 多条用例,plugin-grid 选择栏 2 条。这些用例我没有在本地重跑,读的是 CI。
  • 门禁 check-runs @ 5d4ddea3:49 success · 13 expected skip · 0 failed · 0 pending。
  • nit(不要求在本 PR 改):① formOwnerLine.tsx 里 id="form-owner-line-label" 是写死的,同一页上有两张编辑表单时 id 会重复,换成 React.useId() 更稳。② 同一文件里负责人标签的兜底 'Owner' 是英文字面量,不过 fieldLabel 会先查对象翻译,只在对象没给标签时才用到。③ askObjectTransfer 的对象级判定在模块里按会话缓存,同一会话内权限变了也不会重问。服务端每行都会再判,所以最多是多显示一个会被拒的按钮。
  • 范围外去向:无。
  • 落地条款:非受管,2088 行 ≤ 3000;本项改完后做增量 L1,再加席位的 L2 PASS,之后由 f7-list ready + auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 5d4ddea35a8c95307f41108be588edadf040813c
Local-runs: none

Inputs read: card #35403 (body and all 8 comments, including both os-dev reports 7075371378 and 7077135785, claim 7075890990 and the amendment 7077153598), the PR #36343 body and file list, the net diff against merge base b3bcfefcb871 (39 files, +2070/-18), and the 62 check-runs on the head (49 success, 13 skipped, none red).

① Derived judgments

  • Paths. Only ui/** and one changeset change. No path under packages/ (spec, server, SDK, REST) appears in the diff, so the claim's "no server, spec or SDK change" holds.
  • Accept sets: none moved. RIGHT. No authorable metadata key, value or type is added, removed or changed. The console now reads userActions.transfer through the spec's existing resolveUserActionTransfer (merged in Change Owner (1/3 spec): object switch userActions.transfer and structural eligibility for the Change Owner action #35401) and calls the existing data.changeOwner / data.changeOwnerMany (merged in Change Owner (2/3 server): single and bulk Change Owner endpoint gated by the object switch, with per-row report #35402). The object-level POST /security/explain with operation: 'transfer' and no recordId is a shape the explain engine on main already takes: recordId is optional there and transfer is a mapped operation. The record page's explain list gains transfer for more objects. The server already answered transfer there for queue-column objects.
  • Public surface: widened, nothing removed or renamed. RIGHT. Every package named below is published (private unset). Each deleted line is rewritten in place.
    • @object-ui/plugin-grid:
      • new optional onBulkChangeOwner on ObjectGridComponentProps, which is exported (and aliased as ObjectGridProps);
      • new export CHANGE_OWNER_BULK_ACTION = sys_change_owner.
      • Wiring the prop also turns multi-select on (hasBulkActions) and appends the entry when authored bulkActions are given. This is opt-in and additive.
    • @object-ui/plugin-list: new optional onBulkChangeOwner on ListViewProps, forwarded to the grid only.
    • @object-ui/plugin-form:
      • from the root: FormOwnerLine, FormOwnerLineProps, FormOwnerLineContext, FormOwnerActionTarget, FormOwnerLineHost;
      • from /core: FormOwnerLineContext and its two types.
      • ObjectForm and ModalForm draw the line only under a mounted context, so they are unchanged without one.
    • @object-ui/plugin-detail: the exported type RecordOperation gains 'transfer'. As a result, the exported useRecordVerdict and seedRecordVerdict accept it.
    • @object-ui/i18n: new keys in all 11 locale packs: grid.changeOwner and the console.changeOwner.* block, two of them plural families with base keys.
    • @object-ui/console: build chunking only (vite.config.ts, the plugin-form-core chunk test adds formOwnerLineContext).
    • @object-ui/app-shell is private. Its new modules are not published surface.

② Semver level

  • Levels: RIGHT. Every entry is patch. Under AGENTS.md (Post-Task Checklist 3), a non-protocol widening ships patch. Every touched package has an entry: the seven above, app-shell included as precedent allows. Check Changeset is success.
  • Clause-②: yes (widening) on the PR body: TRUE for the surface in ①.
  • Metadata-protocol: none: TRUE. Nothing an author can write changes.
  • MUST-FIX M1: the changeset body still declares Clause-②: no.
    • The rule. AGENTS.md requires both declaration lines in the PR body AND the changeset body. The amendment 7077153598 adopts option B of report 7077135785, which states the seat "copies it into the PR body and the changeset body". Only the PR body was updated. .changeset/35403-change-owner-console.md at this head reads Clause-②: no.
    • The consequence. The stale line has a published effect. scripts/release-github-releases.mjs classifyReleaseBullet reads the line from the CHANGELOG bullet the changeset becomes. With no beside none, it files this entry under other instead of added (新增能力), so the release notes misfile a widening.
    • Why CI did not catch it. No check-run catches the mismatch: check-changeset-no-major reads the PR-body line, and every check on the head is green.
    • Fix. Change that line to Clause-②: yes (widening), and keep Metadata-protocol: none and the patch levels. The head moves.
  • Nit N1: the list of widened surface is incomplete. The card amendment and PR-body line name FormOwnerLineContext but not the four other new plugin-form exports or the new i18n keys. The arm stays true. Name them when M1 touches the changeset.

③ Boundary flags

Q1 (seat reading A): answered. The list reads the explain engine's object-level transfer verdict, which is the ruling's wording.

  • SHOULD-FIX S1: the bulk entry cannot be reached in some lists. Carry on a follow-up card, or fold it into the M1 rework since the head moves anyway. Escalated to the seat.
    • The cause. The final head asks the verdict only once a selection is open: useListChangeOwnerOffered(objectDef, listSelecting), with listSelecting from useListPageSelecting. But ObjectGrid turns multi-select on only from an authored selection/selectable or from hasBulkActions. hasBulkActions counts Change Owner only after the host wires onBulkChangeOwner, and the host wires it only after a selection is open.
    • Who is affected. A user who holds transfer but not delete (canDelete false), on an object with no authored bulkActions and no selection, gets no checkbox. The verdict is never asked, and bulk Change Owner never appears.
    • When it came in. The previous head asked on list open, so this gap arrived with the lazy-ask fix in this round.
    • Test coverage. No test covers it: the plugin-grid suite wires the prop directly, and the app-shell list-gate cases drive the selection by hand.
  • Q2 (seat reading A): answered. The 500-row cap stays server-only, which is consistent with the claim's "no SDK change" limit. Over the cap the dialog shows the server's VALIDATION_ERROR sentence.
  • Report 7077135785's open question (the Clause-② line): answered by amendment 7077153598. It was carried to the PR body only (see M1).
  • Dev deviations: all answered.
    • The PR body was written by the seat. It is present, with Fixes #35403 and the seat-reading line.
    • The first push of the round went out before overlap-check. Every later push was preceded by a clean overlap-check. Accepted, with no surface effect.
    • Two derived families were not run locally. CI ran them, and the head's check-runs answer them green.
    • The commit trailer choice is not a contract matter.
  • Out-of-scope flag: non-grid ListView bulk surfaces are not wired (SHOULD-FIX S2). onBulkChangeOwner on ListView does nothing over a non-grid view. Its jsdoc says it is forwarded to ObjectGrid, so the published prop's doc is honest. It has no carrier today: carry on a follow-up card.
  • Out-of-scope flag: a dirty edit form meeting the version check after a Change Owner. Accepted as stated. This is the form's existing posture, unchanged here.
  • SQL push-down: no finding.
    • The client-side visibleWhen fold over the selected rows mirrors bulk Delete, with the reason given: it fails closed and the server judges every row again.
    • Select-all-matching uses the existing capped resolveBulkRows.
    • readChangeOwnerReport compares rows already loaded, with no join.
    • The sys_queue read is a server-side $top.
    • The owner picker is the existing UserWidget.
  • Nit N2: queues past 200 are silently left out. ChangeOwnerDialog reads sys_queue with $top: 200 and has no search or paging, so a queue past the 200th cannot be picked and nothing says so.
  • Nit N3: the jsdoc overstates a count check. The onBulkChangeOwner jsdoc on ObjectGrid says the entry is offered "for two or more records". The code adds no count check; one row goes through data.changeOwner. This is a doc fix only.

Implemented-by: claude/issue-35403-change-owner-console
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: FAIL

…ngeset declares the widening

Wherever the object offers Change Owner, the list's rows take a selection,
so the transfer verdict asked once a selection is open can be asked at all;
bulkChangeOwnerOffered holds the entry back until it allows. The changeset's
Clause-② line now reads yes (widening) and lists the new surface.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds
…Delete; grid doc says when the entry is drawn

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

Final head after the REWORK round (area f7-list, 2026-11-22T11:54Z): 7a1cdd5632cefa35967c5753cc75c9a8dc02a3fd — CI on it: 58 runs, 0 non-green (before my body patch; body-gated guards re-running). Map (dev report 7078722939): M1 — changeset Clause-②: yes (widening) + per-package surface measured on source and built .d.ts (adds bulkChangeOwnerOffered beside onBulkChangeOwner); S1 — ObjectGrid turns multi-select on where onBulkChangeOwner is wired (from structure + switch, client-side, no request), bulkChangeOwnerOffered carries the verdict asked only once a selection opens; pinned with the transfer-no-delete user on an object with no authored bulk actions (ObjectView.bulkChangeOwnerReach-35403.test.tsx), two ablations red → restored; N3 — ObjectGrid doc matches the code. S2/N2 carried by #36395. Declared S1 cost in Acceptance notes: a refused user with no other bulk action sees a selection bar holding only its count. Delta L1 (L1-d) + delta L2 requested via seat repo:objectstack#7.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf

L1 ACCEPT(增量)· head 7a1cdd5632cefa35967c5753cc75c9a8dc02a3fd · 2026-11-22T11:58Z

维护者速读

  • 用户能看到什么变化:相比上一轮多了一点:一个没有批量删除权限的人,在可以转移负责人的对象列表里,现在也能勾选行,并在选择栏里用「更改负责人」。代价是:服务端拒绝转移、又没有别的批量操作的人,勾选之后只会看到一条写着数量和「清除」的选择栏。
  • 为什么做:卡 Change Owner (3/3 console): record and list Change Owner action, its dialog, and a read-only owner on the default form #35403(p1)。我上一轮的 REWORK 7077241523 只要求改 changeset 的 Clause-② 行;席位的 L2(7077265450)指出,没有批量删除的人根本够不到批量「更改负责人」。
  • 出错会怎样:最坏情况是被拒的人多看到一列勾选框和一条只有数量的选择栏,不会转错,因为每一行服务端都会再判一次。可以整体撤回。
  • 要你做什么:无。
  • 席位意见:增量 ACCEPT。上面说的那个代价是产品取舍,正文写明了,由席位的 L2 判断。

增量核对(5d4ddea3 → 7a1cdd56,2 个提交,6 个文件)

  • 我那一项:changeset 第 13 行现在是 Clause-②: yes (widening),和 PR 正文一致。changeset 正文把新增的公开面按包逐条列了出来:plugin-grid 新增两个 prop 和 CHANGE_OWNER_BULK_ACTION;plugin-list 转发这两个 prop;plugin-form 根导出新增 5 个名字、/core 新增 3 个;plugin-detail 的 RecordOperation 加了 'transfer';11 个语言包加了新键。这和正文 M1 的读数对得上(用 TypeScript checker 在源码和构建出的 .d.ts 上各读一遍,只有新增,没有删除)。Metadata-protocol: none 仍然属实。
  • S1 的修法:
    • ObjectGrid 在接了 onBulkChangeOwner 时打开多选。bulkChangeOwnerOffered !== false 时才画这个入口。缺省时照旧画,所以别的宿主不受影响。
    • Console 一侧:onBulkChangeOwner 只按前两个条件(对象结构上能转移、对象开关打开)接上,这两个条件在客户端就能读,不发请求。第三个条件是服务端的判定,仍然要等打开选择才问,并且通过 bulkChangeOwnerOffered === true 传下去。判定还没回来时读作 false,也就是先不画,不会先画出来再收回。
    • ListView 用已有的 {...props} 转发这个 prop(第 2405 行和第 8426 行),新增的只有接口那一行,不用另写转发。
    • useMemo 依赖了 objectDef,渲染回调的依赖数组也加了 bulkChangeOwnerOffered,都对。
  • TSDoc 逐句核:onBulkChangeOwner 原来写「两条或以上」,现在改成「任意数量;只有在列表页上,选中一条时显示那条记录自己的操作,批量入口从两条起」。这和 ObjectGrid.tsx:3504 的实现一致(listPageGrid && selectedRows.length === 1 时给 singleRowMenu)。bulkChangeOwnerOffered 和 ListView 那两段新 TSDoc 也都与代码一致。changeset 新加的一句(行在用户没有批量删除时也能勾选,判定拒绝时不画入口)写的也是这件事。
  • 测试证据:新文件 ObjectView.bulkChangeOwnerReach-35403.test.tsx 有 3 条,走的是真实的 ObjectView 和 grid。第一条是能编辑但不能删除的用户:列表一打开就有勾选框,但还没发 transfer 请求;勾选两行后问一次,选择栏里有 sys_change_owner,没有 delete。第二条是判定被拒:行还能勾选,但栏里没有「更改负责人」。第三条是对照:ownership: 'none' 的对象没有勾选框,也什么都不问。两条消融都在已提交的 head 上做过:去掉 || onBulkChangeOwner,挂 2 条;去掉 && bulkChangeOwnerOffered !== false,被拒的那条会画出入口,挂 1 条。还原后都核过 blob 等于 HEAD。
  • 范围外去向:L2 的 S2 和 N2 由 Change Owner follow-ups: bulk entry is grid-only (kanban/gallery have none) and the queue picker stops at 200 #36395 接手。
  • l1-face --pr 36343:没有任何标记。CI @ 7a1cdd56:49 success · 13 expected skip · 0 failed · 0 pending;mergeable_state clean。
  • 落地条款:非受管;等席位的增量 L2 PASS 之后,由 f7-list ready + auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7a1cdd5632cefa35967c5753cc75c9a8dc02a3fd
Local-runs: none

Delta review. The previous record is 7077265450, a FAIL at 5d4ddea3. Inputs read: that record and every finding in it; card #35403 with all 9 comments, including the new os-dev-report 7078722939; the PR #36343 body as it stands now, with its finding-to-fix map; the L1 REWORK 7077241523 and the seat's final-head note 7078753036; carrier card #36395; the net diff against merge base b3bcfefcb871 (40 files, +2318/-20); the delta 5d4ddea3..7a1cdd56 (6 files, +265/-19); and the 62 check-runs on the head (49 success, 13 skipped, none red, none pending).

The delta holds two commits, d3e38066 and 7a1cdd56, both authored by the PR. It holds no merge from main. The merge base is still b3bcfefcb871, so nothing unauthored rides in. The net diff grew by one file, the new pin ObjectView.bulkChangeOwnerReach-35403.test.tsx.

Prior findings, judged on this head:

① Derived judgments

  • Paths. The delta touches only ui/** and the changeset. No packages/ path is in the net diff. The claim of no server, spec or SDK change still holds.
  • Accept sets: none moved. RIGHT. The delta adds no authorable key, value or type. The Console reads facts 1 and 2 through the existing resolveUserActionTransfer (changeOwnerObjectOffer). That is a metadata read with no request.
  • Public surface: widened again, nothing removed or renamed. RIGHT.
    • @object-ui/plugin-grid: new optional bulkChangeOwnerOffered on the exported ObjectGridComponentProps (aliased ObjectGridProps). The multi-select arm now reads hasBulkActions || onBulkChangeOwner. The entry is drawn only while bulkChangeOwnerOffered !== false.
    • @object-ui/plugin-list: new optional bulkChangeOwnerOffered on ListViewProps. Like onBulkChangeOwner, it is not destructured, so it rides the existing props forward to the grid. Ablation (b) in the PR body shows the value reaches the grid through the real ListView.
    • A host that wires onBulkChangeOwner and omits the new prop behaves as before: the entry is drawn and the rows take a selection. An authored selection or selectable still wins over the new arm, since it sits after both in the chain. So selection.type: 'none' keeps checkboxes off.
  • The new prop is a published-surface widening. Both packages are published. The Clause-②: line on the PR body names it ("onBulkChangeOwner and bulkChangeOwnerOffered props on ObjectGrid / ListView"). The changeset body names it under plugin-grid and plugin-list. The line therefore names it, as it must.

② Semver level

  • Levels: RIGHT. Every entry is patch. A non-protocol widening ships patch under AGENTS.md (Post-Task Checklist 3). All seven touched packages have an entry. Check Changeset is success.
  • Clause-②: yes (widening): TRUE on both the PR body and the changeset body, and the two now agree.
  • Metadata-protocol: none: TRUE. Nothing an author writes changes.

③ Boundary flags

S1 design: holds.

  • Reach. The Console wires onBulkChangeOwner wherever facts 1 and 2 hold, read client-side. That alone turns the selection on. The verdict is still asked only once a selection is open (useListChangeOwnerOffered, the wanted hold), and the renderer passes bulkChangeOwnerOffered === true. So the entry stays off while the answer is pending, on a refusal, and when the engine answers nothing. It fails closed.
  • Pin. The new pin drives the real ObjectView and grid for a user with can(…, 'delete') false on an object with no authored bulk actions. Checkboxes show on open and no request is sent. Ticking asks once, and the bar carries sys_change_owner and no delete. A refusal keeps the rows selectable and draws no entry. The control object asks nothing and draws no checkbox. The two ablations in the PR body turn the right cases red.
  • The declared cost holds. A refused user with no other bulk action gets a bar holding only its count and its clear button. This state is not new to the grid: an authored selection with no bulk actions already draws it. Select-all-matching only sets a flag, and its fan-out runs only when an action runs, so the count-only bar costs no extra read. The total it offers is the same total the summary row already shows.
  • No leak. Whether the rows take a selection depends only on the object definition, which every viewer already holds. It does not depend on the user's grants, the records, or their count. The bar's count is the count of rows the user ticked, all of which they can already read. The entry reveals only the caller's own object-level verdict, and the record page already shows that per record. So the bar does not reveal whether records exist or whether they can be changed. If anything, selection is now less tied to grants than before, since a transfer-only user and a refused user see the same checkboxes.
  • Nit N4: the declared cost leaves out two visible effects. Neither is wrong, and both follow the existing rules. First, ObjectGrid now publishes selectionAvailable: true for these users. So the list header's launch gate (List header: a single-record action (Reassign…) is live with no row selected, and a dead end where rows cannot be selected #27831) draws header actions that need a selected record as disabled with a reason, where it used to leave them out. Second, on the phone, the page's Select entry now shows for these lists. Name both beside the count-only bar if the body is touched again.
  • Nit N5: the PR body contradicts itself on the carrier. Acceptance notes say "L2 S2 and N2 carried by Change Owner follow-ups: bulk entry is grid-only (kanban/gallery have none) and the queue picker stops at 200 #36395". A later note still says the non-grid ListView bulk surfaces have "carrier: none; noted, not filed". Change Owner follow-ups: bulk entry is grid-only (kanban/gallery have none) and the queue picker stops at 200 #36395 carries it. The stale note should name Change Owner follow-ups: bulk entry is grid-only (kanban/gallery have none) and the queue picker stops at 200 #36395.

os-dev-report 7078722939. open_questions is empty. Its deviations are all answered:

  • Two pushes this round. The first was a safety copy before long lock waits. overlap-check was clean before each. Accepted, with no surface effect.
  • The seat wrote the PR body. It is present, with Fixes #35403, both declaration lines and the seat-reading line.
  • The S1 cost statement is judged above.
  • The merge-base export lists came from a detached worktree that has since been removed. This is a measurement method, not a contract matter.
  • Two derived families did not run locally (dual-build-cjs-loads, type-check-debt). CI ran them, and the head's check-runs answer them green.

Out-of-scope flags. S2 and N2 are carried by #36395 (see above). The dirty-form version check stays accepted as before.

SQL push-down: no finding. The delta adds no data read. Facts 1 and 2 come from the object definition. The object-level verdict is one explain question per object and principal. Earlier rounds' reads are unchanged.

No must-fix, no should-fix.

Implemented-by: claude/issue-35403-change-owner-console
Reviewed-by: session_01QsR2jTeURPvEm465RcoYEC

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Landing (seat 7, 2026-11-22T12:01Z): head 7a1cdd5632cefa35967c5753cc75c9a8dc02a3fd · L1 ACCEPT 7078801316 (L1-d, delta) · L2 PASS 7078822367 (TIER_DEFAULT, declaration face, delta after FAIL 7077265450: M1, S1, N1, N3 closed; S2 and N2 carried by #36395) · check-governed-merges --pr 36343: NOT governed · CI on the head: 49 success, 13 skipped, none failed. → pr_ready + automerge_enable (merge queue).
Accepted cost: a user refused Change Owner who has no other bulk action sees a selection bar with only its count. The L2 nits N4 (header actions that need a selected record show disabled with a reason, and the phone Select entry shows on these lists) and N5 (the body still says "carrier: none" for the non-grid ListView surfaces, which #36395 carries) are body-only.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 12:02
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 6a35635 Nov 22, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35403-change-owner-console branch November 22, 2026 12:23
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…the default list toolbar (objectstack-ai#36339)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XURgXCZHcjPoyo5g9cMEATi)_
Fixes objectstack-ai#36002

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 列表默认工具栏里,看板、日历这类视图如果除了刷新外没有别的显示选项,就不再出现一个点开只有底栏的空「显示」入口;宽工具栏的刷新按钮照旧。
- 属于「列表页重做」专题:两行工具栏按「刷新去掉」落地后剩下的收尾。
- 出错时最坏是这类视图少了「显示」入口,而它本来就没有可用的选项;改动小,可整体撤回。
- 无。

## What changes

- `ui/packages/plugin-list/src/ListView.tsx`: `displayOffered` no longer
ORs `toolbarFlags.showRefresh`. The default (Display) toolbar has no
Refresh since the two-row toolbar landed, neither on the bar nor in the
panel (`viewSettingsElement` is handed no refresh prop), so the key was
the only reason a non-grid view with every other Display control off
drew a Display entry that opened onto just the footer. The stale Refresh
comment ("in the Display form it sits in the panel's footer") now says
Refresh is wide-form only.
- `packages/spec/src/ui/view.zod.ts`: the `userActions.refresh` describe
says the toggle governs only the wide toolbar's Refresh
(`compactToolbar: false`) and changes nothing in the default toolbar.
Description text only: key, type and default unchanged; no retirement
(card item 2, first branch, per the claim).
- `packages/spec/src/ui/view.form.ts`: the form hint for
`userActions.refresh` mirrors the new describe. Required, not chosen:
`src/ui/view-form-composite-children.test.ts` pins every `userActions`
hint equal to the schema description it replaces, and went red without
it.
- Regenerated, never hand-edited:
`content/docs/references/ui/{view,page}.mdx` (`check:generated --fix`,
which named only `check:docs` stale) and
`packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts`
(`node scripts/check-i18n-bundles.mjs --write
--filter=platform-objects`; the other ten locales keep their
hand-written translations, no source-hash entries exist for this leaf).
- Pin: a new top-level block `ListView.refreshOnlyDisplay-36002` in the
shared `ListView.harness.test.tsx` (the harness rule: a ListView pin
that needs no `vi.mock` joins that file). A kanban view with Group, Row
height and Hide fields off and `refresh` at its default draws no
`toolbar-display-trigger`; CONTROLS: `compactToolbar: false` still draws
`refresh-button`, and the same view with Row height on draws the Display
entry.
- Changeset `.changeset/36002-refresh-display-panel.md`: patch for
`@object-ui/plugin-list`, `@objectstack/spec`,
`@objectstack/platform-objects`.

Read first, by risk:
1. `ui/packages/plugin-list/src/ListView.tsx`, the `displayOffered`
hunk: the one behaviour change.
2. `packages/spec/src/ui/view.zod.ts`, the `refresh` describe: a
published-schema text face (contract review on record before landing).
3. `ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx`,
the new block at the end.

## Tests

Final head: `75244b315e1d79c1455fbd2d343e00be5fbcbf8b` (declared by the
resuming thread; no commit added after the handover).

- CI at `75244b31`: all 70 check-runs completed, each `success` or
`skipped` (Test Core 10/10 shards, Test UI 16/16 shards, Type Check UI,
Lint UI, Build & E2E UI, Live E2E UI, Lint & Repo Gates, TypeScript Type
Check, Check Changeset, Spec property liveness, Governed Surface Queue
Guard, PR-body guards).

<details><summary>Local readings (all under
scripts/pm/os-verify-lock.sh)</summary>

- Final-head union at `75244b31`, after building the
`@objectstack/platform-objects...` and `@object-ui/plugin-list^...`
closures (VERDICT command-exit 0): `pnpm --filter @objectstack/spec
test` Test Files 869 passed (869), Tests 27877 passed, 1 todo (27878);
`pnpm --filter @objectstack/platform-objects test` Test Files 125 passed
(125), Tests 2126 passed (2126); harness file
`ListView.harness.test.tsx` Test Files 1 passed (1), Tests 127 passed
(127). Each VERDICT command-exit 0.
- Harness file `ListView.harness.test.tsx`: Test Files 1 passed (1),
Tests 127 passed (127) at fa1bd43 (the fix commit).
- `pnpm --filter @object-ui/plugin-list test`: Test Files 183 passed
(183), Tests 1998 passed (1998) at d6ea716 (later commits touch no
`ui/` file).
- `pnpm --filter @object-ui/plugin-list type-check`: exit 0 at d6ea716.
- `pnpm --filter @objectstack/spec typecheck`: exit 0 at d6ea716.
- `pnpm --filter @objectstack/spec test` at d6ea716: 1 failed
(`view-form-composite-children.test.ts`, the hint pin), fixed by
e680c59; that file then 20 passed (20).
- `pnpm --dir ui exec vitest run scripts/`: 172 passed, 2 skipped (174
files) at d6ea716.

</details>

<details><summary>Ablation (one-shot, not kept)</summary>

Committed fix first, then `node scripts/ablation-replace.mjs` put `||
toolbarFlags.showRefresh` back into `displayOffered` (anchor x1 -> x0,
blob d73fea0 -> bdd2b94ef1ae). With `-t refreshOnlyDisplay-36002`:
the pin went red (`the default toolbar draws no Display entry when
Refresh was its only option` failed), both CONTROLS stayed green; 1
failed / 2 passed. Restore: blob == HEAD (d73fea0), `git diff HEAD`
empty; re-run 3 passed. The test imports `../ListView` (source), so no
dist rebuild was in the path.

</details>

## Acceptance notes

- Card acceptance 1 ("A view whose only display option was Refresh no
longer opens an empty Display panel in the default toolbar"): pinned by
the new block, ablation red without the fix. Only non-grid views can
reach it: the grid always offers Display (`currentView === 'grid'`, its
columns).
- Card acceptance 2 ("The key's describe matches what it does"):
describe, form hint and generated references now say wide-toolbar only.
- Skills/docs measured for text claiming `userActions.refresh` governs
the default toolbar: zero hits in `skills/**`, `content/docs/**`
(outside `references/` and `releases/`) and `ui/**/*.md`; control term
`userActions.editInline` hits
`content/docs/frontend/plugins/plugin-view.mdx`. No stale text to name.
- Noted, not filed: the ten translated locales of the
`userActions.refresh` form hint still carry only the first sentence
(still true, now less precise than English). Translation is a
translator's edit, outside this card.
- Noted, not filed: the spec describe of `compactToolbar` ("Collapse
Group/Color/Density/Hide-fields into a single View settings popover")
does not say that collapsing is the renderer default
(`schema.compactToolbar !== false`) nor that Refresh is dropped;
observation only.
- File surface beyond the first claim:
`packages/spec/src/ui/view.form.ts` and the regenerated
`en.metadata-forms.generated.ts`, both forced by the hint pin above; the
seat amends the claim.
- Overlap: `node scripts/pm/overlap-check.mjs` re-run at `75244b31`:
VERDICT clean against `origin/main` b3bcfef and objectstack-ai#36343 (shares
`ListView.tsx`), merges cleanly. Earlier run: clean against objectstack-ai#36223
(since merged).

## Verification

Two-minute check: `cd ui && pnpm exec vitest run
packages/plugin-list/src/__tests__/ListView.harness.test.tsx -t
refreshOnlyDisplay-36002` shows 3 passed. In the Console, a kanban list
view with `userActions: { group: false, rowHeight: false, hideFields:
false }` shows no Display button beside the view name; set
`compactToolbar: false` and the Refresh button appears on the bar.

<details><summary>Gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` on the final diff: 119
commands; all run locally; `--ran` reconciliation "119 derived
famil(ies) accounted for — 119 run, 0 NOT-MEASURED".
- Exit 0: 115. Exit 3 (PREREQUISITE NOT MET, NOT MEASURED locally, CI
measures): `node scripts/check-plugin-teardown-shape.mjs --self-test`
(shallow clone cannot reach its pinned fixture commit), `pnpm
check:dual-build-cjs-loads` (whole-tree dist absent), `pnpm
check:type-check-debt` (re-measure needs the whole build), `pnpm
--filter @objectstack/spec run check:skill-examples` (client-react dist
absent).
- `pnpm --filter @objectstack/spec check:generated`: all 14 generated
artifacts up to date; `node scripts/check-i18n-bundles.mjs`: OK, all
bundles in sync.
- `node scripts/pm/dispatch-gates.mjs --tier` re-derived at `75244b31`
by the resuming thread: no path-derived mandate (default tier).

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jRPEaXTds3tgVP5XEY -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… and the pinned list view per organization (objectstack-ai#36341)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbUq2j5tRRVo3TVY3wcS1Fdg)_
Fixes objectstack-ai#36244

Clause-②: no
Metadata-protocol: none

## 维护者速读

-
同时属于两个组织的用户,用同一个浏览器切换组织后,不再在新组织里先看到旧组织的收藏、最近访问、上次应用和固定视图;单组织与无组织部署的用户原有内容保留。
- 为个人设置清点中您接受的建议(p2):浏览器里的副本跟服务器一样按组织分开保存。
- 出错时最坏是某个组织里的收藏或固定视图首次显示为空、等服务器读回后恢复;不涉及他人数据,撤回本改动即回到原行为。
- 无。

## What changes

- `scopedKey(base, userId, orgId?)` (`UserStateAdapters`) spells
`BASE:u:USER:o:ORG` when an organization is active; without one (no
organization feature, a preview, the boot before an organization is
known) it is the user-only key as before.
- The organization is `ActiveOrganizationStorage`'s id, read
synchronously (`useOrganizationScope`): the same id the console stamps
on the `sys_user_preference` reads as `X-Tenant-ID`, and the one
`switchOrganization` stores before the switch reloads the console, so
the first paint after a switch reads the new organization's copy.
- `FavoritesProvider`, `RecentItemsProvider`, `LastAppProvider`,
`FlowPaletteRecentsProvider` read and write their browser copy under
that key, and re-load when the organization changes.
`FavoritesProvider`'s hydrate push-back now reads this organization's
local copy, so it can only carry this organization's own nav-pin extras
into its row.
- The pinned list view (`list.view.pinned`) is read through
`usePinnedListView` (new, `views/pinnedListView.ts`), whose slot is
`os:pref:list.view.pinned@object:OBJECT@org:ORG`. Only this preference
is keyed this way; the `os:pref` mechanism and every other workspace
preference are unchanged.
- **Carry-over rule (Done-when 4):** an organization that finds no copy
of its own adopts the copy kept before the organization was part of the
key (the user-only `ui.*` copy, and the per-object pin slot): the value
moves under that organization's key and the old key is removed, so
exactly one organization, the first to read it, inherits it. A
single-organization person keeps everything; a deployment with no
organization keeps the user-only key unchanged. The first reader is in
practice the organization the old copy mirrors: every hydrate rewrote it
with the active organization's row, and the first page-load on this code
boots into the organization the browser last held.
- Sign-out and change-of-user purges are keep-list sweeps
(`purgeSignedOutUserClientState`, `@object-ui/auth`); the new keys are
not on the keep list, so they are swept exactly as today's are. A pin in
`signOutPurge.test.tsx` holds that for all five new spellings.
- Round 2 (this head): the red `Type Check UI` / `Lint UI` (build) /
`Test UI (8/16)` on `f957b6e1` had two causes, both read from the job
logs before the fix. (1) `pinnedListView.ts(35,18): error TS2322` — the
org slot was built from `objectPreferenceScope()`'s union and could
spell `user@org:…`; it is now spelled `object:OBJECT@org:ORG` directly.
(2) `FavoritesProvider.test.tsx` "favorites and a nav pin set in A …"
read 21 ids — the suite above it leaves its last list under the
user-only key, which org A then adopted as designed; the new suite's
`beforeEach` now clears storage and resets the mocked user. No
production behaviour changed in round 2. `origin/main` was merged once
(`b3bcfefc`); it touched only one comment line in
`workspacePreference.ts` among this diff's files.

## Tests

Reach measured once, before the fix, by the round-1 dev with a unit
harness (no running console with two memberships in this container):
real `ActiveOrganizationStorage`, a fake server answering one
`ui.favorites` row per stamped organization, favorite + nav pin in A,
switch (remount) to B. On base `c30ce97c`: B's first paint
`["object:a_obj","nav:a_menu"]` (A's list); B's server row after hydrate
`["nav:a_menu"]` (A's nav pin pushed into B); pinned view read in B
`"pv_in_org_a"`, back in A after pinning in B `"pv_in_org_b"`, one key
`os:pref:list.view.pinned@object:crm_lead`. Both mechanisms reproduce.

All readings below are on head `af1438fd`, under
`scripts/pm/os-verify-lock.sh`.

<details><summary>Committed pins — 6 files, 67 tests, green</summary>

`cd ui && pnpm exec vitest run --maxWorkers=2` FavoritesProvider,
RecentItemsProvider, FlowPaletteRecentsProvider, LastAppProvider,
signOutPurge (context/__tests__) and views/pinnedListView-36244: `Test
Files 6 passed (6)` · `Tests 67 passed (67)` · `VERDICT command-exit 0`.

Neighbours that read the pin or the preference store
(ObjectView.personalViews-29635, ObjectView.titleViewSwitcher-27594,
consoleListStateWall-12418, consoleUserPreferenceBudget): `Test Files 4
passed (4)` · `Tests 45 passed (45)` · `VERDICT command-exit 0`.

`ui/packages/app-shell` `pnpm run type-check` (both `tsc --noEmit` and
`tsc -p tsconfig.test.json`): `VERDICT command-exit 0`, no `error TS`.
</details>

<details><summary>Four ablations — each red on its own pins, each
restored to the HEAD blob</summary>

Mutations through `scripts/ablation-replace.mjs` (WRAP mode: anchor must
hit once, blob must change, restore proven by blob == HEAD and empty
`git diff HEAD`). Same 6-file run each time; tests import `src`
relatively, so no `dist/` leg applies.

- A1 `scopedKey` ignores the organization (`UserStateAdapters.tsx`, blob
`94bba20a → 67dd65bb`): `Tests 8 failed | 59 passed` — the
per-organization and the adoption pins of all four providers.
- A2 no adoption (`if (own !== null || !userId || !orgId) return own;` →
unconditional return; blob `94bba20a → e9c51a34`): `Tests 4 failed | 63
passed` — the four "a single organization keeps the copy …" pins. The
first A2 attempt was refused by the tool before anything ran (its
replacement text already occurred in the anchor line, so the count did
not rise); retried with a distinct replacement.
- A3 pin slot ignores the organization (`pinnedListView.ts`, blob
`b49631f8 → af9680b7`): `Tests 2 failed | 65 passed` — the round-trip
pin and the single-organization pin.
- A4 no pin adoption (blob `b49631f8 → 6f653efc`): `Tests 1 failed | 66
passed` — the single-organization pin.

After the script: both files' blob equals `HEAD`'s (`94bba20a…`,
`b49631f8…`), `git status` clean on both.
</details>

## Acceptance notes

- The `os:pref:*` pin slot carries no user. The organization in the slot
does not change that, but a different account signing in on the same
browser runs the change-of-user purge, which sweeps every key not on its
keep list (all `os:pref:*` included), so a second account does not read
the first's pin.
- On a browser that holds no active organization yet (first boot, or
after the server answered none), the copy is the user-only one until the
organization resolves, then the organization adopts it; that boot window
also costs one extra preference read when the organization arrives.
- Quiet hours (`notificationPreferences`) still use the user-only key:
out of this card.

## Verification

Two-minute check: `cd ui && pnpm exec vitest run
packages/app-shell/src/views/pinnedListView-36244.test.tsx` — 3 passing
tests expected.

Files to read first:
`ui/packages/app-shell/src/context/UserStateAdapters.tsx`
(`readScopedCopy`, `useOrganizationScope` — the adoption move),
`ui/packages/app-shell/src/views/pinnedListView.ts` (slot spelling and
pin adoption), `ui/packages/app-shell/src/context/FavoritesProvider.tsx`
(hydrate push-back).

<details><summary>Gates</summary>

Local, `dispatch-gates --commands --repo objectstack-ai/objectstack` at
`af1438fd`: 38 commands; 36 of the 37 non-vitest families exit 0 (exit
captured before any pipe). `pnpm check:type-check-debt` exit 3 — its
closure build queued past the lock budget (`VERDICT queue-timeout`), NOT
MEASURED locally; CI's `Type Check · debt ledger` is success on this
head. `pnpm --dir ui exec vitest run scripts/`: `Test Files 172 passed |
2 skipped (174)` · `Tests 5127 passed | 2 skipped`, `VERDICT
command-exit 0`. `--ran` (with `:: exit` codes): `38 derived famil(ies)
accounted for — 37 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit
3)`. `overlap-check` before push: `VERDICT clean exit 0` (main and
objectstack-ai#36343, objectstack-ai#36342 merge cleanly).

CI on `af1438fd`: 52 check-runs, 39 success, 13 skipped, 0 failed —
among them `Lint & Repo Gates`, `TypeScript Type Check`, `Test Core`,
`Governed Surface Queue Guard`, `Lint UI`, `Type Check UI`, `Test UI`,
`Build & E2E UI`, `Live E2E UI`, `Dogfood Regression Gate`, `Check
Changeset`.
</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jV3scu6UYPb42n5okQ

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jV3scu6UYPb42n5okQ -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…eads the record (objectstack-ai#36394)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbVF7sWPNE4HmjkgyaVxQYif)_
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Fixes objectstack-ai#36309

Clause-②: yes (widening) — measured: the claim expected `no`;
`RecordContextValue` gains the optional member `reread` (built
`dist/context/RecordContext.d.ts` carries `reread?: () => void |
Promise<void>;`, exported through `@object-ui/react`'s root); nothing
removed or renamed. The seat amends the claim.
Metadata-protocol: none

## 维护者速读

-
用户能看到什么变化:在列表抽屉(以及记录页上打开的抽屉)里改阶段被「别人刚改过」拒绝后,记录会重新读取,再点一次「移动」就能成功;抽屉里依旧没有「刷新」按钮,整页记录页不变。
- 为什么做:修的是阶段菜单在抽屉里的一个缺陷(之前只修好了整页),属于记录页阶段推进这条线。
- 出错会怎样:最坏是抽屉里阶段被拒后仍要关掉抽屉重开才能移动,和改前一样;改动可直接撤回。
- 要你做什么:无

## What changes

The card's step 1, measured: the record header's stage menu **does**
draw in a drawer. `RecordDetailView` mounts the header's stage slot with
no `embedded` gate, and the new pin below finds the menu trigger, opens
it and writes a Move in an `embedded` view. The "split preview" no
longer exists (`NavigationOverlayMode` lists `page | drawer | new_window
| none`; the split face retired), so the embedded surfaces today are the
list's record drawer (`objectViewRecordOverlay`'s `RecordStackDrawer`,
and `NavigationOverlay` in `ObjectDataPage` / `InterfaceListPage`) and
the drawer a record page opens over itself (`RecordPageDrawerHost`). All
mount `RecordDetailView` with `embedded`.

Step 2, as ruled ("separate 'show a refresh button' from 're-read the
record' instead of overloading `refresh`"):

- `@object-ui/react` — `RecordContextValue` gains `reread`, the record
re-read with no affordance of its own; `refresh` is documented as what
it is, the host's opt-in to the header's Refresh entry. `reread` joins
the provider's memo dep list.
- `@object-ui/plugin-detail` — the stage path (`useStageChange`, shared
by the header's `RecordStageMenu` and `record:path`'s stage press)
re-reads after a move and after a 409 through `ctx.reread`, and through
`ctx.refresh` when the host gives no `reread` (so a host that provides
only `refresh` behaves as before).
- `@object-ui/app-shell` — `RecordDetailView` hands the header's
provider `reread` on the page and in a drawer alike (the same `'*'`
notice the Refresh entry publishes: a 409 is a write this client never
saw); `refresh` stays `undefined` when embedded, so the drawer still
draws no Refresh entry. On the record page the stage path's behaviour is
byte-for-byte what it was.

## Tests

- New block `RecordDetailView.embeddedStageReread-36309` in the shared
harness `RecordDetailView.harness.test.tsx` (the file's rule for new
`RecordDetailView` pins):
- in a drawer, a 409 on Move re-reads the record and the second Move
carries the new version (`ifMatch` of read 2);
  - CONTROL: the drawer draws no Refresh entry;
- CONTROL: on the record page the same 409 re-reads, the second Move
carries the new version, and the Refresh entry is still offered.
- Red on the base before the fix (commit 4253dfd, test only): `× in a
drawer, a 409 on Move re-reads the record …` failing at the `findOne`
second-call assertion; both controls green. Green after.
- Fixture spelling: `RecordStageMenu-35891.test.tsx` and
`record-path.stageChange-28199.test.tsx` handed the stage path
`refresh={refresh}`; they now hand `reread={refresh}` (they only used
the member the path called).
- New block in `RecordStageMenu-35891.test.tsx` (`objectstack-ai#36309 a host with
only refresh still re-reads; reread wins where both are given`): a
provider with only `refresh` calls it after a 409 on Move; CONTROL: with
both, `reread` is called and `refresh` is not.
- `RecordContext.valueShape.pin.test.tsx` lists `reread` (its
compile-time half red the react type-check until it did, which is the
pin working).

<details><summary>Local readings on head 6e09b30 (round 1; round 2
readings are in the os-dev-report comment on the card)</summary>

- `pnpm --dir ui exec vitest run
packages/react/src/context/__tests__/RecordContext.valueShape.pin.test.tsx
packages/app-shell/src/views/RecordDetailView.harness.test.tsx
packages/app-shell/src/views/RecordDetailView.headerRefresh.test.tsx
packages/plugin-detail/src/__tests__/RecordStageMenu-35891.test.tsx
packages/plugin-detail/src/renderers/__tests__/record-path.stageChange-28199.test.tsx
packages/components/src/__tests__/page-header-refresh.test.tsx`: `Test
Files 6 passed (6)`, `Tests 160 passed (160)`.
- `pnpm --filter @object-ui/react type-check`: exit 0.
`@object-ui/plugin-detail`, `@object-ui/components`,
`@object-ui/app-shell` `type-check`: exit 0 each (on 7341588, after a
build of the app-shell dependency closure; the later head changes only a
react test file).
- `pnpm --dir ui exec vitest run scripts/`: `Test Files 172 passed | 2
skipped (174)`.
- Derived gate families (`dispatch-gates.mjs --commands`): 38 run, all
exit 0; `--ran`: `38 derived famil(ies) accounted for — 38 run, 0
NOT-MEASURED`. Ratchets re-run on 6e09b30: `check:type-check-coverage`,
`check:type-check-debt`, `check:cross-package-test-inputs`,
`check:test-source-alias`, `check:nul-bytes`, `check:published-files`,
`check:undeclared-dep-imports`, `check:tier-file-adoption`, all exit 0.
- Red on the base (4253dfd, pin only): `1 failed | 2 passed`; the
failure is the drawer case at its `findOne` second-call assertion.

</details>

## Acceptance notes

- `RecordContextProvider` has two other producers, `RecordDetailPanel`
(the board/calendar record panel) and `recordBinding`; neither passed
`refresh`, so neither re-read after a stage write before, and neither
draws a stage surface that writes (the panel draws the inline save bar,
which takes its own `refresh` prop; the binding is `canEdit={false}`).
Unchanged.
- No narrowing: a host that passes only `refresh` keeps its re-read (the
stage path falls back to it); `reread` is the added, optional member.
Within this repo `RecordDetailView` is the only producer of either.
- `content/docs/frontend/` and the react README document no
`RecordContext` member, so there is no docs page to update.
- Overlap: `overlap-check.mjs` clean against objectstack-ai#36343 (shares
`RecordDetailView.tsx`) and objectstack-ai#36316 (shares the stage files; it adds no
`refresh` call there).

## Verification

Read first:
`ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx` (the
four `reread` calls),
`ui/packages/app-shell/src/views/RecordDetailView.tsx` (`headerReread`
beside `headerRefresh`),
`ui/packages/react/src/context/RecordContext.tsx` (the two members'
contract).

Two-minute check: `pnpm --dir ui exec vitest run
packages/app-shell/src/views/RecordDetailView.harness.test.tsx -t
embeddedStageReread` — expect 3 passed.

Browser screenshot: NOT MEASURED (no dev app driven in this run; the
harness pin renders the real `RecordDetailView` embedded).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jRaJbQ4vqdv4J5peqA -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…; a record's comments are on its full page (objectstack-ai#36406)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbVF7sWPNE4HmjkgyaVxQYif)_

repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Fixes objectstack-ai#36225

Clause-②: no
Metadata-protocol: none

## 维护者速读

-
在列表里从侧边打开一条记录(右侧预览)时,头部不再有评论按钮,预览里任何地方都打不开评论面板,「动态」页签里也不显示评论;要看或写评论,点预览右上角「展开成整页」,整页的评论按钮和评论栏照旧。
- 属于「记录详情页重做」专题,照维护者说的「预览里去掉评论按钮,评论只在整页里」(对齐 Attio 的预览)。
- 出错的话,影响的是预览里看不到评论;评论数据不动,整页照常能看能写,撤回这次改动即可恢复原样。
- 无


![右侧预览头部:没有评论按钮](https://github.com/objectstack-ai/objectstack/blob/37428306c12e207770c8ebbfe7515db7e257a4a1/36225-preview-header-crop.png?raw=true)

## What changes

The record drawn **embedded** (the side preview a list opens through
「在侧边打开」, the drawer a record page opens over itself, and the overlays
`ObjectDataPage` / `InterfaceListPage` draw) no longer offers the
comment panel:

- `RecordDetailView.tsx`: `commentsPanelOffered` is now
`commentsEligible && !commentsPhone && !embedded`. A new
`commentsLeftToFullPage` (embedded, otherwise eligible) keeps the
preview's 动态 stream giving the comments up
(`RecordCommentsInPanelContext` and the stream count read
`streamGivesUpComments`), so the preview shows no comment row and no
composer anywhere. The preview does not read `sys_comment` at open for
an icon count any more (the discussion rides the open's payload only
where a surface holds the comments).
- The drawer-only plumbing the panel needed is removed: the pane bar's
comments slot (`RecordPaneBarComments`, `commentsSlot` on
`RecordPaneBarApi`, the `comments` slot `RecordStackDrawer` handed
`NavigationOverlay`), the plain-overlay trailing placement, the drawer
placement (`cover` under a 760 px body, `beside` above it,
`COMMENTS_PANEL_DRAWER_SPLIT_MIN_WIDTH`, `useElementWidth`) and the
drawer's own open-or-closed preference. `commentsPanelPlacement` takes
the window width only; the browser keeps one choice, the page's
(`COMMENTS_PANEL_OPEN_KEY`).
- Unchanged: the full page's icon, panel, composer and placement; the
phone's comment page; list rows.
- Docs: the comment-panel section of
`content/docs/frontend/plugins/plugin-detail.mdx` and the plugin-detail
README say the drawer has no panel; the `RecordCommentsInPanelContext`
jsdoc names the preview case.
- Changeset `.changeset/36225-preview-no-comments.md`
(`@object-ui/app-shell` patch). It states that it replaces the lines of
the pending objectstack#36075 entry that put the icon and panel in the
drawer (the same form the pending objectstack#36076 entry uses); no
existing changeset is edited.
- Card item 3 (the wording of objectstack#36149's item 2, now
「右边只有『更多』」) is a card edit, not code: the coordinator already commented
it there.

First read (risk order):

1. `ui/packages/app-shell/src/views/RecordDetailView.tsx`, the
comment-panel block near `commentsEligible` (the gate and
`streamGivesUpComments`).
2. `ui/packages/app-shell/src/views/recordCommentsPanel.tsx` (placement
narrowed to the page).
3.
`ui/packages/app-shell/src/views/RecordDetailView.commentsPanel-36075.test.tsx`,
the new `the side preview has no comments (objectstack#36225)` block.

Two-minute verification: `pnpm dev`, open any object list, hover a row
and press 「在侧边打开」: the preview header shows ↑ ↓, the position, ⤢ and ✕,
then the record's name, 编辑 and ⋯, and no comments icon; 动态 shows no
comment. Press ⤢: the full page's top bar shows the comments icon with
its count, and the panel opens beside the record.

## Tests

`RecordDetailView.commentsPanel-36075.test.tsx` (through the real
`RecordDetailView`):

- new `describe('the side preview has no comments
(objectstack#36225)')`: no icon and no panel in the preview though the
page was left with the panel open (the card's "after commenting" row);
the preview's 动态 tab draws no comment and no composer; an object with a
hand-written page: the preview draws the standard page, with no icon and
no panel (replaces the objectstack#36150 case that pinned the drawer's
icon).
- CONTROL: a comment written in the full page's panel is posted on the
record and shown there (the existing full-page cases stay).
- Removed: the drawer-placement case ("a drawer too narrow to split …")
and `recordCommentsPanel.drawerEscape-36075.test.tsx`, which mounted the
panel inside the drawer, a placement this card retires. The panel's own
Esc and @-list behaviour stay pinned in plugin-detail's `CommentsPanel`
tests.
- `recordCommentsPanel-36075.test.ts`: the page placement only.
- `RecordDetailView.feedRecordScope.test.tsx` mounts the full page for
its synthesized-page cases (they read the panel), and the harness's
refused-`sys_comment` case mounts the full page.

<details><summary>Readings (head 855a906 unless named)</summary>

- Targeted ui suites, `ui/` vitest under the shared lock,
`--maxWorkers=1`, 16 files (the comment panel, feed scope, harness,
resolved threads, reply counts, feed loading and failure, discussion
fallback and explicit composition, record-open requests and waves,
timeline count, pane open-as-page, the list's record drawer, the top
bar): `Test Files 16 passed (16)`, `Tests 229 passed (229)` at 9461c50;
after the two test-only commits,
`RecordDetailView.commentsPanel-36075.test.tsx`: `Tests 18 passed (18)`.
- `pnpm run type-check` in `ui/packages/app-shell` and in
`ui/packages/plugin-detail`: exit 0 each, after building the
`@object-ui/app-shell^...` closure (exit 0).
- Ablation through `scripts/ablation-replace.mjs` (anchor hit 1 to 0,
blob c1a648b moved; restored, `git diff HEAD` empty):
- A: `!embedded` dropped from the panel gate: 2 failed (no icon and no
panel in the preview; the hand-written page's preview).
- B: `commentsLeftToFullPage` dropped from `streamGivesUpComments`: 1
failed (the preview's 动态 draws no comment and no composer).
- Browser, Chromium 1440 x 900, zh-CN, a fresh showcase backend and the
Console dev server on this branch, object 客户 (`showcase_account`),
record Initech, opened by 「在侧边打开」: preview `data-comments-button` 0,
`data-comments-panel` 0, composer 0, also on its 动态 tab. ⤢ to the full
page: icon 1; panel opened, a comment written, shown in the panel. Back
to the list, the same record in the preview (the page's panel left
open): icon 0, panel 0, the new comment not on screen, also on 动态.

</details>

Screenshots (Initech, this branch):

-
[preview](https://github.com/objectstack-ai/objectstack/blob/37428306c12e207770c8ebbfe7515db7e257a4a1/36225-20-preview.png?raw=true)
- [preview 动态 after a comment on the full
page](https://github.com/objectstack-ai/objectstack/blob/37428306c12e207770c8ebbfe7515db7e257a4a1/36225-42-preview-activity-after-comment.png?raw=true)
- [the full page with its comment
panel](https://github.com/objectstack-ai/objectstack/blob/37428306c12e207770c8ebbfe7515db7e257a4a1/36225-31-full-commented.png?raw=true)

## Acceptance notes

- HotCRM 线索: NOT MEASURED in a browser (HotCRM runs against published
packages, not this branch). The gate keys on the record being drawn
embedded, never on the object or app, and the same view draws every
app's preview.
- The card's 「没有核对的」 item, where a comment notification lands: measured.
The inbox row's link is `/{object}/{id}`, resolved under the current app
(`resolveNotificationTarget`); opening
`/apps/showcase_app/showcase_account/ID` lands on the full record page
(`/record/ID`, no pane, comments icon present). It does not open the
comment panel by itself: the panel opens as the reader left it. Nothing
to change here for this card.
- `NavigationOverlay` and `RecordTopBar` in `@object-ui/components` keep
their optional `comments` slot (a published prop); the console no longer
fills the overlay's.
- A reader whose browser stored `os:record-comments-panel:drawer` keeps
a key nothing reads.
- Overlap: `scripts/pm/overlap-check.mjs` clean against origin/main,
objectstack-ai#36343 and objectstack-ai#36394 (both share `RecordDetailView.tsx`).

## Verification

<details><summary>Local gates</summary>

- `node scripts/pm/dispatch-gates.mjs --commands` derived 71 families
for this diff; all 71 run locally, each exit 0 (`check:skill-examples`
and `check:type-check-debt` first answered exit 3, prerequisite not
built, and were re-run after building `@objectstack/client-react`: exit
0). `--ran` reconciliation: `71 derived, 71 run, 0 NOT-MEASURED, 0
UNRUN`.
- On the final head 855a906, after the test-only commits:
`check:cross-package-test-inputs`, `check:test-source-alias`,
`check:nul-bytes`, `check:tier-file-adoption`,
`check:undeclared-dep-imports`: exit 0 each.
- `pnpm --dir ui exec vitest run scripts/`: `Test Files 172 passed | 2
skipped (174)`.
- The full farm and the required UI jobs are CI's.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…ctions only; Edit moves into the top bar's More (objectstack-ai#36478)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbVF7sWPNE4HmjkgyaVxQYif)_
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

Fixes objectstack-ai#36151

Clause-②: yes (widening)
Metadata-protocol: semantic
Skills-docs: none — no published skill under `skills/` names
`mobileMaxVisible`, the phone record page's bottom bar or its Edit
button (searched); the authoring change is one budget's meaning, taught
in the spec describe and `content/docs/ui/pages.mdx` here.

## 维护者速读

-
手机上打开记录页:底部按钮条只放这个对象自己的动作(最多两个,撑满一行);没有动作的对象不再出现底部条,内容一直到屏幕底部;「编辑」挪进右上角「更多」。电脑端不变。
- 手机记录页改版的一步:字段已能点一下直接改,底部那颗占位的「编辑」按钮不再需要,把底部留给真正的业务动作。
- 出错时,手机用户会找不到整页编辑的入口,或看到空白的底部条;把本次改动撤回即可恢复原样,不涉及数据。
- 无。

## What changes

On a phone (the console's record page, `phonePage`), per the card's five
ruled items:

1. **Edit leaves the bottom bar.** The record's Edit is forced into the
`⋯` on the phone (`component: 'action:menu'` on the host's `sys_edit`,
always, not only when Edit is off). A field's value is edited by one tap
on it (objectstack-ai#36147, PR objectstack-ai#36234); whole-record edit is ⋯ → Edit, which calls
the same `onEdit` handler the bar's Edit called (inline edit state on an
object without a form, the form route on one with a form).
2. **The bottom bar holds the object's own actions only**: the primary,
then the next one, budget unchanged (`PHONE_ACTION_BAR_BUTTONS` = 2, or
the authored `mobileMaxVisible`), filling the row (`flex-1`). The edit
state keeps its Cancel and Save there.
3. **No action, no bar.** With nothing to draw the toolbar returns
nothing and the host's bar hides itself (`:has(> [role=toolbar]:empty)`
/ no toolbar), so the body runs to the foot of the screen.
4. **Approval unchanged.** A record pending the reader's approval still
draws [Approve][Reject][⋯] from `RecordHeaderStateContext`'s state group
with its own `⋯`; the top bar draws no second `⋯` then (one `⋯` per
screen).
5. **Everything else is in the top bar's `⋯`**, at the right end of
`RecordTopBar` (its `frame` slot): actions past the budget, Refresh,
Edit (on or off with its reason), Share, Delete. The favorites entry is
not in it: since objectstack-ai#36246 (PR objectstack-ai#36456) the favorite star sits beside the
record's name, on the phone too.

Mechanism:

- `PageHeaderPhoneFace` (the `PageHeaderPhoneContext` value, a host
slot, never metadata) gains an optional `more: HTMLElement | null`.
`PageHeaderActions` in its bar face portals the `⋯` there when a host
hands it; a host that does not hand it keeps the `⋯` as the bar's last
button, byte-for-byte as before (the legacy pins in
`page-header-phone-bar-27058.test.tsx` are untouched and green).
- `RecordDetailView` hands a `span[data-record-phone-more]` it mounts in
the top bar's `frame`.
- Desktop: no change (the `face: 'row'` path is not touched).

Spec / docs: `page:header` `mobileMaxVisible` describe now says the
phone bar holds the page's own actions and Edit is in the top bar's `⋯`;
generated docs regenerated (`check:generated --fix`,
`gen-sdui-manifest-node.mjs`, `gen-sdui-reference.mjs`), hand-written
`content/docs/ui/pages.mdx` and the designer's config description
updated to match. Semantic change: an unset budget now shows two page
actions where it showed Edit + one, and an authored value counts the
page's actions alone.

Rulings carried (not reopened): the card's five items; the maintainer's
「可以,立卡」 on fig. 48; ruling 7066516044 item 2 (a single tap edits on the
phone). Linked rules this card reverses, as the claim names: objectstack-ai#34595 (the
bottom bar starts with Edit), and the Edit-counted half of objectstack-ai#35840 (two
visible by default: still two, now both page actions).

## Tests

Step 0 (owed before Edit leaves the bar): every field type the default
record page draws editable was checked at 375 px with touch emulation on
the live showcase Field Zoo record: one tap on the value opens its
editor, and the edit saves (a PATCH carrying that field's key). **All
pass; no type raised.**

| Result | Types |
|---|---|
| one tap opens, saves | textarea, email, url, phone, markdown, number,
currency, percent, date, datetime, time, boolean, toggle, select,
multiselect, radio, checkboxes, tags, lookup, lookups (multiple),
master_detail, tree, user, users, owner (current_user default),
location, address, code, json, color, rating, slider, signature, qrcode,
progress, the system Owner |
| not drawn editable (same on desktop, `INLINE_EXCLUDED_FIELD_TYPES` /
read-only by kind) | password, secret, html, richtext, formula,
autonumber |
| not drawn as a detail row | media, embedded and vector types |

Pins updated where they pinned the reversed behaviour:

- `RecordDetailView.phoneFace-27058.test.tsx` (the objectstack-ai#34595 pins): the bar
is [Convert Lead][Assign] with no `⋯`; the `⋯` is the top bar's last
control and holds Edit and Share; a third action folds into the top `⋯`
before Edit; one action fills the row; no action leaves an empty, hidden
bar and ⋯ → Edit calls `onEdit`; the approval control and the Edit-off
cases read the top `⋯`.
- `RecordDetailView.favoritesEntry-12427.test.tsx` (objectstack-ai#36246's pins,
merged in with origin/main): the phone case now opens the top bar's `⋯`
(the fixture object declares no action, so its bottom bar is drawn
empty); the CONTROL is that menu's Edit and Share, and the assertion
that the `⋯` holds no favorites entry is unchanged. Its mount helper
waits for the top bar's `⋯` on that case instead of a toolbar.
- `RecordDetailView.recordPageTiers-26678.test.tsx`: the phone branch
reads the empty bottom bar and the top bar's `⋯`.
- `page-header-phone-bar-27058.test.tsx`: new `the phone bar with the
host's top-bar ⋯ slot` describe (two actions fill the row and the `⋯`
sits in the slot; no page action draws an empty bar; slot not yet
mounted draws no `⋯`).
- `ui/e2e/record-flow-phone-targets.spec.ts`: the geometry fixture draws
the top bar's More (`h-11 w-11`) and an actions-only bar; 6 passed
locally.

Ablations (one-shot, not kept; both restored, blob == HEAD verified by
`scripts/ablation-replace.mjs`):

- `RecordDetailView`: Edit forced into the `⋯` only when off (the old
rule) ⇒ phoneFace suite 6 failed / 22 passed.
- `PageHeaderActions`: top-bar slot ignored (`moreInTopBar = barFace &&
false`) ⇒ 13 failed / 29 passed across the two suites.

Readings on head `a262ef3653` (origin/main merged in, carrying objectstack-ai#36456;
the spec reference regenerated on the merged tree; the favorites pin
moved to the top `⋯`; the changeset's `⋯` list drops Favorites): `vitest
--maxWorkers=1` on favoritesEntry-12427, phoneFace-27058,
recordPageTiers-26678, page-header-phone-bar-27058 and
headerMenuIcons-12529: Test Files 5 passed (5), Tests 65 passed (65),
exit 0; `@object-ui/app-shell` `type-check` VERDICT command-exit 0;
`pnpm --dir ui exec vitest run scripts/` 5127 passed, 2 skipped, exit 0;
`dispatch-gates --ran` 125 derived, 123 exit 0, 2 NOT MEASURED (the same
two exit-3 prerequisites below). The readings below were taken on code
head `ec741d2c08`, before the merge:

<details><summary>Unit suites, type-check, local gate subset</summary>

- `vitest run --maxWorkers=1` phoneFace-27058 + recordPageTiers-26678 +
page-header-phone-bar-27058 (under the verify lock): Test Files 3 passed
(3), Tests 52 passed (52), exit 0.
- `pnpm --dir ui exec vitest run scripts/` (a derived family): Test
Files 172 passed, 2 skipped (174); Tests 5127 passed, 2 skipped; exit 0.
- `@object-ui/components` and `@object-ui/app-shell` `type-check` (both
`tsc --noEmit` and `tsconfig.test.json`, so the edited tests are in):
VERDICT command-exit 0, after building the `@object-ui/app-shell^...`
closure (a stale `@object-ui/types` dist had first reported a
`DataTableSchema.onColumnHide` error outside this diff; rebuilt, gone).
- Earlier on this branch, before the last test-only commit:
RecordDetailView*, page-header*, record-top-bar* suites 133 files / 1144
tests, the one red being the tiers pin fixed in `ec741d2c08`; ESLint on
the changed files 0 errors.
- `dispatch-gates --ran`: 125 derived families accounted for, 123 run
with exit 0, 2 NOT MEASURED (exit 3, PREREQUISITE NOT MET:
`check:skill-examples` needs a built `@objectstack/client-react`,
`check:dual-build-cjs-loads` needs studio, client-react and other dists
outside this diff; both run in CI).
- `@objectstack/spec` `check:generated` green after `--fix`;
`check:sdui-reference` and `check-sdui-manifest` green.
- Not run locally, CI-owned: `test:repo`, the repo-wide lint, the
artifact-roster and wide families.

</details>

## Acceptance notes

- **The card's own example, the HotCRM lead, measured live at 375 px
(zh-CN).** HotCRM at origin/main `689166c` ran from a sister worktree
with its own setup (`objectstack dev`, published 18.6.0 server packages,
fresh seeded DB), and this branch's Console vite was proxied to it. The
record was a New lead (Noah Patel - Vertex Analytics), where 「确认线索」
(`qualify_lead`) is visible.
- Before (origin/main renderer): the bar was [编辑][确认线索][⋯]; the ⋯ held
刷新 / 转化线索 / 安排跟进 / 记录通话 / 记录会议 / 安排会议 / 添加到收藏 / 分享 / 删除 (main before
objectstack-ai#36456).
- After (this branch): the bar is [确认线索][转化线索], with no 编辑. The top
bar's ⋯ holds 刷新 / 安排跟进 / 记录通话 / 记录会议 / 安排会议 / **编辑** / 添加到收藏 / 分享 / 删除,
measured on `75f16a89de`, before objectstack-ai#36456 landed. Since objectstack-ai#36246 (PR objectstack-ai#36456)
添加到收藏 has left the ⋯ for the star beside the record's name, so on the
current head the top ⋯ holds the same list without it (pinned by
`RecordDetailView.favoritesEntry-12427.test.tsx`'s phone case).
- Why 转化线索 is in the bar too: ruled item 2 keeps the bar budget at its
current rule, at most 2 (「最多 2 个,沿用现在的规则」). The slot 编辑 gave up goes to
the lead's next action, `convert_lead`. The card's wording 「只有确认线索」
describes the old bar with 编辑 removed. To show 确认线索 alone, HotCRM sets
`mobileMaxVisible: 1` on the lead page's `page:header` (an app-side
authoring choice, not made here; raised to the seat in the report).
- For non-zh readers, the showcase Task shows the same thing: the bar
holds only the object's own actions ([Log Time][Archive]), there is no
Edit, and the top ⋯ holds Edit.
- Edit is in the top `⋯` on the phone in every state, including the
record's edit state (where the bar is Cancel/Save).
- A host button on the phone (the queue's Claim) still sits in the bar
ahead of the page actions and counts toward the budget, as before.
- Overlap: objectstack-ai#36357 also regenerates `scripts/sdui-manifest.record.json`
(a generated sha/date pair); whichever lands second regenerates it.
Clean against objectstack-ai#36438, objectstack-ai#36392, objectstack-ai#36351, objectstack-ai#36343 and origin/main.
- Out of scope, reported to the seat (not fixed here): in the lookup
picker on a phone, an option's preview carries a record chip link; a tap
on the chip navigates away mid-edit instead of selecting (Field Zoo,
Master-Detail → Project, tap the "Account: Fabrikam" chip ⇒ the account
page opens).

## Verification

Read first (by risk):

1. `PageHeaderActions` in
`ui/packages/components/src/renderers/layout/containers.tsx`: the
`moreInTopBar` branch (the portal into the host slot and the early
return that leaves the bar empty).
2. `RecordDetailView` in
`ui/packages/app-shell/src/views/RecordDetailView.tsx`: `sys_edit`'s
phone `component: 'action:menu'`, the top bar's `frame` slot and the
bar's empty-hide class.
3. `PageHeaderPhoneFace` in `page-header-phone-context.ts`: the new
optional `more`.

Two-minute check: open a New HotCRM lead at 375 px ⇒ [确认线索][转化线索] at the
foot, 编辑 in the top-right ⋯. Or open any record of an object with no
actions of its own (showcase Account) at 375 px wide ⇒ no bottom bar, a
`⋯` at the top bar's right end holding Refresh / Edit / Share / Delete,
and the favorite star beside the record's name. A showcase Task ⇒ [Log
Time][Archive] filling the bottom row.

Screenshots at 375 (live showcase, evidence branch
`claude/issue-36151-evidence`):

| State | Before | After (light) | After (dark) | After, `⋯` open |
|---|---|---|---|---|
| No action (Account) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-no-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-no-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-no-primary-dark.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-no-primary-light-menu.png?raw=true)
|
| Actions (Task) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-primary-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-primary-dark.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-primary-light-menu.png?raw=true)
|
| HotCRM lead (zh-CN) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-hotcrm-lead-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-hotcrm-lead-light.png?raw=true)
| not taken |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-hotcrm-lead-light-menu.png?raw=true)
|
| Approval (Project) |
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/before-approval-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-approval-light.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-approval-dark.png?raw=true)
|
![](https://github.com/objectstack-ai/objectstack/blob/claude/issue-36151-evidence/evidence/issue-36151/after-approval-light-menu.png?raw=true)
|

The screenshots were taken before objectstack-ai#36456 landed, so the open `⋯` shots
still show Add to favorites / 添加到收藏. Since objectstack-ai#36246 that entry has left
the `⋯` for the star beside the record's name.

---

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jRaJbQ4vqdv4J5peqA -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…, and object-grid singleClickEdit is retired (objectstack-ai#36357)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9Ubb2rJZB694pnkwLCMmCEJ3ev)_

Fixes objectstack-ai#36270

repo:objectstack#7 · zhuangjianguo · session_01QsR2jSHfkSrXZxbdWoQxnW

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — skills/ never names singleClickEdit,
keyboardNavigation or object-grid's editing gestures (git grep at the
head)

## 维护者速读

- 用户看到的变化:所有「可编辑」的表格(对象视图自己画的表格、页面里放的 object-grid
表格,和列表页一样)都改成「先选中、再编辑」:单击选中单元格,双击、回车、F2 或直接打字进入编辑,改完一格立刻保存;「全部保存 /
全部取消」那条保存栏不再出现。不可编辑的表格不变,单击仍然打开记录。元数据里的
`singleClickEdit`(单击即编辑)作废:写了会报错并提示删掉,`os migrate meta` 能自动删除。
- 为什么:按您的裁定 A「统一新编辑方式」。新方式里单击是「选中」,`singleClickEdit` 已经没有可切换的东西,按
ADR-0049「要么执行、要么删除」退役;`keyboardNavigation` 的说明也改成实际行为(可编辑表格上方向键导航始终开启)。
- 最坏情况:有人在页面元数据里写了
`singleClickEdit`,升级后该页面校验失败,需要删掉这个键(提示里写明了怎么做,迁移工具可自动删);或者某张可编辑表格的使用者习惯了单击就编辑,现在要多一次双击。本仓、hotcrm、gallery
中没有任何地方写过这个键。
- 需要您做的:无(L2 由席位在最终提交上做)。

## What changes

The ruling A on objectstack-ai#36270 (record 7076617499): one editing model. Every
grid that renders editable uses the list page's select-first cell model,
and the key that only made sense in the old model is retired.

- **`ui/packages/plugin-grid/src/ObjectGrid.tsx`** (the one behaviour
hunk): `hostCellSelection = cellSelectionProp ?? inlineEditable`. Absent
a host's `cellSelection`, a grid that renders editable (`editable` AND
the object's inline-edit verdict AND the reader's `update` grant) is
select-first; a read-only grid keeps click-to-open. A host's `true`
(`ListView`, the related tab) or `false` still wins. The data table is
handed `singleClickEdit: true` unconditionally: it is inert under
select-first, and it is the staged model's old default for a host that
passes `false`.
- **`@objectstack/spec`**:
`ComponentPropsMap['object-grid'].singleClickEdit` is a `retiredKey()`
tombstone; D2 conversion `object-grid-single-click-edit-removed` (strip,
whatever the value; order 83), D3
`object-grid-single-click-edit-retired`, `RETIRED_KEYS_BY_MAJOR[18]` row
`ui/ObjectGridProps:singleClickEdit`, a `STEP18_RATIONALE` fragment
(order 123), ledger `page.json` regions note [122] plus the narrowed
[43]. `keyboardNavigation`'s describe narrows to what is enforced:
always on for a grid that renders editable, `true` turns it on for a
read-only grid.
- **`@object-ui/types`**: `ObjectGridSchema.singleClickEdit?: never`
with a `retirementTombstone()` zod twin; the `object-view` `table` slot
inherits it (`TABLE_INHERITED_TOMBSTONES`, as `defaultSort`).
`DataTableSchema.singleClickEdit` (host-paired) is unchanged.
- **`@object-ui/plugin-view`**: `table.singleClickEdit` leaves
`OBJECT_VIEW_TABLE_RELAY_KEYS`. The earlier host-level `cellSelection`
spread is gone: `ObjectGrid`'s default covers the object-view grid,
authored nodes and react pages in one place.
- **`object-grid` inputs, `sdui.manifest.json`,
`content/docs/ui/components/*`**: the `singleClickEdit` input is gone
and the `editable` / `keyboardNavigation` descriptions say what the grid
does. Docs and READMEs (`plugin-grid.mdx`, `plugin-view.mdx`, both
packages' READMEs) describe select-first everywhere and the staged model
as a host's `cellSelection={false}`.
- BREAKING changeset
`.changeset/36270-object-grid-single-click-edit-retired.md`
(`@objectstack/spec` minor plus the three ui packages), with the FROM →
TO table and `<!-- adr-0087: registered … -->`.

## The card's Done-when: the five grid families

- **The object-view grid** (Studio view preview, a page placing an
`object-view`) and **the authored `object-grid` node**: changed here.
Pinned by `ObjectView.perCellSave-36270.test.tsx` and
`authoredGridPerCellSave-36270.test.tsx`, with the ablation below.
- **The related tab**: already select-first. `RelatedList.tsx` passes
`cellSelection: true`, pinned by `RelatedList.tab-35892.test.tsx`;
unchanged.
- **The record picker and the designer grids** (`RecordPickerDialog`,
`ObjectManager`, `FieldDesigner`): they render `ObjectGrid` without
`editable`, so they are read-only and unchanged.
- **Dashboard tables**: they are `data-table` / `object-data-table`
nodes, not `ObjectGrid`, and have no save path. The card's
dashboard-table pin therefore has no subject: there is no editable
dashboard grid to pin. A bare `data-table` that a host hands `editable`
still stages edits and draws its bar; that is the table primitive, which
no in-repo grid host reaches.
- So every grid that renders editable through `ObjectGrid` selects a
cell first, and no in-repo host passes `cellSelection={false}`.
- **The card's second Read-first question** (a child list inside a
parent form saved together, objectstack-ai#35590): no in-repo host draws such a list
through an editable `ObjectGrid`. The form's line items are the
`GridField` widget, which this PR does not touch, and no in-repo host
passes `cellSelection={false}` or its own `onBatchSave`. So no
saved-together list loses its staging here.
- **A React host's `onBatchSave`**: a host that passes `onBatchSave`
alone on an editable `ObjectGrid` now has it bypassed (each cell writes
through `onRowSave` or the grid's own `dataSource.update`). No in-repo
host passes it. The changeset carries a FROM → TO row for it and
`ObjectGridComponentProps.onBatchSave` is marked `@deprecated`.

## Tests

- New: `packages/spec/src/ui/object-grid-single-click-edit.pin.test.ts`
(tombstone at both channels for `true` / `false`, `editable` control,
the narrowed describe, the conversion's delete and its controls, the
step-18 wiring), `object-grid-single-click-edit-retirement.test.ts`
(tree-scoped absence, `repo` project),
`ui/packages/plugin-grid/src/__tests__/authoredGridPerCellSave-36270.test.tsx`
(an authored editable node saves one cell with no Save All; read-only
and host-`false` controls), and the earlier
`ObjectView.perCellSave-36270.test.tsx`.
- Migrated to the enforced contract:
`ObjectGrid.keyboardNavigation-11068.test.tsx` (editable grids read the
select-first pattern and `false` no longer turns it off; a host
`cellSelection={false}` control keeps the old roving-focus reading),
`ObjectGrid.cellSelection-35684.test.tsx`,
`rowContextMenu-28434.test.tsx`, the types slot/round-6 tests, the
ObjectView relay test.
- 25 plugin-grid inline-edit files that pin the staged path now pass
`cellSelection={false}` and no longer author `singleClickEdit`; two that
passed `cellSelection={x || undefined}` pass `cellSelection={x}` (under
the new default `undefined` means select-first).
- `retired-key-removal-version.pin.test.ts` joins the new conversion.

## Acceptance notes

- Select-first only where a grid renders editable, per the ruling;
read-only grids keep click-to-open (pinned by the controls above).
- `Clause-②: no (narrowing)`: the house spelling for a retirement; the
seat re-amended the claim to it (7077058264).
- Census of authored `singleClickEdit` in this repository's examples,
hotcrm and gallery: zero, so the conversion is for stored rows and
outside authors.
- `check-governed-merges --pr 36357`: NOT governed (0 of 60 paths),
1,355 changed lines, under the 3,000 human-merge threshold.
- With objectstack-ai#36332 (seat delta review 7077725274): once both land, a touch
never edits in place on any editable grid. The one exception is a host
that passes `cellSelection={false}`, which keeps the staged
click-to-edit, so there a touch edits in place. Whichever of the two
lands second re-runs overlap-check against the other's head.
- objectstack-ai#35827 (retire `onBatchSave`) is unblocked by this: no authored or
ObjectView grid reaches the batch save any more; only a host's explicit
`cellSelection={false}` does.

## Verification

Two-minute check: author `{ "type": "object-grid", "properties": {
"objectName": "<any>", "editable": true } }` on a page; click a cell (it
is selected, nothing opens), press Enter, type, press Enter: the value
saves at once and no "Save All" bar appears. Add `"singleClickEdit":
true`: the page refuses it with the prescription.

Files to read first, by risk:
`ui/packages/plugin-grid/src/ObjectGrid.tsx` (two hunks),
`packages/spec/src/ui/component.zod.ts`,
`packages/spec/src/conversions/entries/18/object-grid-single-click-edit-removed.ts`,
`ui/packages/types/src/zod/objectql.zod.ts`.

<details><summary>Local runs (final head 493b6a0)</summary>

Final head `493b6a01` = `2bd02429` plus a merge of main `0b2118f4` after
objectstack-ai#36478 landed (`719e8674`: main's side of
`scripts/sdui-manifest.record.json`, and `component.mdx` regenerated
with main's new `mobileMaxVisible` describe), then the regenerated
manifest record (`493b6a01`, one `sha256` line). No rebase.

- Dogfood battery on head 493b6a0: os-verify-lock `VERDICT command-exit
0` · `Test Files 485 passed | 3 skipped (488) · Tests 4108 passed | 68
skipped (4176)`, no failures.
- Derived gate families on 493b6a0: 132 run, 0 NOT-MEASURED, every exit
0. `check-sdui-manifest` intact; `check-regen-pending` clear.
- `overlap-check` on 493b6a0: clean against main `43916f3a` and every
open PR sharing files.
- CI at 493b6a0: 61 success, 9 skipped, 0 failed.

Runs at 2bd0242:

Final head `2bd02429` = a merge of `67fe4551` and main `dda5e74f`, made
after the merge queue dropped the PR on a conflict in the generated
`content/docs/references/ui/component.mdx`. The merge's only own change
is that file, regenerated (main's new `showStar` describe). The code
auto-merged, and `check-regen-pending` reports every deferred artifact
current.

- Dogfood battery on 2bd0242 (superseded by the run on 493b6a0 above):
os-verify-lock `VERDICT command-exit 0` · `Test Files 485 passed | 3
skipped (488) · Tests 4108 passed | 68 skipped (4176)`, no failures.
- Derived gate families on 2bd0242: 132 run, 0 NOT-MEASURED, every exit
0.
- `overlap-check` on 2bd0242: clean against main `70194ffc`; the known
conflict with draft objectstack-ai#36478 on `scripts/sdui-manifest.record.json`
stands.

Runs at 67fe455:

Final head `67fe4551` = `4e94a273` plus the S4 changeset fix (the touch
sentence, and one comment's wording). That commit changes only the
changeset and that comment.

- Dogfood battery on head 67fe455 (`pnpm --filter @objectstack/dogfood
test`, closure built under the lock): os-verify-lock `VERDICT
command-exit 0` · `Test Files 485 passed | 3 skipped (488) · Tests 4108
passed | 68 skipped (4176)`, no failures.
- Derived gate families on 67fe455: 132 derived; `--ran` reconciles 132
run, 0 NOT-MEASURED, every exit 0.
- `overlap-check` on 67fe455: clean against main; one conflict with
draft objectstack-ai#36478 in `scripts/sdui-manifest.record.json` (the regenerated
manifest record both PRs carry): whichever lands second merges main and
regenerates it.

`4e94a273` = the review rework (`3894ea44`: TSDoc and comments,
`onBatchSave` `@deprecated`, changeset rows, docs) plus a merge of main
after objectstack-ai#36332 landed (no rebase, no conflicts).

- Dogfood battery on 4e94a27 (superseded by the run on 67fe455 above)
(`pnpm --filter @objectstack/dogfood test`, closure built under the
lock): os-verify-lock `VERDICT command-exit 0` · `Test Files 485 passed
| 3 skipped (488) · Tests 4108 passed | 68 skipped (4176)`, no failures.
- Derived gate families on 4e94a27: 132 derived; `--ran` reconciles 132
run, 0 NOT-MEASURED, every exit 0 (also 132/132 exit 0 on `3894ea44`
before the merge).
- After the merge: `@object-ui/plugin-grid` `Test Files 305 passed ·
Tests 2705 passed`; `@object-ui/plugin-view` `Test Files 67 passed ·
Tests 732 passed`. `type-check` for `@object-ui/types` and
`@object-ui/plugin-grid` exit 0 on `3894ea44`.
- `overlap-check --exclude-pr=36357` on 4e94a27: clean against main and
the eight open PRs sharing files (objectstack-ai#36439, objectstack-ai#36438, objectstack-ai#36435, objectstack-ai#36411,
objectstack-ai#36392, objectstack-ai#36351, objectstack-ai#36343, objectstack-ai#36316). objectstack-ai#36332 is merged and is in this head.

Earlier runs (head 579f99a; suites on 1c2a16b):

- `@object-ui/plugin-grid` whole package: `Test Files 298 passed | 3
failed (301) · Tests 2676 passed | 6 failed`; the 6 (keyboardNavigation
×4, cellSelection ×1, rowContextMenu ×1) were fixed and those three
files re-run green (8 + 28 + 18).
- `@object-ui/plugin-view` whole package: `Test Files 67 passed (67) ·
Tests 732 passed (732)`. `@object-ui/types`: `Test Files 389 passed ·
Tests 10498 passed`.
- `type-check` for `@object-ui/types`, `@object-ui/plugin-grid`,
`@object-ui/plugin-view`: exit 0.
- `@objectstack/spec` test under the verify lock: 1 failed of 27,924
(`retired-key-removal-version.pin`, the JOIN row this PR then added;
that file re-run 63 passed). `test:repo`: `Test Files 93 passed · Tests
1564 passed`.
- Derived gate families (`dispatch-gates --commands`): 132 derived;
`--ran` reconciles 132 run, 0 NOT-MEASURED. Six first read exit 3 on a
stale spec dist and `check:generated` exit 1 on the same stamp; after
`pnpm --filter @objectstack/spec build` all seven re-ran exit 0.
`check-plugin-teardown-shape --self-test` needed its pinned fixture
commit fetched into the shallow clone, then exit 0.
- `node scripts/gen-sdui-manifest-node.mjs` under the lock, then
`gen-sdui-reference.mjs`; `check-doc-component-types.mjs` green.
- `overlap-check --exclude-pr=36357`: clean against main and the six
open PRs sharing files (objectstack-ai#36392, objectstack-ai#36380, objectstack-ai#36351, objectstack-ai#36343, objectstack-ai#36332, objectstack-ai#36316).
- Earlier dogfood battery on 1c2a16b (superseded by the run on 4e94a27
above): `Test Files 484 passed | 3 skipped (487) · Tests 4107 passed |
68 skipped (4175)`. The one commit after it (579f99a) touches two docs
snippets only.
- `pnpm --dir ui check:doc-snippets` after a scoped build: 544 of 544
blocks judged, 0 failed (the Lint UI red on 1c2a16b was the new
staged-model snippet missing its import, fixed in 579f99a).

</details>

<details><summary>Ablation (`scripts/ablation-replace.mjs`, restored to
the HEAD blob, `git diff HEAD` empty)</summary>

- `cellSelectionProp ?? inlineEditable` → `cellSelectionProp` (the
base's behaviour): 3 failed of 6 — the object-view `table.editable` and
named-view `inlineEdit` per-cell saves and the authored-node per-cell
save; the three controls (read-only object-view, read-only node, host
`false`) stay green.

</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jSHfkSrXZxbdWoQxnW -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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/xl tests 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.

Change Owner (3/3 console): record and list Change Owner action, its dialog, and a read-only owner on the default form

1 participant