Repository navigation
feat(console): Change Owner on the record page, the list selection bar and the edit form (#35403) - #36343
Conversation
…wner line Claude-Session: https://claude.ai/code/session_01FEkQ5okniknzVVR3KTSVr1 Co-Authored-By: Claude <noreply@anthropic.com>
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>
…ange-owner-console
…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
…question Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds
…ery pack Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds Final head (area f7-list, 2026-11-22T09:27Z): |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 5d4ddea · 2026-11-22T09:28Z |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 REWORK · head 维护者速读
要改的(1 项)
席位核对
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: 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 ① Derived judgments
② Semver level
③ Boundary flagsQ1 (seat reading A): answered. The list reads the explain engine's object-level
Implemented-by: 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
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds Final head after the REWORK round (area f7-list, 2026-11-22T11:54Z): |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT(增量)· head 维护者速读
增量核对(
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta review. The previous record is 7077265450, a FAIL at The delta holds two commits, Prior findings, judged on this head:
① Derived judgments
② Semver level
③ Boundary flagsS1 design: holds.
os-dev-report 7078722939.
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: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Landing (seat 7, 2026-11-22T12:01Z): head |
…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>
… 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>
…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>
…; 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 的预览)。 - 出错的话,影响的是预览里看不到评论;评论数据不动,整页照常能看能写,撤回这次改动即可恢复原样。 - 无  ## 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>
…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) |  |  |  |  | | Actions (Task) |  |  |  |  | | HotCRM lead (zh-CN) |  |  | not taken |  | | Approval (Project) |  |  |  |  | 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>
…, 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>
Requested by Leehom · project thread
Fixes #35403
Clause-②: yes (widening) — new published
@object-uisurface, measured on the export lists (merge baseb3bcfefcbagainst head):onBulkChangeOwnerandbulkChangeOwnerOfferedprops onObjectGrid/ListView;CHANGE_OWNER_BULK_ACTION(plugin-grid);FormOwnerLine,FormOwnerLineProps,FormOwnerLineContext,FormOwnerActionTarget,FormOwnerLineHost(plugin-form; the last three also from/core);'transfer'inRecordOperation(plugin-detail);grid.changeOwnerandconsole.changeOwner.*keys in every locale (i18n); nothing removed or renamedMetadata-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, inRecordDetailView's built-in header entries). It is drawn only when all three facts hold, as ruled:userActions.transferis on. Facts 1 and 2 come from the spec's one resolution,resolveUserActionTransferin@objectstack/spec/data.transferverdict for this record is a definite allow.The verdict comes from the record page's existing single read. Its
explainlist now askstransferwherever facts 1 and 2 hold.seedRecordPageReadersseeds that answer into the same verdict cacheuseRecordVerdictreads, so there is no second per-record request. The queue Claim shares the same answer. IfdisabledWhenholds 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:owner_id. The served label is passed throughfieldLabel, and "Owner" (i18n) is used only when the object serves none.queuecolumn. Queues are read fromsys_queueonly once the queue target is chosen.notify: trueonly when ticked.data.changeOwner; two or more calldata.changeOwnerMany, both from@objectstack/client. There is no server, spec, SDK or REST change.The list.
ObjectGrid's selection bar (and its row context menu's bulk section) offers Change Owner where the host wires the new optionalonBulkChangeOwnerprop, unless the new optionalbulkChangeOwnerOfferedisfalse;ListViewforwards both. WiringonBulkChangeOwnermakes 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 passesbulkChangeOwnerOfferedas the explain engine'stransferverdict for the OBJECT, which must be a definite allow (POST /security/explainwith norecordId, 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 existinguseListPageSelecting). Opening a list therefore costs the server no explain read, the posture the grid's row verdicts already take (useRecordCrudVerdicts). Rows that the switch'svisibleWhenexcludes 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_idis still dropped from the form's fields byfilterSystemFields/SERVER_OWNED_FIELD_NAMESand 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 mountsFormOwnerLineContext(exported from@object-ui/plugin-formand its/coreentry). 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.changeOwnerand theconsole.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:Clause-②:line readsyes (widening); its body lists the new surface per package. Measured with the TypeScript checker (getExportsOfModuleand the members of each exported interface and type) on each entry, merge baseb3bcfefcbagainst head. Added names: plugin-gridCHANGE_OWNER_BULK_ACTION; plugin-formFormOwnerActionTarget,FormOwnerLine,FormOwnerLineContext,FormOwnerLineHost,FormOwnerLineProps(root) andFormOwnerActionTarget,FormOwnerLineContext,FormOwnerLineHost(/core); plugin-list, plugin-detail (root and/core) and i18n add no name. Added members:ObjectGridComponentProps/ObjectGridPropsonBulkChangeOwner,bulkChangeOwnerOffered;ListViewPropsonBulkChangeOwner,bulkChangeOwnerOffered;RecordOperation"delete"|"update"to"delete"|"transfer"|"update". Removed: none. Re-read on the BUILT declarations of head7a1cdd56(the five packages'dist/*.d.ts, built underos-verify-lock): the same added names on every entry, and the same added members (ObjectGridComponentProps/ObjectGridProps/ListViewPropsonBulkChangeOwnerandbulkChangeOwnerOffered,RecordOperationwith'transfer', theFormOwner*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.changeOwnerand theconsole.changeOwner.*block, in all 11.ObjectGridturns multi-select on whereonBulkChangeOwneris wired, and draws the entry only whilebulkChangeOwnerOffered !== false; the Console wires the prop from facts 1 and 2 and passes the verdict asked once a selection is open. New pinObjectView.bulkChangeOwnerReach-35403.test.tsx, through the realObjectViewand 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-leveltransferrequest; ticking both rows asks once and the bar carriessys_change_ownerand nodelete. A refused verdict leaves the rows selectable and the bar without Change Owner. Control: anownership: 'none'object draws no checkboxes and asks nothing. 3/3.7a1cdd56, throughscripts/ablation-replace.mjs, each restore proved by blob == HEAD and an emptygit diff HEAD. Dropping|| onBulkChangeOwnerfrom the multi-select arm (blobba88537d73a0to1d7490f81be0) gave 2 failed, 1 passed: the transfer case and the refused case found no checkboxes, and the control stayed green. Dropping&& bulkChangeOwnerOffered !== false(to9d540e94f35b) gave 1 failed, 2 passed: the refused case drew Change Owner.onBulkChangeOwnerdoc 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 (singleRowMenufor one row on a list page); the code is unchanged.7a1cdd56, underos-verify-lock: every app-shell suite namingObjectVieworAppContent, pluschangeOwner-35403,bulkChangeOwner-35403and the payload pin: Test Files 289 passed (289), Tests 2639 passed (2639).Earlier round, head
5d4ddea3:Final head
5d4ddea3.ObjectView.sharedViewSave-35955,ObjectView.objectBoundActions-7234,ObjectView.footerCalculationDraft-36194,ObjectView.readOnlyPackageViewSaves-35974,ObjectView.viewRefusal-12112andAppContent.draftSaveKeepsList-35932failed with the network-escape guard'sNetwork 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'sexplainlist 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-35883opens a selection, so it now gets an explain double answering no; any other request throws.os-verify-lock:ObjectView.*suite plus AppContent, the payload pin and the card file, on0e97ce47: Test Files 105 passed, 1 failed (the phone selection suite, fixed indf44c1a3);ObjectVieworAppContent, plus the phone selection suite, ondf44c1a3: Test Files 188 passed (188), Tests 1720 passed (1720);@object-ui/i18nsuite (withcount-families-11445,de-quote-pairing-3876,untranslated-identity-4376,zh-hant-generated,all-locales-key-parity), the plugin-formaffordanceGrantMap-12082census,bulkChangeOwner-35403andchangeOwner-35403, on5d4ddea3: Test Files 109 passed (109), Tests 2065 passed, 13 skipped. The first run of this set ona37c0ac5was red inall-locales-key-parity(the two counted families had no base key in any of the 11 packs);5d4ddea3adds them.changeOwner-35403.test.tsxandbulkChangeOwner-35403.test.tsx: no action onownership: 'none',managedByandsys_*objects even for a platform admin; acontrolled_by_parentdetail shows none by default and shows it withuserActions.transfer: true; a switched-offprivateobject shows none for amodifyAllRecordsholder; edit without transfer seesowner_idread-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.5d4ddea3, throughscripts/ablation-replace.mjs:const asks = enabled && !!name && wanted;changed to drop&& wanted, anchor 1 to 0, blob293da7c28c7dto8cae616fd61b;changeOwner-35403.test.tsxwent 1 failed, 29 passed (the no-open-selection case); restore proved by blob293da7c28c7d== HEAD and an emptygit diff HEAD. The earlier visibility-leg ablations are on the previous dev's heads (structural 3 red, switch 2 red, verdict 3 red).5d4ddea3:@object-ui/app-shelland@object-ui/i18ntype-check(after building the@object-ui/app-shell^...closure): VERDICT command-exit 0.Acceptance notes
transferverdict, 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 ownVALIDATION_ERRORsentence.ListViewbulk surfaces.onBulkChangeOwnerreaches the grid only.Verification
Read first, by risk:
ui/packages/plugin-grid/src/ObjectGrid.tsx:changeOwnerDrawnand the multi-select armhasBulkActions || onBulkChangeOwner.ui/packages/app-shell/src/views/changeOwner.ts,useListChangeOwnerOffered(thewantedhold) anduseRecordChangeOwnerOffer(the three-fact gate,verdict === true).ui/packages/app-shell/src/views/recordPagePayload.ts:transfernow 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