Closed nikhilverma360 closed 1 month ago
The recent changes introduce several components and hooks that enhance the home page by providing additional statistics related to court activities. Key additions include the ExtraStatsDisplay
component for displaying metrics, the useHomePageExtraStats
hook for calculating relevant statistics, and the useHomePageBlockQuery
hook for fetching court-related data. Additionally, a new ExtraStats
component has been implemented to present these statistics in a structured format, contributing to a more informative user experience.
Files | Change Summary |
---|---|
web/src/components/ExtraStatsDisplay.tsx , web/src/pages/Home/CourtOverview/ExtraStats.tsx , web/src/hooks/queries/useHomePageExtraStats.ts , web/src/hooks/queries/useHomePageBlockQuery.ts |
New components and hooks for displaying and calculating extra statistics related to court activities. |
subgraph/core/src/entities/Court.ts |
Added functions for updating effective stakes and tracking votes in court entities. |
web/tsconfig.json |
Updated TypeScript configuration to include the latest ECMAScript Array features. |
Objective | Addressed | Explanation |
---|---|---|
Extra statistics on the Home page (#683) | β |
π° In the meadow where data blooms,
Extra stats chase away the glooms.
With hooks and cards, we hop and play,
Insights brightening up the day!
Through courts of numbers, we take our flight,
Hopping along, everything feels right! π
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 | 94c4074747dfcb8d1c0452e9e4462a36fb5f3fbf |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-testnet/deploys/6700080b6f08ef000821dffd |
Deploy Preview | https://deploy-preview-1671--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 | 94c4074747dfcb8d1c0452e9e4462a36fb5f3fbf |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/6700080bfc3c1c0008edcbb4 |
Deploy Preview | https://deploy-preview-1671--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 | 94c4074747dfcb8d1c0452e9e4462a36fb5f3fbf |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/6700080b8cd2140008c81a55 |
Failed conditions
C Reliability Rating on New Code (required β₯ A)
See analysis details on SonarCloud
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Code Climate has analyzed commit 94c40747 and detected 13 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Complexity | 4 |
Duplication | 2 |
Style | 7 |
View more on Code Climate.
Issues
2 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
(kemuru writing)
closes #683
PR-Codex overview
This PR focuses on enhancing the functionality and structure of the application, particularly in the areas of querying and displaying court statistics, improving component styling, and updating the schema for handling disputes and juror data.
Detailed summary
ESNext.Array
totsconfig.json
.courts
to include new fields.CourtOverview
to includeExtraStats
component.useHomePageExtraStats
for fetching additional statistics.Court
entity withnumberVotes
andeffectiveStake
.updateEffectiveStake
function to calculate total stake.DisputeCardView
to use a new skeleton component for loading states.Summary by CodeRabbit
Summary by CodeRabbit
New Features
ExtraStats
component for displaying additional statistics related to court activity over customizable time frames.ExtraStatsDisplay
component for structured display of additional statistics.Bug Fixes
Documentation
Chores