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

fix(plugin-detail): resolveTitleField delegates to the shared ADR-0079 ladder - #7585

Merged
os-project-manager merged 3 commits into
mainfrom
claude/issue-7287-resolve-title-field
Sep 4, 2026
Merged

os-project-manager merged 3 commits into
mainfrom
claude/issue-7287-resolve-title-field

Conversation

@os-project-manager

@os-project-manager os-project-manager commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #7287

Clause-②: no — re-verified on this diff at ac41b2a51, not carried forward. Four mechanical checks against merge-base ccb3ad78a62b:

  • packages/types files in the diff: 0 (lit control packages/plugin-detail/ = 4). views.ts blob be5b9d2e3e21… identical at base and head; DetailViewSchema.primaryField still declared.
  • deleted type-member declarations anywhere in the diff: 0. The only two member-shaped deletions are object-literal properties in test fixtures (primaryField: 'subject',); lit control — the same regex matches 36 added lines.
  • ObjectDefLike member set: identical in order, 10 members, none removed, none added.
  • index.tsx: byte-identical (diff exit 0). resolveTitleField's signature: unchanged.

ObjectDefLike.primaryField stays declared but never read. The interface is re-exported at packages/plugin-detail/src/index.tsx:182 and @object-ui/plugin-detail is published (v17.6.0, exports["."].types → ./dist/index.d.ts), so removing the member would narrow a shipped type — verified on the artifact, not inferred: it is emitted at line 40 of dist/synth/buildDefaultPageSchema.d.ts (lit control, sibling stageField = 3 hits in that same file; index.d.ts shows 0 for both, so a grep there proves nothing). Retiring it is a contract change owed its own card. Code reads of def.primaryField: 0.

What changed

resolveTitleField now calls @object-ui/core's resolveNameField and nothing else:

export function resolveTitleField(def: ObjectDefLike | undefined): string | null {
  return resolveNameField(def) ?? null;
}

ADR-0079 collapsed ~6 divergent record-title resolvers onto that one ladder. This module grew one back. The repair is delegation, not a second ladder that agrees today — two ladders that agree now diverge on the next change, which is the entire history of this defect.

Two reads went with it: def.primaryField, and the literal ['name','full_name','title','subject','display_name'] walk that matched on NAME with no type check.

Three user-visible changes, all deliberate and pinned

1. A derived title now resolves. An object with no conventional name field — { due_at: datetime, headline: text } — resolved to null here while every other surface titled the record headline.

2. A select named title is no longer mistaken for the title field. The literal walk matched on name alone; the shared ladder rejects non-title types.

3. The highlight strip's skip set now skips ONE field, not every declared role. It previously read primaryField, nameField and displayNameField separately and skipped whatever each found; it now skips the single field the ladder resolves. These differ on exactly one input: an object declaring nameField and the deprecated displayNameField alias to different fields. The old set skipped both; this skips only the winner.

Skipping only the winner is intended. getRecordDisplayName reads the same declaredNameField ladder and renders the winner's value, so the losing alias is an ordinary field the H1 never shows — hiding it removed a field and spent a strip slot for nothing, which is the class of bug this card is about. It also makes the heuristic branch agree with the declared branch, which has only ever filtered a single titleField: the "#2548 follow-up" note in that branch claims both branches agree, and until now that held only for objects declaring one alias.

deriveHighlightFields asks the objectui#4914 retirement gate about the title field before skipping it. Skipping first would have silenced the report for an object whose only retired-typed field is the one that titles it — the strip would look right while the gate went quiet.

The census — card step 1, genuinely unmeasured until now

Nothing produces primaryField on an object payload.

