Closed Harman-singh-waraich closed 5 months ago
This update introduces several enhancements and fixes across different parts of the project. Significant changes include adding new fields to the GraphQL schema and corresponding updates to the data handling logic in both the backend and frontend. Additionally, there are updates to the React application UI components, custom hooks for handling GraphQL data, and upgraded dependencies. The goal is to increase functionality, improve user experience, and maintainability of the codebase.
File(s) | Change Summary |
---|---|
subgraph/schema.graphql |
Added externalDisputeID and challengeTime fields to the Request type. |
subgraph/src/Curate.ts |
Updated handleRequestChallenged function to set challengeTime field. |
subgraph/src/entities/Request.ts |
Removed Registry import, assigned externalDisputeID . |
web/.env.devnet.public |
Updated subgraph URLs for ARBSEPOLIA and CORE services. |
web/package.json |
Upgraded @kleros/ui-components-library dependency version. |
web/src/components/HistoryDisplay/... |
Introduced Party , JustificationDetails , and JustificationModal components for displaying request details and handling justifications. |
web/src/components/InformationCards/... |
Modified components to improve layout and UX, added new styled components. |
web/src/components/StyledSkeleton.tsx |
Added new styled components for skeleton placeholders. |
web/src/consts/index.ts |
Switched to the nullish coalescing operator for default COURT_SITE value. |
web/src/context/GraphqlBatcher.tsx |
Modified fetcher function to accept additional isCore parameter. |
web/src/hooks/queries/... |
Added custom hook useEvidences for fetching evidence data. Updated useRequestsQuery to include new fields. |
web/src/utils/fetchJsonIpfs.ts |
Introduced a utility function to fetch JSON data from IPFS. |
sequenceDiagram
participant Client as Client Application
participant API as GraphQL API
participant IPFS as IPFS Service
Note over Client,API: Request creation or update flow
Client->>API: Create/Update Request (POST)
API->>API: Save `challengeTime` & `externalDisputeID`
API-->>Client: Confirmation response
Note over Client,IPFS: Fetching justification details
Client->>API: Query for evidence with Justification
API->>IPFS: Fetch JSON from URI
IPFS-->>API: Return JSON data
API-->>Client: Evidence data with Justification
In the realm of code so bright,
Schema fields take flight,
WithchallengeTime
and disputes external,
Our data flows eternal.
UI and hooks now in harmony,
A symphony of digital alchemy.
Celebrate with rabbits' cheer,
New features, oh so dear!
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 | 9b026174136fdc4486ee1a7cc8c5fddef06e132b |
Latest deploy log | https://app.netlify.com/sites/curate-v2/deploys/6674298182acd400083911f3 |
Deploy Preview | https://deploy-preview-42--curate-v2.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.
1) Let's make sure that the copied address and the display address is the same
2) Let's make the address label a link going to the explorer + remove the explorer icon
externalDisputeID
inRequest
entity, to make it easier to link it to evidenceschallengeTime
field inRequest
enitityPR-Codex overview
This PR enhances the Curate application by adding challenge time tracking, improving UI components, updating subgraph queries, and refining data fetching functions.
Detailed summary
challengeTime
tracking to requestsHeader
,RegistryInformationCard
, andJustificationDetails
useRequestsQuery
anduseEvidences
fetchJsonIpfs
data fetching functionexternalDisputeID
fieldSummary by CodeRabbit
New Features
externalDisputeID
andchallengeTime
fields in request details.Party
,JustificationDetails
, andJustificationModal
.useEvidences
for fetching evidence data.fetchJsonIpfs
for fetching JSON data from IPFS.Enhancements
@kleros/ui-components-library
to version2.13.1
.Configuration
.env.devnet.public
.Bug Fixes
fetcher
function inGraphqlBatcher.tsx
to handle core service requests.