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: Import Tiles & Tile components from @faststore/ui #185

Merged
merged 5 commits into from
Aug 4, 2022

Conversation

filipewl
Copy link
Contributor

@filipewl filipewl commented Jul 29, 2022

What's the purpose of this pull request?

Extract the Tiles and Tile component from the starters and move it to the @faststore/ui package.

How to test it?

The Tiles and Tile components are used in the "Just Arrived" section on the Home page. There should be no visual difference between before and after these changes.

Before After
CleanShot 2022-07-29 at 15 41 38 CleanShot 2022-07-29 at 15 41 49

References

@filipewl filipewl added the Chore General tasks. label Jul 29, 2022
@filipewl filipewl self-assigned this Jul 29, 2022
@vercel
Copy link

vercel bot commented Jul 29, 2022

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

Name Status Preview Updated
nextjs-store-storybook ✅ Ready (Inspect) Visit Preview Aug 4, 2022 at 5:12PM (UTC)

@vtex-sites
Copy link

vtex-sites bot commented Jul 29, 2022

Preview is ready

This pull request generated a Preview

👀   Preview: https://preview-185--nextjs.preview.vtex.app
🔬   Go deeper by inspecting the Build Logs
📝   based on commit fa8b4f1
⚠️   User login might not work on this preview.

@vtex-sites
Copy link

vtex-sites bot commented Jul 29, 2022

Lighthouse Reports

Here are the Lighthouse reports of this Pull Request

📝 Based on commit fa8b4f1

Lighthouse Report by page
📎   /
📎   /apple-magic-mouse/p
📎   /office

package.json Outdated
@@ -33,7 +33,7 @@
"@faststore/api": "^1.10.19",
"@faststore/graphql-utils": "^1.10.6",
"@faststore/sdk": "^1.10.6",
"@faststore/ui": "^1.10.7",
"@faststore/ui": "https://pkg.csb.dev/vtex/faststore/commit/94943c32/@faststore/ui",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🎗️Reminder to update this before the merge.

@filipewl filipewl marked this pull request as ready for review July 29, 2022 18:45
@filipewl filipewl requested review from a team, ArthurTriis1 and eduardoformiga July 29, 2022 18:46
filipewl added a commit to vtex/faststore that referenced this pull request Aug 1, 2022
## What's the purpose of this pull request?

Extract the `Tiles` and `Tile` component from the [starters](https://github.com/vtex-sites/nextjs.store/tree/81b2cbcae8157703130ab18356178cb15c8bcf12/src/components/ui/Tiles) and move it to the `@faststore/ui` package.

## How to test it?

Run `yarn storybook` locally and check the [`Tiles` component page](http://localhost:6006/?path=/docs/organisms-tiles--tiles).

Its Storybook page:
![CleanShot 2022-07-29 at 15 26 25](https://user-images.githubusercontent.com/381395/181822535-577ec95e-0076-4191-ab20-d4a64386e9d4.png)

The same component being used on the starter:
![CleanShot 2022-07-29 at 15 41 38](https://user-images.githubusercontent.com/381395/181824154-5f0a8e64-7520-470a-b26a-452c0f837149.png)

### Starters Deploy Preview

- vtex-sites/nextjs.store#185 and the [deploy preview](https://preview-185--nextjs.preview.vtex.app/)
Copy link
Contributor

@hellofanny hellofanny left a comment

Choose a reason for hiding this comment

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

Niceeee! Approving cause it's looking the same as before 👍

@vercel vercel bot temporarily deployed to Preview August 2, 2022 09:06 Inactive
@vercel vercel bot temporarily deployed to Preview August 4, 2022 17:12 Inactive
@filipewl filipewl changed the title refactor: Import the Tiles & Tile components from @faststore/ui refactor: Import Tiles & Tile components from @faststore/ui Aug 4, 2022
@filipewl filipewl merged commit 491ed3d into main Aug 4, 2022
@filipewl filipewl deleted the chore/fs-360-tiles-from-starter branch August 4, 2022 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chore General tasks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants