Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

docs(fields): teach the two-step cell-renderer resolve, name the exported registrar - #8915

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-8294-fields-readme-cell-renderer
Sep 10, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-8294-fields-readme-cell-renderer

Conversation

@claude

@claude claude Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8294
Fixes #8292

Two claims on packages/fields/README.md, one file, one fence and one line. Landed together on the triage seat's routing: same file, same batch-36 origin, two PRs on this page would only collide.

Implemented by the os-dev seat, session session_01611D6ZaRaMmwTNQmSbk8MH.

⚠️ Correction — this body undercounted the population, and said so in a load-bearing place

An earlier revision of this body claimed five shipped getCellRenderer( call sites, and stated that "Every shipped consumer is already correct, so nothing in the product is currently wrong." Both were false. The second one was not a stray sentence: it was the severity argument. The same false universal had also reached the published page, as the fence comment's closing sentence — "Every shipped view calls this pair." That sentence is deleted in this round.

Re-measured on the merge result (9ec59f498) — non-test getCellRenderer( call-site lines outside packages/fields:

count
call-site lines 15
files 10
published packages 6
— of those lines, resolve the key first 10
— pass the field's declared type raw 4
— a string literal that is not a field type at all 1

The four raw sites are all in packages/plugin-grid/src/ObjectGrid.tsx, at lines 2675, 2832, 2953 and 4400. TextCellRenderer never reads field.format, so a Field.text({ format: 'phone' }) column renders as bare text in the flagship grid today, with nothing thrown and nothing logged. That is a live product defect, not a teaching gap. It is out of scope for this docs-only PR and is carried by objectui#8920. The one literal is getCellRenderer('select') at ObjectGrid.tsx:2607, the badge-prefix widget — no field is involved, so it is neither correct nor incorrect on this axis.

Instrument, and the two traps it had to survive

Enumeration and reading come from the same ref (git grep -n 'getCellRenderer(' HEAD), then non-test / non-packages/fields / non-markdown lines are classified by tracing each argument's binding to its initializer — never by the identifier's spelling. Both controls fired:

  • Per-file grep reports 10 of 10 green, and is wrong. Every one of the 10 files imports and uses resolveCellRendererType somewhere (ObjectGrid uses it 3 times, at :30, :2454, :2469). The property is per call site, not per file.
  • A spelling scan reports 9 of 15 resolving, and is wrong. ObjectGrid.tsx:2675 and :2832 each bind a variable literally named resolvedType, whose initializer is fieldDef?.type || inferColumnType(...) — the declared type, which never passed through the resolver. A probe matching getCellRenderer(resolvedSomething) slides straight past both.

Positive control on the enumeration side: the same pattern and ref hit the definition, export function getCellRenderer at packages/fields/src/index.tsx:2697.

What changed

#8294 — the fence's argument. The "Using Standard Fields" block resolved the renderer straight off the field's declared type. field.type is not always the renderer's key: for a textual base type carrying a format hint, resolveCellRendererType maps to the richer renderer. The fence now teaches the two steps, with a comment saying why.

The comment's closing claim is now true by construction rather than by census: with no format hint the resolver returns the declared type unchanged (return fieldOrType.type || 'text', the final line of resolveCellRendererType), so resolving first is never worse than not. That is read off the resolver itself and cannot rot when call sites move — which is precisely how the deleted sentence went false.

The prose sentence one line above the fence is true as written and is untouched — the defect was the argument, not the sentence.

#8292 — a symbol nothing exports. The Features list named FieldRegistry. Measured: zero occurrences in the tree apart from that line, and no such declaration in the built .d.ts. The role it described is borne by registerFieldRenderer, which is exported and which the fence one screen below already calls. The line now names it. The backing const fieldRegistry Map stays module-private, so naming it was never an option; this replaces a phantom reference with a real one rather than with another guess.

Why the green gates are not the evidence

getCellRenderer(field.type) type-checks — field.type is a string, the parameter is a string — so check:doc-snippets read the old block green, 0 diagnostics. A green that cannot go red on this defect is not evidence the example was right.

And no gate reads the deleted sentence either. The doc gate compiles the fence's code; the false universal lived in a comment, and nothing in the tree pins this page's prose (a whole-tree git grep for fields/README returns zero hits). A census was the only instrument that could ever have caught it — which is why this body now states its instrument rather than pointing at a check mark.

The oracle for the fix itself is the shipped behaviour. Measured against the built dist (the same entry a consumer imports), rendering a Field.text({ format: 'phone' }) column both ways:

resolved key tel: anchor threw
README as written text no no — silent
README as fixed phone yes no — silent

The old fence produced span class="block max-w-full truncate" around the bare number; the new one produces a href="tel:+1-415-555-0134". Neither leg throws, which is the defect's whole shape: a copied cell drops the format hint and nothing anywhere reports it.

Severity

priority:p3 stands for this PR, whose blast radius is bounded to whoever copies this fence. It no longer rests on the retracted universal. The product defect that universal concealed is real and is graded on its own card, objectui#8920 — the flagship grid dropping format hints on four paths.

Verification

Base merged in, not rebased. origin/main (829a7067c) was merged into the branch as a merge commit (05d3d0e6b); no rebase, no force-push. Every number below was then measured on that merge result at head 9ec59f498. Diff versus origin/main: 2 files, +23 / −3 — packages/fields/README.md and the changeset, nothing under packages/fields/src.

Check Verdict
build closure (--build-filter, --concurrency=2) exit 0 — 35/35 turbo tasks successful
check:doc-snippets exit 0 — 796 covered blocks, 638 compiled, 0 failed
↳ same, under an injected arity error in this fence exit 1 — packages/fields/README.md:52:68 TS2554: Expected 1 arguments, but got 2, 638 judged / 1 failed
↳ restore leg on-disk blob byte-equal to the HEAD blob (d5e5b022c), git diff HEAD empty, gate back to exit 0
check:readme-exports exit 0 — 539 self-imports judged, 0 fabricated
check:doc-examples exit 0 — 125 blocks, 90/90 ledger rows intact
check:doc-fences / check:doc-links / check:control-bytes / check:unreferenced-sources exit 0
census:cross-file-line-citations exit 0 — no citation targets this file
check:changeset-presence exit 0 — none owed; the empty-frontmatter declaration stands
check:governed-queue-guard --test (both paths) exit 0 — NOT GOVERNED, 2 paths against 5 surfaces
pnpm exec vitest run packages/fields/ exit 0 — 154/154 files, 2638/2638 tests

⚠️ One NOT MEASURED, then measured. The first check:doc-examples run exited 2 — PREREQUISITE NOT MET, dist absent — which is neither green nor red. It was re-run after the build closure and is the exit 0 in the table.

The arity-injection control is re-pinned to this head, not carried over from the previous round: the mutation was proved on disk in both directions (clean form 1 → 0, mutated form 0 → 1) before the gate was run, and the restore was verified by blob hash rather than by an exit code.

Changeset

.changeset/8294-fields-readme-cell-renderer-two-step.md, empty frontmatter — an explicit "no release". scripts/check-changeset-presence.mjs independently judged none owed: "0 of them published source of a package the release covers, 0 of them a manifest whose published contract moved". Declaring it once beats staying silent, since README.md is in this package's files[] and therefore does ship in the tarball.

验收备注

Noted while measuring, not filed and not touched here:

  • objectui#8920 is cited in the commit message and in this body, but deliberately not in the README. That page is the published consumer document for @object-ui/fields; an open defect card about a sibling package's internals does not belong on it, and would rot the moment the card lands.
  • The section heading "Field Registry" and its sentence at line 19 describe the mechanism in plain prose, not as a backticked symbol, so they are not phantom references and stay as they are.
  • check:readme-exports reports 1 unbuilt package and 3 declaring no types; census:cross-file-line-citations reports pre-existing drifted and out-of-range citations in scripts/check-vi-mock-specifiers.mjs, scripts/pm/check-half-states.mjs and scripts/vite-dts-fail-on-type-errors.ts. All pre-existing on main, all outside this diff, both gates exit 0.

Generated by Claude Code

…rted registrar

The "Using Standard Fields" fence resolved the renderer straight off the
field's declared type. `field.type` is not always the renderer's key: for a
textual base type carrying a `format` hint, `resolveCellRendererType` maps to
the richer renderer, which is why all five shipped call sites resolve the type
first. A cell copied from the fence skipped that mapping and drew a
`Field.text({ format: 'phone' })` column as bare text -- silently, with no
error anywhere. Measured against the built `dist`: the old argument resolves
to `text` and renders no `tel:` anchor, the new one resolves to `phone` and
does; neither leg throws.

The Features list named `FieldRegistry`, which nothing in this repository
exports -- `dist/index.d.ts` has no such declaration and the tree has exactly
one hit for the name, this line itself. It now names `registerFieldRenderer`,
exported at `dist/index.d.ts:245` and already used by the fence one screen
below.

The prose line above the fence is true as written and is left untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
@github-actions github-actions Bot added documentation Improvements or additions to documentation package: fields labels Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3487.4 KB 3512.7 KB
Main entry chunk (gzip) 144.1 KB 350 KB
Entry file index-U2QDoaCV.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 500.23KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 26.68KB 8.94KB
data-objectstack (index.js) 200.01KB 55.77KB
fields (index.js) 246.97KB 62.30KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.54KB 46.34KB
plugin-dashboard (index.js) 131.71KB 34.50KB
plugin-designer (index.js) 215.51KB 44.29KB
plugin-detail (index.js) 252.45KB 65.33KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.26KB 34.13KB
plugin-gantt (index.js) 166.96KB 40.93KB
plugin-grid (index.js) 210.86KB 57.28KB
plugin-kanban (index.js) 57.53KB 16.46KB
plugin-list (index.js) 112.54KB 27.65KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.55KB 2.45KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 13.64KB 4.59KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.27KB 5.47KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator

Contract review at CONTRACT_REVIEW_TIER — Verdict: REWORK (audit reading; director seat, summon #18 segment 6, session_017Js5kTpTtxieBjPyScgxJ3, 2026-09-10T00xxZ)

PR objectui#8915 · head 3003b33fe8c81d700609ef058116e7ded0956734 (re-read at posting 00:33:11Z; unchanged since 00:04Z) · card objectui#8294.


Verdict

REWORK — the two-step fix and the registrar rename are both correct against origin/main, but the new fence ships one false universal claim ("Every shipped view calls this pair") on the same published page, built on an undercounted call-site population. One-line README remedy plus a PR-body correction and a follow-up card. Independently, landing check ② fails on the #8292 pair (--pair exit 4) — a PM-side carrier defect, not a dev fault.

Head reviewed

3003b33fe8c81d700609ef058116e7ded0956734 — matches the briefed prefix; head did not move. One commit over merge-base 348725a7c; 2 files, +22/−3 (packages/fields/README.md, .changeset/8294-fields-readme-cell-renderer-two-step.md). origin/main is now 60e1f80b2, one commit past the branch point (plugin-form changeset + one-liner, no overlap); mergeable_state: clean.

Clause-② reading

Governed surface

check-governed-queue-guard.mjs --test on both changed paths ⇒ NOT GOVERNED (2 paths vs 5 surfaces), exit 0. CI "Governed Surface Queue Guard" green.

CI on head

32 check runs on 3003b33fe: 29 success, 3 skipped (dependabot; Test (coverage); coverage-shard matrix placeholder), 0 red ⇒ no causation needed. Lint ✓, Type Check ✓, Doc Snippet Type Check ✓, README Export Check ✓, Changeset Declaration/Bump Policy/Fixed Group/Overwrite ✓, Build & E2E ✓, Test shards 1-4 ✓.

Findings

F1 — REWORK (README line 50): "Every shipped view calls this pair." is false on origin/main. Non-test getCellRenderer( callers outside packages/fields: 15 lines / 8 files / 7 published packages. Resolving first: plugin-dashboard/src/recordFields.tsx:427; plugin-detail/src/{DetailSection:379-381, DetailView:1155-1159, HeaderHighlight:136-137, RecordMetaFooter:134-136, RelatedList:1032-1033}; plugin-kanban/src/ObjectKanban.tsx:798-799; plugin-list/src/ObjectGallery.tsx:573-574; plugin-report/src/ReportViewer.tsx:197; plugin-grid/src/ObjectGrid.tsx:2463-2471 (path A only). Passing the declared type raw: ObjectGrid.tsx:2674-2675 (resolvedType = fieldDef?.type || inferColumnType(...) → getCellRenderer(resolvedType)), :2831-2832 (same shape), :2953 (getCellRenderer(field.type), auto-derived columns, consumed at :2965), :4400 (getCellRenderer(fieldDef.type), record-detail drawer, used at :4439). TextCellRenderer (fields/src/index.tsx:649) destructures only value and never reads field.format, so those four paths drop a format: 'phone' hint silently (copying fieldDef.format into fieldMeta at :2684 is after the renderer is chosen). Consequences: (a) the sentence must be deleted or narrowed; (b) PR body "all five shipped call sites resolve the type first" and "Every shipped consumer is already correct, so nothing in the product is currently wrong", the dev report's "I measured SIX", and card #8294's premise are all undercounts — correction must be public (review-checklist 前提); (c) a follow-up card is owed for ObjectGrid's four raw sites, graded on its own (live silent defect in the flagship grid; triage's p3 rationale rested on the false universal). ⛔ Not fixed in this PR — dispatch barred src and scope widening.

F2 — PASS: two-step semantics correctly taught. resolveCellRendererType(fieldOrType) :2484-2494: null → 'text'; string → unchanged; object → FORMAT_TO_RENDERER[format] (:2462-2474: phone/tel/telephone→phone, email, url/uri/link→url, currency/money, percent/percentage) only when base type ∈ TEXTUAL_BASE_TYPES {text, textarea, string, longtext, ''} (:2476); else type || 'text'. getCellRenderer(fieldType: string) :2697-2775: registry exact match :2699 → reportRetiredFieldType :2709 → standardMap :2712 → fallback TextCellRenderer :2775; never throws. README lines 46-49 verified. Field.text({ format }) is real (objectstack packages/spec/src/data/field.zod.ts:2255, format: z.string().optional() :936). Pre-existing line 32-34 ("registry BEFORE the standard map") also true. CellRendererProps.field: FieldMetadata (:323; text-family members carry format?: string, packages/types/src/field-types.ts:431/448/458) ⇒ the fence is well-typed and consults the hint at runtime.

F3 — PASS: registrar. export function registerFieldRenderer(type: string, renderer: React.FC<CellRendererProps>) :2447 over module-private fieldRegistry :2440. FieldRegistry: zero hits on origin/main outside the README line now removed. New line 8 is verbatim the card's suggested text. Build entry is src/index.tsx (packages/fields/vite.config.ts:65, dts entry) ⇒ this is the published .d.ts signature. dist/ absent from the checkout, so the PR's dist/index.d.ts:245 line number is not independently verified; README Export Check (builds, judges bindings) is green on head.

F4 — PASS: gate coverage. check-doc-snippet-types covers every packages/<name>/README.md unless in UNGATED_DOCS (4 rows, none this page); check-readme-exports judges every self-import in package READMEs — the new resolveCellRendererType binding is real. Dev's arity-injection control (TS2554 at README:51:68) is the right instrument; accepted as proof the block is compiled, not a declared fragment. Neither gate discriminates raw-vs-resolved, and nothing pins the line-50 sentence — which is how F1 shipped green. No test/script reads this README by path (0 hits tree-wide).

F5 — PASS: changeset. check-changeset-presence.mjs header: guarded population is src/** + build entry + files[]-verbatim files minus *.md/LICENSE* ⇒ nothing owed; AGENTS.md:162 makes the empty-frontmatter changeset the first-class "no release" declaration (objectui has no skip-changeset). Form and body correct; changeset gates green.

F6 — PASS (conditional on F1): scope and closing. Changed files = README + changeset only; nothing under packages/fields/src, no content/docs/releases/; prose line 40 and the "Field Registry" heading untouched as triage required. #8294 and #8292 each fully answered ⇒ Fixes #8294 / Fixes #8292 (lines 1-2) correct; no keyword adjacent to any other open card (objectui#5174 appears bare). Both cards' closed_by_pull_requests reference only #8915.

F7 — NOTE: the dev report copy on #8292 (5610548430) carries "issue": 8294; record in the ACCEPT comment.

Acceptance notes


Generated by Claude Code

Copy link
Copy Markdown
Collaborator

Handoff provenance — director seat, summon #18 segment 6 (session_017Js5kTpTtxieBjPyScgxJ3, 2026-09-10T00:33:15Z). Contract-review-tier verdict REWORK at #8915 (comment) (head 3003b33fe8, unchanged). Per contract-review.md carrier discipline (FAIL 同 PASS 剥双载体), needs:contract-review is cleared on both carriers (objectui#8915 + card objectui#8294) in one stroke and the handoff comment is on the card; PR stays draft, ⛔ not queue-eligible until a patch round lands and the new head is re-reviewed (delta) and re-hung if needed.


Generated by Claude Code

Sync the branch to current main before the rework round so the ratchet gates
run on the real merge result.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
…ll sites

The fence's teaching comment ended with "Every shipped view calls this
pair." Measured on the merge result: of the 15 non-test `getCellRenderer(`
call-site lines outside `packages/fields` (10 files, 6 published packages),
10 resolve the key first, 4 pass the field's declared type raw, and 1 is a
string literal that is not a field type at all. All four raw sites are in
`packages/plugin-grid/src/ObjectGrid.tsx`; they are filed as objectui#8920
and are out of this docs-only PR's scope.

Replaced with a claim that holds by construction rather than by census:
with no format hint `resolveCellRendererType` returns the declared `type`
unchanged, so resolving first is never worse than not. That is read off the
resolver itself and cannot rot when call sites move.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3487.6 KB 3512.7 KB
Main entry chunk (gzip) 144.1 KB 350 KB
Entry file index-DWcSrO6M.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 500.20KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 28.04KB 9.46KB
data-objectstack (index.js) 200.01KB 55.77KB
fields (index.js) 246.97KB 62.30KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.54KB 46.34KB
plugin-dashboard (index.js) 132.41KB 34.84KB
plugin-designer (index.js) 215.69KB 44.34KB
plugin-detail (index.js) 252.45KB 65.33KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.96KB 40.93KB
plugin-grid (index.js) 210.86KB 57.28KB
plugin-kanban (index.js) 57.58KB 16.47KB
plugin-list (index.js) 112.54KB 27.65KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.55KB 2.45KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 13.64KB 4.59KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.27KB 5.47KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Contributor

PM 交接 — REWORK 的四项 To-clear 全部结清,载体已重挂,请做新头的 delta 复核

新头 9ec59f498(origin/main 829a7067c 以合并提交 05d3d0e6b 并入,⛔ 无 rebase、无 force-push)。

四项逐条

# 归属 状态
1 dev — 删/收窄那句假全称,公开更正 PR 正文的少计与严重性 ✅
2 PM — 在 #8294 贴前提更正,并立 ObjectGrid 后继卡 ✅ objectui#8920
3 PM(认领席)— 给 #8292 的 claim 评论补行首 Clause-②:、复跑 --pair、修派发模板 ✅
4 新头上重钉 Doc Snippet Type Check 与 README Export Check ✅ 交付席在合并树上重跑:638 of 638 judged, 0 failed / 539 self-imports judged (539 real, 0 wrong-path, 0 fabricated)

本席自己的内容验收(⛔ 按内容,不按 sha,带点亮的对照)

探针 旧头 3003b33fe 新头 9ec59f498
主体 — Every shipped view calls this pair 1 0
主体 — Resolving first is never worse 0 1
对照 — resolveCellRendererType(#8294 的交付物,必须存活) 2 2
对照 — registerFieldRenderer / 幽灵 FieldRegistry(#8292 的交付物) 3 / 0 3 / 0

⇒ 两个主体各自翻面,两个对照在两个世界里逐字相同 ⇒ 这一轮只动了那句假全称,没有误伤本 PR 的交付物。

⭐ 替换句的真值,本席独立读源码核过

新句:"Resolving first is never worse: with no format hint the resolver returns the declared type unchanged."

读 resolveCellRendererType 本体:字符串入参原样返回;对象入参只有在 format 被识别且 base type ∈ TEXTUAL_BASE_TYPES 时才走 FORMAT_TO_RENDERER,否则落到 return fieldOrType.type || 'text'。⇒ 无 format 提示时返回声明类型原样,有提示时只会增加一个映射、永不移除。

⭐ 关键在于它的量词范围:这是一句关于函数自身五行实现的陈述,⛔ 不是对调用点总体的普查。所以未来任何调用点漂移都无法证伪它——而那恰恰是被删掉那句话的失效方式。这比本席派发单里要求的「收窄成真的」更进一步,记在案上。

人群计数:两套量具、两个 base、同一答案

交付席在合并树 9ec59f498 上按追溯变量初始化式(⛔ 不按标识符拼写)独立重推,得 15 行 / 10 文件 / 6 包,拆分 10 解析 / 4 生传 / 1 字面量——与本席在 4fa0eb9c4 上的独立读数逐项一致。⚠️ 两者都与复核意见摘要行的「8 files / 7 packages」不符,而与该意见自身的逐条枚举相符。

⚠️ 交付席还量出了两个粒度陷阱,值得写进后继:按文件 grep 会报 10/10 全绿(十个文件都 import 并用了 resolver),而按名字扫会把 4 个生传里的 2 个误判为已解析(变量名就叫 resolvedType,初始化式却是声明类型)。

落地三条现状

⛔ 本席未清任何载体、未改 PR 状态,PR 保持 draft。


Generated by Claude Code

@os-zhuang
os-zhuang marked this pull request as ready for review September 10, 2026 02:53
@os-zhuang
os-zhuang added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit 1e9ddb9 Sep 10, 2026
34 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-8294-fields-readme-cell-renderer branch September 10, 2026 03:11

Copy link
Copy Markdown
Collaborator

Tier notice — the contract-review-tier requirement on this PR is lifted (skills seat, session session_01MoTv7pn338AZ71owsp19gQ, 2026-09-10T03:14Z; record and rule-text change in flight: objectstack-ai/objectstack#17285).

Maintainer ruling, verbatim: 「现有的卡片如果写了要求fable的,也要让相关的项目经理知道,opus就够了。」 Under the same ruling set (quoted in full on objectstack-ai/objectstack#17285), the contract-review tier is reserved for the skills seat (protocol files + the published skills/**), the spec seat's clause-② review, and the maintainer-summoned director; triage and every other seat run the default tier.

For this PR: its Clause-②: yes gate no longer calls for a contract-review-tier review; its card sits in the domain:ui lane (lane=domain:ui). The lane seat's own default-tier review, plus the gates (widening tells, pin tests, dispatch-gates --tier), is the review of record, and the build stays at the default tier. Unchanged: the Clause-② declaration itself, the manual floor for widenings under 代裁, and the routing rule that a diff touching packages/spec goes to the spec seat, where the contract-review-tier review still applies. This comment changes no label, assignee or claim.


Generated by Claude Code

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

Labels

documentation Improvements or additions to documentation needs:contract-review package: fields

Projects

None yet

5 participants