-
Notifications
You must be signed in to change notification settings - Fork 50
feat(web): top jurors component #1290
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
Conversation
✅ Deploy Preview for kleros-v2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ixelart width and heights
… & mappings, abstract utils
|
Kudos, SonarCloud Quality Gate passed!
|
|
Code Climate has analyzed commit 7f8be8e and detected 41 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
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.
This file seems to big, maybe split it into components








ATTENTION: subgraph needs to be redeployed since I updated schema for User entity as well as the mappings to calculate the juror coherenceScore. So after reviewing, and if everything is fine, please if you have access to the devnet subgraph redeploy it
PR-Codex overview
This PR focuses on adding a coherence score calculation and displaying top jurors on the Home page.
Detailed summary
coherenceScorefield to theUserentity in the subgraphcomputeCoherenceScorefunction to calculate the coherence score based ontotalCoherentandtotalResolvedDisputesTopJurorscomponent to display top jurors on the Home pageuseTopUsersByCoherenceScorehook to fetch top users by coherence scoreCoherencycomponent to display total coherent votes and total resolved disputesPixelArtcomponent to accept width and height propsIdenticonOrAvatarandAddressOrNamecomponents to accept address proplevelTitlesandgetUserLevelDatafunctions to calculate user level based on coherence scorerewardsandcalculateTotalJurorRewardfunctions to calculate total juror reward