Skip to content

Conversation

@Tooni
Copy link
Contributor

@Tooni Tooni commented Dec 12, 2025

COMHUB2-1314

This is a follow-up to #6646, which made it so that Spotlight Content can be returned in the lists of results for listings, alongside products. Spotlight Content is arbitrary extra info that merchandisers want to set up and show.

Now, we need to emit events when the Spotlight Content is clicked. The design of the event comes from this document. It re-uses the itemClick event. I've implemented it by copying the similar code for product click events. Let me know if it looks alright.

I've also updated the headless/commerce-react samples to show Spotlight Content and emit events for it when clicked. Here is a screenshot showing Spotlight Content amongst the products on the left, and an emitted click event on the right

Screenshot 2025-12-12 at 11 22 52

And here is a Spotlight Content click event later appearing in the event browser in the Admin Console, under Data Health

Screenshot 2025-12-12 at 11 48 05

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

🔗 Scratch Orgs ready to test this PR:

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.

2 participants