Repository navigation
feat(plugin-grid): an object table that declares no exportOptions offers export; platform grids declare none - #39553
Conversation
…default Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
…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>
…description Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
…ance question 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
…export-off grid Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
…s declare none Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV
…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
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV Final head for L1 · 2026-12-04T09:18Z · zone em-admin |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR Contract-review-claim: session_016WV4czfEjskBjZM6jhKWFR · bd9276c · 2026-12-04T09:21Z |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR Contract reviewServed-tier: 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 Gate verdicts (check-runs on this head): every run concluded success or skipped except ① Derived judgments
② Semver level
③ 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 ( Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR 2026-12-04T09:26Z · L1-a verdict: ACCEPT at head 席位核对Ruling A, host by host.
Tests. Changesets, read sentence by sentence.
Open before landing (from the L2).
Noted.
|
…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
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV Final head for L1 (delta) · 2026-12-04T09:59Z · zone em-admin |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR 2026-12-04T10:00Z · L1-a delta verdict: ACCEPT at head 席位核对The delta is the S2 fix and its generated outputs. There are four one-line changes. The
No code under Gates. 54 success, 14 expected skip on |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR Contract-review-claim: session_016WV4czfEjskBjZM6jhKWFR · 9384eec · 2026-12-04T10:00Z |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR Contract reviewServed-tier: Delta record. It supersedes record 7407315104, which reviewed Gate verdicts on this head: 54 success, 14 skipped, ① Derived judgments
② Semver levelUnchanged from 7407315104 ②. The delta changes only a component input description and its generated outputs; it releases nothing new and needs no changeset change. ③ Boundary flags
Findings: must-fix none · should-fix none open · nit N1, N3, N4 · closed S1, S2, N2. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV Landing · 2026-12-04T10:03Z · zone em-admin |
Requested by Elon · project thread
Fixes #39475
Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — the published skills teach
exportOptionsonly on reports, never on a grid or a list, so nothing they say becomes false维护者速读
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 noexportOptionsreads the absent block as the default block (UNDECLARED_EXPORT_OPTIONS, frozen{}), asListViewhas since the list half landed. The toolbar's Export menu offers the default formats,csvandjson;xlsxonly 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.objectName(resolved through the record source too) and no block means no Export, as before.objectExportOffered: the object'suserActions.exportCsvANDed with the server's effectiveexportoperation, which carries the caller'sallowExportgrant (/me/permissionsapiOperations). A caller without the grant sees no Export; the server refuses the request.exportOptions: { formats: [] }on the grid node they build, so none grows an Export it did not have:plugin-listListView.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-detailRelatedList.tsx: the enlarged related tab's grid. The related list keeps its own export in its toolbar.app-shellmetadataListGrid.ts: every Studio metadata list (ResourceListPage.tsxtakes its grid node from here; that file is not touched).plugin-designerObjectManager.tsxandFieldDesigner.tsx.consoledev/DevRowActions.tsx.object-gridcomponent) andplugin-view'sObjectView, per the ruling.RecordPickerDialog.tsxcomposes no grid of its own (itsrenderGridslot has no caller in the tree; theObjectGridthere is a doc example), andObjectCalendar.tsxonly mentionsObjectGridSchemain a comment. Neither gains export.@object-ui/plugin-gridminor;plugin-list,plugin-detail,plugin-designer,consolepatch.Metadata-protocol: semantic.Read first, by risk:
ui/packages/plugin-grid/src/ObjectGrid.tsx, theexportOptionsconst aboveexportableFormats: the one behavioural line.ui/packages/plugin-list/src/ListView.tsx, the grid branch'sexportOptions: { formats: [] }: without it the list page draws two Export buttons.ui/packages/plugin-grid/src/__tests__/exportGate.test.tsx, blockObjectGrid.exportDefaultOn-39475: the permission-wall pins.Tests
ObjectGrid.exportDefaultOn-39475(new top-level describe inexportGate.test.tsx), 6 pins on the real grid:export(theallowExportgrant) sees Export;exportsees none;formats: [](what each platform host writes) shows none;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 handsobject-gridexportOptions: { formats: [] };metadataListGrid.exportOff-39475: the metadata list node declares it;ObjectManager.gridExportOff-39475andFieldDesigner.gridExportOff-39475: real grid, rows drawn, no Export;DevRowActions.exportOff-39475(new file): real grids, rows drawn, no Export.node scripts/ablation-replace.mjs(anchor hit, blob changed, restored to HEAD blob,git diff HEADempty). Results below.Readings
Head
ea034b3fff.Test Files 7 passed (7),Tests 192 passed (192)(verify lock,command-exit 0).?? (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 nomutation landed), so it was re-run with a non-empty replacement; only the second reading counts.ListView.tsxgrid 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.ok restored: blob == HEAD … git diff HEAD is empty.@object-ui/plugin-grid,plugin-list,plugin-detail,plugin-designer,app-shellandconsoletype-check(both tsc passes each) gave 0 errors. The console run first caught an unusedReactimport in the new test, which was fixed.Acceptance notes
.changeset/39475-list-view-export-on-by-default.md, its object-grid paragraph.object-gridpage component is not changed: it still offers export only when it declaresexportOptions."object-gridpage component that names an object reads an absentexportOptionsthe same way: it offerscsvandjsonby default, andxlsxonly where it lists it informats. DeclareexportOptions: { formats: [] }on it to turn its export off."Check Changesetis 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).packages/spec/src/ui/list-view-export-options.ts) and thereasonof semantic entry19.list-view-export-on-by-defaultcarry 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.exportOptionsinui/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: falsewithholds every export entry andtruealso 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) andcontent/docs/ui/components/plugins.mdx(gen-sdui-reference.mjs, one line;check:sdui-referencerequires it).ResourceListPage.tsxis not touched. Its grid node comes frommetadataListGridSchema, so the Studio metadata lists are covered there.my-work,command-center) are author-placed tables. Under the ruling they now offer Export to a caller with the grant.allowExport.Verification
Two-minute check: open a page in the Console that places an
object-gridon an object and declares noexportOptions(showcase 「My work」). Sign in as a user whose permission set grantsallowExporton 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 --commandsderived 39 families.--ranreads39 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).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-debtandcheck: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).🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV