Repository navigation
feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired - #36357
Conversation
…and saves each cell on its own The grid an object-view draws itself (no renderListView host) passes cellSelection to ObjectGrid when the view makes it editable (named view inlineEdit, else table.editable), so it drops the pending-changes bar and Save All for per-cell save. A read-only grid keeps click-to-open. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
…t (local, held) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
…, and object-grid singleClickEdit is retired A grid that renders editable (editable set and the viewer allowed to edit) now uses the select-first cell model wherever it is drawn: the object-view grid and an authored object-grid node, as on the list page. A click selects, double-click, Enter, F2 or typing opens the editor, and each committed cell saves on its own; no Save All bar is drawn. Read-only grids keep click-to-open, and a host's cellSelection prop still wins. singleClickEdit has no single-click entry left to switch, so it is retired under ADR-0049: a retiredKey tombstone in the spec, the D2 conversion object-grid-single-click-edit-removed, its D3 entry and retired-key row, and a ?: never tombstone in @object-ui/types (the object-view table slot no longer relays it). keyboardNavigation's describe narrows to what is enforced: always on for a grid that renders editable. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
…object-grid inputs Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
…al-version pin Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
📓 Docs Drift CheckThis PR changes 1 package(s): 7 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b235e13e69353032f6b14c594133edc729387524 && git checkout b235e13e69353032f6b14c594133edc729387524
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 43916f3a8f458377c2784c00f6d8777b26b6d5f0 493b6a01d12a251e7eb80b6d42cfe60dda0df53f && git checkout -B drift-repro 43916f3a8f458377c2784c00f6d8777b26b6d5f0 && git merge --no-ff 493b6a01d12a251e7eb80b6d42cfe60dda0df53f
node scripts/docs-audit/affected-docs.mjs --json 43916f3a8f458377c2784c00f6d8777b26b6d5f0
|
… compiles Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 REWORK · head 维护者速读
要改的(3 项)
席位问的两件事
席位核对(本轮已读,增量时不重读)
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Inputs read: card #36270 with its six comments (ruling 7076617499, claims 7076019035, 7076656125 and 7077058264, report 7078389795), PR #36357 body and its one comment, the net diff of 60 files against merge-base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
…do under select-first The keyboardNavigation TSDoc and the ObjectGrid comment no longer say `false` turns navigation off on an editable grid; only a host keeping the staged model lets it. onBatchSave is marked deprecated, since a select-first grid saves each cell and never calls it, and the changeset gains its FROM/TO row and the touch note. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Re-queue (2026-11-22T17:30Z): head |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta review of Inputs read: card #36270 with its nine comments (the corrected report 7082880017 included), PR #36357 body and comments, the merge commit, the net diff against What moved in the delta:
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Re-queue (2026-11-22T17:38Z). The queue dropped this PR because the Governed Surface Queue Guard (exit 10) found no contract record naming head |
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta review of Inputs read: card #36270 with its nine comments (no new comment since report 7082880017), PR #36357 body and comments, the two new commits, the net diff against What moved in the delta:
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Re-queue (2026-11-22T19:35Z). The queue dropped this PR on MERGE_CONFLICT after #36478 landed, because of the generated scripts/sdui-manifest.record.json. Head |
… and group subtotals and the footer total follow a cell save (objectstack-ai#35689 slice B) (objectstack-ai#36476) Fixes objectstack-ai#35689 — slice B (groups and totals after a save). Slice A (touch, accessibility, checked rows) landed earlier on its own PR, so nothing else on the card is left. Clause-②: no Metadata-protocol: none ## 维护者速读 - 列表页按阶段分组时,把一条的阶段从甲改成乙:停在这一行时它不动,点到别的行后它出现在乙组,两组的条数和金额小计都对;改金额后分组小计和表尾合计马上更新。 - 列表行内编辑重做专题的最后一块(分组与合计随保存更新),这张卡至此做完。 - 出错时最坏是分组小计或表尾合计显示旧数字、或这一行要刷新后才换组,保存的数据本身不受影响;可以直接撤回。 - 无 ## What changes Measured first on `origin/main` 285ad8d, in a list that selects a cell first (the list page's grid), with the card-named pins below run against the unchanged source: | Card item | Server grouping | Browser grouping | Premise | |:---|:---|:---|:---| | A row whose stage changed moves to its new group after the user leaves the row | did not move | did not move | holds: broken | | Group counts and amount subtotals after the save | not refreshed | not refreshed | holds: broken | | Footer total, flat grid whose rows are the whole set | not refreshed | n/a | holds: broken | | Footer total, grid paged on the server (whole-set figure) | already re-read after a write | n/a | false: works on main, pinned only | Why: a select-first save redraws only its own row (the row patches of objectstack-ai#35685) and the list lets its own write go by on the bus, so nothing is read again. The groups, the group headers' numbers and the footer's row figures read the rows as loaded, not as saved. The whole-set footer listens to the bus itself, so it already re-asked. What this PR does, all in `@object-ui/plugin-grid`: - **The figures read the saved rows.** `rowsAsSaved` (in `objectGridRowPatch.ts`) gives the rows with each saved row in place of the one read, while that read is the one held. The footer reads it, so a flat grid's total includes the saved value at once. A grid that groups the rows it was handed buckets it, so its counts and subtotals follow the save. - **A row whose save changed a grouping field is held in its group until the row is left.** `writeRowInPlace` notes such a record in `heldInGroup`. The browser bucketing reads that record as it was loaded (it stays in its group, counted and summed there). `onCellSelect` on a cell of another row lets it go: the browser bucketing then moves it, and a server-grouped grid reads its group headers and open groups' rows again (`regroupNonce`). A cell of the same row does not let it go. Any later save on a held row waits with it. - **Any other save in a server-grouped grid re-asks only the headers** (`savedFigureNonce`), so subtotals update at once and no row is read again. `objectGridGrouping.ts` now keys the header query on that nonce and the row pages on `regroupNonce` alone. - A grid without the select-first model still reads everything again after each save, as before (control pin). Docs: `content/docs/frontend/plugins/plugin-grid.mdx` gains one bullet under the per-cell save section. Changeset: `@object-ui/plugin-grid` patch. ## Tests One new top-level describe in the component's existing select-first save harness, `ObjectGrid.autosave-35685.test.tsx`: "ObjectGrid — groups, subtotals and the footer total after a cell save (objectstack#35689)". It covers both grouping paths: the server, where the grid asks its own group headers and group pages, and the browser, where it buckets rows a host hands it. - Card line 「离开这一行后它出现在乙组,两个组的条数和金额小计正确」, on each path: a stage pasted from Prospect to Won keeps the row in Prospect, with both groups at their old figures. A click on another cell of the same row keeps it there too. A click on a cell of another row moves it to Won, and the groups read Prospect 1 · 100 and Won 2 · 80. - Card text 「分组小计…随保存更新」, on each path: an amount saved is in its group's subtotal at once. No row is read again. A server-grouped grid asks its headers exactly once more, and a browser-grouped one asks nothing. - Card line 「表尾合计在改了金额后更新」: in a flat grid whose rows are the set, the footer sum goes from 180 to 200. In a grid paged on the server, the whole-set footer is read again and reads 200 (this holds on main and is pinned only). - Control: without `cellSelection`, a write on the bus re-reads the grouped grid at once. Ablations: one run per leg through `scripts/ablation-replace.mjs`. Every anchor hit x1 and went to x0, and every restore came back to the HEAD blob `f5aebf14` with `git diff HEAD` empty. The suites import the grid by relative path (source), so no dist leg was owed: | Leg | Mutation | Red | |:---|:---|:---| | A1 | `onCellSelect` no longer lets a held row go | 2: the move pin on both paths | | A2 | no header re-ask on a save | 1: server subtotal | | A3 | the grouping reads the loaded rows | 2: browser move and browser subtotal | | A4 | the footer reads the loaded rows | 1: flat footer | | A5 | a held row is bucketed as saved | 1: browser hold before leaving | <details><summary>Readings (all through scripts/pm/os-verify-lock.sh)</summary> - On `origin/main` 285ad8d before any source edit, the new describe gave 5 failed and 2 passed (the paged footer and the control). The failures: Won expected Bolt and Cord, got Cord only (both paths); the subtotal stayed 2 · 150 (both paths); the footer stayed Sum: 180. - At e96aa67 (after merging origin/main with objectstack-ai#36332 and objectstack-ai#36396): `pnpm turbo run build --concurrency=2 --filter='@object-ui/plugin-grid^...' --filter='@objectstack/client-react...'`: 54 successful. Then `pnpm --filter @object-ui/plugin-grid run type-check` (script echoed): exit 0. Then `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/`: Test Files 304 passed (304), Tests 2706 passed (2706). And `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/`: Test Files 172 passed, 2 skipped; Tests 5127 passed, 2 skipped; exit 0. - At 1285fe4 (the final head; it only moves the new describe above the state-machine block, so it does not collide with an open PR's append at the end of the file): the harness gave Test Files 1 passed (1), Tests 29 passed (29), VERDICT command-exit 0. `pnpm check:nul-bytes` exit 0. </details> <details><summary>Gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at e96aa67 derived 72 families (6 paths vs merge base d8628ac). All ran with exit 0. Three needed a second attempt: `check:skill-examples` first exited 3 because client-react had no dist (built, then exit 0); `check:type-check-debt` first exited 3 because the lock was busy (run under the lock, exit 0, 0 raw tsc errors); the ui `scripts/` suite first got no turn on the lock (exit 99), and its reading is above. - `--ran`: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN, with every exit code recorded. - `node scripts/pm/overlap-check.mjs` at 1285fe4: VERDICT clean exit 0, against origin/main 7ae5e07 and 4 open heads (objectstack-ai#36453, objectstack-ai#36438, objectstack-ai#36357, objectstack-ai#36316). </details> ## Acceptance notes - "Leaving the row" means selecting a cell of another row (a click, the arrow keys, Tab across the row's end). Escape, or a click outside the grid, keeps the row selected, so it stays in its group until another row is selected or the list loads again. - When a server-grouped grid regroups on leaving a row, it reads the open groups' rows again, so a group pager turned past page 1 starts over at page 1, as on any refresh. - A held record stays noted after a later full load. The next time a row is left, the groups are read one extra time. That read is harmless. ## Verification Files to read first, by risk: 1. `ui/packages/plugin-grid/src/ObjectGrid.tsx`: `noteSavedPlace`, `leaveHeldRows`, and the `savedData` and `groupedData` memos. 2. `ui/packages/plugin-grid/src/objectGridGrouping.ts`: the header and row reload keys. 3. `ui/packages/plugin-grid/src/objectGridRowPatch.ts`: `rowsAsSaved`. Two-minute check: `pnpm --dir ui exec vitest run packages/plugin-grid/src/__tests__/ObjectGrid.autosave-35685.test.tsx`. Expect 29 passed, including the seven under "(objectstack#35689)". --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds)_ --------- Co-authored-by: Claude <noreply@anthropic.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>
Requested by Steedos · project thread
Fixes #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)
维护者速读
singleClickEdit(单击即编辑)作废:写了会报错并提示删掉,os migrate meta能自动删除。singleClickEdit已经没有可切换的东西,按 ADR-0049「要么执行、要么删除」退役;keyboardNavigation的说明也改成实际行为(可编辑表格上方向键导航始终开启)。singleClickEdit,升级后该页面校验失败,需要删掉这个键(提示里写明了怎么做,迁移工具可自动删);或者某张可编辑表格的使用者习惯了单击就编辑,现在要多一次双击。本仓、hotcrm、gallery 中没有任何地方写过这个键。What changes
The ruling A on #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'scellSelection, a grid that renders editable (editableAND the object's inline-edit verdict AND the reader'supdategrant) is select-first; a read-only grid keeps click-to-open. A host'strue(ListView, the related tab) orfalsestill wins. The data table is handedsingleClickEdit: trueunconditionally: it is inert under select-first, and it is the staged model's old default for a host that passesfalse.@objectstack/spec:ComponentPropsMap['object-grid'].singleClickEditis aretiredKey()tombstone; D2 conversionobject-grid-single-click-edit-removed(strip, whatever the value; order 83), D3object-grid-single-click-edit-retired,RETIRED_KEYS_BY_MAJOR[18]rowui/ObjectGridProps:singleClickEdit, aSTEP18_RATIONALEfragment (order 123), ledgerpage.jsonregions note [122] plus the narrowed [43].keyboardNavigation's describe narrows to what is enforced: always on for a grid that renders editable,trueturns it on for a read-only grid.@object-ui/types:ObjectGridSchema.singleClickEdit?: neverwith aretirementTombstone()zod twin; theobject-viewtableslot inherits it (TABLE_INHERITED_TOMBSTONES, asdefaultSort).DataTableSchema.singleClickEdit(host-paired) is unchanged.@object-ui/plugin-view:table.singleClickEditleavesOBJECT_VIEW_TABLE_RELAY_KEYS. The earlier host-levelcellSelectionspread is gone:ObjectGrid's default covers the object-view grid, authored nodes and react pages in one place.object-gridinputs,sdui.manifest.json,content/docs/ui/components/*: thesingleClickEditinput is gone and theeditable/keyboardNavigationdescriptions 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'scellSelection={false}..changeset/36270-object-grid-single-click-edit-retired.md(@objectstack/specminor plus the three ui packages), with the FROM → TO table and<!-- adr-0087: registered … -->.The card's Done-when: the five grid families
object-view) and the authoredobject-gridnode: changed here. Pinned byObjectView.perCellSave-36270.test.tsxandauthoredGridPerCellSave-36270.test.tsx, with the ablation below.RelatedList.tsxpassescellSelection: true, pinned byRelatedList.tab-35892.test.tsx; unchanged.RecordPickerDialog,ObjectManager,FieldDesigner): they renderObjectGridwithouteditable, so they are read-only and unchanged.data-table/object-data-tablenodes, notObjectGrid, and have no save path. The card's dashboard-table pin therefore has no subject: there is no editable dashboard grid to pin. A baredata-tablethat a host handseditablestill stages edits and draws its bar; that is the table primitive, which no in-repo grid host reaches.ObjectGridselects a cell first, and no in-repo host passescellSelection={false}.ObjectGrid. The form's line items are theGridFieldwidget, which this PR does not touch, and no in-repo host passescellSelection={false}or its ownonBatchSave. So no saved-together list loses its staging here.onBatchSave: a host that passesonBatchSavealone on an editableObjectGridnow has it bypassed (each cell writes throughonRowSaveor the grid's owndataSource.update). No in-repo host passes it. The changeset carries a FROM → TO row for it andObjectGridComponentProps.onBatchSaveis marked@deprecated.Tests
packages/spec/src/ui/object-grid-single-click-edit.pin.test.ts(tombstone at both channels fortrue/false,editablecontrol, 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,repoproject),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-falsecontrols), and the earlierObjectView.perCellSave-36270.test.tsx.ObjectGrid.keyboardNavigation-11068.test.tsx(editable grids read the select-first pattern andfalseno longer turns it off; a hostcellSelection={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.cellSelection={false}and no longer authorsingleClickEdit; two that passedcellSelection={x || undefined}passcellSelection={x}(under the new defaultundefinedmeans select-first).retired-key-removal-version.pin.test.tsjoins the new conversion.Acceptance notes
Clause-②: no (narrowing): the house spelling for a retirement; the seat re-amended the claim to it (7077058264).singleClickEditin 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.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.onBatchSave) is unblocked by this: no authored or ObjectView grid reaches the batch save any more; only a host's explicitcellSelection={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.Local runs (final head 493b6a0)
Final head
493b6a01=2bd02429plus a merge of main0b2118f4after #36478 landed (719e8674: main's side ofscripts/sdui-manifest.record.json, andcomponent.mdxregenerated with main's newmobileMaxVisibledescribe), then the regenerated manifest record (493b6a01, onesha256line). No rebase.VERDICT command-exit 0·Test Files 485 passed | 3 skipped (488) · Tests 4108 passed | 68 skipped (4176), no failures.check-sdui-manifestintact;check-regen-pendingclear.overlap-checkon 493b6a0: clean against main43916f3aand every open PR sharing files.Runs at 2bd0242:
Final head
2bd02429= a merge of67fe4551and maindda5e74f, made after the merge queue dropped the PR on a conflict in the generatedcontent/docs/references/ui/component.mdx. The merge's only own change is that file, regenerated (main's newshowStardescribe). The code auto-merged, andcheck-regen-pendingreports every deferred artifact current.VERDICT command-exit 0·Test Files 485 passed | 3 skipped (488) · Tests 4108 passed | 68 skipped (4176), no failures.overlap-checkon 2bd0242: clean against main70194ffc; the known conflict with draft feat(record-page): on a phone the bottom bar holds the object's own actions only; Edit moves into the top bar's More #36478 onscripts/sdui-manifest.record.jsonstands.Runs at 67fe455:
Final head
67fe4551=4e94a273plus the S4 changeset fix (the touch sentence, and one comment's wording). That commit changes only the changeset and that comment.pnpm --filter @objectstack/dogfood test, closure built under the lock): os-verify-lockVERDICT command-exit 0·Test Files 485 passed | 3 skipped (488) · Tests 4108 passed | 68 skipped (4176), no failures.--ranreconciles 132 run, 0 NOT-MEASURED, every exit 0.overlap-checkon 67fe455: clean against main; one conflict with draft feat(record-page): on a phone the bottom bar holds the object's own actions only; Edit moves into the top bar's More #36478 inscripts/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 #36332 landed (no rebase, no conflicts).pnpm --filter @objectstack/dogfood test, closure built under the lock): os-verify-lockVERDICT command-exit 0·Test Files 485 passed | 3 skipped (488) · Tests 4108 passed | 68 skipped (4176), no failures.--ranreconciles 132 run, 0 NOT-MEASURED, every exit 0 (also 132/132 exit 0 on3894ea44before the merge).@object-ui/plugin-gridTest Files 305 passed · Tests 2705 passed;@object-ui/plugin-viewTest Files 67 passed · Tests 732 passed.type-checkfor@object-ui/typesand@object-ui/plugin-gridexit 0 on3894ea44.overlap-check --exclude-pr=36357on 4e94a27: clean against main and the eight open PRs sharing files (fix(plugin-grid): while selecting, Enter or Space on a phone card's row menu ticks the card #36439, feat(record-page): the side preview opens 460 wide, puts the record's name first with one labelled action, and lists a child tab one row per record #36438, fix(spec)!: retire columnState from the stored view row #36435, feat(kanban): the board's own view settings, lane header create and menu, and a lane statistic #36411, feat: line-item table cells for people, multi-select, tags, check and rating (#36043) #36392, fix(fields): a pick leaves an amount in another currency empty and says why #36351, feat(console): Change Owner on the record page, the list selection bar and the edit form (#35403) #36343, feat(automation): the stage confirms name the flows a move would start (#35928) #36316). feat(grid): read-only cells say so in the grid, a cell save is said in one live region, a touch never edits in place (#35689 slice A) #36332 is merged and is in this head.Earlier runs (head 579f99a; suites on 1c2a16b):
@object-ui/plugin-gridwhole 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-viewwhole package:Test Files 67 passed (67) · Tests 732 passed (732).@object-ui/types:Test Files 389 passed · Tests 10498 passed.type-checkfor@object-ui/types,@object-ui/plugin-grid,@object-ui/plugin-view: exit 0.@objectstack/spectest 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.dispatch-gates --commands): 132 derived;--ranreconciles 132 run, 0 NOT-MEASURED. Six first read exit 3 on a stale spec dist andcheck:generatedexit 1 on the same stamp; afterpnpm --filter @objectstack/spec buildall seven re-ran exit 0.check-plugin-teardown-shape --self-testneeded its pinned fixture commit fetched into the shallow clone, then exit 0.node scripts/gen-sdui-manifest-node.mjsunder the lock, thengen-sdui-reference.mjs;check-doc-component-types.mjsgreen.overlap-check --exclude-pr=36357: clean against main and the six open PRs sharing files (feat: line-item table cells for people, multi-select, tags, check and rating (#36043) #36392, fix(console): Hide column in the column-header menu joins the list draft, like the View settings eye #36380, fix(fields): a pick leaves an amount in another currency empty and says why #36351, feat(console): Change Owner on the record page, the list selection bar and the edit form (#35403) #36343, feat(grid): read-only cells say so in the grid, a cell save is said in one live region, a touch never edits in place (#35689 slice A) #36332, feat(automation): the stage confirms name the flows a move would start (#35928) #36316).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-snippetsafter 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).Ablation (`scripts/ablation-replace.mjs`, restored to the HEAD blob, `git diff HEAD` empty)
cellSelectionProp ?? inlineEditable→cellSelectionProp(the base's behaviour): 3 failed of 6 — the object-viewtable.editableand named-viewinlineEditper-cell saves and the authored-node per-cell save; the three controls (read-only object-view, read-only node, hostfalse) stay green.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jSHfkSrXZxbdWoQxnW