Skip to content

Add entityResolve conf option and language snippet parameter - #1

Merged
stromcom merged 2 commits into
masterfrom
feature/entity-resolve-and-language
Aug 7, 2026
Merged

Add entityResolve conf option and language snippet parameter#1
stromcom merged 2 commits into
masterfrom
feature/entity-resolve-and-language

Conversation

@stromcom

Copy link
Copy Markdown
Owner

Summary

  • ConfOptions::$entityResolve — new callback option (JS-wrapped like onNotification) resolving business-entity detail for the message editor's Tiptap chip hover-card, mirroring dataLayer.conf.entityResolve in the main app.
  • SnippetClient::snippet(?string $language = null) — optional UI-language override, emitted as j.dataset.lang, mirroring the widget's new data-lang support.
  • Prepares CHANGELOG.md for a 0.4.0 tag.

Test plan

  • composer test — 101 tests, 160 assertions, all green
  • composer ca (phpstan level max + cs:check) — no errors

Mirrors two new capabilities in the main app: the Tiptap message editor's
entity chip hover-card (dataLayer.conf.entityResolve) and the widget's
UI-language override (data-lang), so the generated snippet stays in sync.
Both tags were cut without a matching CHANGELOG entry (two SnippetOptions
default-value bugfixes). Add them retroactively so 0.4.0 doesn't sit
directly above 0.3.1 with an undocumented gap in between.
@stromcom
stromcom force-pushed the feature/entity-resolve-and-language branch from 6f1e433 to 91571ed Compare August 7, 2026 11:54
@stromcom
stromcom merged commit 8c88afa into master Aug 7, 2026
2 checks passed
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