Skip to content

feat: add framework for linked entity mapping#1206

Merged
jwartofsky-yext merged 215 commits into
mainfrom
linkedEntityFramework
May 8, 2026
Merged

feat: add framework for linked entity mapping#1206
jwartofsky-yext merged 215 commits into
mainfrom
linkedEntityFramework

Conversation

@jwartofsky-yext
Copy link
Copy Markdown
Contributor

@jwartofsky-yext jwartofsky-yext commented May 5, 2026

  1. Adds a framework for linked entities

This PR does not modify the existing components like Events, FAQs, Testimonials, etc

These functions can be used in new components or generated components

Includes example in the README

  1. Swaps from using LINKED_ENTITY_SCHEMAS to ENTITY_FIELDS

  2. Separates the entity field picker into two sections for linked fields and entity fields.

Screenshot 2026-05-05 at 7 08 15 PM

https://dev.yext.com/s/1000168938/yextsites/67162/branches/6818/editor#pageSetId=linkedentityframework&local[…]ase2&entityId=9125102&xYextDebug=true

jwartofsky-yext and others added 30 commits April 29, 2026 12:36
Adds suppor for the Events component to use Linked entities.

This allows a user to set a Linked Entity as the field and
introduces a new category of "Card" props to map fields
from the linked entities onto the cards.
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Comment thread packages/visual-editor/src/utils/resolveYextEntityField.ts
Comment thread packages/visual-editor/src/fields/entityFieldConstantConfig.ts Outdated
Comment thread packages/visual-editor/src/fields/entityFieldConstantConfig.ts
benlife5
benlife5 previously approved these changes May 7, 2026
Copy link
Copy Markdown
Contributor

@benlife5 benlife5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two behavior questions:

  1. Should the linked entity fields display below the normal entity fields in the dropdown?
  2. Do we still expect to see linked entity fields in the RTF drawer or was that pushed to the next PR?

@jwartofsky-yext
Copy link
Copy Markdown
Contributor Author

supportsLocalizedConstantValue

  1. I'll ask
  2. That will be pushed to the next PR. They work but the picker for RTF doesn't show them. The picker for string embedded fields does though.

asanehisa
asanehisa previously approved these changes May 8, 2026
benlife5
benlife5 previously approved these changes May 8, 2026
@yext-bot yext-bot dismissed stale reviews from benlife5 and asanehisa via 2a4f86e May 8, 2026 17:18
@jwartofsky-yext jwartofsky-yext merged commit a736d11 into main May 8, 2026
53 of 75 checks passed
@jwartofsky-yext jwartofsky-yext deleted the linkedEntityFramework branch May 8, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-dev-release Triggers dev release workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants