From b081c6005260877b336bd10e2cd9b9124f91e2b8 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 10:43:29 +0000 Subject: [PATCH 1/3] docs(spec): page object-grid export texts match the grid half The list-view-export-options module header and semantic entry 19's reason now say an object grid that names an object offers csv and json by default (xlsx only where formats lists it), formats: [] turns it off, and a grid naming no object offers export only when it declares the block. Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude --- .../entries/semantic/19.list-view-export-on-by-default.ts | 6 ++++-- packages/spec/src/ui/list-view-export-options.ts | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts b/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts index 2e0c47c73d9..a4805be00ac 100644 --- a/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts +++ b/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts @@ -23,8 +23,10 @@ export const entry: SemanticMigration = { + 'metadata is unchanged and still parses, which is why this is registered: what an absent block means has ' + 'changed. The permission wall is not moved. A user whose permission sets do not grant `allowExport` on ' + 'the object is served no `export` operation and sees no Export entry, on any view; the server refuses ' - + 'the export request too. An `object-grid` page component is not changed by this entry: it still offers ' - + 'export only when it declares the block.', + + 'the export request too. An `object-grid` page component that names an object reads an absent ' + + '`exportOptions` the same way: it offers `csv` and `json` by default, and `xlsx` only where it lists it ' + + 'in `formats`; declare `exportOptions: { formats: [] }` on it to turn its export off. A grid that names ' + + 'no object offers export only when it declares the block.', acceptanceCriteria: 'Every list view that must not offer export declares `exportOptions: { formats: [] }`, or its object sets ' + '`userActions.exportCsv: false`. Signed in as a holder of each permission set, Export is offered on a list ' diff --git a/packages/spec/src/ui/list-view-export-options.ts b/packages/spec/src/ui/list-view-export-options.ts index 61f806ed3dc..718dff9bb5d 100644 --- a/packages/spec/src/ui/list-view-export-options.ts +++ b/packages/spec/src/ui/list-view-export-options.ts @@ -33,8 +33,12 @@ * the server folds into the object's effective `export` operation; * `formats: []` turns a view's export off and the object's * `userActions.exportCsv: false` every view's. - * An `object-grid` page component still offers export only when it declares - * the block. + * An `object-grid` page component that names an object reads an absent block + * the same way: it offers `csv` and `json` by default, and `xlsx` only where + * it lists it in `formats`; `exportOptions: { formats: [] }` turns its export + * off. A grid that names no object offers export only when it declares the + * block. Who may export is still the object's export verdict (the + * `allowExport` grant). * * [#26548] A report's export block lives here too, at the end of the module: * {@link ReportExportOptionsSchema}, three of these five members under the From d04080738026dabaa6ddb6f82f7b53da0a6ce657 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 10:47:46 +0000 Subject: [PATCH 2/3] chore(changeset): patch note for the entry 19 page object-grid wording Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude --- .changeset/39582-object-grid-export-upgrade-note.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .changeset/39582-object-grid-export-upgrade-note.md diff --git a/.changeset/39582-object-grid-export-upgrade-note.md b/.changeset/39582-object-grid-export-upgrade-note.md new file mode 100644 index 00000000000..3734236e4d2 --- /dev/null +++ b/.changeset/39582-object-grid-export-upgrade-note.md @@ -0,0 +1,10 @@ +--- +'@objectstack/spec': patch +--- + +docs(spec): the `list-view-export-on-by-default` upgrade note now covers page object grids + +Clause-②: no +Metadata-protocol: none + +The upgrade-guide entry `list-view-export-on-by-default` used to say that an `object-grid` page component still offers export only when it declares `exportOptions`. That stopped being true in this same release. The entry now says that an `object-grid` page component that names an object reads an absent `exportOptions` the same way a list view does: it offers `csv` and `json` by default, and `xlsx` only where it lists it in `formats`. Declare `exportOptions: { formats: [] }` on it to turn its export off. A grid that names no object offers export only when it declares the block. Only the text changed: no behaviour changes and no new upgrade entry is added. From 432df28c2d21b7d8304b530df940a95fbbdbb76b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 12:08:09 +0000 Subject: [PATCH 3/3] docs(spec): entry 19 headline and check step name the page object grid surface, replacement and acceptanceCriteria now cover an object-grid page component that names an object (same two off switches, same allowExport check); reason says the permission wall applies to the grid too; the export-options header no longer says an absent block differs by carrier. Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude --- .../39582-object-grid-export-upgrade-note.md | 2 +- .../19.list-view-export-on-by-default.ts | 20 ++++++++++--------- .../spec/src/ui/list-view-export-options.ts | 3 ++- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.changeset/39582-object-grid-export-upgrade-note.md b/.changeset/39582-object-grid-export-upgrade-note.md index 3734236e4d2..fdd1fb32d00 100644 --- a/.changeset/39582-object-grid-export-upgrade-note.md +++ b/.changeset/39582-object-grid-export-upgrade-note.md @@ -7,4 +7,4 @@ docs(spec): the `list-view-export-on-by-default` upgrade note now covers page ob Clause-②: no Metadata-protocol: none -The upgrade-guide entry `list-view-export-on-by-default` used to say that an `object-grid` page component still offers export only when it declares `exportOptions`. That stopped being true in this same release. The entry now says that an `object-grid` page component that names an object reads an absent `exportOptions` the same way a list view does: it offers `csv` and `json` by default, and `xlsx` only where it lists it in `formats`. Declare `exportOptions: { formats: [] }` on it to turn its export off. A grid that names no object offers export only when it declares the block. Only the text changed: no behaviour changes and no new upgrade entry is added. +The upgrade-guide entry `list-view-export-on-by-default` used to say that an `object-grid` page component still offers export only when it declares `exportOptions`. That stopped being true in this same release. The entry now says that an `object-grid` page component that names an object reads an absent `exportOptions` the same way a list view does: it offers `csv` and `json` by default, and `xlsx` only where it lists it in `formats`. Declare `exportOptions: { formats: [] }` on it to turn its export off. A grid that names no object offers export only when it declares the block. The entry's headline and its check step now name the grid too: an `object-grid` page component that names an object has the same two off switches as a list view (`exportOptions: { formats: [] }` on it, or the object's `userActions.exportCsv: false`), and the same `allowExport` check per permission set. Only the text changed: no behaviour changes and no new upgrade entry is added. diff --git a/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts b/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts index a4805be00ac..649d8e6ded9 100644 --- a/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts +++ b/packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts @@ -9,13 +9,13 @@ import type { SemanticMigration } from '../../types.js'; export const entry: SemanticMigration = { id: 'list-view-export-on-by-default', surface: - 'view.exportOptions on a list view, wherever the view is declared (ABSENT — a view that never declared ' - + 'the block)', + 'view.exportOptions on a list view, wherever the view is declared, and properties.exportOptions on an ' + + '`object-grid` page component that names an object (ABSENT — a view or grid that never declared the block)', replacement: 'No action is owed to keep export: it is offered with the default formats, `csv` and `json`. To keep a view ' - + 'without export, declare `exportOptions: { formats: [] }` on it; to take export off every view of an ' - + 'object, set the object\'s `userActions.exportCsv: false`. Who may export is unchanged: the permission ' - + 'set\'s `allowExport` grant', + + 'or an `object-grid` page component without export, declare `exportOptions: { formats: [] }` on it; to ' + + 'take export off every view and grid of an object, set the object\'s `userActions.exportCsv: false`. Who ' + + 'may export is unchanged: the permission set\'s `allowExport` grant', reason: 'Before this release a list view offered its Export entry only when it declared `exportOptions`, so a ' + 'view that never thought about export offered import and no export. A list now reads an absent block as ' @@ -26,10 +26,12 @@ export const entry: SemanticMigration = { + 'the export request too. An `object-grid` page component that names an object reads an absent ' + '`exportOptions` the same way: it offers `csv` and `json` by default, and `xlsx` only where it lists it ' + 'in `formats`; declare `exportOptions: { formats: [] }` on it to turn its export off. A grid that names ' - + 'no object offers export only when it declares the block.', + + 'no object offers export only when it declares the block. The same permission wall applies to the grid: a ' + + 'user whose permission sets do not grant `allowExport` on its object sees no Export entry there either.', acceptanceCriteria: - 'Every list view that must not offer export declares `exportOptions: { formats: [] }`, or its object sets ' - + '`userActions.exportCsv: false`. Signed in as a holder of each permission set, Export is offered on a list ' - + 'exactly where that set grants `allowExport` on the object.', + 'Every list view, and every `object-grid` page component that names an object, that must not offer export ' + + 'declares `exportOptions: { formats: [] }`, or its object sets `userActions.exportCsv: false`. Signed in ' + + 'as a holder of each permission set, Export is offered on a list and on such a grid exactly where that set ' + + 'grants `allowExport` on the object.', relevantWhen: { kind: 'stack-declares', keys: ['views', 'viewItems', 'objects', 'pages'] }, }; diff --git a/packages/spec/src/ui/list-view-export-options.ts b/packages/spec/src/ui/list-view-export-options.ts index 718dff9bb5d..36b7d763827 100644 --- a/packages/spec/src/ui/list-view-export-options.ts +++ b/packages/spec/src/ui/list-view-export-options.ts @@ -25,7 +25,8 @@ * {@link LIST_VIEW_EXPORT_OPTIONS_ARRAY_FORM}). The list view's published JSON * Schema did not move with it. * - * [#39475] What an ABSENT block means differs by carrier. A list view that + * [#39475] What an ABSENT block means is the same on both carriers, except + * on an `object-grid` that names no object. A list view that * declares none offers its export anyway, read as the empty block — the * default formats, every other member at its default — as a report offers * its own unasked (maintainer ruling on #39409, option A of analysis