-
Notifications
You must be signed in to change notification settings - Fork 64
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: rating summary #2682
base: feat/reviews-and-ratings
Are you sure you want to change the base?
feat: rating summary #2682
Conversation
c94885e
to
5507fd7
Compare
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. |
5507fd7
to
8b569e0
Compare
d57303d
to
2203c7f
Compare
There was a problem hiding this comment.
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 :)
packages/components/src/molecules/ProgressStatus/ProgressStatus.tsx
Outdated
Show resolved
Hide resolved
packages/components/src/organisms/RatingSummary/RatingSummary.tsx
Outdated
Show resolved
Hide resolved
cc15cdd
to
33db057
Compare
8b569e0
to
a846caf
Compare
/** | ||
* Optional test ID for testing. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to keep the pattern
/** | |
* Optional test ID for testing. | |
*/ | |
/** | |
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest). | |
*/ |
export const RatingDistribution = forwardRef< | ||
HTMLOListElement, | ||
RatingDistributionProps | ||
>(function ProgressStatus( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be RatingDistribution
?
>(function ProgressStatus( | |
>(function RatingDistribution( |
What's the purpose of this pull request?
To add the Rating Summary component
How it works?
The component is responsible for:
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