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

refactor(headless, headless-react): no more generic engine in ssr-commerce types #4657

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

alexprudhomme
Copy link
Contributor

@alexprudhomme alexprudhomme commented Nov 8, 2024

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

The original ssr solution was made to receive multiple engine. For the commerce use case, we had to duplicate a lot of the code since it was not prepared to receive a solutionType. In that duplication, we copied over the abstraction over the engine. It is not needed in ssr-commerce since every ssr-commerce implementation will always use the same engine which is SSRCommerceEngine.

@alexprudhomme alexprudhomme changed the base branch from KIT-3715 to KIT-3719 November 8, 2024 13:55
Copy link

github-actions bot commented Nov 8, 2024

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 236.8 236.8 0
commerce 341.5 341.5 0
search 412.8 412.8 0
insight 402.1 402.1 0
recommendation 249.1 249.1 0
ssr 406.3 406.3 0
ssr-commerce 353.7 353.7 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

@alexprudhomme alexprudhomme marked this pull request as ready for review November 11, 2024 20:40
@alexprudhomme alexprudhomme requested review from a team as code owners November 11, 2024 20:40
Base automatically changed from KIT-3719 to master November 11, 2024 21:51
Copy link
Contributor

@y-lakhdar y-lakhdar left a comment

Choose a reason for hiding this comment

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

Nice

Copy link
Collaborator

@louis-bompart louis-bompart left a comment

Choose a reason for hiding this comment

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

Nice simplification 👍

@@ -38,6 +38,9 @@ export default function ProductList() {
<button onClick={() => addToCart(cartMethods!, product)}>
Add to cart
</button>
<button onClick={() => addToCart(cartMethods!, product)}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are there three add to cart buttons?

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.

4 participants