Skip to content

Commit eabd783

Browse files
committed
docs(spec,ui): narrow the exportCsv wording to the data Export entry it gates
The exportCsv describe, the Studio help text, the isObjectExportOffered docblock, the liveness note, the READMEs and the docs said every Export entry and every format read the switch. What reads it is the data Export entry: the CSV, XLSX or JSON download on the grid (toolbar menu, table CSV button), the list view (wide toolbar, Display panel) and the dataset report. A view's export of the picture it draws is not covered: the Gantt view's PNG and PDF buttons read no export verdict. Each sentence now says so. Also in the two schema files: CrudAffordances.exportCsv no longer says "CSV / clipboard export", the userActions docblock's example no longer has an append-only table "expose CSV Export" (it already does by default), and the read / view guidance no longer says userActions toggles write affordances only. The changeset names the grid's table CSV button, which read neither half before and now also follows the effective export operation. Prose only; the regenerated reference row and English metadata-forms bundle follow. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY
1 parent 88f1d55 commit eabd783

11 files changed

Lines changed: 44 additions & 28 deletions

File tree

‎.changeset/35619-user-actions-export-csv-enforced.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ feat: an object's `userActions.exportCsv: false` hides the console's Export entr
1212
Clause-②: yes
1313
Metadata-protocol: semantic
1414

15-
`userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for that object's records, in any format:
15+
`userActions.exportCsv` on an object now does what the Studio object form says it does. Set to `false`, the console offers no Export entry for downloading that object's data, in any of its formats (CSV, XLSX, JSON):
1616

1717
- the object grid hides its toolbar Export menu, and the table's own CSV button that `operations.export: true` turns on;
1818
- the list view hides Export in both toolbar forms, the wide toolbar's button and the Display panel's export footer;
1919
- a dataset report hides its Export control when the dataset's base object sets it.
2020

21-
Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the surfaces read only the effective operation, so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`.
21+
A view's export of the picture it draws is not covered: a Gantt view's PNG and PDF buttons stay.
2222

23-
Nothing changes for an object that does not author the key: every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), so its Export entry stays. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control.
23+
Every surface reads one verdict, the new `isObjectExportOffered(objectSchema, effectiveApiOperations)` from `@object-ui/core`: the authored `exportCsv` over the object's `managedBy` default, ANDed with the caller's effective `export` API operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. Export is a read, so the verdict is not a row of `AFFORDANCE_GRANTS` and asks no `can(object, verb)`: the caller's export grant reaches the console through the effective `export` operation, which the server derives from `list` and `allowExport`.
24+
25+
An object that does not author the key keeps its Export entries, since every `managedBy` bucket still defaults `exportCsv` to `true` (ADR-0103), with one change: the grid's table CSV button (`operations.export: true`) now also follows the effective `export` operation, as the toolbar menu beside it already did. So a viewer whose effective operations exclude `export` no longer sees that button, even on an object that authors nothing. The setting hides the entry and is not a permission: no export request is refused because of it, and who may export is still the permission set's `allowExport`. The report reads the base object's definition through the report's data source, and a report whose source cannot serve one keeps its Export control.
2426

2527
The spec's `exportCsv` description and the Studio form's help text now say this; the form's English help text bundle in `@objectstack/platform-objects` is regenerated to match, and the translated locales keep their wording. The liveness ledger grades `userActions.exportCsv` `live`, so an authored `exportCsv: true` no longer raises the `liveness-dead-property` warning at `os lint` / `os validate`. Nothing needs migrating.

