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

fix(plugin-detail): record:details dedupe asks the ADR-0079 resolver which row to hide - #8349

Merged
os-justin merged 3 commits into
mainfrom
claude/issue-8175-record-details-namefield-dedupe
Sep 7, 2026
Merged

os-justin merged 3 commits into
mainfrom
claude/issue-8175-record-details-namefield-dedupe

Conversation

@os-justin

Copy link
Copy Markdown
Collaborator

Fixes #8175

What was wrong

record:details drops from the body grid the one field whose value the page H1 is already showing, so a record page does not print Contract No: HT-2026-001 directly under an H1 reading HT-2026-001. It picked that field with a six-entry literal walk — name, full_name, title, subject, display_name, label.

That list is the tail of the chain PageHeaderRenderer uses to draw the H1 a package away. The rung above it in that chain — the unified ADR-0079 resolver — had no equivalent here, so for an object whose declared nameField names a field the literal walk does not know, both halves of the dedupe were wrong at once.

Measured on origin/main (dacb98f3b), object nameField: 'contract_no', record { id: 'C1', contract_no: 'HT-2026-001', name: 'internal-name', amount: 42 }:

MEASURE grid-renders-contract_no(H1 duplicate survives): true
MEASURE grid-drops-name(ordinary field vanished):        true
MEASURE control-row-amount-present:                      true
MEASURE H1 value the header resolves:                    HT-2026-001

The duplicate survived and an ordinary field disappeared in its place, with the control row proving the grid rendered at all.

The fix

The candidate list now leads with resolveNameField and deriveTitleField from @object-ui/core — the same ADR-0079 resolver getRecordDisplayName reads to produce the H1's value, and the one resolveTitleField in this very package already delegates to (objectui#7287 / PR #7585). The literal walk stays as the tail, byte-identical.

⚠️ Correction against the dispatch's suggested shape

The card suggested "ask resolveNameField first, then fall through to the literal walk". Measurement says that single call is not enough, and the rung is spelled as two candidates instead:

resolveNameField(contractSchema)                 -> contract_no   (declared wins, derivation never runs)
deriveTitleField(contractSchema)                 -> name
resolveNameField(declared-blank-activity-object) -> contract_no   (still short-circuits)
deriveTitleField(declared-blank-activity-object) -> activity_name (the rung the H1 actually lands on)

resolveNameField returns ONE answer and short-circuits. This ladder is value-keyed — and so is the header's: getRecordDisplayName re-tries the next rung when valueAt comes back empty on the record, so a declared pointer that is blank falls through to the type-aware derivation (step 4). A single resolveNameField() call would silently lose that rung. Pinned by the case "re-tries the derivation rung when a DECLARED pointer is blank on the record", which is red under the ablation.