query answer lit control, same shape
primaryField in shipped @objectstack/spec@17.2.0 dist/ 0 files nameField → 68 files
declaration-form primaryField?: in packages/types/src/** 1 (views.ts, on DetailViewSchema) summaryFields?: / recordNavigation?: / sectionGroups?: → 1 each
object payloads carrying primaryField, objectstack 0 nameField present in objectql fixtures/engine
object payloads carrying primaryField, objectui 3, all test fixtures —

The structural half is stronger than a census: @objectstack/spec's object schema is a strictObject. ObjectSchema.safeParse answers unrecognized_keys: ['primaryField'] and ObjectSchema.create() throws — which is why objectstack#6326 removed this identical read from two lint rules. This PR is the objectui half of a removal the sibling repo already ruled on. Same shape as the objectDef.titleField read objectui#6531 measured and #6557 removed.

The census is about producers; the surviving type member is about consumers who type their own defs. That is why zero producers does not license deleting it.

The two divergence examples — executed, not reasoned

Triage was explicit that it had not run either resolver. Both were run, and the RED output below is the "before":

object before — resolveTitleField core (list column + lookup chip) after
{ due_at: datetime, headline: text } null headline headline
{ title: select, body: text } title body body
{ primaryField: 'ref_no', nameField: 'name' } ref_no name name
AssertionError: expected null to be 'headline'      // detail page vs list/lookup
AssertionError: expected 'title' to be 'body'       // name match with no type check
AssertionError: expected 'ref_no' to be 'name'      // view key outranking the canonical pointer

The headline case is worse than the card framed it. resolveTitleField is how the detail page predicts what the H1 shows — but the H1 is rendered by core's getRecordDisplayName. On that object the H1 showed headline's value while resolveTitleField returned null, so deriveHighlightFields skipped nothing and headline became the first chip directly under a heading already showing it. It is now pinned as an equality across three surfaces: the field the strip skips, the field the list leads with (leadWithNameField), and the field whose value the H1 renders.

Verification — on ac41b2a51

  • Two discriminating ablations, both mutating the FACT in source, never an assertion.
    • The rung. Put primaryField back on top of the ladder. Mutation proven on disk first (blob 177c1d55… → 0ea5032b…, marker count checked, hard exit if not) → Tests 3 failed | 6 passed, exactly the three rung tests.
    • The skip set. Put the three raw reads back. Mutation proven on disk (blob b6466f98… → 9838c1ef…, marker lines 2 and the injected displayNameField) skip.add line 1) → Tests 1 failed | 9 passed, failing precisely on expected [ 'priority' ] to include 'legacy_title'. That is the one input where old and new disagree, so the pin is on the behaviour rather than the spelling.
    • Both restored by state under trap ... EXIT INT TERM with absolute paths via git checkout HEAD -- ABSOLUTE_PATH: git diff HEAD empty and on-disk blob back to the HEAD blob, residual markers 0. The second ablation's first attempt aborted on its own guard (my expected marker count was wrong — grep -c counts lines, not occurrences); it refused to measure, the trap restored the tree, and it was re-run with the correct expectation rather than nudged until green.
  • No rebuild leg is owed for those, and it is shown rather than assumed. vitest.config.mts:408 aliases @object-ui/core to packages/core/src and :427 aliases @object-ui/plugin-detail to packages/plugin-detail/src; the tests import the subject relatively. No dist on the resolution path.
  • Tests: pnpm exec vitest run packages/plugin-detail/ from the repo root — Test Files 131 passed (131), Tests 1189 passed (1189), lock verdict command-exit 0. The wider sweep (plugin-detail + app-shell + core + components + the console fixture) ran green on the previous head at Test Files 1089 passed (1089), Tests 11522 passed | 1 skipped; this head's delta is confined to plugin-detail, so that package's suite is the re-run — a declared narrowing, with CI running the full farm regardless.
  • Type-check: plugin-detail + app-shell after building their dependency closures — Scope: 2 of 47 workspace projects, both tsc --noEmit && tsc -p tsconfig.test.json echoed and Done.
  • Gates: check:control-bytes — OK (scanned 6247 tracked text file(s)); check:phantom-deps — Every in-scope import is declared by the package that publishes it.; check:self-import — No package names itself inside its own src/.; check-changeset-presence — 4 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s); check-changeset-no-major — No changeset declares a major bump. Plus a control-byte self-scan of every changed file: clean.
  • check:readme-exports is NOT MEASURED, not red. All 75 findings are the prerequisite form "type entry ./dist/index.d.ts is not on disk -- run pnpm build first" (0 lines of any other form), naming app-shell / cli / plugin-ai / plugin-gantt and never plugin-detail (lit control: plugin-gantt appears 43 times in the same file). It wants a full-repo build this seat did not run, and this diff touches no README and — as measured above — no export surface.

Declared narrowing — lint. The gate is turbo run lint, i.e. each package's own eslint .; this diff touches exactly one package. packages/plugin-detail linted whole: 184 files, 0 errors (exit 0); changed files at 0 errors each (warnings only, against 894 pre-existing there). The narrowing cannot hide anything: the single eslint.config.js configures no type-aware linting (grep for projectService/parserOptions exits 1), so a verdict is a per-file function. The wide shape was run once too — root eslint . --no-inline-config over 4274 files (count from --format json) shows 93 errors, all pre-existing, none in a file this PR touches.

Not in this PR — out of the fence

Two more consumers read primaryField off an OBJECT def, both outside this card's fence and both user-visible on their own: packages/components/src/renderers/layout/containers.tsx (the record-chip / page-header resolvedTitle chain) and packages/plugin-detail/src/renderers/record-details.tsx (a fourth inline titleCandidates ladder). Handed up with their evidence; the coordinator is filing them.


Generated by Claude Code

…9 ladder

`resolveTitleField` ran a second, private record-title ladder topped by
`def.primaryField` — a `DetailViewSchema` key read off an OBJECT def, ranked
above the canonical `nameField` (AGENTS.md Commandment #0.1) — with a literal
five-name walk underneath that matched on NAME with no type check.

It now calls `@object-ui/core`s `resolveNameField` and nothing else, so the
detail page, the list column and the lookup chip cannot disagree about which
field titles an object. ADR-0079 collapsed ~6 divergent resolvers for exactly
this reason; this one grew back.

No producer can put `primaryField` on an object: the spec object schema is a
strictObject that answers unrecognized_keys, and objectstack#6326 removed the
identical read from two lint rules. A census across both repos found zero
object payloads carrying it. `DetailViewSchema.primaryField` is untouched.

`deriveHighlightFields` asks the objectui#4914 retirement gate about the title
field before skipping it, so an object whose only retired-typed field is the
one that titles it still gets its report.

Fixes #7287

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

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3182.4 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-B4JZOZFl.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) 15.67KB 5.75KB
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) 5.13KB 2.35KB
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) 516.21KB 117.82KB
core (index.js) 6.12KB 2.42KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.40KB 61.26KB
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) 4.28KB 1.75KB
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.98KB 10.98KB
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.55KB 0.62KB
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 (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
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) 5.12KB 1.74KB
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) 15.75KB 3.80KB
plugin-calendar (index.js) 48.09KB 13.34KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.43KB
plugin-dashboard (index.js) 132.89KB 34.68KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 250.59KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.44KB 41.05KB
plugin-grid (index.js) 209.25KB 56.71KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.55KB 6.80KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.57KB 11.96KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.38KB 3.22KB
plugin-view (index.js) 85.24KB 20.94KB
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) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
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) 10.35KB 3.60KB
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.74KB 1.41KB
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 (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.58KB 2.23KB
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 (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

`ObjectDefLike` is re-exported from this package index and
@object-ui/plugin-detail is published, so the member is part of a shipped
.d.ts. Deleting it narrows a published type — an external
`const d: ObjectDefLike = { primaryField: 1 }` compiles today and would stop
— which is a contract change owed its own card, not a rider on a behaviour
fix. What the member DESCRIBES (a key no object payload can carry) is a
different question from whether it is REACHABLE, and it is.

No read comes back: resolveTitleField stays a pure delegation to
resolveNameField, and deriveHighlightFields still asks the objectui#4914
retirement gate before skipping the title field. The member carries a
comment marking it accepted-but-unread so it is not tidied away again
without noticing it is published.

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

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3182.6 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-D7npQhuE.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) 15.67KB 5.75KB
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) 5.13KB 2.35KB
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) 516.21KB 117.82KB
core (index.js) 6.12KB 2.42KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.40KB 61.26KB
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) 4.28KB 1.75KB
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.98KB 10.98KB
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.55KB 0.62KB
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 (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
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) 5.12KB 1.74KB
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) 15.75KB 3.80KB
plugin-calendar (index.js) 48.09KB 13.34KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.43KB
plugin-dashboard (index.js) 132.89KB 34.68KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 250.59KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.44KB 41.05KB
plugin-grid (index.js) 210.75KB 56.95KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.55KB 6.80KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.57KB 11.96KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.38KB 3.22KB
plugin-view (index.js) 85.24KB 20.94KB
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) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
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) 10.35KB 3.60KB
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.74KB 1.41KB
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 (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.58KB 2.23KB
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 (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

…e and pin it

The skip set previously read primaryField, nameField and displayNameField
separately and skipped EVERY declared one; it now skips the single field the
shared ADR-0079 ladder resolves. The docstring called that "subsumes the
three separate reads", which was false: the ladder PICKS one rung where the
old set added every one, so the two disagree on an object declaring nameField
and the deprecated displayNameField alias to DIFFERENT fields.

Skipping only the winner is intended. getRecordDisplayName reads the same
declaredNameField ladder and renders the WINNER value, so the losing alias is
an ordinary field the H1 never shows — hiding it removed a field and spent a
strip slot for nothing. It also makes the heuristic branch agree with the
DECLARED branch, which has only ever filtered a single title field; the
"#2548 follow-up" note claiming both branches agree was until now true only
for objects declaring one alias.

That input was the one case the suite did not cover. It is now pinned, and
the changeset names the behaviour change.

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

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3182.6 KB 3191.4 KB
Main entry chunk (gzip) 143.2 KB 350 KB
Entry file index-D7npQhuE.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) 15.67KB 5.75KB
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) 5.13KB 2.35KB
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) 516.21KB 117.82KB
core (index.js) 6.12KB 2.42KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 180.00KB 50.20KB
fields (index.js) 242.40KB 61.26KB
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) 4.28KB 1.75KB
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.98KB 10.98KB
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.55KB 0.62KB
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 (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
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) 5.12KB 1.74KB
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) 15.75KB 3.80KB
plugin-calendar (index.js) 48.09KB 13.34KB
plugin-charts (index.js) 70.92KB 19.75KB
plugin-chatbot (index.js) 196.19KB 46.43KB
plugin-dashboard (index.js) 132.89KB 34.68KB
plugin-designer (index.js) 212.87KB 43.19KB
plugin-detail (index.js) 250.59KB 64.06KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 132.87KB 32.66KB
plugin-gantt (index.js) 167.44KB 41.05KB
plugin-grid (index.js) 210.75KB 56.95KB
plugin-kanban (index.js) 52.71KB 14.55KB
plugin-list (index.js) 113.28KB 27.59KB
plugin-map (index.js) 20.55KB 6.80KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.57KB 11.96KB
plugin-timeline (index.js) 30.84KB 8.85KB
plugin-tree (index.js) 9.38KB 3.22KB
plugin-view (index.js) 85.24KB 20.94KB
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) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
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) 10.35KB 3.60KB
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.74KB 1.41KB
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 (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.58KB 2.23KB
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 (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

@os-project-manager
os-project-manager marked this pull request as ready for review September 4, 2026 03:21
@os-project-manager
os-project-manager added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit b61d7d8 Sep 4, 2026
33 checks passed
@os-project-manager
os-project-manager deleted the claude/issue-7287-resolve-title-field branch September 4, 2026 03:54
os-justin pushed a commit that referenced this pull request Sep 6, 2026
…s off an object def

`primaryField` is a `DetailViewSchema` key (`@object-ui/types` `views.ts`) — a
VIEW key `DetailView.resolveDisplayTitle` reads off `schema` and is welcome to.
Two consumers also read it off an OBJECT def, where nothing can declare it:
`@objectstack/spec`'s object schema is a `strictObject` answering
`unrecognized_keys: ['primaryField']` and `ObjectSchema.create()` throws.
Measured on the shipped `@objectstack/spec@17.2.0` dist: `primaryField` in 0
files, canonical `nameField` in 68. objectstack#6326 removed the identical read
from two lint rules; objectui#7287 / PR #7585 removed it from
`resolveTitleField`. These two survived it, while three of this repo's own
changelogs already called the probe "not a spec property — always undefined".

Two different repairs, not one patch twice.

`@object-ui/components` — `PageHeaderRenderer`'s record-chip chain ranked it
directly under `schema.title` and ABOVE the unified ADR-0079 resolver, on the
surface that renders the ACTUAL H1 of a synthesized record page. The rung is
gone, so the heading comes from `titleFormat` -> the ADR-0079 resolver ->
the record-key walk, the precedence `DetailView`'s own header already uses.

`@object-ui/plugin-detail` — `record:details`' ladder decides WHICH ROW the
body grid hides so the H1's field is not repeated under it. That is a
different question from "what is the title", and `primaryField` was its first
candidate. The rung is gone and the docstring, which described the header chip
as resolving "from objectSchema.primaryField" and went stale when PR #7585
landed, now describes the chip as it is.

User-visible on purpose: a payload carrying the off-spec key anyway gets a
different H1 and a different surviving grid row. Nothing spec-legal reaches
either path. `DetailViewSchema.primaryField` and the deliberate
`ObjectDefLike.primaryField` declaration in `buildDefaultPageSchema` are
untouched.

Two fixtures spelled the key on an object def and now spell the canonical
`nameField`; neither suite ever read its effect.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 9, 2026
…s off an object def (objectstack-ai#8179)

`primaryField` is a `DetailViewSchema` key (`@object-ui/types` `views.ts`) — a
VIEW key `DetailView.resolveDisplayTitle` reads off `schema` and is welcome to.
Two consumers also read it off an OBJECT def, where nothing can declare it:
`@objectstack/spec`'s object schema is a `strictObject` answering
`unrecognized_keys: ['primaryField']` and `ObjectSchema.create()` throws.
Measured on the shipped `@objectstack/spec@17.2.0` dist: `primaryField` in 0
files, canonical `nameField` in 68. objectstack#6326 removed the identical read
from two lint rules; objectui#7287 / PR objectstack-ai#7585 removed it from
`resolveTitleField`. These two survived it, while three of this repo's own
changelogs already called the probe "not a spec property — always undefined".

Two different repairs, not one patch twice.

`@object-ui/components` — `PageHeaderRenderer`'s record-chip chain ranked it
directly under `schema.title` and ABOVE the unified ADR-0079 resolver, on the
surface that renders the ACTUAL H1 of a synthesized record page. The rung is
gone, so the heading comes from `titleFormat` -> the ADR-0079 resolver ->
the record-key walk, the precedence `DetailView`'s own header already uses.

`@object-ui/plugin-detail` — `record:details`' ladder decides WHICH ROW the
body grid hides so the H1's field is not repeated under it. That is a
different question from "what is the title", and `primaryField` was its first
candidate. The rung is gone and the docstring, which described the header chip
as resolving "from objectSchema.primaryField" and went stale when PR objectstack-ai#7585
landed, now describes the chip as it is.

User-visible on purpose: a payload carrying the off-spec key anyway gets a
different H1 and a different surviving grid row. Nothing spec-legal reaches
either path. `DetailViewSchema.primaryField` and the deliberate
`ObjectDefLike.primaryField` declaration in `buildDefaultPageSchema` are
untouched.

Two fixtures spelled the key on an object def and now spell the canonical
`nameField`; neither suite ever read its effect.


Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

finding(plugin-detail): resolveTitleField reads primaryField — a DetailView key — off an OBJECT def, and runs a second, divergent name-field ladder

2 participants