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: Extract CartItem component from the starter #1461

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

filipewl
Copy link
Contributor

@filipewl filipewl commented Sep 12, 2022

What's the purpose of this pull request?

Extract the CartItem component from our starter to @faststore/ui.

How to test it?

Run yarn storybook and check the new CartItem entry at http://localhost:6006/?path=/story/molecules-cartitem--default.
CleanShot 2022-09-12 at 08 28 54@2x

Starters Deploy Preview

Check https://sfj-4a90f81--nextjs.preview.vtex.app/4k-philips-monitor-99988213/p from https://github.com/vtex-sites/nextjs.store/pull/239. Add a product to the min-cart and you should see the CartItem being rendered in the sidebar.

References

@vercel
Copy link

vercel bot commented Sep 12, 2022

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

Name Status Preview Updated
faststore ✅ Ready (Inspect) Visit Preview Sep 12, 2022 at 0:45AM (UTC)

@filipewl filipewl self-assigned this Sep 12, 2022
@filipewl filipewl added the enhancement New feature or request label Sep 12, 2022
@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 12, 2022

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.

Latest deployment of this branch, based on commit c5aba36:

Sandbox Source
Store UI Typescript Configuration

@filipewl filipewl force-pushed the refactor/fs-361-cart-item branch from 96e35ca to c5aba36 Compare September 12, 2022 12:43
@filipewl filipewl marked this pull request as ready for review September 12, 2022 13:12
@filipewl filipewl requested a review from a team as a code owner September 12, 2022 13:12
Copy link
Contributor

@icazevedo icazevedo left a comment

Choose a reason for hiding this comment

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

LGTM

@filipewl filipewl merged commit ff70925 into main Sep 12, 2022
@filipewl filipewl deleted the refactor/fs-361-cart-item branch September 12, 2022 23:24
filipewl referenced this pull request in vtex-sites/gatsby.store Sep 12, 2022
Extract the `CartItem` component from our starter to `@faststore/ui`.

Visit https://sfj-4a90f81--nextjs.preview.vtex.app/4k-philips-monitor-99988213/p and add a product to the cart. A `CartItem` component will be rendered inside the mini-cart sidebar. It should look and work the same as before.

<img src="https://user-images.githubusercontent.com/381395/189658104-c64012ee-dd16-4ce0-a2bc-4535e8bec5d5.gif" width="50%" alt="Before and after changes" />

- https://github.com/vtex/faststore/pull/1461\
filipewl added a commit to vtex-sites/gatsby.store that referenced this pull request Sep 13, 2022
## What's the purpose of this pull request?

Extract the `CartItem` component from our starter to `@faststore/ui`.

## How to test it?

Visit https://sfj-4a90f81--nextjs.preview.vtex.app/4k-philips-monitor-99988213/p and add a product to the cart. A `CartItem` component will be rendered inside the mini-cart sidebar. It should look and work the same as before.

<img src="https://user-images.githubusercontent.com/381395/189658104-c64012ee-dd16-4ce0-a2bc-4535e8bec5d5.gif" width="50%" alt="Before and after changes" />

## References

- vtex/faststore#1461
gvc referenced this pull request Feb 7, 2023
## What's the purpose of this pull request?

Extract the `CartItem` component from our starter to `@faststore/ui`.

## How to test it?

Visit https://sfj-4a90f81--nextjs.preview.vtex.app/4k-philips-monitor-99988213/p and add a product to the cart. A `CartItem` component will be rendered inside the mini-cart sidebar. It should look and work the same as before.

<img src="https://user-images.githubusercontent.com/381395/189658104-c64012ee-dd16-4ce0-a2bc-4535e8bec5d5.gif" width="50%" alt="Before and after changes" />

## References

- https://github.com/vtex/faststore/pull/1461\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants