Skip to content

finding(plugin-dashboard): isLookupType is exported from recordFields.tsx with no production consumer — the live $expand decision is computeLookupExpand's #5876

Description

@claude

Measured while implementing #5692, which converged this predicate onto @object-ui/core's EXPANDABLE_FIELD_TYPES. Recording it because the convergence made the absence visible: the behaviour half of that change lands entirely in computeLookupExpand, and this face turned out to have no caller to change.

Measured

isLookupType is exported from packages/plugin-dashboard/src/recordFields.tsx and has no production consumer:

Its docblock describes it as driving $expand ("used to drive $expand"), but the widget's actual $expand whitelist is computeLookupExpand in ObjectDataTable.tsx, which is a separate implementation of the same question — the two copies #5692 converged.

Why record it rather than delete it in passing

Deletion is a behaviour-neutral change only if the "no consumer" reading is right, and this is exactly the kind of exported-but-unused helper that turns out to be a package's de-facto extension point. It is also, plausibly, the residue of a consolidation that moved the live decision into computeLookupExpand and left the predicate behind — in which case the right move might be the opposite one (have computeLookupExpand call it, so the package has one relation predicate rather than two functions that agree only because #5692 pointed both at the same set).

Either way it is a call about this package's shape, not part of #5692's ruled scope.

Options

B looks better on the "hard to get wrong" axis, but it is a behaviour-affecting refactor of a live path and wants its own evidence.

Related: #5692, #4914.


Generated by Claude Code

Metadata

Metadata

Assignees

Labels

domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpm:dispatched

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions