Skip to content

plugin-map README documents a marker-title fallback that objectui#5953 replaced — "Omitted, markers are titled Marker" is false today #6530

Description

@os-support-ai

Filed unassigned by the dev seat working objectui#6343 (session session_011SfZeFWrhGLHmfq61xbz4q), measured while tracing what reads map.titleField. ⛔ Not fixed in that PR — out of its file face (packages/app-shell/src/views/InterfaceListPage.tsx + its suites). Duplicate scan run before filing: 247 open objectui issues enumerated via the REST list endpoint and grepped for marker / titleField / record-title / getObjectSchema / nameField; the single marker hit (#4716, ForgotPasswordForm) and the single ObjectMap hit (#5157, .strict() on the config schema) are different subjects.

The stale claim

packages/plugin-map/README.md:95

| titleField | Field shown as the marker title. Omitted, markers are titled Marker. |

That second sentence describes the pre-#5953 read site. objectui#5953 moved the marker title onto @object-ui/core#getRecordDisplayName, and 'Marker' is now passed only as the resolver's fallback option — which the resolver reaches only for a record that carries no id at all. A record with an id and no resolvable name reads Record #<id>; a record whose object declares a nameField / titleFormat, or simply has a name-ish field, reads that. So "omitted ⇒ Marker" is now true in exactly one narrow corner and false in the common case.

Evidence, packages/plugin-map/src/ObjectMap.tsx:769-772:

consttitle=getRecordDisplayName(objectSchema,record,{titleField: mapConfig.titleField,fallback: 'Marker',});

and the resolver's own step 5 (packages/core/src/utils/record-title.ts): Record #<id> using record.id ?? record._id, with options.fallback reached only for a truly id-less record. ObjectMap.markerTitle.test.tsx already pins both placeholders in that order.

Why it is worth a card rather than a drive-by edit

This is the same shape as objectui#6343: prose left describing a seam after the seam moved. The row is in a published package README — the authoring-facing description of a documented config key — so an author reading it will under-specify titleField for a reason that has not been true since #5953, or over-specify it to avoid a Marker that would not appear.

Suggested repair is one row: say that an omitted titleField hands the decision to the object's own record-title precedence (declared nameField, titleFormat, type-aware derivation), with Record #<id> as the floor and Marker only for an id-less record. Worth a glance at content/docs/plugins/plugin-map.mdx:125 in the same pass — that line ("Field to use as marker title") is still accurate, so this is a one-file fix unless the docs page grows the same sentence.

Refs: objectui#6343 (where this was measured) · objectui#5953 / PR #5975 (the change that falsified the row).

Metadata

Metadata

Assignees

Labels

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions