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/product comparison api #2627

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

HiagoMoreiraCubos
Copy link
Collaborator

@HiagoMoreiraCubos HiagoMoreiraCubos commented Jan 24, 2025

What's the purpose of this pull request?

This PR creates a new form of request for product search without affecting existing searches. Thus creating the useProductsSelected hook.

How it works?

When using useProductSelected it is necessary to pass an array of pre-selected product IDs, obtaining the return of all selected product data. The hook works because a new products attribute was created within query.ts. In addition to having added 3 more properties to aid in the development of the ProductComparison component (hasSpecifications, skuSpecifications, specificationGroups).

@HiagoMoreiraCubos HiagoMoreiraCubos added enhancement New feature or request contributing Pull request submitted by the community labels Jan 24, 2025
@HiagoMoreiraCubos HiagoMoreiraCubos requested a review from a team as a code owner January 24, 2025 19:55
@HiagoMoreiraCubos HiagoMoreiraCubos requested review from hellofanny and emersonlaurentino and removed request for a team January 24, 2025 19:55
Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview Jan 24, 2025 8:00pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributing Pull request submitted by the community enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants