-
Notifications
You must be signed in to change notification settings - Fork 49
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
coherenceScore
field to theUser
entity in the subgraphcomputeCoherenceScore
function to calculate the coherence score based ontotalCoherent
andtotalResolvedDisputes
TopJurors
component to display top jurors on the Home pageuseTopUsersByCoherenceScore
hook to fetch top users by coherence scoreCoherency
component to display total coherent votes and total resolved disputesPixelArt
component to accept width and height propsIdenticonOrAvatar
andAddressOrName
components to accept address proplevelTitles
andgetUserLevelData
functions to calculate user level based on coherence scorerewards
andcalculateTotalJurorReward
functions to calculate total juror reward