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: basic rating display #2653

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Conversation

Guilera
Copy link
Collaborator

@Guilera Guilera commented Jan 29, 2025

What's the purpose of this pull request?

To add rating stars to existing components:

  • <ProductCardContent/>
  • <ProductTitle/>

How it works?

If the feature flag for reviews and ratings, defined at discovery.config, it's turned on, then everywhere a <ProductCard/> is used then it will display the product star rating

How to test it?

preview

References

JIRA TASK: SFS-2063
JIRA TASK: SFS-2065

image
image
image
image

Checklist

You may erase this after checking them all 😉

PR Description

  • Displays rating at Just Arrived
  • Displays rating at Most Wanted
  • Displays rating at Deals & Promotions
  • Displays rating at Product Details
  • Displays rating at Product Gallery

@Guilera Guilera requested a review from a team as a code owner January 29, 2025 21:35
Copy link

vercel bot commented Jan 29, 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 30, 2025 3:04pm

Copy link

codesandbox-ci bot commented Jan 29, 2025

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.

@Guilera Guilera force-pushed the feat/basic-rating-display branch from f86198c to 1d12420 Compare January 30, 2025 14:59
@Guilera Guilera added the depends on Depends on another PR - Please mention the PR label Feb 3, 2025
Copy link
Contributor

@lucasfp13 lucasfp13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Guilera Guilera mentioned this pull request Feb 6, 2025
2 tasks
@Guilera Guilera force-pushed the feat/basic-rating-display branch 3 times, most recently from 160d8be to e59b001 Compare February 12, 2025 20:39
@Guilera Guilera changed the base branch from feat/reviews-and-ratings to feat/rating-resolvers February 12, 2025 20:40
Base automatically changed from feat/rating-resolvers to feat/reviews-and-ratings February 14, 2025 13:26
@Guilera Guilera force-pushed the feat/basic-rating-display branch from e59b001 to 6cc5ce0 Compare February 14, 2025 13:43
@Guilera Guilera force-pushed the feat/reviews-and-ratings branch from d57303d to 2203c7f Compare February 14, 2025 13:55
@Guilera Guilera mentioned this pull request Feb 17, 2025
@Guilera Guilera force-pushed the feat/reviews-and-ratings branch from 9c2cebb to 736e0f8 Compare February 18, 2025 19:49
@Guilera Guilera force-pushed the feat/basic-rating-display branch from 6cc5ce0 to 657ed77 Compare February 18, 2025 19:51
@Guilera Guilera force-pushed the feat/basic-rating-display branch from 657ed77 to e30894a Compare February 18, 2025 20:21
@vtex vtex deleted a comment from semgrep-code-vtex-org bot Feb 19, 2025
Copy link
Contributor

@pedromtec pedromtec left a comment

Choose a reason for hiding this comment

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

I added some comments but it's not blocking. Could u check ?

@Guilera Guilera force-pushed the feat/basic-rating-display branch from e30894a to bfffb66 Compare February 19, 2025 17:31
@Guilera Guilera merged commit cc15cdd into feat/reviews-and-ratings Feb 19, 2025
3 of 4 checks passed
@Guilera Guilera deleted the feat/basic-rating-display branch February 19, 2025 17:32
Guilera added a commit that referenced this pull request Feb 19, 2025
## What's the purpose of this pull request?

To add rating stars to existing components:
- `<ProductCardContent/>`
- `<ProductTitle/>`

## How it works?

If the feature flag for reviews and ratings, defined at
`discovery.config`, it's turned on, then everywhere a `<ProductCard/>`
is used then it will display the product star rating

## How to test it?


[preview](https://starter-git-feat-basic-rating-display-vtex.vercel.app/)

## References

[JIRA TASK: SFS-2063](https://vtex-dev.atlassian.net/browse/SFS-2063)
[JIRA TASK: SFS-2065](https://vtex-dev.atlassian.net/browse/SFS-2065)


![image](https://github.com/user-attachments/assets/379da3f2-22cb-4e86-a3ac-3cf049fb0c0e)

![image](https://github.com/user-attachments/assets/05df5d00-6a78-44b1-bf59-6b8f46ef4c4d)

![image](https://github.com/user-attachments/assets/721c3121-8382-427f-bb2a-bfb5adb091ba)

![image](https://github.com/user-attachments/assets/85875b3a-53d6-4a0a-bbd2-9e28826fb227)

## Checklist

<em>You may erase this after checking them all 😉</em>

**PR Description**

- [ ] Displays rating at `Just Arrived`
- [ ] Displays rating at `Most Wanted`
- [ ] Displays rating at `Deals & Promotions`
- [ ] Displays rating at `Product Details`
- [ ] Displays rating at `Product Gallery`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends on Depends on another PR - Please mention the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants