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(components): add star rating #425

Merged
merged 1 commit into from
Jul 27, 2019
Merged

Conversation

livkndt
Copy link

@livkndt livkndt commented Jul 19, 2019

What is accomplished by your PR?

Create new star rating component as suggested in: #192

WIP!
Need to add full test coverage & look at greater flexibility/customisability for the component

Is there something controversial in your PR?

please take a moment to tell us about your choices...

Link to the Issue

or a link to a ticket system...

Checklist

New Feature / Bug Fix

  • Run unit tests to ensure all existing tests are still passing
  • Add new passing unit tests to cover the code introduced by your PR
  • Change documentation for the code introduced by your PR
  • Add Story / Design System Page for a new component introduced by your PR

@livkndt livkndt self-assigned this Jul 19, 2019
Copy link
Member

@devCrossNet devCrossNet left a comment

Choose a reason for hiding this comment

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

Looks good already 👍

Can you rename the PR to: feat(components): add star rating

@livkndt livkndt changed the title feat(VueStarRating): add new star rating component feat(components): add star rating Jul 22, 2019
@livkndt
Copy link
Author

livkndt commented Jul 23, 2019

@devCrossNet in the example provided in the issue, there are a fair few variations on the component (#192) like half stars, all the way to 'glowing' stars.

Do you have a view on which of these are useful to include? Otherwise could merge this as a v1 & improve later :)

Also, was thinking some feedback on star click would be nice to be clear you clicked on a star.

@livkndt livkndt marked this pull request as ready for review July 23, 2019 18:14
@devCrossNet
Copy link
Member

I think half stars would be good for displaying, not necessarily for selection.

Simple use-case one user gives 5 stars, another one gives 3 - display would be 4,5 stars.

I like the idea of the visual feedback on click, maybe @einfalles has some ideas for this component, too?

@devCrossNet devCrossNet changed the base branch from master to next July 27, 2019 16:31
@devCrossNet devCrossNet force-pushed the feat/vue-star-rating-component branch from 45b6512 to 657c6f0 Compare July 27, 2019 16:34
Copy link
Member

@devCrossNet devCrossNet left a comment

Choose a reason for hiding this comment

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

👍

@devCrossNet devCrossNet force-pushed the feat/vue-star-rating-component branch from 657c6f0 to a00b537 Compare July 27, 2019 16:36
@devCrossNet devCrossNet merged commit 681b23e into next Jul 27, 2019
@devCrossNet devCrossNet deleted the feat/vue-star-rating-component branch July 27, 2019 16:50
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.

None yet

2 participants