From 4986a5a9f10515de99428686e723da5ca50df62e Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Thu, 28 Nov 2024 19:05:49 +0530 Subject: [PATCH 1/4] enable sync with checker on pool creation and apply --- packages/common/src/allo/backends/allo-v2.ts | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/common/src/allo/backends/allo-v2.ts b/packages/common/src/allo/backends/allo-v2.ts index 17a10886a..2baaa6a74 100644 --- a/packages/common/src/allo/backends/allo-v2.ts +++ b/packages/common/src/allo/backends/allo-v2.ts @@ -630,6 +630,19 @@ export class AlloV2 implements Allo { blockNumber: receipt.blockNumber, }); + // sync pool with checker + await fetch("http://api.checker.gitcoin.co/api/pools", { + method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ + alloPoolId: parseInt(poolCreatedEvent.poolId, 10).toString(), + chainId: this.chainId, + skipEvaluation: false, + }), + }); + emit("indexingStatus", success(void 0)); return success({ @@ -749,6 +762,19 @@ export class AlloV2 implements Allo { blockNumber: receipt.blockNumber, }); + // sync pool with checker + await fetch("http://api.checker.gitcoin.co/api/pools", { + method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ + alloPoolId: args.roundId.toString(), + chainId: this.chainId, + skipEvaluation: false, + }), + }); + emit("indexingStatus", success(null)); return success(args.projectId); From 4876c479615251b0d6b13aa5e1f83c9f64c50b1e Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Thu, 28 Nov 2024 19:34:11 +0530 Subject: [PATCH 2/4] add in review Applicaitons Button --- packages/common/src/allo/backends/allo-v2.ts | 4 ++-- .../src/features/round/GrantApplications.tsx | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/common/src/allo/backends/allo-v2.ts b/packages/common/src/allo/backends/allo-v2.ts index 2baaa6a74..ef4e05e3a 100644 --- a/packages/common/src/allo/backends/allo-v2.ts +++ b/packages/common/src/allo/backends/allo-v2.ts @@ -631,7 +631,7 @@ export class AlloV2 implements Allo { }); // sync pool with checker - await fetch("http://api.checker.gitcoin.co/api/pools", { + await fetch("https://api.checker.gitcoin.co/api/pools", { method: "POST", headers: { "Content-Type": "application/json", @@ -763,7 +763,7 @@ export class AlloV2 implements Allo { }); // sync pool with checker - await fetch("http://api.checker.gitcoin.co/api/pools", { + await fetch("https://api.checker.gitcoin.co/api/pools", { method: "POST", headers: { "Content-Type": "application/json", diff --git a/packages/round-manager/src/features/round/GrantApplications.tsx b/packages/round-manager/src/features/round/GrantApplications.tsx index 8974de905..2b994dbb2 100644 --- a/packages/round-manager/src/features/round/GrantApplications.tsx +++ b/packages/round-manager/src/features/round/GrantApplications.tsx @@ -13,6 +13,7 @@ import { Tab } from "@headlessui/react"; import { horizontalTabStyles } from "../common/Utils"; import { MdRateReview } from "react-icons/md"; import { TabApplicationCounter } from "../common/styles"; +import { Link } from "react-router-dom"; function GrantApplications(props: { isDirectRound?: boolean; @@ -55,6 +56,25 @@ function GrantApplications(props: { isDirectRound={props.isDirectRound!} />
+
+
+
+ Checker is now in Beta +
+
+ Use our AI-powered application assistant to process + applicants with confidence +
+
+
+ + Review Applications + +
+
Manual Review From 10afeb054aceecb19d76386d0a174341bbd026d8 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Thu, 28 Nov 2024 19:52:48 +0530 Subject: [PATCH 3/4] wire in view application --- .../src/components/grants/ApplicationCard.tsx | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/builder/src/components/grants/ApplicationCard.tsx b/packages/builder/src/components/grants/ApplicationCard.tsx index 7ffb41b60..fbe948911 100644 --- a/packages/builder/src/components/grants/ApplicationCard.tsx +++ b/packages/builder/src/components/grants/ApplicationCard.tsx @@ -196,6 +196,18 @@ export default function ApplicationCard({ return null; } + const applicationStartTime = new Date(props.round.applicationsStartTime); + const showCheckerLink = + applicationStartTime >= new Date("2024-12-01T00:00:00Z"); + + const applicationViewLink = showCheckerLink + ? `https://beta.checker.gitcoin.co/view/application/${applicationData.chainId}-${applicationData.roundID}-${applicationData.application.id}` + : roundApplicationViewPath( + applicationData.chainId.toString(), + applicationData.roundID, + applicationData.application.metadataCid || "" + ); + return (

)} - +
Review Applications