diff --git a/packages/data-layer/src/data-layer.ts b/packages/data-layer/src/data-layer.ts index db21172d4d..157ef8bb94 100644 --- a/packages/data-layer/src/data-layer.ts +++ b/packages/data-layer/src/data-layer.ts @@ -428,6 +428,7 @@ export class DataLayer { } ) { id + anchorAddress chainId roundId projectId @@ -478,7 +479,7 @@ export class DataLayer { contributorCount: a.uniqueDonorsCount, contributionsTotalUsd: a.totalAmountDonatedInUsd, tags: a.round.tags, - anchorAddress: a.project.anchorAddress, + anchorAddress: a.anchorAddress, }; }); } diff --git a/packages/data-layer/src/data.types.ts b/packages/data-layer/src/data.types.ts index ec98eb4239..68fa9361cc 100644 --- a/packages/data-layer/src/data.types.ts +++ b/packages/data-layer/src/data.types.ts @@ -705,6 +705,7 @@ export type Application = { totalAmountDonatedInUsd: number; totalDonationsCount: string; uniqueDonorsCount: number; + anchorAddress?: string; round: { strategyName: RoundPayoutType; donationsStartTime: string; diff --git a/packages/data-layer/src/openapi-search-client/models/ApplicationSummary.ts b/packages/data-layer/src/openapi-search-client/models/ApplicationSummary.ts index b77b461bb2..eebbf5195c 100644 --- a/packages/data-layer/src/openapi-search-client/models/ApplicationSummary.ts +++ b/packages/data-layer/src/openapi-search-client/models/ApplicationSummary.ts @@ -171,6 +171,7 @@ export function ApplicationSummaryFromJSONTyped( createdAtBlock: json["createdAtBlock"], contributorCount: json["contributorCount"], contributionsTotalUsd: json["contributionsTotalUsd"], + anchorAddress: json["anchorAddress"], }; } @@ -199,5 +200,6 @@ export function ApplicationSummaryToJSON( createdAtBlock: value.createdAtBlock, contributorCount: value.contributorCount, contributionsTotalUsd: value.contributionsTotalUsd, + anchorAddress: value.anchorAddress, }; } diff --git a/packages/data-layer/src/queries.ts b/packages/data-layer/src/queries.ts index d33b4fe1f9..2bc0d05833 100644 --- a/packages/data-layer/src/queries.ts +++ b/packages/data-layer/src/queries.ts @@ -261,6 +261,7 @@ export const getApplication = gql` totalAmountDonatedInUsd uniqueDonorsCount totalDonationsCount + anchorAddress round { strategyName donationsStartTime @@ -295,6 +296,7 @@ export const getApplicationsForExplorer = gql` totalAmountDonatedInUsd uniqueDonorsCount totalDonationsCount + anchorAddress round { strategyName donationsStartTime diff --git a/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx b/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx index 8f0f9bf715..9f7d5db191 100644 --- a/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx +++ b/packages/grant-explorer/src/features/discovery/ExploreProjectsPage.tsx @@ -197,13 +197,13 @@ export function ExploreProjectsPage(): JSX.Element { collection ? "" : isLoading - ? "Loading..." - : `${pageTitle} (${totalApplicationsCount})` + ? "Loading..." + : `${pageTitle} (${totalApplicationsCount})` } action={ collection && (
- {/*
- )} */} + )} ) } diff --git a/packages/grant-explorer/src/features/discovery/LandingTabs.tsx b/packages/grant-explorer/src/features/discovery/LandingTabs.tsx index a9b9344008..f9133d681c 100644 --- a/packages/grant-explorer/src/features/discovery/LandingTabs.tsx +++ b/packages/grant-explorer/src/features/discovery/LandingTabs.tsx @@ -37,12 +37,12 @@ export default function LandingTabs() { children: isDesktop ? "Explore rounds" : "Rounds", tabName: "home-rounds-tab", }, - // { - // to: "/projects", - // activeRegExp: /^\/projects/, - // children: isDesktop ? "Explore projects" : "Projects", - // tabName: "home-projects-tab", - // }, + { + to: "/projects", + activeRegExp: /^\/projects/, + children: isDesktop ? "Explore projects" : "Projects", + tabName: "home-projects-tab", + }, ]; return ( diff --git a/packages/grant-explorer/src/features/projects/hooks/useApplication.ts b/packages/grant-explorer/src/features/projects/hooks/useApplication.ts index b3cf3e1103..aebb51b6b4 100644 --- a/packages/grant-explorer/src/features/projects/hooks/useApplication.ts +++ b/packages/grant-explorer/src/features/projects/hooks/useApplication.ts @@ -30,7 +30,7 @@ export function mapApplicationToProject(application: Application): Project { projectMetadata: application.project.metadata, status: application.status, grantApplicationFormAnswers: application.metadata.application.answers ?? [], - anchorAddress: application.project.anchorAddress, + anchorAddress: application.anchorAddress, }; }