Skip to content

Commit e42520c

Browse files
docs(changelog): the 35827 note names GridCellSelectionProvider as the host to mount (#38129)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoPm5yqPvuwrjEV9JhFTrVJj)_ Fixes #37521 repo:objectstack#3 · os-tesla · session_01L9qibxEbSk19qJRPHrm3v9 Clause-②: no Metadata-protocol: none ## 维护者速读 - 是什么:纯文档。#35827 已发布的发版说明里,迁移表有两行叫宿主去挂 `GridCellSelection`,这是类型名,挂不上;改成要挂的组件 `GridCellSelectionProvider`。 - 为什么:PR #38097 已把运行时警告改对,发版说明还写着旧名字,照着做会编译不过。 - 影响谁:只影响读 CHANGELOG 的宿主开发者;没有行为变化,可整体撤回。 - 需要你:无。 ## What changes The migration table of the #35827 note ("the staged editing model is retired"), two rows, in six copies: the five published `CHANGELOG.md` entries (`@objectstack/spec`, `@object-ui/app-shell`, `@object-ui/components`, `@object-ui/plugin-grid`, `@object-ui/types`, each in its `19.0.0-next` section) and the consumed prerelease changeset `.changeset/pre/35827-data-table-staged-edit-retired.md`. - Row `data-table` schema `onBatchSave: (changes) => …`, TO column. Before: "`onRowSave` inside a `GridCellSelection` host, or render `object-grid`". After: "`onRowSave` inside a `GridCellSelectionProvider` host, or render `object-grid`". - Row "an editable `data-table` with no … host or no `onRowSave`". Before: "an editable `data-table` with no `GridCellSelection` host or no `onRowSave` | mount `GridCellSelection` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns". After: "an editable `data-table` with no `GridCellSelectionProvider` host or no `onRowSave` | mount `GridCellSelectionProvider` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns". Nothing else in the note moves. The note's opening sentence, "edits only inside a select-first host (`GridCellSelection`)", names the model and is left as written; the other `GridCellSelection` mentions in these CHANGELOGs name the type's members (`GridCellSelection.confirmCommit`, `.describeCell`, `referenceCells`) and are correct. ## DELIBERATE CORRECTION This PR rewrites a released note, the #35827 note, in its consumed changeset `.changeset/pre/35827-data-table-staged-edit-retired.md` and in the five CHANGELOG entries compiled from it. - AGENTS.md *Documentation Guardrails*, `packages/*/CHANGELOG.md` row: a factual error in a released entry is amended in that entry, in a dedicated docs-only PR. - The consumed prerelease copy is changed byte-equal with the CHANGELOG rows (bar the CHANGELOG's two-space indent), so the stable cut, which re-applies consumed changesets, prints the corrected rows. - The corrected sentences are quoted under *What changes* above. Because the PR changes an existing changeset and adds none, `Check Changeset` is red by design; it carries no `skip-changeset` label. ## Why `GridCellSelection` is the context's value type; the component a host mounts is `GridCellSelectionProvider`, exported from `@object-ui/components` beside it. PR #38097 (part 1 of #37521) corrected the runtime warning that said the same thing; this is the release-text half the card's contract record 7189751333 named. ## Verification - `git diff origin/main --stat`: 6 files, 12 insertions, 12 deletions, two lines per file. - The six copies of each corrected row are identical apart from the indent (`git diff`). - `GridCellSelectionProvider` is the exported component name in `ui/packages/components/src/index.ts` and `ui/packages/components/src/context/gridCellSelection.tsx`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. (no names added) - [x] 3. No formatter ran; `pnpm lint` passes. (no code) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing of its own; corrects a consumed note, see above) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (only its CHANGELOG) - [ ] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. — one deliberate hand edit of a released CHANGELOG entry, the docs-only route AGENTS.md prescribes for a factual error. - [x] 8. Title, body and comments are in English. (the 维护者速读 block is the fleet's maintainer summary) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibxEbSk19qJRPHrm3v9 --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxEbSk19qJRPHrm3v9)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 98bd8de commit e42520c

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎.changeset/pre/35827-data-table-staged-edit-retired.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Metadata-protocol: narrowed
2323
|:--|:--|
2424
| `<ObjectGrid cellSelection={false}>` to keep click-to-edit and the "Save All" bar | drop the prop; an editable grid is select-first, and a read-only one opens a record on a click |
2525
| `<ObjectGrid onBatchSave={…}>` | pass `onRowSave(rowIndex, changes, row)` to own the write record by record, or pass nothing and let the grid save through its own `dataSource.update` |
26-
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelection` host, or render `object-grid` |
26+
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelectionProvider` host, or render `object-grid` |
2727
| `data-table` schema `singleClickEdit` | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor |
28-
| an editable `data-table` with no `GridCellSelection` host or no `onRowSave` | mount `GridCellSelection` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
28+
| an editable `data-table` with no `GridCellSelectionProvider` host or no `onRowSave` | mount `GridCellSelectionProvider` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
2929

3030
The one-line fix: delete `cellSelection={false}`, `onBatchSave` and `singleClickEdit` wherever a host writes them, and pass `onRowSave` where a batch handler did the write. Passing `cellSelection={false}`, `onBatchSave` or `singleClickEdit` after upgrade fails `tsc` (`cellSelection` accepts only `true`, `onBatchSave` is `never`, `singleClickEdit` is no longer declared), and the `data-table` mirror refuses `onBatchSave` by name as retired. None of these is authorable metadata, so `os migrate meta` has nothing to rewrite; its D3 entry `data-table-staged-edit-retired` names what the upgrade still owes: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures.
3131

‎packages/spec/CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,9 +1515,9 @@
15151515
|:--|:--|
15161516
| `<ObjectGrid cellSelection={false}>` to keep click-to-edit and the "Save All" bar | drop the prop; an editable grid is select-first, and a read-only one opens a record on a click |
15171517
| `<ObjectGrid onBatchSave={…}>` | pass `onRowSave(rowIndex, changes, row)` to own the write record by record, or pass nothing and let the grid save through its own `dataSource.update` |
1518-
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelection` host, or render `object-grid` |
1518+
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelectionProvider` host, or render `object-grid` |
15191519
| `data-table` schema `singleClickEdit` | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor |
1520-
| an editable `data-table` with no `GridCellSelection` host or no `onRowSave` | mount `GridCellSelection` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
1520+
| an editable `data-table` with no `GridCellSelectionProvider` host or no `onRowSave` | mount `GridCellSelectionProvider` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
15211521

15221522
The one-line fix: delete `cellSelection={false}`, `onBatchSave` and `singleClickEdit` wherever a host writes them, and pass `onRowSave` where a batch handler did the write. Passing `cellSelection={false}`, `onBatchSave` or `singleClickEdit` after upgrade fails `tsc` (`cellSelection` accepts only `true`, `onBatchSave` is `never`, `singleClickEdit` is no longer declared), and the `data-table` mirror refuses `onBatchSave` by name as retired. None of these is authorable metadata, so `os migrate meta` has nothing to rewrite; its D3 entry `data-table-staged-edit-retired` names what the upgrade still owes: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures.
15231523

‎ui/packages/app-shell/CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,9 +859,9 @@
859859
|:--|:--|
860860
| `<ObjectGrid cellSelection={false}>` to keep click-to-edit and the "Save All" bar | drop the prop; an editable grid is select-first, and a read-only one opens a record on a click |
861861
| `<ObjectGrid onBatchSave={…}>` | pass `onRowSave(rowIndex, changes, row)` to own the write record by record, or pass nothing and let the grid save through its own `dataSource.update` |
862-
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelection` host, or render `object-grid` |
862+
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelectionProvider` host, or render `object-grid` |
863863
| `data-table` schema `singleClickEdit` | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor |
864-
| an editable `data-table` with no `GridCellSelection` host or no `onRowSave` | mount `GridCellSelection` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
864+
| an editable `data-table` with no `GridCellSelectionProvider` host or no `onRowSave` | mount `GridCellSelectionProvider` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
865865

866866
The one-line fix: delete `cellSelection={false}`, `onBatchSave` and `singleClickEdit` wherever a host writes them, and pass `onRowSave` where a batch handler did the write. Passing `cellSelection={false}`, `onBatchSave` or `singleClickEdit` after upgrade fails `tsc` (`cellSelection` accepts only `true`, `onBatchSave` is `never`, `singleClickEdit` is no longer declared), and the `data-table` mirror refuses `onBatchSave` by name as retired. None of these is authorable metadata, so `os migrate meta` has nothing to rewrite; its D3 entry `data-table-staged-edit-retired` names what the upgrade still owes: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures.
867867

‎ui/packages/components/CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@
163163
|:--|:--|
164164
| `<ObjectGrid cellSelection={false}>` to keep click-to-edit and the "Save All" bar | drop the prop; an editable grid is select-first, and a read-only one opens a record on a click |
165165
| `<ObjectGrid onBatchSave={…}>` | pass `onRowSave(rowIndex, changes, row)` to own the write record by record, or pass nothing and let the grid save through its own `dataSource.update` |
166-
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelection` host, or render `object-grid` |
166+
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelectionProvider` host, or render `object-grid` |
167167
| `data-table` schema `singleClickEdit` | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor |
168-
| an editable `data-table` with no `GridCellSelection` host or no `onRowSave` | mount `GridCellSelection` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
168+
| an editable `data-table` with no `GridCellSelectionProvider` host or no `onRowSave` | mount `GridCellSelectionProvider` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
169169

170170
The one-line fix: delete `cellSelection={false}`, `onBatchSave` and `singleClickEdit` wherever a host writes them, and pass `onRowSave` where a batch handler did the write. Passing `cellSelection={false}`, `onBatchSave` or `singleClickEdit` after upgrade fails `tsc` (`cellSelection` accepts only `true`, `onBatchSave` is `never`, `singleClickEdit` is no longer declared), and the `data-table` mirror refuses `onBatchSave` by name as retired. None of these is authorable metadata, so `os migrate meta` has nothing to rewrite; its D3 entry `data-table-staged-edit-retired` names what the upgrade still owes: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures.
171171

‎ui/packages/plugin-grid/CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@
232232
|:--|:--|
233233
| `<ObjectGrid cellSelection={false}>` to keep click-to-edit and the "Save All" bar | drop the prop; an editable grid is select-first, and a read-only one opens a record on a click |
234234
| `<ObjectGrid onBatchSave={…}>` | pass `onRowSave(rowIndex, changes, row)` to own the write record by record, or pass nothing and let the grid save through its own `dataSource.update` |
235-
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelection` host, or render `object-grid` |
235+
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelectionProvider` host, or render `object-grid` |
236236
| `data-table` schema `singleClickEdit` | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor |
237-
| an editable `data-table` with no `GridCellSelection` host or no `onRowSave` | mount `GridCellSelection` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
237+
| an editable `data-table` with no `GridCellSelectionProvider` host or no `onRowSave` | mount `GridCellSelectionProvider` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
238238

239239
The one-line fix: delete `cellSelection={false}`, `onBatchSave` and `singleClickEdit` wherever a host writes them, and pass `onRowSave` where a batch handler did the write. Passing `cellSelection={false}`, `onBatchSave` or `singleClickEdit` after upgrade fails `tsc` (`cellSelection` accepts only `true`, `onBatchSave` is `never`, `singleClickEdit` is no longer declared), and the `data-table` mirror refuses `onBatchSave` by name as retired. None of these is authorable metadata, so `os migrate meta` has nothing to rewrite; its D3 entry `data-table-staged-edit-retired` names what the upgrade still owes: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures.
240240

‎ui/packages/types/CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@
128128
|:--|:--|
129129
| `<ObjectGrid cellSelection={false}>` to keep click-to-edit and the "Save All" bar | drop the prop; an editable grid is select-first, and a read-only one opens a record on a click |
130130
| `<ObjectGrid onBatchSave={…}>` | pass `onRowSave(rowIndex, changes, row)` to own the write record by record, or pass nothing and let the grid save through its own `dataSource.update` |
131-
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelection` host, or render `object-grid` |
131+
| `data-table` schema `onBatchSave: (changes) => …` | `onRowSave` inside a `GridCellSelectionProvider` host, or render `object-grid` |
132132
| `data-table` schema `singleClickEdit` | delete the key; a click selects the cell and double-click, Enter, F2 or typing opens its editor |
133-
| an editable `data-table` with no `GridCellSelection` host or no `onRowSave` | mount `GridCellSelection` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
133+
| an editable `data-table` with no `GridCellSelectionProvider` host or no `onRowSave` | mount `GridCellSelectionProvider` and pass `onRowSave`, or render `object-grid`; until then it renders read-only and warns |
134134

135135
The one-line fix: delete `cellSelection={false}`, `onBatchSave` and `singleClickEdit` wherever a host writes them, and pass `onRowSave` where a batch handler did the write. Passing `cellSelection={false}`, `onBatchSave` or `singleClickEdit` after upgrade fails `tsc` (`cellSelection` accepts only `true`, `onBatchSave` is `never`, `singleClickEdit` is no longer declared), and the `data-table` mirror refuses `onBatchSave` by name as retired. None of these is authorable metadata, so `os migrate meta` has nothing to rewrite; its D3 entry `data-table-staged-edit-retired` names what the upgrade still owes: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures.
136136

0 commit comments

Comments
 (0)