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: create ProgressBar component #2637

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

artursantiago
Copy link
Collaborator

@artursantiago artursantiago commented Jan 28, 2025

What's the purpose of this pull request?

This pull request adds the ProgressBar component. Initially, this component will be used in the Reviews & Ratings section of the product page to display the percentage of each star rating from the reviews.

How it works?

This PR introduces the ProgressBar molecule component. It accepts value, min, and max as props, with default values set to 0 for value, 0 for min, and 100 for max.

To ensure the interface remains stable, the component includes a safeguard mechanism: if there is any inconsistency in the props (e.g., min being greater than max), a safeMax value is calculated to prevent the interface from breaking.

How to test it?

Starters Deploy Preview

Preview

References

JIRA TASK: SFS-2066

Figma

image

@artursantiago artursantiago added the enhancement New feature or request label Jan 28, 2025
@artursantiago artursantiago self-assigned this Jan 28, 2025
Copy link

vercel bot commented Jan 28, 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 28, 2025 0:59am

Copy link

codesandbox-ci bot commented Jan 28, 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.

@artursantiago artursantiago marked this pull request as ready for review January 30, 2025 17:43
@artursantiago artursantiago requested a review from a team as a code owner January 30, 2025 17:43
@artursantiago artursantiago requested review from eduardoformiga and lucasfp13 and removed request for a team January 30, 2025 17:43
@matheusps
Copy link
Contributor

Can you add the preview on storybook?

@artursantiago
Copy link
Collaborator Author

Can you add the preview on storybook?

@matheusps

I just fixed the preview link. You can test it now

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