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

docs(headless): @coveo/headless/commerce + react sample #4218

Merged
merged 23 commits into from
Jul 25, 2024
Merged

Conversation

fbeaudoincoveo
Copy link
Contributor

@fbeaudoincoveo fbeaudoincoveo commented Jul 23, 2024

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

Looks absolutely horrible but it works 😅

demo.mp4

What's covered:

  • Search box / standalone search box with query suggestions

  • Product listing and search pages with:

    • URL manager
    • breadcrumbs
    • all types of facets
    • pagination (show more by default, with pager commented out)
    • product list with interactive products (for logging ec.productClick)
    • sort
    • query summary
  • Recommendations with:

    • pagination (show more by default, with pager commented out)
    • product list with interactive products
    • query summary
  • Cart:

    • dedicated page showing current cart state, allowing products to be added or removed, cart to be cleared, or purchase to be made, which all emit the correct ec events
    • number of products in cart shown on cart tab
    • products can be added / removed from cart in any result list (search, product listing, or recommendations)
  • PDP:

    • a page that demonstrates how to use the ProductView controller to emit ec.productView events

What's still missing:

  1. Facet search
  2. Field suggestions
  3. Recent queries
  4. Instant products
  5. Product templates (I don't really think we need this in a react sample, though)
  6. Notify triggers, and only this one for now because:
  • Query triggers are already managed by the did you mean feature (try submitting the query the query me)
  • Redirect trigers are already covered by the standalone search box (try submitting the query redirect me from a standalone search box)
  1. Pagination results per page
  2. Manual numeric facet ranges
  3. Product grouping in product list

I created Jiras for each of these (except product templates)

Copy link

github-actions bot commented Jul 23, 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 245.1 245.1 0
commerce 341.6 341.6 0
search 414 414 0
insight 392.4 392.4 0
product-listing 307.1 307.1 0
product-recommendation 211.4 211.4 0
recommendation 258.2 258.2 0
ssr 405.4 405.4 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
product-recommendation 0 10 0
product-listing 0 13 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
product-recommendation : missing SSR support
product-listing : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

@fbeaudoincoveo fbeaudoincoveo changed the title Headless commerce + React sample doc(headless): Headless commerce + React sample Jul 23, 2024
@fbeaudoincoveo fbeaudoincoveo changed the title doc(headless): Headless commerce + React sample docs(headless): Headless commerce + React sample Jul 24, 2024
@fbeaudoincoveo fbeaudoincoveo changed the title docs(headless): Headless commerce + React sample docs(headless): @coveo/headless/commerce + react sample Jul 24, 2024
Copy link
Contributor

@Spuffynism Spuffynism left a comment

Choose a reason for hiding this comment

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

Incredible work!! ⭐⭐⭐

Copy link
Contributor

@jpmarceau jpmarceau left a comment

Choose a reason for hiding this comment

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

Thanks Fred, this will be very useful 👌

@fbeaudoincoveo fbeaudoincoveo added this pull request to the merge queue Jul 25, 2024
Merged via the queue into master with commit 05dea16 Jul 25, 2024
116 checks passed
@fbeaudoincoveo fbeaudoincoveo deleted the KIT-3429 branch July 25, 2024 13:37
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