vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
191 stars 61 forks source link

feat: search product item control #2542

Closed ramondorosario-ct closed 2 weeks ago

ramondorosario-ct commented 2 weeks ago

What's the purpose of this pull request?

This PR is about the creation of a new component for SearchProduct: SearchProductItemControl. Its goal is to display the QuantitySelector and IconButton, while also fitting into the existing structure of SearchProductItem.

The SearchProductItemControl will be part of the implementation of the new "Quick Order" feature, which aims to allow users to place orders quickly and efficiently.

How it works?

The SearchProductItemControl will be used within the SearchProductItemContent. A validation will check whether the QuickOrder feature is enabled or not. If enabled, the SearchProductItemControl will be rendered, maintaining the previous structure with the addition of the controls: QuantitySelector, CartButton, and/or SKUMatrix.

The SearchProductItemControl will receive several props. Among them is skuMatrixControl, which will be responsible for rendering the SKUMatrix.

Printscreens

image

image

ps: the "Select multiple" button is just a regular button used for visualization purposes. Once the SKUMatrix is passed, the SKUMatrix trigger will be displayed.

vercel[bot] commented 2 weeks ago

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

Name Status Preview Comments Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 3:46pm
codesandbox-ci[bot] commented 2 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.