Closed Meriem-BM closed 5 days ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
giveth-dapps-v2 | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jun 25, 2024 8:13am |
This update enhances functionality by re-enabling the isDataAnalysisDone
field in the FETCH_ARCHIVED_QF_ROUNDS
GraphQL query and adjusting the ArchivedQFRoundsTable
component to conditionally display the uniqueDonors
only if data analysis is complete. If not, it shows an analysis status as "Pending."
Files | Change Summary |
---|---|
src/apollo/gql/gqlQF.ts |
Uncommented the isDataAnalysisDone field in the FETCH_ARCHIVED_QF_ROUNDS GraphQL query. |
src/components/views/archivedQFRounds/ArchivedQFRoundsTable.tsx |
Updated rendering logic for round.uniqueDonors based on round.isDataAnalysisDone . |
sequenceDiagram
participant User
participant UI as ArchivedQFRoundsTable
participant GQL as GraphQL Server
User->>UI: Open Archived QF Rounds Table
UI->>GQL: Send FETCH_ARCHIVED_QF_ROUNDS query
GQL-->>UI: Response with isDataAnalysisDone and uniqueDonors
alt isDataAnalysisDone is true
UI->>UI: Display round.uniqueDonors
else isDataAnalysisDone is false
UI->>UI: Display AnalysisStatus: Pending
end
Amid the code, a change did bloom,
For rounds now read with varied room. πΈ
If analysis isn't yet complete,
"Pending" status you will greet.
Hereβs to data strong and neat,
In our table, clear and sweet!
πππ°
src/apollo/gql/gqlQF.ts (1)
`74-74`: **Uncommenting `isDataAnalysisDone` field in GraphQL query.** This change will allow the frontend to access the `isDataAnalysisDone` field for each archived QF round, which seems necessary based on the PR objectives and the updates to the React component. Ensure that the backend handles this field efficiently if it involves complex computations.src/components/views/archivedQFRounds/ArchivedQFRoundsTable.tsx (1)
`50-54`: **Conditional rendering based on `isDataAnalysisDone`.** The change correctly implements conditional rendering to display the number of unique donors if the data analysis is done, otherwise it shows "Pending". This is a good use of conditional rendering to provide a dynamic user experience based on the data's state.
Summary by CodeRabbit