Repository navigation
feat(plugin-list): a list view with no exportOptions offers export by default - #39496
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>
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin ca6a85a66b86a8cf805210375cc3b6527eb36e82 && git checkout ca6a85a66b86a8cf805210375cc3b6527eb36e82
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin bb2c500f8014effba109dbc659cb6bde2e13eed1 c3d6d80447ea73379c59a2c04454bd8e315e4b28 && git checkout -B drift-repro bb2c500f8014effba109dbc659cb6bde2e13eed1 && git merge --no-ff c3d6d80447ea73379c59a2c04454bd8e315e4b28
node scripts/docs-audit/affected-docs.mjs --json bb2c500f8014effba109dbc659cb6bde2e13eed1
|
…ance question Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV Final head for L1 · 2026-12-04T05:31Z · zone em-admin |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR 2026-12-04T05:33Z · L1-a verdict: ACCEPT at head 席位核对What holds.
Noted, not blocking. The Gates. 65 success, 13 expected skip, 0 failed, 1 pending ( Owed before landing. A |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR Contract-review-claim: session_016WV4czfEjskBjZM6jhKWFR · head c3d6d80 · 2026-12-04T05:34Z L1-a runs the owed |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czfEjskBjZM6jhKWFR Contract reviewServed-tier: Read: card #39475 body and all six comments (claim, amendment, grid-half analysis, ruling of 05:25Z, dev report), PR #39496 body and comments, the net diff against ① Derived judgments
② Semver levelClause-②: no. Right. The line asks whether the card widens the accept set or the public surface; this diff does neither. It widens what a list offers by default, which is a changed default, and that is what The kind ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Tried to break it, and it held:
Nits (no effect on the gate or the accept set):
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4d1cnRvyiAqrarmDhZV Landing · 2026-12-04T05:40Z · zone em-admin |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 47275750550 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Requested by Elon · project thread
Part of #39475 — this PR ships the list half of ruling A. The
object-gridpage-component half stays on the card: the maintainer ruled it (option A, record 7402364820) as its owndomain:uiPR, which follows this one.Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — the published skills do not teach list-view export, so nothing they say becomes false
维护者速读
What changes
ListView(@object-ui/plugin-list): an undeclaredexportOptionsis read as the empty block{}, not as "no export". The wide toolbar's Export button, the Display panel's export entries and the page bar's Import / Export menu (the list's export door) now offer the default formats on every list.csv+json, the block's own declared default and what a declared block withoutformatsalready offered.xlsxis offered only where a view lists it (and the server stream delivers it), as before. This is the dev's stated choice under the analysis' "the dev states which", confirmed by the seat (answer to Q2: A). An absent block and{}therefore behave identically.allowExport: the server folds it into the object's effectiveexportoperation (/me/permissionsapiOperations), andexportPermittedreads that. A caller without the grant sees no export entry, and the server export door refuses (export= read ∧ grant).exportOptions: { formats: [] }per view, anduserActions.exportCsv: falseper object.list-viewblock'sexportOptionsregistry description (ui/packages/plugin-list/src/index.tsx) is corrected.sdui.manifest.json, its record andcontent/docs/ui/components/plugins.mdxwere regenerated bygen-sdui-manifest-node.mjs/gen-sdui-reference.mjs, not hand-edited.list-view-export-options.ts(absent block per carrier; the grid still opt-in for now), and the semantic upgrade entry19.list-view-export-on-by-default.@objectstack/spec+@object-ui/plugin-listminor,Metadata-protocol: semantic.Read first, by risk:
ui/packages/plugin-list/src/ListView.tsx, theresolvedExportOptionsmemo: the one behavioural line (return UNDECLARED_EXPORT_OPTIONS).ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx, blockListView.exportDefaultOn-39475: the permission-wall pins.packages/spec/src/migrations/entries/semantic/19.list-view-export-on-by-default.ts: the upgrade text.Tests
ListView.exportDefaultOn-39475in the shared no-mock harness, with 8 pins:exportoperation (noallowExport) sees no export on either surface;exportsees it;formats: []turns it off;userActions.exportCsv: falseturns it off;13047spec-inputs control, therefreshOnlyDisplay-36002fixture (the Display panel now carries export entries, so the fixture declaresformats: []), and aListView.test.tsxcase that had become vacuous.ablation-replace.mjs. The two THE CHANGE pins and the export-granted CONTROL went red; the off-switch pins stayed green, as expected; the file was restored to the HEAD blob.Readings
Head
95b795aecd. The test files and the ListView line are unchanged sincecb0f3ff7f8.At the final head
c3d6d80447one more commit registers the19.list-view-export-on-by-defaultentry's relevance question inpackages/spec/src/migrations/semantic-relevance.test.ts("is exactly the reviewed table") andsemantic-relevance-coverage-38929.test.ts("every protocol-19 entry that carries a question is pinned"), which CI Test Core 4/12 reported red without it;pnpm --filter @objectstack/spec exec vitest run src/migrations/:Test Files 6 passed (6) / Tests 255 passed | 2 todo. Both files are shared with open PR #39400 and merge cleanly.@object-ui/plugin-listpackage, two shards under the verify lock:pnpm --dir ui exec vitest run --maxWorkers=2 --shard=1/2 packages/plugin-list/gaveTest Files 99 passed (99),Tests 1114 passed (1114);--shard=2/2gaveTest Files 93 passed (93),Tests 990 passed (990). That is 192 files and 2104 tests. Before the fixture updates the same package readTests 2 failed | 2094 passed (2096): the two pins of the old default.node scripts/ablation-replace.mjs,return UNDECLARED_EXPORT_OPTIONStoreturn undefined, then-t exportDefaultOn:ok mutation landed: anchor 1 -> 0, blob 357577f323e9 -> cedceabee0abTests 3 failed | 5 passed, the two THE CHANGE pins and the export-granted CONTROLok restored: blob == HEAD (357577f323e9) and git diff HEAD is emptyannotateEffectiveApiOperationsinpackages/coreannotates an entry withoutexportwhenever its ownallowExportis not granted.PermissionEvaluator.checkObjectPermission('export')is read AND grant.Acceptance notes
allowExport. The spec's own upgrade notes saymember_defaultdeliberately carries no export grant and protocol 18 removed the*export grant from the built-in admin sets. Not measured on a running app.object-gridpage component is unchanged and still offers export only when it declares the block. The spec header and the changeset say so. A later round changes that if the maintainer's ruling on the grid half says so.MePermissionsProviderrenders its fallback while/me/permissionsloads and when it fails, so in the console the list never mounts with an unanswered export verdict. A standalone embed with no permission provider keeps the default-allow path, as before; the server still refuses the export.Verification
Two-minute check: open any object's list in the Console whose views declare no
exportOptions, signed in as a user whose permission set grantsallowExporton it. The page bar's Import / Export menu (or the Display panel's footer) now shows CSV and JSON export. Signed in as a user without the grant, the same list shows none.Gates
node scripts/pm/dispatch-gates.mjs --commandsderived 124 families;--ranreads124 derived famil(ies) accounted for — 123 run, 1 NOT-MEASURED.fa1dcbd09c, before the two docs-only commits; the other 33 were run or re-run at95b795aecd. The commits after it change only theexportOptionsdescription string inui/packages/plugin-list/src/index.tsxand the generator outputs (sdui.manifest.json,scripts/sdui-manifest.record.json).95b795aecdI re-ran:pnpm check:sdui-reference: exit 0,content/docs/ui/components/ matches sdui.manifest.json (106 components on 7 pages)node scripts/check-sdui-manifest.mjs: exit 0check:agent-test-spelling,check:bash32-floor,check:entry-guard,check:parse-guard,check:pnpm-filter-targets,check:pnpm-flag-spellings,check:scripts-symbol-anchors): all exit 0packages/specand the cli closure, these earlier prerequisite or timeout misses are now green:check:api-surface,check:browser-reachable-entries,check:dual-source-exports,check:entry-nameability,check:exported-any,check:skill-examplescheck:dual-build-cjs-loads,check:slot-lookup,check:query-options-erasuremigrate-meta-engine-guidancetest: 3 passedpnpm --dir ui exec vitest run scripts/:Test Files 172 passed | 2 skipped,Tests 5161 passed | 2 skippednode scripts/check-plugin-teardown-shape.mjs --self-test, exit 3. Its fixture commit is unreachable in this shallow clone. CI runs it in lint.yml jobLint · CI, release & engine gates.🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV