Skip to content

feat(plugin-grid): an object table that declares no exportOptions offers export; platform grids declare none - #39553

Merged
objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/issue-39475-wip
Dec 4, 2026
Merged

objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/issue-39475-wip

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Fixes #39475

Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — the published skills teach exportOptions only on reports, never on a grid or a list, so nothing they say becomes false

维护者速读

  • 用户能看到什么变化:作者在页面上放的对象表格,即使没写导出配置,有导出权限的用户也会看到「导出」(CSV、JSON);列表页、相关列表、Studio 元数据列表、对象管理、字段设计和开发调试页这些平台自带的表格都不出现导出。
  • 为什么做:按维护者对表格这一半的裁决(默认开,平台界面自行关)补齐列表默认导出的另一半。
  • 出错会怎样:没有导出权限的人仍看不到导出、服务器也拒绝;某张表格不该导出时可在它上面写空格式列表关掉;撤回本改动即恢复原样。
  • 要你做什么:无。

What changes

Ruling: option A on the card's grid half (record 7402364820): 「默认开,平台界面自行关」.

  • ObjectGrid (@object-ui/plugin-grid): a grid over an object that declares no exportOptions reads the absent block as the default block (UNDECLARED_EXPORT_OPTIONS, frozen {}), as ListView has since the list half landed. The toolbar's Export menu offers the default formats, csv and json; xlsx only where the grid lists it and the server stream delivers it. Every export read in the grid (formats, the handler, streaming, maxRecords, the toolbar gate) now takes that one resolved block.
  • A grid that names no object stays explicit-only: no objectName (resolved through the record source too) and no block means no Export, as before.
  • The permission wall does not move. Who may export is still the object's export verdict, objectExportOffered: the object's userActions.exportCsv ANDed with the server's effective export operation, which carries the caller's allowExport grant (/me/permissions apiOperations). A caller without the grant sees no Export; the server refuses the request.
  • Platform hosts write exportOptions: { formats: [] } on the grid node they build, so none grows an Export it did not have:
    • plugin-list ListView.tsx: the list page's grid child (Studio's records grid included). The list's own toolbar, Display panel and page bar stay the one export door.
    • plugin-detail RelatedList.tsx: the enlarged related tab's grid. The related list keeps its own export in its toolbar.
    • app-shell metadataListGrid.ts: every Studio metadata list (ResourceListPage.tsx takes its grid node from here; that file is not touched).
    • plugin-designer ObjectManager.tsx and FieldDesigner.tsx.
    • console dev/DevRowActions.tsx.
  • Kept on: the author-placed table (a page's object-grid component) and plugin-view's ObjectView, per the ruling.
  • Not changed, and why: RecordPickerDialog.tsx composes no grid of its own (its renderGrid slot has no caller in the tree; the ObjectGrid there is a doc example), and ObjectCalendar.tsx only mentions ObjectGridSchema in a comment. Neither gains export.
  • Changeset: @object-ui/plugin-grid minor; plugin-list, plugin-detail, plugin-designer, console patch. Metadata-protocol: semantic.

Read first, by risk:

  1. ui/packages/plugin-grid/src/ObjectGrid.tsx, the exportOptions const above exportableFormats: the one behavioural line.
  2. ui/packages/plugin-list/src/ListView.tsx, the grid branch's exportOptions: { formats: [] }: without it the list page draws two Export buttons.
  3. ui/packages/plugin-grid/src/__tests__/exportGate.test.tsx, block ObjectGrid.exportDefaultOn-39475: the permission-wall pins.

Tests

  • ObjectGrid.exportDefaultOn-39475 (new top-level describe in exportGate.test.tsx), 6 pins on the real grid:
    • THE CHANGE: an undeclared object table draws Export and offers csv and json, not xlsx;
    • THE CHANGE: a caller served export (the allowExport grant) sees Export;
    • a caller served no export sees none;
    • formats: [] (what each platform host writes) shows none;
    • an object-less grid with no block shows none, with the CONTROL that the same grid declaring the block shows it.
  • One host pin each:
    • ListView.exportDefaultOn-39475: a new case in the shared harness (real grid), compact toolbar, rows drawn, no grid Export, list Display panel still offers csv and json;
    • RelatedList.enlargedGridExportOff-39475: the enlarged tab hands object-grid exportOptions: { formats: [] };
    • metadataListGrid.exportOff-39475: the metadata list node declares it;
    • ObjectManager.gridExportOff-39475 and FieldDesigner.gridExportOff-39475: real grid, rows drawn, no Export;
    • DevRowActions.exportOff-39475 (new file): real grids, rows drawn, no Export.
  • Ablation, one leg per changed line, each through node scripts/ablation-replace.mjs (anchor hit, blob changed, restored to HEAD blob, git diff HEAD empty). Results below.
Readings

Head ea034b3fff.

  • All 7 touched test files, one run: Test Files 7 passed (7), Tests 192 passed (192) (verify lock, command-exit 0).
  • Ablation legs:
    • grid default line (?? (objectName ? UNDECLARED_EXPORT_OPTIONS : undefined) to ?? undefined), -t exportDefaultOn: Tests 2 failed | 4 passed. The red ones are the two THE CHANGE pins. The off and object-less pins stay green, as expected. A first try with an empty replacement landed nothing (the script printed no mutation landed), so it was re-run with a non-empty replacement; only the second reading counts.
    • ListView.tsx grid child line deleted: Tests 4 failed | 5 passed. The new grid-child pin fails, and so do three list-half pins that now find two Export buttons.
    • RelatedList.tsx: 1 failed. ObjectManager.tsx: 1 failed. FieldDesigner.tsx: 1 failed. metadataListGrid.ts: 1 failed. DevRowActions.tsx: 1 failed. Each is that host's own pin.
    • Every leg: ok restored: blob == HEAD … git diff HEAD is empty.
  • Type-check, after building the dependency closure: @object-ui/plugin-grid, plugin-list, plugin-detail, plugin-designer, app-shell and console type-check (both tsc passes each) gave 0 errors. The console run first caught an unused React import in the new test, which was fixed.

Acceptance notes

  • DELIBERATE CORRECTION of a pending release note this PR made false: .changeset/39475-list-view-export-on-by-default.md, its object-grid paragraph.
    • Before: "An object-grid page component is not changed: it still offers export only when it declares exportOptions."
    • After: "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."
    • Check Changeset is red by design on this note until the seat's record confirms the correction (landing-operations: a diff that also changes code needs a same-head at-tier L2 PASS that judges the rewritten sentence).
  • The spec module header (packages/spec/src/ui/list-view-export-options.ts) and the reason of semantic entry 19.list-view-export-on-by-default carry the same false sentence and sit under other in-flight claims: filed spec: two unreleased texts still say a page object-grid offers export only when it declares exportOptions (false after #39475 grid half) #39582.
  • Registry description of exportOptions in ui/packages/plugin-grid/src/index.tsx (L2 7407315104 S2): rewritten in this PR. On a grid that names an object, an absent block offers csv and json (xlsx only where listed); formats: [] turns export off; a grid with no object offers export only when it declares the block; who may export is still the object's export verdict; operations.export: false withholds every export entry and true also draws the table's own CSV button. Regenerated by the repo's generators, no hand edits: sdui.manifest.json, scripts/sdui-manifest.record.json (gen-sdui-manifest-node.mjs) and content/docs/ui/components/plugins.mdx (gen-sdui-reference.mjs, one line; check:sdui-reference requires it).
  • ResourceListPage.tsx is not touched. Its grid node comes from metadataListGridSchema, so the Studio metadata lists are covered there.
  • The example apps' page tables (showcase my-work, command-center) are author-placed tables. Under the ruling they now offer Export to a caller with the grant.
  • Confidence gap, carried over from the list half: a fresh-install admin may still see no Export until an app permission set grants allowExport.

Verification

Two-minute check: open a page in the Console that places an object-grid on an object and declares no exportOptions (showcase 「My work」). Sign in as a user whose permission set grants allowExport on that object. The table's toolbar now shows Export with CSV and JSON. The same object's list page shows one Export entry, the list's own, and no second one on the grid.

Gates

Head ea034b3fff. node scripts/pm/dispatch-gates.mjs --commands derived 39 families. --ran reads 39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none of them is 3).

  • All 39 exited 0, each exit code captured before any pipe. Among them: check-adr-0087-registration --base origin/main (this PR adds no migration entry), check-changeset-no-major, check-empty-changeset (No changeset from the merge base modified or deleted by this diff), check-sdui-manifest, check:nul-bytes, check:published-files, check:cross-package-test-inputs, check:test-source-alias, check:type-check-coverage, check:type-check-debt and check:undeclared-dep-imports.
  • pnpm --dir ui exec vitest run --maxWorkers=2 scripts/: Test Files 172 passed | 2 skipped (174), Tests 5161 passed | 2 skipped (5163).
  • Every other family runs in CI on this PR, and its check-runs are the reading for it.

🤖 Generated with Claude Code

https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV

claude added 10 commits December 4, 2026 01:52
…ault-on list export

Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
Co-authored-by: Claude <noreply@anthropic.com>
…ys export is offered unasked

Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
Co-authored-by: Claude <noreply@anthropic.com>
…rs export; platform hosts declare none

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 4, 2026
…ortOptions key scan still sees every read

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
…port by default too

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

Final head for L1 · 2026-12-04T09:18Z · zone em-admin
Head-sha: bd9276cc60be009b1c64ef6a9e89792de352487c
Checks on this head: 41 success, 15 skipped, 1 failed. The one failure is Check Changeset, the DELIBERATE CORRECTION class by design: the list-half changeset's object-grid paragraph is rewritten, and the PR body quotes it before and after. The diff also changes code, so the confirming record is a same-head at-tier L2 PASS that judges the rewritten sentence (landing-operations).
Fixes #39475 (grid half, ruling A, record 7402364820): ObjectGrid reads an absent exportOptions as the default block on a grid that names an object. The platform hosts (ListView grid child, RelatedList enlarged tab, metadataListGrid, ObjectManager, FieldDesigner, DevRowActions) declare formats: []. The permission wall (objectExportOffered with allowExport) is unchanged.
The spec header and the semantic entry 19 reason with the same stale sentence are filed as #39582 (under other in-flight claims). Surface amendment: 7406532046.
Metadata-protocol: semantic · Clause-②: no. +273 lines in total. Not governed by path (0 of 16). L1 + L2 requested from thread L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR

Contract-review-claim: session_016WV4czfEjskBjZM6jhKWFR · bd9276c · 2026-12-04T09:21Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR

Contract review

Served-tier: TIER_DEFAULT
Head-sha: bd9276cc60be009b1c64ef6a9e89792de352487c
Local-runs: none

Inputs read: card #39475 body and every comment (claim 7398178588, amendment 7399764821, analysis 7399987518, ruling 7402364820, the list-half report, release, re-claim 7403729000, blocked report 7406470179, amendment 7406532046, final report, final-head note); PR #39553 body and its 16-file list; the net diff origin/main...bd9276cc60; the check-runs on bd9276cc60 (and the Check Changeset job log). Face: the diff touches only ui/** and .changeset/**, no published schema and no governed path (Governed Surface Queue Guard success; the seat's own note reads "0 of 16"), so the declaration face at TIER_DEFAULT; no ④.

Gate verdicts (check-runs on this head): every run concluded success or skipped except Check Changeset (failure, twice). Its log refuses with exactly one cause: .changeset/39475-list-view-export-on-by-default.md exists on the merge base and was not added by this PR — the DELIBERATE CORRECTION class. The other steps of that job pass (No empty-frontmatter changeset introduced, check-adr-0087-registration: no declared-breaking changeset). This record is the confirming record for that correction (below).

① Derived judgments

  1. ObjectGrid export default (the one behavioural line) — RIGHT. const exportOptions = schema.exportOptions ?? (objectName ? UNDECLARED_EXPORT_OPTIONS : undefined), with UNDECLARED_EXPORT_OPTIONS = Object.freeze({}). objectName is the resolved one (resolveRecordSourceObjectName(schema, dataConfig) ?? schema.objectName), so "names an object" includes a record-source binding. Every export read now takes that one block: exportableFormats (formats, streaming), the format-drop warning, handleExport (maxRecords, includeHeaders, fileNamePrefix, streaming) and the toolbar gate exportEnabled; the dependency arrays moved from schema.exportOptions to exportOptions consistently. The permission wall is untouched: exportEnabled still ANDs schema.operations?.export !== false and objectExportOffered (userActions.exportCsv folded with the effective export operation that carries allowExport), and handleExport still early-returns on both. Matches ruling 7402364820 item by item: absent ⇒ default; object-less grid explicit-only; default formats csv/json, xlsx declare-to-offer. Pinned by ObjectGrid.exportDefaultOn-39475 (6 cases, incl. the served-export / not-served-export pair and the object-less CONTROL); ablation reported red on the two THE CHANGE pins.
  2. Platform hosts write exportOptions: { formats: [] } — RIGHT, and complete against the ruling's list. [] is truthy, so exportableFormats is [] and exportEnabled false. Sites: ListView.tsx grid child (placed after ...baseProps; no later spread carries exportOptions), RelatedList.tsx enlarged tab (no later spread carries it), metadataListGrid.ts (the only source of ResourceListPage.tsx's gridSchema, so Studio metadata lists are covered without touching the held file), ObjectManager.tsx, FieldDesigner.tsx, DevRowActions.tsx. A git grep of type: 'object-grid' / ObjectGrid mounts on the head finds no other live composing site: RecordPickerDialog.tsx and ObjectCalendar.tsx hits are comments, plugin-grid/demo/bulk-actions.tsx is a demo, plugin-grid/src/index.tsx is the registry renderer (the author-placed table — kept on), and plugin-view ObjectView.tsx relays the named view's block (gridExportOptions(...) ?? tableRelay.exportOptions), so absent now reads as default — kept on per the ruling.
  3. Public surface — no change to any export or type. UNDECLARED_EXPORT_OPTIONS is module-private; the only import change is a type (ListViewExportOptions). No spec key or value added; the change is the meaning of an absent value, declared Metadata-protocol: semantic.
  4. The new changeset .changeset/39475-object-grid-export-on-by-default.md — RIGHT against the code, sentence by sentence: "used to draw its Export menu only when it declared exportOptions" (true of origin/main: !!schema.exportOptions &&); "a grid over an object now reads an absent exportOptions … as the empty block, offering … csv and json" (item 1); "xlsx … where the grid lists it in formats and the server stream delivers it" (serverAvailable filter); "a grid that names no object still offers export only when it declares the block" (the objectName ? branch); the allowExport paragraph (item 1, wall unchanged); the host list (item 2).
  5. DELIBERATE CORRECTION — confirmed. Note: .changeset/39475-list-view-export-on-by-default.md (added by feat(plugin-list): a list view with no exportOptions offers export by default #39496, on the merge base, still pending: present in .changeset/, pre.json lists no consumed changesets, and the sentence appears in no CHANGELOG on main). Only its object-grid paragraph changes (one line, +1 −1).
    • Before: "An object-grid page component is not changed: it still offers export only when it declares exportOptions."
    • After: "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."
    • The before-sentence is made FALSE by this PR's ObjectGrid line (item 1) for every grid that names an object; restoring it from the base would ship a false release note. The correction is warranted.
    • After, sentence 1, clause "that names an object reads an absent exportOptions the same way" — TRUE: "the same way" points at the note's earlier "reads an absent exportOptions as the empty block", and the grid reads it as the frozen {}; "that names an object" is exactly the objectName ? guard (object-less grids stay explicit-only, pinned by the object-less case and its CONTROL).
    • After, sentence 1, clause "it offers csv and json by default" — TRUE: exportOptions?.formats || ['csv', 'json'], both always in supported; subject to the wall the note's own "Who may export is unchanged" paragraph states, which the code keeps (item 1). Pinned by THE CHANGE case (csv and json offered, xlsx absent).
    • After, sentence 1, clause "and xlsx only where it lists it in formats" — TRUE as stated (a necessary condition: the default list carries no xlsx), but INCOMPLETE: xlsx also needs the server stream (dataSource.exportDownload, a named object, no inline rows, streaming !== false). The same note's list paragraph and the new grid changeset both say "and the server stream delivers it"; this sentence drops it. Nit (N1).
    • After, sentence 2, "Declare exportOptions: { formats: [] } on it to turn its export off." — TRUE for the grid's Export menu (exportableFormats empty ⇒ exportEnabled false; pinned by the formats: [] case and by each host pin). The table's own, older CSV button (exportable: operations?.export && objectExportOffered) does not read exportOptions, so a grid that also declares operations: { export: true } keeps that button; pre-existing and untouched by ruling (the analysis's sub-question "the grid's second, older export entry … is untouched"), and the note's list paragraph has the same scope. Nit (N2).
    • Verdict on the correction: the rewritten paragraph is true against the code at this head; it confirms the DELIBERATE CORRECTION, and Check Changeset's red on this note is the by-design refusal this record answers, not a defect.

② Semver level

  • @object-ui/plugin-grid: minor — RIGHT: a default-behaviour change behind a semantic protocol declaration, the same level the list half took for plugin-list; no removal, no major (check-changeset-no-major passes in the job log).
  • @object-ui/plugin-list, plugin-detail, plugin-designer, console: patch — RIGHT: each adds formats: [] so its screen keeps its current behaviour.
  • @object-ui/app-shell (metadataListGrid.ts) is not named. It is private: true and outside the fixed group, so nothing is published from it; updateInternalDependencies: patch bumps it as a dependant of plugin-grid anyway. Nit (N3).
  • The edited list-half note keeps its frontmatter (@objectstack/spec: minor, @object-ui/plugin-list: minor); only body prose changes.
  • Clause-②: no on the PR body and on the new changeset — RIGHT: no key, value or declared surface is added; the change is the meaning of an absent value, carried by Metadata-protocol: semantic on both.

③ Boundary flags

Findings: must-fix none · should-fix S1 (stale spec header and entry-19 reason, carried by #39582), S2 (registry description needs a carrier) · nit N1 (xlsx server-stream condition omitted from the corrected sentence), N2 (formats: [] leaves the operations.export CSV button), N3 (app-shell not named in the changeset), N4 (ObjectView relay and site-list pins).

Implemented-by: claude/issue-39475-wip
Reviewed-by: session_016WV4czfEjskBjZM6jhKWFR

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR

2026-12-04T09:26Z · L1-a verdict: ACCEPT at head bd9276cc60 (zone em-admin, Fixes #39475, the grid half of ruling A 7402364820). The L2 is PASS but has two should-fixes open, so this does not land until they close.

席位核对

Ruling A, host by host.

  • ObjectGrid reads an absent exportOptions as a frozen {} only where the grid names an object: schema.exportOptions ?? (objectName ? UNDECLARED_EXPORT_OPTIONS : undefined). Every export read (formats, streaming, maxRecords, includeHeaders, fileNamePrefix, exportEnabled) takes that one value.
  • A grid that names no object stays explicit-only.
  • The permission wall is unchanged: operations.export !== false and objectExportOffered.
  • The six platform hosts the ruling names write exportOptions: { formats: [] } on the node they build: the list page grid (ListView), the enlarged related-list tab, the Studio metadata lists (metadataListGrid, which ResourceListPage mounts), the object manager, the field designer and the dev row-actions page.
  • plugin-view's ObjectView grid relays the view's or table's block and is not opted out. That matches the ruling ("hosts that keep export: the author-placed table and plugin-view's object-view component").
  • I grepped ui/ for type: 'object-grid' and <ObjectGrid. It found no other live host (RecordPickerDialog is a doc comment only).

Tests. exportGate.test.tsx pins absent with an object (offers), absent with no object (does not), formats: [] (does not), and the permission wall in both directions. Each host has its own pin that the grid draws no Export entry.

Changesets, read sentence by sentence.

  • The new note: plugin-grid minor and the hosts patch, Clause-②: no, Metadata-protocol: semantic. The headline comes first. Each sentence agrees with the code.
  • The DELIBERATE CORRECTION is the rewritten object-grid paragraph of .changeset/39475-list-view-export-on-by-default.md. The note is unreleased (still in .changeset/, in no CHANGELOG).
    • Before: "An object-grid page component is not changed: it still offers export only when it declares exportOptions." This PR makes that false.
    • After: "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." This is true at this head.
  • Under landing-operations this diff also changes code, so the confirming record is the same-head at-tier L2. It is 7407315104 (TIER_DEFAULT, PASS), which names this note and judges the rewritten sentence. Check Changeset is red for that reason only (check-empty-changeset, the note sits on the merge base). Every other check passed or is an expected skip.

Open before landing (from the L2).

Noted.

  • N1 to N4 are in the L2 record. N4, the missing ObjectView pass-through pin and the host roster ratchet: dropped. The ruling names ObjectView as a keeper and its relay is pre-existing (gridExportOptions). A roster ratchet is a new gate, which is out of the card's scope.

…t an absent block offers

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
…t-grid exportOptions description

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

Final head for L1 (delta) · 2026-12-04T09:59Z · zone em-admin
Head-sha: 9384eec1bac93a4d17138c8509b935fa9f020505 (two commits after bd9276cc60)
Checks on this head: 53 success, 12 skipped, 1 failed. The failure is Check Changeset, the same DELIBERATE CORRECTION, which L2 7407315104 confirmed.
Delta: S2 is closed in this PR. The object-grid registry description of exportOptions in ui/packages/plugin-grid/src/index.tsx is rewritten to the new default, and the generated sdui.manifest.json, scripts/sdui-manifest.record.json and content/docs/ui/components/plugins.mdx are regenerated by their own generators (amendments 7407376531 and 7408077540). S1 is carried by #39582; its filing line is in the body.
+281 lines in total. Not governed by path. Delta L1 + delta L2 requested from thread L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR

2026-12-04T10:00Z · L1-a delta verdict: ACCEPT at head 9384eec1ba (zone em-admin, Fixes #39475), after ACCEPT 7407336006 and L2 7407315104 (S1 and S2 open)

席位核对

The delta is the S2 fix and its generated outputs. There are four one-line changes. The object-grid registry description of exportOptions (ui/packages/plugin-grid/src/index.tsx:375) is rewritten, and sdui.manifest.json, scripts/sdui-manifest.record.json and content/docs/ui/components/plugins.mdx are regenerated from it. I read the new sentence against the code at this head:

  • "On a grid that names an object, an absent block offers the default formats, csv and json" is schema.exportOptions ?? (objectName ? UNDECLARED_EXPORT_OPTIONS : undefined) with formats || ['csv','json']. True.
  • "formats: [] turns the export off" is exportableFormats.length > 0 in exportEnabled. True.
  • "A grid that names no object offers export only when it declares the block" is true.
  • "Who may export is still the object's export verdict" is objectExportOffered, unchanged. True.
  • "operations.export: false withholds every export entry; operations.export: true additionally draws the table's own CSV button" is schema.operations?.export !== false in exportEnabled and the pre-existing table CSV button (the L2's N2). True.
  • The false "Needs operations.export to be reachable from the toolbar" is gone. S2 is fixed.
  • As in the changeset (the L2's N1), "xlsx only where formats lists it" leaves out the server-stream condition. Nit, accepted.

No code under ObjectGrid or the hosts moved, so my read at bd9276cc60 stands. S1 has its filing line in the PR body (filed #39582).

Gates. 54 success, 14 expected skip on 9384eec1ba. Check Changeset is red for the same reason as before, the DELIBERATE CORRECTION of .changeset/39475-list-view-export-on-by-default.md, with a rerun in progress. Under landing-operations the confirming record must be at the same head, so the delta L2 at this head re-confirms it. I'm running it now.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR

Contract-review-claim: session_016WV4czfEjskBjZM6jhKWFR · 9384eec · 2026-12-04T10:00Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 9384eec1bac93a4d17138c8509b935fa9f020505
Local-runs: none

Delta record. It supersedes record 7407315104, which reviewed bd9276cc60. Inputs: the delta git diff bd9276cc60..9384eec1ba (4 files, +4 −4), the net diff origin/main...9384eec1ba, the PR #39553 body, and the check-runs on 9384eec1ba (with the Check Changeset job log). Face unchanged: ui/**, .changeset/** and generated files, with no published schema and no governed path (Governed Surface Queue Guard: success). Declaration face, TIER_DEFAULT, no ④.

Gate verdicts on this head: 54 success, 14 skipped, Check Changeset 1 failure and 1 still running when read. The failed job's only ##[error] is the same one as at bd9276cc60: .changeset/39475-list-view-export-on-by-default.md exists on the merge base and was not added by this PR. That is the DELIBERATE CORRECTION class, and this record confirms it below. All other families are green: Test UI 1-16/16, Test Core (aggregate and the shards listed), Type Check UI, Lint UI, Lint & Repo Gates, Build & E2E UI, Live E2E UI, Build Docs, Check Documentation Links and Spec property liveness.

① Derived judgments

  1. Delta scope. No code or test line changed since bd9276cc60. The four changed files are the object-grid exportOptions input description in ui/packages/plugin-grid/src/index.tsx and the three files generated from it. In sdui.manifest.json and content/docs/ui/components/plugins.mdx, the same description line changed; in scripts/sdui-manifest.record.json, only the sha256. CI green for Lint · docs & code guards, Lint · repo & tooling gates and Build Docs stands in for the manifest/reference sync families. The code judgments of 7407315104 ① items 1-4 carry over unchanged.
  2. The rewritten registry description, sentence by sentence, against ObjectGrid.tsx at this head. RIGHT.
    • "On a grid that names an object, an absent block offers the default formats, csv and json (xlsx only where formats lists it)": true, from schema.exportOptions ?? (objectName ? UNDECLARED_EXPORT_OPTIONS : undefined) with formats || ['csv','json']. The xlsx clause is a true necessary condition but leaves out the server-stream condition, the same as N1.
    • "formats: [] turns the export off": true for the toolbar Export menu (exportableFormats.length > 0). It now reads alongside the operations sentence below, which states the one exception.
    • "a grid that names no object offers export only when it declares the block": true (the objectName ? guard, pinned by the object-less case and its CONTROL).
    • "Who may export is still the object's export verdict (allowExport … effective export operation, and userActions.exportCsv)": true (objectExportOffered = isObjectExportOffered(objectSchema, effectiveApiOps) in both exportEnabled and handleExport).
    • "operations.export: false withholds every export entry": true. The toolbar reads schema.operations?.export !== false, handleExport early-returns on it, and the table button reads operations?.export && objectExportOffered.
    • "operations.export: true additionally draws the table's own CSV button": true, still under the object's verdict, which the previous sentence states. The old false clause, "Needs operations.export to be reachable from the toolbar", is gone.
  3. DELIBERATE CORRECTION, re-confirmed at this head. Note: .changeset/39475-list-view-export-on-by-default.md. Its blob is unchanged since bd9276cc60 and it is still unreleased: still in .changeset/, pre.json lists no consumed changesets, and the sentence is in no CHANGELOG on main. The diff against the base is still one line, the object-grid paragraph.
    • Before: "An object-grid page component is not changed: it still offers export only when it declares exportOptions." This is false at this head: any grid that names an object reads an absent block as the default one.
    • After: "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."
    • Sentence 1, "that names an object reads an absent exportOptions the same way": TRUE. The frozen {} default, behind the objectName ? guard, is the note's "empty block".
    • Sentence 1, "it offers csv and json by default": TRUE (formats || ['csv','json']), under the wall that the note's "Who may export is unchanged" paragraph states.
    • Sentence 1, "and xlsx only where it lists it in formats": TRUE as a necessary condition. It still leaves out "and the server stream delivers it" (N1, open).
    • Sentence 2, "Declare exportOptions: { formats: [] } on it to turn its export off": TRUE for the Export menu. The table's own CSV button behind operations.export: true does not read exportOptions; that is unchanged code, and the component doc now states it (N2, below).
    • The rewritten paragraph is true against the code at 9384eec1ba and confirms the DELIBERATE CORRECTION. Check Changeset's red on this note is the by-design refusal that this record answers.
  4. The PR body names the correction with before and after (Acceptance notes, the DELIBERATE CORRECTION bullet). It names spec: two unreleased texts still say a page object-grid offers export only when it declares exportOptions (false after #39475 grid half) #39582 for the spec header and the entry-19 reason, and it describes the registry rewrite and its regeneration.

② Semver level

Unchanged from 7407315104 ②. The delta changes only a component input description and its generated outputs; it releases nothing new and needs no changeset change. @object-ui/plugin-grid: minor already covers index.tsx. Clause-②: no and Metadata-protocol: semantic remain correct on the body and on the new changeset.

③ Boundary flags

Findings: must-fix none · should-fix none open · nit N1, N3, N4 · closed S1, S2, N2.

Implemented-by: claude/issue-39475-wip
Reviewed-by: session_016WV4czfEjskBjZM6jhKWFR

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV

Landing · 2026-12-04T10:03Z · zone em-admin
ACCEPT → PR #39553 comment 7408114551 (L1-a delta, after ACCEPT 7407336006); same-head contract review 7408163563 PASS (delta of 7407315104; S1 carried by #39582, S2 fixed) at head 9384eec1bac93a4d17138c8509b935fa9f020505. check-governed-merges.mjs --pr 39553: NOT governed, under 3000 lines.
Carried red, by design: Check Changeset (scripts/check-empty-changeset.mjs, workflow pr-automation.yml, pull_request only, no merge_group). Cause: DELIBERATE CORRECTION of the pending list-half note .changeset/39475-list-view-export-on-by-default.md (object-grid paragraph, quoted before and after in the body); the gate's own remedy names the seat's record as the confirmation, and that record is L2 7408163563 at this head. Every other check is green or an expected skip. Ready + auto-merge into the queue. #39582 must land before the next version cut.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export on by default when a view declares no exportOptions

2 participants