Skip to content

feat: rating summary - #2682

Merged
Guilera merged 1 commit into
feat/reviews-and-ratingsfrom
feat/rating-summary
Feb 27, 2025
Merged

Guilera merged 1 commit into
feat/reviews-and-ratingsfrom
feat/rating-summary

Conversation

@Guilera

@Guilera Guilera commented Feb 13, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

To add the Rating Summary component

How it works?

The component is responsible for:

  • display the current average rating of the product
  • display the number of reviews of the product
  • display the rating distribution of the product
  • to have a button to open the modal to write a review (current not integrated, it's just emit an alert. It's depends on another task)

Important

If the product has no reviews, the component should display a message saying that there are no reviews yet.
Both the text from the button and the text from number of reviews changes when there isn't any review yet.

Important

Plural and singular cases for the text label of the rating counter must be handled

Important

The component shouldn't be displayed if the product has no reviews and the user is not on desktop

Starters Deploy Preview

PREVIEW

References

FEATURE BRANCH
JIRA SFS-2166
JIRA SFS-2167
JIRA SFS-2069

@Guilera
Guilera force-pushed the feat/rating-summary branch from c94885e to 5507fd7 Compare February 13, 2025 18:38
@Guilera
Guilera changed the base branch from main to feat/reviews-and-ratings February 13, 2025 18:39
@codesandbox-ci

codesandbox-ci Bot commented Feb 13, 2025 •

Copy link
Copy Markdown

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.

@renatamottam renatamottam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey, Gutche! Left a few comments below :)

@Guilera
Guilera force-pushed the feat/reviews-and-ratings branch 2 times, most recently from cc15cdd to 33db057 Compare February 19, 2025 17:34
@Guilera
Guilera force-pushed the feat/rating-summary branch from 8b569e0 to a846caf Compare February 20, 2025 16:42
@Guilera
Guilera requested a review from hellofanny February 20, 2025 16:44
@Guilera
Guilera marked this pull request as ready for review February 20, 2025 16:45
@Guilera
Guilera requested a review from a team as a code owner February 20, 2025 16:45
Comment thread packages/components/src/index.ts Resolved
@Guilera
Guilera force-pushed the feat/rating-summary branch from a846caf to 86554f9 Compare February 24, 2025 15:03
@Guilera
Guilera force-pushed the feat/rating-summary branch from 86554f9 to 7af8660 Compare February 26, 2025 18:07
@Guilera
Guilera force-pushed the feat/rating-summary branch from 7af8660 to 2d86e6e Compare February 27, 2025 14:57
@Guilera
Guilera merged commit 87d1131 into feat/reviews-and-ratings Feb 27, 2025
@Guilera
Guilera deleted the feat/rating-summary branch February 27, 2025 16:09
artursantiago pushed a commit that referenced this pull request Mar 11, 2025
## What's the purpose of this pull request?

To add the Rating Summary component

## How it works?

The component is responsible for:
- display the current average rating of the product
- display the number of reviews of the product
- display the rating distribution of the product
- to have a button to open the modal to write a review (current not
integrated, it's just emit an alert. It's depends on another task)

>[!IMPORTANT]
> If the product has no reviews, the component should display a message
saying that there are no reviews yet.
Both the text from the button and the text from number of reviews
changes when there isn't any review yet.

>[!IMPORTANT]
> Plural and singular cases for the text label of the rating counter
must be handled

> [!IMPORTANT]
> The component shouldn't be displayed if the product has no reviews and
the user is not on desktop

### Starters Deploy Preview

[PREVIEW](https://starter-git-feat-rating-summary-vtex.vercel.app/)

## References

[FEATURE BRANCH](#2676)
[JIRA SFS-2166](https://vtex-dev.atlassian.net/browse/SFS-2166)
[JIRA SFS-2167](https://vtex-dev.atlassian.net/browse/SFS-2167)
[JIRA SFS-2069](https://vtex-dev.atlassian.net/browse/SFS-2069)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants