Skip to content

Conversation

@gradinarufelix
Copy link

@gradinarufelix gradinarufelix commented Jan 19, 2026

Add support for accessing properties of referenced nodes in preview.text and preview.image expressions. Previously, reference type properties only exposed the node identifier (UUID). Now they expose a resolved object with the node's properties, label, and metadata.

Changes:

  • Add ReferenceResolverSource.php DataSource for resolving node references
  • Add resolvedReferences state in index.jsx (isolated from currentValue)
  • Modify getPreview() to create temporary enriched item for preview only

Usage:
preview: text: 'ItemEval: item.person?.properties?.firstName'

The changes are strictly scoped to preview functionality:

  • currentValue is never modified
  • Editors continue receiving original node identifier strings
  • Data commits send original node identifiers

Extends #41

Add support for accessing properties of referenced nodes in preview.text
and preview.image expressions. Previously, reference type properties only
exposed the node identifier (UUID). Now they expose a resolved object with
the node's properties, label, and metadata.

Changes:
- Add ReferenceResolverSource.php DataSource for resolving node references
- Add resolvedReferences state in index.jsx (isolated from currentValue)
- Modify getPreview() to create temporary enriched item for preview only

Usage:
  preview:
    text: 'ItemEval: item.person?.properties?.firstName'

The changes are strictly scoped to preview functionality:
- currentValue is never modified
- Editors continue receiving original node identifier strings
- Data commits send original node identifiers
@mireo91 mireo91 requested a review from jonnitto January 19, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant