Repository navigation
fix(plugin-view,types): an object-view table relays the grid keys ObjectGrid honours, and the slot stops typing the rest (objectui#10976) - #11065
Conversation
…ectGrid honours, and the slot stops typing the rest (objectui#10976) ObjectViewSchema.table typed every ObjectGridSchema member but the two identity keys, while the grid node ObjectView builds copied a fixed handful, so table.editable, frozenColumns, rowHeight and the rest type-checked and did nothing. - plugin-view: OBJECT_VIEW_TABLE_RELAY_KEYS relays the 19 grid keys ObjectGrid reads, copied only when authored; a named view that declares the same member still wins. The dead table.description copy is dropped. - types: ObjectGridSlotKey keeps the keys the view reads by name, the relay keys and the three never-typed tombstones, and withholds the rest; the zod twin refuses each withheld key by name inside the slot. - pins: slot classification at compile time, arrival on the grid node, the real grid opening an editor for table.editable, withheld keys refused on both faces; the KnownDrift row for ObjectViewSchema drops table. Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec Co-authored-by: Claude <noreply@anthropic.com>
…or the relay and the narrowing (objectui#10976) The plugin-view guide and README list the keys an object-view's table hands its grid (read by name, and relayed as written), say that any other grid key is refused, and note that a named view's member now falls back to the table. The schema reference no longer calls the slot Partial of ObjectGridSchema. Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec Co-authored-by: Claude <noreply@anthropic.com>
…jectui#10976) Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Inputs: card #10976 (body and its four comments: triage ① Derived judgmentsArithmetic of the narrowing: Key by key, against non-comment
Accept-set and surface changes the diff implies, each judged:
② Semver level
Findings
③ Boundary flags
Implemented-by: VERDICT: FAIL Generated by Claude Code |
…ble-slot-relay Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec Co-authored-by: Claude <noreply@anthropic.com>
…g makes false (objectui#10976) The contract review found three pending bodies this change falsifies (6269, 7804, 8268); a re-read of the pending set found three more (9092, 10885, 7762). Each false sentence is scoped to its own change and a dated note says what is true after the table slot's relay and narrowing. Frontmatter is byte-identical in all six. Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec Co-authored-by: Claude <noreply@anthropic.com>
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Round: patch round 1 after record ① Derived judgmentsWhat changed since
The six amended bodies, each sentence read against the diff:
Sweep of the other pending changesets, method stated:
② Semver level
Findings
③ Boundary flags
Implemented-by: VERDICT: FAIL Generated by Claude Code |
…ble-slot-relay Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec Co-authored-by: Claude <noreply@anthropic.com>
…makes false (objectui#10976) The member-4 entry's sentence that label and data are not handed to the grid on route 2 is scoped to its change, and a dated note says a label written on table now reaches the grid there while the named view's label is still not read and table.data is withheld. The sibling's 2026-09-29 note names label. Frontmatter byte-identical in both. Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec Co-authored-by: Claude <noreply@anthropic.com>
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contract reviewServed-tier: Round: patch round 2 after record ① Derived judgmentsWhat changed since
The two corrected bodies, every sentence read against the diff:
Spot-check of the dev's re-read: the terms "second caption", "tab's text", "named view's label", "label and data" and "caption" grepped over the 262 pending bodies held from round 2 plus the two corrected ones: hits only in the two 10885 files (now reconciled), The ② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
Fixes #10976
Clause-②: yes
What this does
ObjectViewSchema.tabletyped everyObjectGridSchemamember excepttypeandobjectName(60 keys at9b85600b0), and the grid nodeObjectViewbuilds for its grid view (thegridSchemamemo, route 2: the registered renderer with norenderListView) copied 13 of them. Sotable: { editable: true }type-checked, passedsafeValidateSchema, and did nothing. Triage5872710926ruled: relay what the grid honours, narrow the rest, key by key.@object-ui/plugin-view).OBJECT_VIEW_TABLE_RELAY_KEYS, one list beside the grid-node build, copied only when the author wrote the key (no default injected). The card's 14 (editable,singleClickEdit,frozenColumns,rowHeight,resizable,searchableFields,conditionalFormatting,rowActions,bulkActions,exportOptions,grouping,rowColor,showSearch,showPagination) plus five more measured the same way (aggregations,bulkActionDefs,reorderableColumns,showColumnTypeIcons,label). Where the active named view declares the same member (the objectui#10885 rungs), the named view still wins andtableis the fallback, the precedencepagination/selection/filter/sortalready had. The relay reachesObjectGridthrough the same node, no side channel.@object-ui/types, Clause-② yes).ObjectGridSlotKeynow holds the 12 keys the build reads by name, the 19 relayed keys, and the threenever-typed tombstonesObjectGridSchemadeclares (body,children,defaultSort, kept so their named refusal stays on this face). 26 keys are withheld, each measured (table below). The zod twin keeps deriving fromObjectGridSchemaand refuses each withheld key BY NAME inside the slot (retirementTombstone), so both faces refuse the same keys. A tombstone and not an.omit(), becauseBaseSchemais.passthrough()and an omitted key would be kept unexamined.object-view-slot-key-lists.test.ts), per AGENTS.md 完善设计器的每一个细节 #9 (point at the instrument, never write its answer). The same stale count in the adjacentObjectFormSlotKeydocblock ("64 keys"; the checker reads 65) gets the same treatment, and the objectui#5155 removal condition is restated true for both: the form list is still removable when the index signature goes, the table list becomes anOmitof identity plus withheld keys and its pin stays.Premise, measured on
origin/main9b85600b0ObjectGridSlotKey: 60 members (docblock said 59).ObjectView.tsxreads 13 offtable(everyschema.table?.KEY, no spread): the card's list, confirmed.schema.KEYread inObjectGrid.tsx(e.g.inlineEditable = (schema.editable ?? false) && …,schema.frozenColumns ?? 1,schema.singleClickEdit ?? true).emptyStateandshowFilters: zero reads in all ofpackages/plugin-grid/src(control wordshowSearchhits in the same query).descriptionis copied onto the grid node andObjectGridhas zerodescriptionreads. It is withheld here and the dead copy dropped (same defect class, bounded in-place fix; named here as the role file asks).object-viewtable(docs, examples, README, app-shell builders, tests), census of top-level keys inside everytable: {…}block incontent/,docs/,skills/,examples/and package READMEs: onlycolumns,pageSize,pagination,sort,filter; app-shell's Studio writestable: { fields }. No producer writes a withheld key. Positive control: the census finds the two schema-catalog JSON fixtures and the three doc files it should.Per-key disposition (the withheld 26)
ObjectGridhas no reademptyState,showFilters,description,keyboardNavigation,rowSpecActions,bulkSpecActions,name,placeholderdata,staticData,bind(record source: the view lists its ownobjectName),navigation,onNavigate(the view hands the grid its ownonRowClick, which the grid obeys first),id(identity, liketype/objectName)BaseSchemakeysstyle,testId,ariaLabel,hidden,hiddenOn,visible,visibleOn,visibleWhen,disabled,disabledOn(the view rendersObjectGridas a component, not throughSchemaRenderer, so nothing applies them)batchActions(writebulkActions),resizableColumns(writeresizable)The aliases are withheld rather than relayed: neither ever worked on this slot, so no document depends on them, and relaying would open a second spelling on a new path.
Pins
packages/types/src/__tests__/object-view-slot-key-lists.test.ts: slot == source members minus identity minusTABLE_WITHHELD_BY_REASON(checker-derived); the zod twin's nestedtablerefuses EXACTLY the withheld set plus the inherited tombstones (operators, the zod-only misspelling tombstone of objectui#9739, included); every withheld key failssafeParseattable.KEYwithinvalid_typeand guidance naming objectui#10976; lit controls.packages/types/src/__tests__/object-view-table-slot-10976.test.ts:@ts-expect-errorper withheld reason (an unused directive failstype-check), lit control.packages/plugin-view/src/__tests__/ObjectView.tableSlotRelay-10976.test.tsx: compile-time classification (every slot key is read by name, relayed, or a tombstone; none twice;Requiredsamples for every relay key), every relayed and by-name key arriving on the node, named-view precedence withtablefallback, nothing invented, withheld keys not arriving.packages/plugin-view/src/__tests__/ObjectView.tableEditable-10976.test.tsx: the REALObjectGridopens an in-cell editor fortable.editable, and the object's grant still wins.ObjectView.routeTwoNamedGridMembers-10885.test.tsx: its CONTROL pinned the node'stableNOT arriving for eight members; it now pins them arriving (this card's change of fact).zod-mirror-parity.test.ts:tableleft theKnownDriftrow ofobjectql.zod.ts#ObjectViewSchema(the slot no longer typesonNavigate, the callable the nested mirror refused), header figure 49 / 88 to 49 / 87 with its history sentence.Evidence (all runs from the worktree root, through the shared verify lock)
7488eeaa2:pnpm exec vitest run packages/plugin-view/ packages/types/ examples/schema-catalog/test/safe-validate-corpus-6318.test.ts examples/schema-catalog/test/component-fixture-declared-keys.test.tsreadTest Files 344 passed (344),Tests 7117 passed (7117).pnpm --filter @object-ui/types type-checkandpnpm --filter @object-ui/plugin-view type-checkgreen after building the plugin-view dependency closure (turbo run build --filter=@object-ui/plugin-view^..., 15 tasks).tsc --listFilesOnlyshows the new test files in both test programs, and plugin-view readingpackages/types/dist/objectql.d.ts. Types sources did not change after that run; the one plugin-view test file that changed after it was re-type-checked green on the committed bytes.'emptyState'intoOBJECT_VIEW_TABLE_RELAY_KEYSthroughablation-replace.mjs(anchor 1 to 0, blob changed);plugin-viewtsc --noEmitanswerederror TS2322: Type '"emptyState"' is not assignable to type 'ObjectGridSlotKey'; restored, blob equals HEAD,git diff HEADempty. The first attempt used an anchor its own replacement contained; the tool refused it (count 1 to 1) and restored, so that attempt measured nothing.authoredTableRelay; the three relay files went red in exactly four tests (THE FIX, named-view fallback, route-two CONTROL, real-grid editor) with 17 passing (lit controls, grant, by-name, withheld); restored and verified..extend(OBJECT_VIEW_TABLE_WITHHELD); the slot pin went red in 27 tests (set equality plus 26 per-key refusals); restored and verified.--no-inline-config --format json): 9 files, 0 errors; the warnings are the files' existingno-explicit-any/react-refreshpopulation plus onereact-refresh/only-export-componentson the new exported list, the rule the file's other exported lists already carry. The new test files lint clean.7488eeaa2:check-changeset-presence,check-changeset-no-major,check:control-bytes,check:spec-symbols,check:new-line-citations(0 new),check:vi-mock-specifiers,check:vi-mock-inherit,check:vi-mock-override-shape,check:test-path-roots,check:handler-key-reads,check:changeset-claims,check:pending-changeset-literals,check:doc-types,check:doc-example-ids,check:doc-fences,check:unreferenced-sources,check:doc-example-readers.check-governed-queue-guard --testover the 13 paths: NOT GOVERNED.check:readme-exports,check:doc-snippets,check:doc-examples, reason: each needs dist for packages outside this change's closure and exited on that prerequisite. The docs change adds no code fence; the only fencedtableblocks in the touched docs usecolumns/pageSize/pagination/sort/filter, all still declared.Changeset
.changeset/10976-table-slot-relay.md:@object-ui/plugin-viewpatch,@object-ui/typesminor (a narrowing breaks a writer of a withheld key; the body says which keys and for whom; objectui's major tracks@objectstack's).Acceptance notes (not filed)
ObjectGridSchemaitself declares membersObjectGridnever reads, on theobject-gridnode directly:emptyState,showFilters,description,keyboardNavigation,rowSpecActions,bulkSpecActions,name,placeholder. The schema reference'sObjectGridSchemaexample authorsshowFiltersanddescription. Out of scope here (this card owns theobject-viewslot); reported to the seat.renderListViewcomposes its ownlist-viewnode and takes onlycolumns,fields,filterandsortfromtable, as before;pageSize,pagination,selectionand the relayed keys do not reach that path. No in-repo host authors those ontable.Session:
https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec,domain:uiseat 2, branchclaude/issue-10976-table-slot-relay.Generated by Claude Code