Skip to content

Commit 0b7e817

Browse files
feat: Improvised component and added rating average (#11)
* added search keyvwords for npm * Updated storybook, split main component into more meaningful components (#9) * Updated storybook, split main jsx into more meaningful components * Added average rating section * Added more style customisation options * style corrections and more style customisation options added * Added support for string rating-ids, refactored code * updated testcases * Updated readMe and storybook * Rating rank logic adjusted * updated storybook * Added support to customize un-filled bar in the summary chart section * made summary labels take width of longest item, making it into table style * updated readMe and corrected indentation. * updating storybook template * update .gitignore * PR comment fixes - Optimize code by removing unnecessary object spread operator, updated storybook, renamed a component * PR comment fixes - renamed some props, updated readMe with more detailed information * updated code-sandbox link with the one created in keyvalue workspace * fixed issue: inner progress bar overflowing the outer container * updated email in code_of_conduct.md file * Added pull-request and style templates to the repo * update release version in package.json * fix:make description of prop ratingRanks simpler * revert version bump --------- Co-authored-by: GokulSNath <gokul.s@keyvalue.systems>
1 parent d2a961c commit 0b7e817

30 files changed

+1223
-234
lines changed

.eslintrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"no-console": "warn",
2525
"@typescript-eslint/explicit-function-return-type": "error",
2626
"react/prop-types": "warn",
27-
"indent": ["error", 2],
2827
"arrow-body-style": ["error", "as-needed"],
2928
"no-trailing-spaces": "error",
3029
"comma-dangle": "error",
@@ -40,10 +39,7 @@
4039
},
4140
"overrides": [
4241
{
43-
"files": ["*.ts", "*.tsx"],
44-
"rules": {
45-
"indent": ["error", 2, { "SwitchCase": 1 }]
46-
}
42+
"files": ["*.ts", "*.tsx"]
4743
}
4844
]
4945
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@
1919

2020
npm-debug.log*
2121
yarn-debug.log*
22-
yarn-error.log*
22+
yarn-error.log*
23+
24+
/coverage

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at opensource@hodgef.com. All
58+
reported by contacting the project team at it.team@keyvalue.systems. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

PULL_REQUEST_TEMPLATE.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<!-- Thank you for contributing to @keyvaluesystems/react-star-rating-summary! -->
2+
<!-- Before submitting a pull request, please review our contributing guidelines. -->
3+
4+
5+
6+
## Pull Request Checklist
7+
8+
9+
10+
- [ ] **Read the contributing guidelines.**
11+
- [ ] **Linked to an issue:** Fixes # (replace with the issue number, if applicable)
12+
- [ ] **Branch is up-to-date with the base branch:** `master`
13+
- [ ] **Changes pass tests locally:** `npm test` or `yarn test`
14+
- [ ] **Documentation has been updated, if necessary**
15+
- [ ] **Code follows the style guide of the project**
16+
17+
18+
## Description
19+
20+
21+
22+
<!-- Provide a brief description of your changes. -->
23+
24+
25+
26+
## Screenshots (if applicable)
27+
28+
29+
30+
<!-- Add screenshots or GIFs to help explain your changes. -->
31+
32+
33+
34+
## Additional Notes
35+
36+
37+
38+
<!-- Any additional information you want to provide that is not covered by the checklist or description. -->
39+
40+
41+
42+
## Related Issues or PRs
43+
44+
45+
46+
<!-- If your pull request is related to any issue(s) or other pull request(s), mention them here. -->
47+
48+
49+
50+
## Reviewer Guidelines
51+
52+
53+
54+
<!-- Suggest specific areas of the codebase that you would like the reviewer to focus on. -->
55+
56+
57+
58+
## Testing Instructions
59+
60+
61+
62+
<!-- Provide step-by-step instructions on how to test your changes. -->
63+
64+
65+
66+
## Checklist for Reviewers
67+
68+
69+
70+
- [ ] Code follows project conventions and style
71+
- [ ] Changes do not introduce new warnings or errors
72+
- [ ] Unit tests cover the changes
73+
- [ ] Documentation is updated
74+
75+
76+
## By submitting this pull request, I confirm that my contribution is made under the terms of the MIT License.

0 commit comments

Comments
 (0)