This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(plugin-detail): record:details' dedupe shares the header's emptiness definition - #8375
Merged
Merged
Conversation
…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
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
os-justin
marked this pull request as ready for review
September 7, 2026 15:12
os-justin
enabled auto-merge
September 7, 2026 15:12
This was referenced Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8350
record:detailsdrops from the body grid the one field whose value the page H1is already showing. objectui#8175 (PR #8349) made the two halves agree on which
field. They still disagreed on what counts as a value.
The defect
The header half decides emptiness through
@object-ui/core'svalueAt, whichtrims — a whitespace-only value is empty, so
getRecordDisplayNamewalks onto 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, on an object declaring
nameField: 'contract_no'withcontract_no = ' 'andname = 'Acme Corporation':Acme Corporation(walked past the blank pointer)contract_norownamerowA field disappeared from the grid to deduplicate against a heading that never
displayed it. Silent: nothing errors, a row is simply absent.
The change
The ladder now calls that function instead of re-spelling the test.
@object-ui/coreexports it asrecordDisplayValueAt— it was themodule-private
valueAt, behaviour unchanged, renamed only to be a defensiblepublic name. One authority, not two implementations that agree today.
two other things it decides, and both bring the grid into line with the heading:
an expanded/embedded reference object is empty when its display chain yields
nothing (a bare
{ id: 'u1' }lookup payload is not a title), and non-stringsare stringified so
0andfalsestay values. A bolted-on.trim()would haveclosed the whitespace half only — and would be the second implementation whose
drift is the shape of this very defect, one level down. In every case the new
answer is the one the H1 was already giving.
The pin
packages/plugin-detail/src/renderers/__tests__/record-details.dedupeEmptinessTrims-8350.test.tsx— 8 cases asserting the dedupe outcome (which row renders, which drops),
never the title. All three tiers of the ladder are exercised, because the
emptiness test is asked once per candidate and a fix reaching only the first rung
would leave the other two wrong:
contract_no = ' ';contract_no = ' ',activity_name= an escaped tab/newline/space), so the walk must reachlabel;name = ' ',the duplicate at
title.Each tier is split into two
it()s (the duplicate that must drop / the ordinaryrow that must survive) so a failure in one cannot short-circuit the other; each
case carries a control asserting a surviving row by value; all entries are
bare strings so
columnIdentity's canonical-first keying andDetailSection'sfield.namerendering coincide by construction (objectui#8269's trap). ANON-REGRESSIONcase pins that a real value still hides its row — without it,an emptiness test answering EMPTY for everything (i.e. deleting the dedupe)
would pass every other case in the file.
Ablation — two legs, because the pin sits on a conjunction
Both from the committed implementation; each mutation proven on disk by
git hash-objectdiffering fromgit rev-parse HEAD:PATH, each restored bystate (
git diff HEADempty and the hash equal again),trap … EXIT INT TERMwith absolute paths.
(
9d12fbf8…→9ec9e139…): the 6 whitespace rows go red by name, at allthree tiers.
@object-ui/core(
1bb8bed1…→167304de…): the same 6 rows, plusCROSS-CHECK.The red sets intersect on the 6 dedupe rows. Leg B's extra red is the header
half —
CROSS-CHECKasserts whatgetRecordDisplayNameitself answers, whichLeg A does not touch.
NON-REGRESSIONis green in both legs, and the wholeobjectui#8175 suite (7 cases) is green in both — that pin cannot see this defect,
which is why a new one was needed.
Verification
Repo root, explicit positional paths,
--no-passWithNoTests, at422b2484b:pnpm exec vitest run packages/plugin-detail/src/renderers/__tests__/ packages/core/src/utils→ 84 files / 1363 tests passedpnpm exec vitest run packages/plugin-detail/→ 136 files / 1224 tests passedpnpm exec vitest run packages/core/ packages/components/src/__tests__/page-header-title.test.tsx→ 123 files / 2582 tests passedgetRecordDisplayNameconsumers —InterfaceListPage.mapConfig,ObjectView.titleFieldConvergence,components/src/renderers/layout/__tests__→ 3 files / 25 tests passed
pnpm --filter '@object-ui/plugin-detail^...' build→ exit 0, thentype-checkon@object-ui/coreand@object-ui/plugin-detail→ both exit 0.Reverse-verified that the type instrument reads the rebuilt
.d.ts: animported symbol that does not exist produced
TS2305naming"@object-ui/core", and restoring returned it to exit 0.eslint .in both packages → 0 errors (901 / 517 pre-existing warnings).node scripts/check-changeset-presence.mjs→ exit 0.node scripts/check-governed-queue-guard.mjs --teston all five changed paths→
NOT GOVERNED; control onAGENTS.mdfires.Narrowing declared.
turbo ls --affectednames ~30 packages, because@object-ui/coreis a root dependency of the workspace. Onlyplugin-detailchanges behaviour: the core edit is a rename of a module-private function
plus an
export, andgit grep '\bvalueAt\b'across the repo found no importer— only the six call sites inside
record-title.ts, two prose mentions in theobjectui#8175 pin (updated here), and the unrelated
valueAtPathinapp-shell'sclientValidation.ts.getRecordDisplayName's own answers arebyte-identical. The rest of the affected set is CI's.
Changeset
minoron@object-ui/plugin-detailand@object-ui/core, matching PR#8349's
minorfor the previous change to this same ladder. Same class ofchange: a different row can now be hidden.
@object-ui/coreis declared toobecause it gains a public export; both sit in the 40-package
fixedgroup, sothe bump propagates either way — declaring both states which packages actually
moved. Not
major: the repo forbids it. Not empty-frontmatter: this changesbehaviour on a released package, which is precisely the case that spelling is
not for.
Authored by the
domain:uidev seat, sessionsession_01YBWFb5YgMU5dw8p2VKj16S(recorded in prose because a footer link is not durable through this platform's
body rewrites).
🤖 Generated with Claude Code
https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
Generated by Claude Code