‎content/docs/data-modeling/objects.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ indexes: [
333333
| :--- | :--- | :--- |
334334
| `isSystem` | `boolean` | System object, protected from deletion (default: `false`) |
335335
| `managedBy` | `enum` | Lifecycle bucket that sets the default CRUD affordances and write policy — `'platform'` (default), `'config'`, `'system-data'`, `'engine-owned'`, `'append-only'`, `'synced'`, `'better-auth'`. See [Lifecycle bucket](#lifecycle-bucket-managedby) below. |
336-
| `userActions` | `object` | Per-object override of the CRUD affordances the `managedBy` default implies — `{ create?, edit?, delete?, import?, exportCsv? }`. This is what NARROWS a `system-data` object, opens CSV `import` on one, or opens a verb on an `engine-owned`/`append-only` one. `exportCsv: false` hides the Export entry, every format, on the object's grids, list views and reports; it refuses no export request, since who may export is the permission set's `allowExport`. See [Lifecycle bucket](#lifecycle-bucket-managedby). |
336+
| `userActions` | `object` | Per-object override of the CRUD affordances the `managedBy` default implies — `{ create?, edit?, delete?, import?, exportCsv? }`. This is what NARROWS a `system-data` object, opens CSV `import` on one, or opens a verb on an `engine-owned`/`append-only` one. `exportCsv: false` hides the Export entry that downloads the object's data (CSV, XLSX or JSON) on its grids, list views and dataset reports; a Gantt view's PNG / PDF export of its chart is not covered. It refuses no export request, since who may export is the permission set's `allowExport`. See [Lifecycle bucket](#lifecycle-bucket-managedby). |
337337
| `sharingModel` | `enum` | Org-Wide Default record visibility (ADR-0055/0056/0090). Canonical four only: `'private'`, `'public_read'`, `'public_read_write'`, `'controlled_by_parent'` (detail visibility derived from its master). The legacy aliases (`'read'`, `'read_write'`, `'full'`) were removed from the enum (ADR-0090 D4) — authoring rejects them. Unset on a custom object resolves to `'private'` (ADR-0090 D1) |
338338
| `ownership` | `enum` | Record-ownership model: `'user'` (default — injects the reassignable `owner_id` lookup, engaging owner-scoped RLS, "My" views and owner reports, plus `owning_business_unit_id`), `'business_unit'` (owned by an org unit rather than a person — injects `owning_business_unit_id` and deliberately **no** `owner_id`; ADR-0117 D1), `'org'`, or `'none'` (no per-record owner of either kind — Dataverse-style catalog / junction tables). Distinct from the package `own`/`extend` contribution kind. |
339339
| `validations` | `ValidationRule[]` | Object-level validation rules (see [Validation](/docs/data-modeling/validation)) |

‎content/docs/frontend/plugins/plugin-list.mdx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ objectstack#33549).
7676

7777
The list's Export entry (the wide toolbar's button and the Display panel's
7878
footer) follows the object as well as the view. An object that sets
79-
`userActions.exportCsv: false` gets no Export entry, in any format; the object
80-
grid and a dataset report on that object hide theirs too. All three read one
79+
`userActions.exportCsv: false` gets no Export entry for downloading its data,
80+
in any of the list's formats (CSV, XLSX, JSON); the object grid and a dataset
81+
report on that object hide theirs too. All three read one
8182
verdict, `isObjectExportOffered(objectDef, effectiveApiOperations)` from
8283
`@object-ui/core`: the authored switch over the object's `managedBy`
8384
default, ANDed with the caller's effective `export` API operation. Unset, the
8485
switch is on in every bucket. It hides the entry and is not a permission: who
85-
may export is the permission set's `allowExport`.
86+
may export is the permission set's `allowExport`. A Gantt view's PNG and PDF
87+
export of the chart it draws is not covered by the switch.
8688

8789
## Status
8890

‎content/docs/references/data/object.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const result = ApiMethod.parse(data);
205205
| **import** | `boolean \| { enabled?: boolean; visibleWhen?: string \| object; disabledWhen?: string \| object }` | optional | Show CSV import wizard entry. Boolean, or an object adding visibleWhen/disabledWhen CEL predicates evaluated once per toolbar against the record in scope (the host record on a related list). |
206206
| **edit** | `boolean \| { enabled?: boolean; visibleWhen?: string \| object; disabledWhen?: string \| object }` | optional | Allow inline / form edit of existing rows. Boolean, or an object adding per-record visibleWhen/disabledWhen CEL predicates. |
207207
| **delete** | `boolean \| { enabled?: boolean; visibleWhen?: string \| object; disabledWhen?: string \| object }` | optional | Show row-level delete + bulk delete. Boolean, or an object adding per-record visibleWhen/disabledWhen CEL predicates. |
208-
| **exportCsv** | `boolean` | optional | Show the Export entry (every format, not only CSV) on this object's grids, list views and reports; false hides it. Omitted: shown, in every managedBy bucket. It hides the entry and refuses no export request: who may export is the permission set's allowExport. |
208+
| **exportCsv** | `boolean` | optional | Show the Export entry that downloads this object's data as CSV, XLSX or JSON: the grid's Export menu and its table CSV button, the list view's Export, and a dataset report's Export over this object; false hides it. A view's export of the picture it draws (the Gantt chart's PNG / PDF) is not covered. Omitted: shown, in every managedBy bucket. It hides the entry and refuses no export request: who may export is the permission set's allowExport. |
209209
| **transfer** | `boolean \| { enabled?: boolean; visibleWhen?: string \| object; disabledWhen?: string \| object }` | optional | Offer the Change Owner action (single and bulk) on records of this object. Boolean, or an object adding per-record visibleWhen/disabledWhen CEL predicates. Omitted: on, except off on a controlled_by_parent detail. Offered only where the platform injects a reassignable owner_id that is provable and not declared readonly (ownership user or omitted, no managedBy, not a sys_ object; an external object declares owner_id or maps a remote column onto it); enabled: true elsewhere is refused. Gates the action, not a plain owner_id write. Resolved by resolveUserActionTransfer. |
210210

211211
### Nested Shape: `Object.systemFields`

‎packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
455455
},
456456
"userActions.exportCsv": {
457457
label: "Export CSV",
458-
helpText: "The Export entry, every format, on this object's grids, list views and reports: on shows it, off hides it. Unset: shown, since every managedBy bucket offers export. It is not a permission: who may export is the permission set's allowExport."
458+
helpText: "The Export entry that downloads this object's data (CSV, XLSX or JSON) on its grids, list views and dataset reports: on shows it, off hides it. A Gantt chart's PNG / PDF export is not covered. Unset: shown, since every managedBy bucket offers export. It is not a permission: who may export is the permission set's allowExport."
459459
},
460460
"userActions.transfer": {
461461
label: "Change Owner",

‎packages/spec/liveness/object.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
"verifiedAt": "2026-11-21",
273273
"evidenceScope": "in-repo",
274274
"evidence": "ui/packages/core/src/utils/managedBy.ts#isObjectExportOffered (the resolved `exportCsv` bit, through resolveEffectiveCrudAffordances, which hands the object's `userActions` to resolveCrudAffordances and ANDs the bit with the effective `export` API operation: the one export verdict every entry below reads); ui/packages/plugin-grid/src/ObjectGrid.tsx#ObjectGrid (`objectExportOffered`: the toolbar Export menu, its handler and the table's own CSV button); ui/packages/plugin-list/src/ListView.tsx#ListView (`exportPermitted`: the wide toolbar's Export, the Display panel's export footer and the export handler); ui/packages/plugin-report/src/ReportExport.tsx#ReportExportControl (the dataset report's Export, on the query answer's base object, whose definition it reads through the report's data source)",
275-
"note": "Flipped dead → live 2026-11-21 (#35619, ruling 7035537883: enforce). `exportCsv: false` hides the whole export entry, every format, matching the `exportCsv → export` operation mapping in resolveEffectiveCrudAffordances; the bucket defaults (ADR-0103, `exportCsv: true` in every bucket) are unchanged, so an object that does not author the key keeps its entry. It is a console affordance, not a permission: no server door reads it (plugin-security's WRITE_OP_AFFORDANCE, the spec's MANAGED_WRITE_VERB_AFFORDANCE and core's clampManagedObjectWrites map only create/edit/delete), and who may export stays the permission set's allowExport through the effective `export` operation. RelatedList (ui/packages/plugin-detail/src/RelatedList.tsx) offers no export entry at this tree: its table is drawn with `exportable: false`, its enlarged grid carries no `exportOptions`, and its toolbar has no export control, so there is nothing there to gate. Pinned per surface by the `*-35619` render tests beside each reader, each with a CONTROL that the default still shows the entry."
275+
"note": "Flipped dead → live 2026-11-21 (#35619, ruling 7035537883: enforce). `exportCsv: false` hides the data Export entry (the CSV / XLSX / JSON download: the grid's Export menu and table CSV button, the list view's Export, the dataset report's Export), matching the `exportCsv → export` operation mapping in resolveEffectiveCrudAffordances; a view's export of the picture it draws is not covered (the Gantt view's PNG / PDF buttons in ui/packages/plugin-gantt/src/GanttView.tsx read no export verdict); the bucket defaults (ADR-0103, `exportCsv: true` in every bucket) are unchanged, so an object that does not author the key keeps its entry. It is a console affordance, not a permission: no server door reads it (plugin-security's WRITE_OP_AFFORDANCE, the spec's MANAGED_WRITE_VERB_AFFORDANCE and core's clampManagedObjectWrites map only create/edit/delete), and who may export stays the permission set's allowExport through the effective `export` operation. RelatedList (ui/packages/plugin-detail/src/RelatedList.tsx) offers no export entry at this tree: its table is drawn with `exportable: false`, its enlarged grid carries no `exportOptions`, and its toolbar has no export control, so there is nothing there to gate. Pinned per surface by the `*-35619` render tests beside each reader, each with a CONTROL that the default still shows the entry."
276276
},
277277
"transfer": {
278278
"status": "planned",

‎packages/spec/src/data/object.form.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ export const objectForm = defineForm({
745745
{ field: 'import', label: 'Import', widget: 'json', helpText: 'The CSV import entry: on shows it, off hides it. A stored {enabled, visibleWhen, disabledWhen} object is edited key by key; write one in source to gate the entry on the record in scope, evaluated once per toolbar.' },
746746
{ field: 'edit', label: 'Edit', widget: 'json', helpText: 'Editing existing records, inline and in the form: on offers it, off hides it. A stored {enabled, visibleWhen, disabledWhen} object is edited key by key; write one in source to gate each row on its own record.' },
747747
{ field: 'delete', label: 'Delete', widget: 'json', helpText: 'Row and bulk delete: on offers it, off hides it. A stored {enabled, visibleWhen, disabledWhen} object is edited key by key; write one in source to gate each row on its own record.' },
748-
{ field: 'exportCsv', label: 'Export CSV', type: 'boolean', helpText: 'The Export entry, every format, on this object\'s grids, list views and reports: on shows it, off hides it. Unset: shown, since every managedBy bucket offers export. It is not a permission: who may export is the permission set\'s allowExport.' },
748+
{ field: 'exportCsv', label: 'Export CSV', type: 'boolean', helpText: 'The Export entry that downloads this object\'s data (CSV, XLSX or JSON) on its grids, list views and dataset reports: on shows it, off hides it. A Gantt chart\'s PNG / PDF export is not covered. Unset: shown, since every managedBy bucket offers export. It is not a permission: who may export is the permission set\'s allowExport.' },
749749
{ field: 'transfer', label: 'Change Owner', widget: 'json', helpText: 'The Change Owner action, single and bulk: on offers it, off hides it. Unset: on, except off on a controlled_by_parent detail. Offered only on an object whose records have a reassignable owner (ownership user or unset, no managedBy, not a sys_ object, owner_id not readonly and, on an external object, declared or mapped); turning it on anywhere else is refused. It gates the action only, not a plain edit of owner_id. A stored {enabled, visibleWhen, disabledWhen} object is edited key by key; write one in source to gate the action on each record.' },
750750
],
751751
},

0 commit comments

Comments
 (0)