Closed Harman-singh-waraich closed 3 weeks ago
The recent changes enhance the voting history functionality by adding new GraphQL fields to retrieve more detailed information about disputes. A new React component, RulingAndRewardsIndicators
, has been introduced to display status indicators for rulings and juror rewards. Furthermore, enhancements in the VotingHistory
component now utilize these new indicators, improving the user interface and providing clearer insights into the voting process.
Files | Change Summary |
---|---|
web/src/hooks/queries/useVotingHistory.ts |
Added ruled and jurorRewardsDispersed fields to the GraphQL query for enhanced dispute information. |
web/src/pages/Cases/CaseDetails/Voting/RulingAndRewardsIndicators.tsx |
Introduced a new React component that displays conditional indicators for rulings and juror rewards using props. |
web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx |
Integrated RulingAndRewardsIndicators , enhanced layout spacing, and optimized performance with new logic for rewards distribution. |
web/src/pages/Cases/CaseDetails/Voting/VotesDetails/AccordionTitle.tsx |
Updated VoteStatus and AccordionTitle components to accept new props for vote commitment and visibility. |
web/src/pages/Cases/CaseDetails/Voting/VotesDetails/index.tsx |
Added hiddenVotes property to IVotesAccordion interface, enhancing the votes visibility functionality. |
sequenceDiagram
participant User
participant VotingHistory
participant RulingAndRewardsIndicators
participant GraphQL
User->>VotingHistory: Request voting details
VotingHistory->>GraphQL: Fetch dispute data
GraphQL-->>VotingHistory: Return dispute data with new fields
VotingHistory->>RulingAndRewardsIndicators: Provide ruling and rewards data
RulingAndRewardsIndicators-->>VotingHistory: Render indicators
VotingHistory-->>User: Display voting history with indicators
π In the meadow where votes take flight,
New fields shimmer, oh what a sight!
Rulings and rewards, we cheer and dance,
With indicators bright, we take a chance.
Hopping along, letβs celebrate today,
For knowledge and fun in every way! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 40297711bed1970d4ab355780e474d65755a691c |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-testnet/deploys/66c5a04728689c000839e329 |
Deploy Preview | https://deploy-preview-1676--kleros-v2-testnet.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 40297711bed1970d4ab355780e474d65755a691c |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/66c5a0479d87160008b867c0 |
Deploy Preview | https://deploy-preview-1676--kleros-v2-neo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 40297711bed1970d4ab355780e474d65755a691c |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/66c5a047f637e400083e09d9 |
Code Climate has analyzed commit 40297711 and detected 3 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 2 |
Style | 1 |
View more on Code Climate.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Ruling executed
andJuror rewards dispersed
in Voting Tab.PR-Codex overview
The focus of this PR is to add new indicators in the voting history UI and improve vote details visibility.
Detailed summary
ruled
andjurorRewardsDispersed
fields in voting history UI.RulingAndRewardsIndicators
component.VotesAccordion
and related components to handle new fields.hiddenVotes
andcommited
indicators.Summary by CodeRabbit
New Features
Bug Fixes