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

feat(headless ssr): refresh recommendations server-side #4617

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

y-lakhdar
Copy link
Contributor

@y-lakhdar y-lakhdar commented Oct 31, 2024

Adding server-side rendering on both commerce and non commerce ssr packages.

Warning:
This introduces a breaking change on how we pass the search action during the hydratation

TODO:

  • Add tests
  • Only apply the logic to ssr-commerce since this is a breaking change
  • Need to export a new namespace recommendationDefinitions. this will be the only definition where the recommendations will be refreshed.

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

Copy link

github-actions bot commented Oct 31, 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 356.1 0.7

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

return {
search: true,
listing: true,
standalone: true,
_recommendationProps: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need this flag so when we manipulate controller definition, we know which one is a recommendation definition.

@y-lakhdar y-lakhdar changed the title feat(headless ssr): refresh recommendations server-side feat(headless ssr)!: refresh recommendations server-side Nov 6, 2024
@y-lakhdar y-lakhdar changed the title feat(headless ssr)!: refresh recommendations server-side feat(headless ssr): refresh recommendations server-side Nov 6, 2024
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