⚠️ What the rows are keyed by (objectui#8269's trap, measured)

MEASURE columnIdentity(bare string "contract_no"):     contract_no
MEASURE columnIdentity({field:"a",name:"b"}) [filter]: a

DetailSection renders each row from field.name, while the dedupe filters entries through columnIdentity, which is canonical-first (field beats name/fieldName). The two answers diverge for a deliberately conflicting entry. Every fixture in the new pin uses bare strings, where the two are the same string — so the pin cannot be green because a resolver answer accidentally matched a differently-keyed column. The conflicting-entry shape is a pre-existing defect class hasConflictingColumnIdentity already names; it is not touched here.

The pin asserts the DEDUPE, never the title

packages/plugin-detail/src/renderers/__tests__/record-details.nameFieldDedupe-8175.test.tsx, shaped after record-details.primaryFieldRetired-7586.test.tsx. The H1 half is already green on origin/main and proves nothing about this defect, so every case asserts which row RENDERS and which row DROPS, and every case carries a control row proving the grid rendered at all.

The two halves are separate cases on purpose: inside one it the first failure short-circuits the second, so an ablation would redden the duplicate half and say nothing about the vanishing half.

Ablation — the read site, not the pin

Reverted the delegation (bare literal walk back), from the committed implementation, restore proven by state, trap on EXIT INT TERM with absolute paths:

HEAD_BLOB      = e6c1d21871bfa0f213d5da25465286012f31a822
AFTER(disk)    = 3cdf19d67cd0734c5dd043f39010e8a23bea100c   MUTATION REACHED DISK
anchors after  : resolveNameField(objSchema) 0 | deriveTitleField(objSchema) 0 | bare walk 1
RESTORED(disk) = e6c1d21871bfa0f213d5da25465286012f31a822   == HEAD_BLOB
git diff HEAD --stat: 0 lines

Red rows, by name — every one a DEDUPE assertion (queryByText(...).toBeNull() / getByText(...)), no title assertion involved:

× HALF 1 — DROPS the declared `nameField` row (the duplicate must not survive)
× HALF 2 — KEEPS the ordinary `name` row (no field may vanish in its place)
× honours the deprecated `displayNameField` alias the same way
× uses the type-aware derivation rung when nothing is declared
× re-tries the derivation rung when a DECLARED pointer is blank on the record
Tests  5 failed | 2 passed (7)

The 2 that stay green are the controls that must: "falls through to the literal walk when the declared pointer is EMPTY on the record" and "CONTROL: an undeclared object still dedupes via the literal walk" — they describe behaviour this change does not alter, and their staying green is what makes the five reds a measurement of the new rungs rather than of the ladder's absence.

No dist is involved: the root vitest config aliases @object-ui/core to packages/core/src, and the pin imports ../record-details by relative path.

Fixture triage — two files were written around the old ladder

Both are updated, not re-verdicted. Each declares a name field and leaves it unset on every record, so the ladder resolves its candidate to name, finds no value, and hides nothing:

  • recordDetailsBodySource.test.tsx — its docstring already said "no name/title/display_name in the data on purpose … a fixture that tripped that would make an absence assertion pass for the wrong reason". With no name-ish field declared, the derivation ends in first title-eligible field by declaration order — phone — so 555-0100 started disappearing. That was the ladder working correctly: the page H1 for that record is the phone number, because PageHeaderRenderer resolves it through the very same derivation.
  • record-details.emptySectionDefault.test.tsx — same cause on industry; every Manufacturing assertion would have been measuring the dedupe instead of the empty-section heuristic those cases exist to pin. Placeholder counts and section verdicts are unchanged.

⚠️ Reported, deliberately NOT repaired — two remaining disagreements

Neither names a FIELD, so neither has a row to hide, and closing either is a product ruling rather than a repair:

  1. page:header's own schema.title — an author-set heading this package cannot see. The ladder hides a row regardless.
  2. objectSchema.titleFormat — a render-only template the header ranks above the declared pointer (pinned in @object-ui/components' __tests__/page-header-title.test.tsx, "titleFormat still outranks nameField"), and which can interpolate any number of fields. Note this is itself a divergence between the header and getRecordDisplayName, whose documented step order puts titleFormat below the declared pointer.

A third, smaller one: the header's valueAt trims strings (so a whitespace-only value is "empty"), while this ladder's non-empty test does not. Pre-existing for all six literal entries; not changed here.

Verification

All at b0a4df615 unless noted. Every run through the container's shared heavy-verify lock; verdicts quoted from the runner's own summary.

run verdict
vitest run packages/plugin-detail/ Test Files 135 passed (135) · Tests 1216 passed (1216)
vitest run apps/console/ Test Files 89 passed (89) · Tests 1069 passed (1069)
vitest run packages/app-shell/ --shard=1/3 Test Files 216 passed (216) · Tests 2094 passed | 1 skipped (2095)
vitest run packages/app-shell/ --shard=2/3 Test Files 216 passed (216) · Tests 1921 passed (1921)
vitest run packages/app-shell/ --shard=3/3 Test Files 215 passed (215) · Tests 2219 passed (2219)
vitest run calendar+gantt+kanban+runner+schema-catalog+console-starter Test Files 153 passed (153) · Tests 2958 passed (2958)
pnpm --filter @object-ui/plugin-detail run type-check exit 0 (tsc --noEmit && tsc -p tsconfig.test.json)
eslint . in packages/plugin-detail exit 0 — 899 problems (0 errors, 899 warnings), all pre-existing no-explicit-any; the two on the new pin are the same renderBody(record: any, schema: any) shape the #7586 harness already ships
check:control-bytes OK (scanned 6628 tracked text file(s))
check:phantom-deps · check:unused-deps · check:self-import all ✅
check:unreferenced-sources · check:vi-mock-specifiers · check:vi-mock-inherit all OK
check:changeset-presence · check:changeset-no-major ✅ 4 source file(s) … declares 1 changeset(s) · ✅ No changeset declares a major bump
check:governed-queue-guard --test ✅ NOT GOVERNED — 5 path(s) checked

The package test set was chosen from TURBO_SCM_BASE=dacb98f3b turbo ls --affected (11 packages); examples/byo-backend-console and apps/site carry no test files.

Declared narrowings, left to CI: check:sdui-registration-pins returned its PREREQUISITE NOT MET exit 2 ("build the console first") — a NOT-MEASURED, not a red; this diff changes no ComponentRegistry.register call. The repo-wide pnpm lint and the remaining check:* farm are CI's run.

Notes

Session for this work: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S

Scope fence honoured: objectui#7586 removed the primaryField rung from these same lines and nothing here restores it — this is an addition to the ladder. Its pin, record-details.primaryFieldRetired-7586.test.tsx, is untouched and still green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S


Generated by Claude Code

…which row to hide

`record:details` drops from the body grid the one field whose value the page
H1 already shows, but it picked that field with a six-entry literal walk
(`name`, `full_name`, `title`, `subject`, `display_name`, `label`) — the TAIL
of the chain `PageHeaderRenderer` uses a package away, with no equivalent of
the unified ADR-0079 resolver rung above it.

For an object whose declared `nameField` names a field the literal walk does
not know, both halves of the dedupe were wrong at once: the duplicate row
survived (the value the H1 was showing) and an ordinary field disappeared
instead (`name`, the walk's first entry, a row the H1 never showed).

The ladder now leads with `resolveNameField` and `deriveTitleField` from
`@object-ui/core` — the same ADR-0079 resolver `getRecordDisplayName` reads to
produce the H1's VALUE and `resolveTitleField` already delegates to in this
package. The rung is UNROLLED into two candidates because this ladder is
value-keyed and `resolveNameField` short-circuits: a declared pointer wins
outright and the derivation never runs, so a record whose declared pointer is
blank needs the next rung, exactly as the header's own chain re-tries it.

Two fixtures were written around the old ladder and are updated, not
re-verdicted: both declare a `name` field and leave it unset, so the ladder
resolves its candidate to `name`, finds no value and hides nothing — which is
the dedupe-neutrality those files' docstrings always asked for, now stated as
a field rather than as an absence.

Card relation is declared once, in the PR body.

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

Asserting "the duplicate row drops" and "the ordinary row survives" inside one
`it` lets the first failure short-circuit the second, so an ablation of the
read site reddens only the duplicate half and says nothing about the vanishing
half — and a field disappearing in the duplicate's place is half the defect.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
Minor, not major: this repo's fixed release group tracks @objectstack's major,
so a behavioural change ships minor with the breaking semantics spelled out in
the changeset body.

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

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3472.0 KB 3512.7 KB
Main entry chunk (gzip) 143.9 KB 350 KB
Entry file index-C-DXtgGQ.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) 498.43KB 114.00KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 189.15KB 52.56KB
fields (index.js) 243.15KB 61.40KB
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) 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.16KB 3.68KB
plugin-calendar (index.js) 47.98KB 13.51KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 193.54KB 46.04KB
plugin-dashboard (index.js) 131.48KB 34.45KB
plugin-designer (index.js) 213.21KB 43.63KB
plugin-detail (index.js) 248.65KB 63.91KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 131.01KB 32.32KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 208.58KB 56.63KB
plugin-kanban (index.js) 55.38KB 15.72KB
plugin-list (index.js) 113.38KB 27.73KB
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.33KB 3.25KB
plugin-view (index.js) 84.46KB 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 (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 Author

PM contract review — accepted, flipped to ready, auto-merge armed. Verified by content against origin/main, not by sha:

resolveNameField            main=0   branch=3
deriveTitleField            main=0   branch=3      ← TWO candidates, not one
literal walk tail intact    'full_name'=1 / 'display_name'=1 on BOTH sides
new pin file                main=NO  branch=YES,  7 it(), HALF 1 and HALF 2 as separate cases
title assertions in the pin 0                      ← the card's binding instruction, honoured
changeset                   '@object-ui/plugin-detail': minor

The correction against the dispatch is the most valuable thing in this PR and it is right. The card's suggested shape — one resolveNameField call, then fall through to the literal walk — would have been wrong, and wrong silently: resolveNameField short-circuits on a declared pointer and never reaches deriveTitleField, while this ladder and the header chain are both value-keyed (getRecordDisplayName re-tries the next rung when valueAt comes back empty). Measured here: on a nameField: 'contract_no' object whose record has no contract_no, resolveNameField still answers contract_no while deriveTitleField answers activity_name — which is the rung the H1 actually lands on. A single-call delegation would have left exactly that record's grid repeating its own H1: the bug this card exists to fix, in a new shape, under a green suite.

Two further things worth recording because they are the difference between a pin and a pin that measures something:

  • The two halves are separate it()s on purpose. Inside one case the first failure short-circuits the second, so the ablation would have reddened the duplicate half and said nothing about the vanishing half. The ablation's five named reds are all dedupe assertions, and the two cases that stayed green are the two controls that must stay green.
  • The objectui#8269 alias trap was measured, not assumed. columnIdentity is canonical-first (columnIdentity({field:'a',name:'b'}) = 'a') while DetailSection renders from field.name. Every fixture uses bare-string entries, where the two coincide by construction — so the pin cannot be green because a resolver answer accidentally matched a differently-keyed column.

Ruling on the open question: A — leave both

Neither titleFormat nor page:header's own schema.title names a field, and a dedupe keyed on which single field the H1 shows is structurally unable to answer a rung that names none. Current behaviour on those objects is no worse than before this PR — the ladder was wrong on them before and is wrong differently now — so this PR is a strict improvement without it, and nothing here waits.

B (suppress the dedupe when titleFormat is present and fully interpolates) and C (close the ordering divergence at its source, so PageHeaderRenderer stops ranking the legacy template above the ADR-0079 pointer) are filed together as objectui#8351. C is squarely a maintainer ruling: it changes what the H1 shows and retires a currently-green pin.

The three reported findings

  • The emptiness asymmetry (the header's valueAt trims, this ladder's raw test does not, so a whitespace-only title value hides a row the H1 never showed) is filed as objectui#8350, p3, with the note that the fix must reuse valueAt's definition rather than write a second trim.
  • The columnIdentity vs DetailSection keying divergence is pre-existing, unchanged here, and already named as a class by hasConflictingColumnIdentity — recorded, not filed as a duplicate of its own machinery.
  • The two updated fixtures are accepted as the repair working, not as collateral. Declaring a name field and leaving it unset states the dedupe-neutrality both docstrings always asked for as a field rather than as an absence. The blast radius the report flags — objects with no declared nameField, where the type-aware derivation answers something the literal walk did not — is the intended behaviour, not a side effect: the header resolves those H1s through that same derivation, so hiding the derived row is the ladder finally agreeing with it. minor is the right bump for exactly that reason.

Generated by Claude Code

@os-justin
os-justin added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit 37149ec Sep 7, 2026
34 checks passed
@os-justin
os-justin deleted the claude/issue-8175-record-details-namefield-dedupe branch September 7, 2026 14:35
os-justin pushed a commit that referenced this pull request Sep 7, 2026
…ess definition

`record:details` drops from the body grid the one field whose value the page H1
is already showing. objectui#8175 (PR #8349) made the two halves agree on WHICH
FIELD. They still disagreed on WHAT COUNTS AS A VALUE.

The header half decides emptiness through `@object-ui/core`'s `valueAt`, which
TRIMS: a whitespace-only value is empty, so `getRecordDisplayName` walks on to
the next rung. The ladder asked its own raw `undefined` / `null` / `''`
question, which a whitespace-only value passes. So for a record whose title
field held only spaces the ladder concluded that field was what the H1 shows and
hid its row, while the H1 had already moved on — a field disappeared from the
grid to deduplicate against a heading that never displayed it.

The ladder now CALLS that function rather than re-spelling the test.
`@object-ui/core` exports it as `recordDisplayValueAt`; it was the module-private
`valueAt`, unchanged in behaviour and renamed only to be a defensible public
name. One authority, not two implementations that agree today.

Delegation is wider than a trim, deliberately: it also imports the definition's
embedded-object rung (a bare `{ id }` lookup payload is not a title) and its
stringification (`0` and `false` stay values). In every case the new answer is
the one the H1 was already giving. A bolted-on `.trim()` would have closed the
whitespace half only, and would be the second implementation whose drift is the
shape of this defect one level down.

Pinned in `__tests__/record-details.dedupeEmptinessTrims-8350.test.tsx`, which
asserts the DEDUPE outcome — which row renders, which drops — at all three tiers
of the ladder (both resolver rungs and the literal-walk tail), each half in its
own case so a failure at one cannot short-circuit the other, each with a control
row asserted by value, plus a non-regression case that a real value still hides
its row.

Card relation is declared once, in the PR body.

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
…ess definition (objectstack-ai#8375)

`record:details` drops from the body grid the one field whose value the page H1
is already showing. objectui#8175 (PR objectstack-ai#8349) made the two halves agree on WHICH
FIELD. They still disagreed on WHAT COUNTS AS A VALUE.

The header half decides emptiness through `@object-ui/core`'s `valueAt`, which
TRIMS: a whitespace-only value is empty, so `getRecordDisplayName` walks on to
the next rung. The ladder asked its own raw `undefined` / `null` / `''`
question, which a whitespace-only value passes. So for a record whose title
field held only spaces the ladder concluded that field was what the H1 shows and
hid its row, while the H1 had already moved on — a field disappeared from the
grid to deduplicate against a heading that never displayed it.

The ladder now CALLS that function rather than re-spelling the test.
`@object-ui/core` exports it as `recordDisplayValueAt`; it was the module-private
`valueAt`, unchanged in behaviour and renamed only to be a defensible public
name. One authority, not two implementations that agree today.

Delegation is wider than a trim, deliberately: it also imports the definition's
embedded-object rung (a bare `{ id }` lookup payload is not a title) and its
stringification (`0` and `false` stay values). In every case the new answer is
the one the H1 was already giving. A bolted-on `.trim()` would have closed the
whitespace half only, and would be the second implementation whose drift is the
shape of this defect one level down.

Pinned in `__tests__/record-details.dedupeEmptinessTrims-8350.test.tsx`, which
asserts the DEDUPE outcome — which row renders, which drops — at all three tiers
of the ladder (both resolver rungs and the literal-walk tail), each half in its
own case so a failure at one cannot short-circuit the other, each with a control
row asserted by value, plus a non-regression case that a real value still hides
its row.

Card relation is declared once, in the PR body.


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.

bug(plugin-detail): record:details' dedupe hides the WRONG row when the object declares a nameField the literal walk does not know

2 participants