Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(headless): make CommerceEngineDefinitionOptions an optional generic type #4703

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexprudhomme
Copy link
Contributor

@alexprudhomme alexprudhomme commented Nov 22, 2024

https://coveord.atlassian.net/browse/KIT-3713

The goal of this is for the implementer to not have to interact with the ControllerDefinitionsMap & the Controller interface. These are internal and bring more complexity to the implementer than anything else. We can't simply remove that generic since it is used in headless-react for inference but we can make it optional.

turns out this easier than I thought 😅. I did not think of simply making it optional

@alexprudhomme alexprudhomme requested review from a team as code owners November 22, 2024 20:56
@alexprudhomme alexprudhomme changed the title fix(headless): make CommerceEngineDefinitionOptions an optional generic type fix(headless): make CommerceEngineDefinitionOptions an optional generic type Nov 22, 2024
Copy link

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 241.4 241.4 0
commerce 346 346 0
search 413 413 0
insight 403.8 403.8 0
recommendation 253.6 253.6 0
ssr 406.5 406.5 0
ssr-commerce 358.3 358.3 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

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