Repository navigation
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
Conversation
…ns only; Edit moves into the top bar's More Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…bar's More Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
… page's own actions, Edit in the top bar's More Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
… actions-only bottom bar Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…nd the top bar's More Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 174 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 d19977b0193280712b1c2bcd092e34ab765b4d7a && git checkout d19977b0193280712b1c2bcd092e34ab765b4d7a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 70194ffc656bbeba0c1c2c8059f56c648f4e00d6 a262ef3653fc63479b6a59504d9ff88643d01d27 && git checkout -B drift-repro 70194ffc656bbeba0c1c2c8059f56c648f4e00d6 && git merge --no-ff a262ef3653fc63479b6a59504d9ff88643d01d27
node scripts/docs-audit/affected-docs.mjs --json 70194ffc656bbeba0c1c2c8059f56c648f4e00d6
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Final head · 2026-11-22T14:04Z ·
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 REWORK · head 维护者速读
要改的(1 项)
席位核对
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Inputs read: card #36151 body and all 5 comments, PR #36478 body, file list (14 files) and net diff at this head, the 70 check-runs on this head (61 success, 9 skipped, 0 failed). Code outside the diff was read on main ① Derived judgments
② Semver levelClause-②: yes (widening), present line-initial in the PR body and in the changeset body, and it matches the diff (one optional member added to an exported interface; nothing removed, nothing required). ③ Boundary flags
④ Design judgment
No must-fix, no should-fix. N1 (nit): the describe says the phone bar "holds the page's own actions", and the changeset says an authored value "counts the page's actions alone". Host buttons other than Edit still queue first and take slots: the approval queue's Claim, and the edit state's Cancel and Save. The jsdoc in Implemented-by: VERDICT: PASS |
… migrating an authored mobileMaxVisible Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Seat ruling (2026-11-22T14:29Z) on the card's acceptance example: option A. The bar budget stays as ruled (item 2, at most two of the page's own actions), so on the HotCRM lead 「转化线索」 shows beside 「确认线索」. The card's example is read as "no 编辑 in the bar", which this PR meets. No HotCRM card is filed, and the platform default is not changed. |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Delta head · 2026-11-22T14:58Z ·
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT(增量)· head 维护者速读
增量核对(
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Landing · 2026-11-22T15:38Z · head
State: ready + auto-merge now. |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45039497614 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…the changeset's More list drops Favorites Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Delta head · 2026-11-22T17:30Z ·
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT(增量)· head 维护者速读
增量核对(
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Re-landing · 2026-11-22T17:33Z · head
State: auto-merge again now. |
…, 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>
… rating (objectstack-ai#36043) (objectstack-ai#36392) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_ Fixes objectstack-ai#36043 repo:objectstack#7 · zhuangjianguo · session_01QsR2jTbWpneBrqq7SJvrNt Clause-②: yes (widening) Metadata-protocol: semantic Skills-docs: none — no skill names the inline grid column `type` values or keys (`git grep` of `skills/` for `inlineColumns` and the column type list: one passing mention in `objectstack-data/rules/relationships.md`, which lists no types) ## 维护者速读 - 表单里的明细表(主从表单的行项目表格)中,人员格子可以直接搜索选人,多选格子可以选多个选项,标签格子可以加标签,勾选格子是复选框,评分格子是星星;以前这些都是普通文本框,人员要手填用户编号,多选只能填一个值。 - 属于列表页重做专题的单元格编辑那一组,替在主从表单里录入明细行的用户解决「人员、多选填不进去」的问题。 - 已有表单的明细表会直接变样:布尔字段从「是/否」下拉变成复选框,评分字段从数字框变成星星;作者在列上明确写了类型的不受影响;出错时最坏是这几类格子不好用,已存的数据不受影响,可直接撤回。 - 无 ## What changes The card's words map onto the enum by the spec's existing rule that every column type is spelled as its namesake field type (the `inline-grid-column-carriers` probe and the `field.json` liveness note rely on it): people = `user`, multi-select = `multiselect`, tags = `tags`, check = `boolean`, rating = `rating`. **Spec (`packages/spec/src/data/field.zod.ts`).** `InlineGridColumnSchema.type` gains `user`, `multiselect`, `tags`, `boolean` and `rating` (nine → fourteen). The column gains one optional key, `max`: the star count of a `rating` cell (default 5), because a column carries no field definition and a `max: 10` rating would otherwise draw five stars. `options` and `multiple` describe what the new cells read from them. `inline-grid-columns.ts` (`deriveInlineGridColumns`' cell-type mirror) maps the same way, and each new cell type keeps the fill priority its field types had before, so which derived columns are visible by default does not change (the existing budget pins stay green unchanged). Liveness ledger: the `type` note lists fourteen types, and a `max` child row. Regenerated: reference docs, `authorable-surface/data.json` (one new key), liveness state counts. **Derivation (`ui/packages/plugin-form/src/deriveMasterDetail.ts`).** `fieldTypeToColumnType` maps `user` → `user`, `multiselect` / `checkboxes` → `multiselect`, `tags` → `tags`, `boolean` / `toggle` → `boolean`, `rating` → `rating`. A derived or hydrated column carries `multiple` from a multi-person field, `max` from a rating field, and the child's options on `multiselect` columns. A `tags` column takes no options: its cell holds free-form tags and reads no option list. A `boolean` column keeps the two options it carried as a select (`'true'` / `'false'`, labelled with the session's words through `booleanLabel`): they are the words its read-only and list-mode cells read as, so `booleanLabel` stays live. A column that declares its `type` is left alone, as before. **Cells (`ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx`, `gridCellPanels.tsx`).** The cells reuse the main list's in-cell faces rather than forking them: - `GridPanelCell` (new, beside S5's `GridSelectCell`) is a panel shell under the cell that hosts a widget's own `inCell` face over a draft: a click outside or Tab writes the draft, Esc writes nothing, and a face that ends on one pick calls `commit`. The cell keeps drawing its value while the panel is open. - `multiselect` hosts `MultiSelectField inCell`, `tags` hosts `TagsField inCell`, and `user` hosts `UserField inCell` (the main list's person picker: searchable list, recents, Clear; a single pick writes and closes). - `boolean` is the `Checkbox` primitive (click / Space), writing `true` / `false`. - `rating` draws `RatingField inCell` (a click on a star sets it); a digit key on the cell sets that many stars, 0 clears, a digit above `max` does nothing. - Read-only table and list mode: people by name (`UserField readonly`), a rating as its stars, a multi-select's option labels, a check cell as its option word (else the session's yes/no word). - A required cell holding an empty list (multi-select, tags, several people) reads invalid, as an empty scalar does. - A multi-select, tags or several-people cell that is emptied writes `null`, not `[]`: the save path counts only `null` / `''` as blank (`isBlankRow`), and a cleared multi-value field stores `null` elsewhere too. An emptied cell reads `—`. Item 2 of the card (interim read-only columns) is not built: the seat reads it as superseded once item 1 ships, and this PR ships item 1. **Visible change on existing master-detail forms** (named in the changeset): a derived `boolean` / `toggle` column is a checkbox instead of the yes/no select and writes booleans instead of the strings `'true'` / `'false'` (the server's write normalisation reads both the same); a derived `rating` column is stars instead of a number box; `user`, `multiselect`, `checkboxes` and `tags` columns are no longer plain text boxes. ## Tests - `ui/packages/fields/src/widgets/GridField.test.tsx`, new top-level `describe` "the cells that edit as in the main list": multi-select (labels, several picks staged then written on leaving, Esc writes nothing, empty list reads invalid when required), tags (a new tag added from the list, Tab writes and moves to the next cell), check (checkbox over `true` and `'false'`, click writes a boolean, read-only reads the option word), rating (five stars by default, a click sets, digit keys set and 0 clears, a digit above the stars sets nothing, `max: 10` draws ten), people (the person picker opens under the cell; its Clear writes and closes). An emptied multi-select and an emptied tags cell each write `null` (both pins go red with the fix taken out), and the emptied tags cell reads `—`. - `ui/packages/plugin-form/src/deriveMasterDetail.test.ts`: the five mappings with their neighbours as controls; a new `describe` pinning the extras on both the derive and the hydrate path (`multiple`, options on a multi-select and none on a tags column, the check column's two words, `max` from the field and none when the field declares none), and that an authored column, a `type: 'select'` over a boolean field included, keeps its type and extras. - `deriveMasterDetail.booleanOptions-12924.test.tsx`: the derived boolean column is now `type: 'boolean'` with the same two session-language options; the editable grid pins read checkbox states instead of picker text; the language-switch pin now re-labels the read-only table (the editable check cell shows no word). - `MasterDetailForm.lateCatalogue-12924.test.tsx`: the late-catalogue re-label is read where the grid still draws a boolean's word, a second detail in `inlineMode: 'form'`; the editable `Lines` detail keeps the unsaved edit and its checkboxes through the catalogue landing. - `deriveMasterDetail.inlineGridColumns-11345.test.ts`: the "output unchanged" corpus moves its one derived boolean column (`gift`) from `select` to `boolean`, marked where it sits; nothing else in the corpus moves. ## Deviations Four files outside the claim's surface, each a direct consequence of the widening. Seat 7 counts them inside the card. - `packages/metadata-core/src/object-schema-fls-references.ts`: `INLINE_COLUMN_POSITIONS` classifies the new `max` key as `keep` (a number, never a field name). `object-schema-fls-references.test.ts` refuses an unclassified `InlineGridColumnSchema` key, so it was red in Test Core 3/10 at `10767ef3`. - `ui/packages/types/src/__tests__/strict-face-read-keys-11070.test.ts`: the refused-column-type row used `boolean`, which is now a cell type, so it moves to `toggle`, which is still refused. It was red in Test UI 12/16 at `10767ef3`. - `ui/packages/types/src/form.ts`: a docblock no longer counts "nine" cell controls. - `content/docs/data-modeling/field-types.mdx`: the inline grid bullets list the fourteen cell types and the checkbox booleans, and add the people, multi-select, tags and rating cells. The changeset adds `'@objectstack/metadata-core': patch` and `'@object-ui/types': patch` for the first two packages. ## Acceptance notes - A click outside a multi-select / tags / people panel writes through the popover's own dismiss (`onOpenChange`). The jsdom pins leave the panel through Tab, because that harness's pointer events do not reach the dismiss. The click outside is measured live below. ## Live click-through Showcase app (`objectstack dev --seed-admin`, fresh database) plus the Console from source (Vite), Chromium through Playwright. To host the three cells, the run added, without committing, `inlineEdit: 'grid'` and `inlineColumns` (`name`, `f_multiselect`, `f_tags`, `f_users`) to `showcase_field_zoo.f_master_detail`, and a `fieldGroups` entry placing that child on `showcase_project`. The edits were reverted afterwards. Project "Website Relaunch", Edit, row 0 of the zoo grid. "Outside" is a click on the dialog's "Edit Project" heading. | Step | Multi-select | Tags | People (multiple) | | --- | --- | --- | --- | | Stored before | `["red","green"]` | `["alpha","beta"]` | `null` | | Pick | Blue | type `gamma`, Enter | Dev Admin | | Panels open after the click outside | 0 | 0 | 0 | | Cell after the click outside | Red, Green, Blue | alpha, beta, gamma | Dev Admin | | Stored after Update | `["red","green","blue"]` | `["alpha","beta","gamma"]` | `["<Dev Admin's user id>"]` | | Cell after a page reload and Edit again | Red, Green, Blue | alpha, beta, gamma | Dev Admin | | Emptied, click outside, Update: cell / stored | — / `null` | — / `null` | not run | The run found one defect, fixed in `2197dbdd`: an emptied tags cell drew nothing instead of `—`. The display helper now reads an empty list as empty for every type. It is pinned in `GridField.test.tsx`, and the final row above was read with the fix served. - `rating` cells keep `RatingField`'s one button per star, so Tab visits each star; the arrows and digit keys work from any of them. ## Verification Final head `6185caed`. It adds three commits to `f73a4351`: - `6e74cfe0`: the review rework. Metadata-protocol is `semantic`; a `tags` column takes no options; an emptied multi-value cell writes `null`; the stale "twenty keys" and liveness prose is fixed. - `2197dbdd`: the emptied tags cell reads `—`, found by the live run. - A merge of `origin/main` at `07b17542` (objectstack-ai#36523, objectstack-ai#36478, objectstack-ai#36522, objectstack-ai#36514, objectstack-ai#36508), and `6185caed`, which regenerates `content/docs/references/ui/component.mdx` from the merged tree. The merge had taken that page's `mobileMaxVisible` line from one side. Checks at the final head: - `dispatch-gates --ran` at `6185caed`: 120 derived families accounted for, 120 run, 0 NOT MEASURED, every one exit 0. That includes `check:generated` and `check:liveness` after a spec rebuild, and `pnpm --dir ui exec vitest run scripts/` run alone under the verify lock. - `ui/packages/fields/` + `ui/packages/plugin-form/` (whole packages) at `6185caed`: 567 files, 7,629 tests passed, 8 skipped. - The new pins were ablated: both "emptied, it writes null" pins and the tags `—` pin go red with their fix taken out. - `overlap-check` at `6185caed`, verdict read before the push. It merges cleanly with `origin/main` `a10987ae` and with 6 of 7 open PR heads. objectstack-ai#36543 conflicts only in `packages/spec/liveness/state-counts/field.md`, a generated count: whichever lands second regenerates it with `gen:liveness-counts`, not a hand merge. - Earlier heads: at `10767ef3`, `pnpm --filter @objectstack/spec test` (871 files, 27,909 tests) and `test:repo` (92 files, 1,562 tests) passed. CI was green at `f73a4351`. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jTbWpneBrqq7SJvrNt)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTbWpneBrqq7SJvrNt <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jTbWpneBrqq7SJvrNt --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steedos · project thread
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
Fixes #36151
Clause-②: yes (widening)
Metadata-protocol: semantic
Skills-docs: none — no published skill under
skills/namesmobileMaxVisible, 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 andcontent/docs/ui/pages.mdxhere.维护者速读
What changes
On a phone (the console's record page,
phonePage), per the card's five ruled items:⋯on the phone (component: 'action:menu'on the host'ssys_edit, always, not only when Edit is off). A field's value is edited by one tap on it (记录的字段区统一成一列:右侧预览、手机记录页、宽屏左栏共用一个组件,不管多宽都只排一列;分组箭头在右 #36147, PR feat(record-page): the field area is one list in the side preview, on a phone and in the pinned left column (#36147) #36234); whole-record edit is ⋯ → Edit, which calls the sameonEdithandler the bar's Edit called (inline edit state on an object without a form, the form route on one with a form).PHONE_ACTION_BAR_BUTTONS= 2, or the authoredmobileMaxVisible), filling the row (flex-1). The edit state keeps its Cancel and Save there.:has(> [role=toolbar]:empty)/ no toolbar), so the body runs to the foot of the screen.RecordHeaderStateContext's state group with its own⋯; the top bar draws no second⋯then (one⋯per screen).⋯, at the right end ofRecordTopBar(itsframeslot): actions past the budget, Refresh, Edit (on or off with its reason), Share, Delete. The favorites entry is not in it: since 记录页的收藏星标露在记录名旁边:现在收在「更多」菜单里(以 Attio 为准) #36246 (PR feat(app-shell): the record's favorite star beside its name, out of the header's overflow #36456) the favorite star sits beside the record's name, on the phone too.Mechanism:
PageHeaderPhoneFace(thePageHeaderPhoneContextvalue, a host slot, never metadata) gains an optionalmore: HTMLElement | null.PageHeaderActionsin 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 inpage-header-phone-bar-27058.test.tsxare untouched and green).RecordDetailViewhands aspan[data-record-phone-more]it mounts in the top bar'sframe.face: 'row'path is not touched).Spec / docs:
page:headermobileMaxVisibledescribe 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-writtencontent/docs/ui/pages.mdxand 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: #34595 (the bottom bar starts with Edit), and the Edit-counted half of #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.
INLINE_EXCLUDED_FIELD_TYPES/ read-only by kind)Pins updated where they pinned the reversed behaviour:
RecordDetailView.phoneFace-27058.test.tsx(the 手机端记录页:底部操作栏里「编辑」被自定义动作挤进更多菜单;阶段条文字全部被截断 #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 callsonEdit; the approval control and the Edit-off cases read the top⋯.RecordDetailView.favoritesEntry-12427.test.tsx(记录页的收藏星标露在记录名旁边:现在收在「更多」菜单里(以 Attio 为准) #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: newthe phone bar with the host's top-bar ⋯ slotdescribe (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 #36456; the spec reference regenerated on the merged tree; the favorites pin moved to the top⋯; the changeset's⋯list drops Favorites):vitest --maxWorkers=1on 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-shelltype-checkVERDICT command-exit 0;pnpm --dir ui exec vitest run scripts/5127 passed, 2 skipped, exit 0;dispatch-gates --ran125 derived, 123 exit 0, 2 NOT MEASURED (the same two exit-3 prerequisites below). The readings below were taken on code headec741d2c08, before the merge:Unit suites, type-check, local gate subset
vitest run --maxWorkers=1phoneFace-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/componentsand@object-ui/app-shelltype-check(bothtsc --noEmitandtsconfig.test.json, so the edited tests are in): VERDICT command-exit 0, after building the@object-ui/app-shell^...closure (a stale@object-ui/typesdist had first reported aDataTableSchema.onColumnHideerror outside this diff; rebuilt, gone).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-examplesneeds a built@objectstack/client-react,check:dual-build-cjs-loadsneeds studio, client-react and other dists outside this diff; both run in CI).@objectstack/speccheck:generatedgreen after--fix;check:sdui-referenceandcheck-sdui-manifestgreen.test:repo, the repo-wide lint, the artifact-roster and wide families.Acceptance notes
689166cran 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.75f16a89de, before feat(app-shell): the record's favorite star beside its name, out of the header's overflow #36456 landed. Since 记录页的收藏星标露在记录名旁边:现在收在「更多」菜单里(以 Attio 为准) #36246 (PR feat(app-shell): the record's favorite star beside its name, out of the header's overflow #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 byRecordDetailView.favoritesEntry-12427.test.tsx's phone case).convert_lead. The card's wording 「只有确认线索」 describes the old bar with 编辑 removed. To show 确认线索 alone, HotCRM setsmobileMaxVisible: 1on the lead page'spage:header(an app-side authoring choice, not made here; raised to the seat in the report).⋯on the phone in every state, including the record's edit state (where the bar is Cancel/Save).scripts/sdui-manifest.record.json(a generated sha/date pair); whichever lands second regenerates it. Clean against 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, 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 and origin/main.Verification
Read first (by risk):
PageHeaderActionsinui/packages/components/src/renderers/layout/containers.tsx: themoreInTopBarbranch (the portal into the host slot and the early return that leaves the bar empty).RecordDetailViewinui/packages/app-shell/src/views/RecordDetailView.tsx:sys_edit's phonecomponent: 'action:menu', the top bar'sframeslot and the bar's empty-hide class.PageHeaderPhoneFaceinpage-header-phone-context.ts: the new optionalmore.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):⋯openThe screenshots were taken before #36456 landed, so the open
⋯shots still show Add to favorites / 添加到收藏. Since #36246 that entry has left the⋯for the star beside the record's name.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA