Repository navigation
feat(types,plugin-detail): the record:* label members and object-grid's title take the spec's I18nLabel, and a related-list column label map renders (objectui#10993 batch 4) - #11390
Conversation
…the spec's I18nLabel (objectui#10993 batch 4) RecordDetailsComponentProps.sections[].label, RecordRelatedListComponentProps .title and .add.label, and RecordPathComponentProps.stages[].label widen from string to the spec's I18nLabel; ObjectGridSchema.title widens on the interface and in the zod mirror (the spec's I18nLabelSchema by reference), so an object-view's table.title follows. Each renderer already resolved the map. The parity test's cross-file line addresses are re-addressed by content, and the two CLAIM_DEBT entries whose claims became structural are struck by --claim-ledger. Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42 Co-authored-by: Claude <noreply@anthropic.com>
…ale map draws the viewer's entry (objectui#10993 batch 4) Since @objectstack/spec 17.5.0 the block's columns may be ListColumn objects, whose label is an I18nLabel. RelatedList turns label into the table header through columnHeader, which takes a string only, so a map drew a blank header. The block renderer resolves the map with pickLocalized against the UI language before it hands the columns on, beside title and add.label; the array is passed by reference when no column carries a map. Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42 Co-authored-by: Claude <noreply@anthropic.com>
…umn type, adding no explicit any (objectui#10993 batch 4) Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42 Co-authored-by: Claude <noreply@anthropic.com>
Brings objectui#11384 (objectql.ts / objectql.zod.ts kanban regions and the import block) and objectui#11385 (types authoring nodes) ahead of the PR. Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42 Co-authored-by: Claude <noreply@anthropic.com>
Brings objectui#11386 (object-gantt judged; the parity test gains the object-gantt rows and its caps move) and objectui#11387 (widget layout). Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42 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
|
…h 3 made false (objectui#10993 batch 4) The "Not in this batch" paragraph said object-grid's deprecated title still renders a locale map raw. Batch 3 resolves it with resolveInlineI18nLabel(schema.title, displayLocale) at both ObjectGrid sites, so the sentence would have published false into the CHANGELOG. Claude-Session: https://claude.ai/code/session_01JG2jy8a9su7ia4Hx7zxv42 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
|
Fixes #10993
Clause-②: yes
Batch 4 of the family card, the closing batch. The
I18nLabelpositions the card's earlier batches taught the renderers to resolve now accept the per-locale map on@object-ui/types' faces too:RecordDetailsComponentProps.sections[].label,RecordRelatedListComponentProps.titleand.add.label, andRecordPathComponentProps.stages[].label(item 1), andObjectGridSchema.titleon the interface and in the zod mirror (item 2). The parity test's cross-file line addresses are re-addressed by content (item 3). The census was re-taken on the installed@objectstack/spec17.5.0: it found two members the 17.4.0 census could not see, one of which (record:related_listcolumns[].label) drew a blank header for a map, and that one is repaired here. The closure note (item 4) is the last section. Draft: a dispatched dev's PR (claim comment 5933074589, branchclaude/issue-10993-batch4-ts-face), so ready and landing belong to the seat.What changed
packages/types/src/record-components.ts(item 1): the four members are typedI18nLabel, the spec's own type imported from@objectstack/spec/ui(no local re-declaration). Each docblock names the render site that resolves the map.packages/types/src/objectql.tsandpackages/types/src/zod/objectql.zod.ts(item 2):ObjectGridSchema.titleonly. The interface types itI18nLabel; the mirror takesstripImportedDefaults(SpecI18nLabelSchema)by reference, as batch 1 did forobject-form. Both comments quotedObjectGrid's read asviewLabel: schema.label || schema.title, which batch 3 replaced; they now describe the tworesolveInlineI18nLabelreads. No otherObjectGridSchemakey and no public-block arm is touched. Because anobject-view'stableslot takes this key (ObjectGridSlotKey, and the zod slot rebuilt from the grid's.shape),table.titleaccepts the map on both faces too.ObjectViewhands it to its grid, which resolves it; a new pin covers that path.apps/console/src/__tests__/registry-inputs-spec-parity.test.ts(item 3): every cross-file line address re-addressed by content:sdui-parser'svalidateTree,page.tsx'sgetJsxManifest(), the comment above therecord:activityregistration, theComponentRegistry.register('NAME', …)calls for the four GA blocks and the five 17.1.0 record blocks,OBJECT_KANBAN_INPUTS/OBJECT_CALENDAR_INPUTS, and thefeedmember of the spec'sRecordChatterProps. The release counted 13 such lines; the file carried 15 at base (the regex below), and all are gone. Prose and two exemption reason strings only; no assertion, row or cap moves.packages/plugin-detail/src/renderers/record-related-list.tsx(the census repair, see "In-place repair" below):localizeColumnLabelsresolves a column object'slabelmap withpickLocalizedagainst the UI language before the columns reachRelatedList, beside this block'stitleandadd.label. The array is handed on by reference when no column carries a map.scripts/check-spec-symbol-derivation.mjs:RecordDetailsComponentPropsandRecordPathComponentPropsleaveCLAIM_DEBT. Their spec-alignment claims became structural once the members referenced the spec'sI18nLabel, andcheck:spec-symbolsrefused the stale entries; the block is the one--claim-ledgerprints.record-components-i18n-label-members-10993.test.ts(types: each member equal to the same position of the installed spec'sz.input, and toI18nLabel; the map compiles, a number is refused; the spec rows re-measured at runtime).object-grid-title-mirrored.test.tsre-judged: it pinnedtitleas the plainstring, which is the narrowing this batch removes, so its type assertion now readsI18nLabel, and it gains a map row, a non-string-entry row and anobject-viewtable.titlerow beside the string and number rows that stand.record-blocks.nestedLabelsI18nLabel-10993.test.tsx(plugin-detail:sections[].label,add.labelandcolumns[].labelthrough the realSchemaRendererunder zh and en, string controls).ObjectView.tableTitleI18nLabel-10993.test.tsx(plugin-view: the registeredobject-viewwith the realObjectGrid, caption under zh and en)..changeset/10993-batch4-ts-face.md:@object-ui/typesminor (accepted sets widen),@object-ui/plugin-detailpatch (the column-label repair), with theClause-②: yesline.No registration input moves.
object-grid.titleis one of that block's deliberately unregistered deprecated spellings (plugin-grid/src/index.tsx's header note). The three nested members sit inside coarse inputs (stagesandsectionsarearrayofobject,addisobject) whose kinds the widening does not change, andrecord:related_list.titlealready declares both arms (batch 2). SoMEMBER_PINSgains no row andpackages/plugin-detail/src/index.tsxis untouched.In-place repair:
record:related_listcolumns[].labelSince
@objectstack/spec17.5.0 (objectstack#18639)ComponentPropsMap['record:related_list'].columnsdeclares the saved-view union, so a column may be aListColumnobject whoselabelisI18nLabel. Measured through the realSchemaRendererbefore the repair: a string label became the header (threadsSubject), and a map drew a blank one (threads the empty string under both zh and en), with no error.RelatedListturnslabelinto the table'sheaderthroughcore'scolumnHeader, which keeps a string only. Repaired under the bounded in-place rule: the same defect class as this card, a mechanical fix in the shape this renderer already uses fortitleandadd.label, no open PR touching the file, and no new verification surface (this batch's type change already owes plugin-detail's type-check and suite). The seat amends the claim's file surface with this one file.Not done here: adopting the column-object arm on
@object-ui/types'columns(stillstring[]) and on the registration input (stillof: 'string', sovalidateTreereportstype-mismatchon any column object, string-labelled or not). That is the saved-view-union adoption the maintainer ruled for the objectui half of objectstack#18639 ("9593 A"), not this family's.Premise checks (measured first, at base
2e060ba)stringat base. The installed spec (17.5.0) parses a locale map and refuses a number AT each member (invalid_unionatstages.0.label,sections.0.label; map ok attitleandadd.label). The spec ships no liveness-ledger row for these component props (liveness/*.jsoncover metadata types, notComponentPropsMap). Every renderer resolves the map:record-path.tsx'slocalizeStageLabels,record-details.tsx'spickLocalized(rawTitleSrc, language), andrecord-related-list.tsx'spickLocalized(schema.title, …)andpickLocalized(schema.add.label, …), each read and render-pinned (the two batch 2 pins, and the new plugin-detail pin for the other two).object-gridrow still declarestitle: I18nLabelSchema.optional(), described "Fallback forlabel(the renderer readslabel || title)": not retired, not deprecated on the spec side. A map parses there and a number is refused attitle. So both faces widen. objectui keeps its own@deprecated Use label insteadmarking (objectui#6639's declare-branch ruling); retiring the spelling is not this card's.OBJECTUI_11111_LEDGER_CAPSwere re-read rather than taken from the release, and they moved again during this run when objectui#11386 landed; they are read off the merged tree, never hand-merged. This PR moves none of them.ComponentRegistry.getPublicConfigs()and ranvalidateTree: no diagnostic for a map atrecord:pathstages[].label,record:detailssections[].label,record:related_listtitleandadd.label. The control, a number onrecord:related_list.title, drawstype-mismatch.object-grid.titledrawsunknown-propfor a string and a map alike, which is the unregistered deprecated spelling, unchanged.Evidence
Final head
5d62bac(after mergingmainat8673402) unless a line says otherwise. All runs through the shared verify lock on a shared box.pnpm exec vitest run packages/types/plus the 17 console suites that importregister-plugins(the parity test and the three I18nLabel manifest pins among them), the suites that namecheck-spec-symbol-derivation,core'scolumn-identity.ratchet,cli'scheck-schema-marker, schema-catalog'scatalog-gallery-render, the plugin-gridtitleandlabelpins, the plugin-detail I18nLabel pins andRecordRelatedListRenderersuites, and the plugin-view pin withObjectView.tableSlotRelay-10976:Test Files 378 passed (378),Tests 9701 passed (9701).turbo run build --filter='@object-ui/plugin-view^...'(15 tasks), thentype-check(tsc --noEmit && … tsc -p tsconfig.test.json) for@object-ui/types,@object-ui/plugin-detail,@object-ui/plugin-gridand@object-ui/plugin-view: each exit 0.tsc -p tsconfig.test.json --listFileslists the new pins in each package.mainmerge, at53c796d:packages/plugin-detail/,Test Files 229 passed | 1 skipped (230);packages/plugin-view/,Test Files 64 passed (64).packages/types/dist: a probe in plugin-detail assigning a map toRecordRelatedListComponentProps.titleand toObjectGridSchema.titlecompiles, and the same file'stitle: 42is the only error (TS2322 naming theI18nLabelunion). Deleted after.packages/typessources replaced by their base blobs under a trap; on-disk hashes equal the base blobs; markers 4/1 to 0/0): vitest2 failed | 17 passed(thetitlemap row and theobject-viewslot row; the string, number and non-string-entry controls green), andtsc -p tsconfig.test.json14 errors (12 in the new pin: 8 TS2344 on the two assertion tuples, 4 TS2322 on the map literals; 2 TS2344 inobject-grid-title-mirrored). Restored: hashes equal the HEAD blobs,git diff HEADempty.record-related-list.tsxat its base blob, same discipline;localizeColumnLabels3 to 0):2 failed | 7 passed,expected [ '' ] to deeply equal [ '主题' ]and the en twin; every control green. Restored by hash. This single-file leg ran outside the lock after the queue timed out twice (declared below).scripts/ablation-replace.mjs, anchor hit once, blob changed, restore proven each leg; the pins resolvesrcthrough the vitest alias, so nodistsits between mutation and run):record-details.tsx's sectionpickLocalizedread raw gives2 failed | 4 passed;record-related-list.tsx'sadd.labelread raw gives2 failed | 4 passed;ObjectGrid.tsx's captiontitleread raw makes theobject-viewpin2 failed | 1 passed. Every red is "Objects are not valid as a React child (found: object with keys {en, zh-CN})". Direction observed: the normal one.5d62bac, each exit 0:check:spec-symbols,check:component-surface-parity,check:new-line-citations(0 new),check:control-bytes,changeset:check,check:changeset-claims(the 38 pending changesets naming a touched file were read; none is made false by this diff),check:pending-changeset-literals,check:test-path-roots,check:vi-mock-specifiers,check:registry-bare-names,check:doc-types,check:doc-fences,node scripts/check-changeset-presence.mjs.check-governed-queue-guard --testover the 11 paths: NOT GOVERNED.filesblocks;--format json --no-inline-configover the 10 changed code files reports 10 files, 0 errors, 53 warnings, every one pre-existing (record-related-list.tsx17,objectql.ts35,objectql.zod.ts1, equal to themainblobs; the other seven files 0). The config enables no type-aware linting (noparserOptions,projectServiceorTypeChecked), and no rule ineslint-rules/reads another file, so this diff cannot move a verdict on an untouched file.grep -nPfor the census's spellings (NAME.ext:NNN, the bare continuation:NNN,#LNNN,line NNN) reads 15 lines at base and 0 at this head.Acceptance notes
apps/consoletype-check. Reason: its dependency closure was not built here; the console change is comment prose in one test file. CI's type-check is the reading.53c796d; the twomainmerges after it touch no file of this diff, and on the final head the plugin-detail and plugin-view suites that read this diff ran (listed above).check:eager-closure/ Bundle Analysis,check:doc-snippets,check:doc-examples. Reason: they need a full console build or the full package set; this diff adds no registration, no fenced snippet and no doc page.jsdom@30.0.1declares^22.22.2, so the worktree install ran with--config.engine-strict=false; no repository file changed.RecordPathComponentProps.stagesstays required where the spec row makes it optional, andrecord-path.tsxreads it throughunknownfor that reason (its own comment says so). A different narrowing, not anI18nLabelmember; not touched.fix-parity-aria-line-ref.md(empty frontmatter, so it publishes nothing) says the parity test'sariareference now points at a line ofplugin-detail/src/index.tsx; that address had drifted before this branch, and this branch replaces it with a content anchor.10993-batch2-i18nlabel-reads.mdsaysobject-grid's deprecatedtitle"still renders a map raw"; batch 3 made that false. Both are other PRs' changesets and are not edited here.mainmoved twice during the run and was merged twice by merge commit (47af25e,5d62bac): objectui#11384 and objectui#11385, then objectui#11386 and objectui#11387. objectui#11384 edits other regions ofobjectql.ts/objectql.zod.tsand merged clean; objectui#11386 edits the parity test (it judgesobject-gantt) and merged clean, and the re-addressed prose survived it. The tests and gates above were re-run on the merged head.Closure note: the census's final standing
The census enumerates every installed
ComponentPropsMaprow's members that accept a string and an inline locale map and refuse a number and an array, walked recursively. Re-taken on the installed 17.5.0 by a one-off probe (not committed): 58 members on 25 of the map's 55 rows. Against batch 1's 17.4.0 table (PR objectui#11050), two are new, both from 17.5.0:object-gantt.label(the row itself is new, objectstack#18305) andrecord:related_listcolumns[].label(the column-object arm, objectstack#18639). Rows this batch did not touch carry PR objectui#11099's readings; nothing in this PR re-derives the table.object-formobject-master-detail-formobject-metricobject-gridobject-gridobject-ganttresolveI18nLabelagainst the display locale); input declares both arms since objectui#11386element:textelement:buttonelement:text,element:button,element:image,element:numberelement:text_inputelement:record_pickerelement:text_input,element:record_picker,element:metadata_viewerpage:headerpage:cardpage:tabs,page:accordionpage:header,page:card,page:tabs,page:accordionrecord:alertrecord:related_listtitleinput declares both arms (batch 2); TS face widened hererecord:related_listrecord:detailsrecord:pathrecord:activity,record:chatter,record:details,record:discussion,record:highlights,record:path,record:related_listrecord:chatter,record:discussionai:chat_window.github/prompts/component.prompt.mdsaysai:chat_windowis unregistered on purpose, do not "fix" it by registering itThe release
5893990051recorded the nine block-levelaria.ariaLabelrows as carried by objectui#11083. That card is done (state reasoncompleted): the acceptance of PR objectui#11123 measured all nine reading noaria-labeland repaired all nine, so the table records them as repaired rather than carried. With the column-label repair, every row is repaired, resolving, or the deliberately unregisteredai:chat_window.Generated by Claude Code