From 2f58a6006f835db11cae819791366aa70b771862 Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Fri, 27 Sep 2024 23:01:36 +0530 Subject: [PATCH] feat: Add labels to space queries --- src/graphql/helpers.ts | 1 + src/graphql/schema.gql | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/graphql/helpers.ts b/src/graphql/helpers.ts index 96b2c73d..a31cd889 100644 --- a/src/graphql/helpers.ts +++ b/src/graphql/helpers.ts @@ -111,6 +111,7 @@ export function formatSpace({ } space.validation = space.validation || { name: 'any', params: {} }; space.treasuries = space.treasuries || []; + space.labels = space.labels || []; space.verified = verified ?? null; space.flagged = flagged ?? null; diff --git a/src/graphql/schema.gql b/src/graphql/schema.gql index 6453f31a..66a36d03 100644 --- a/src/graphql/schema.gql +++ b/src/graphql/schema.gql @@ -413,6 +413,7 @@ type Space { voteValidation: Validation delegationPortal: DelegationPortal treasuries: [Treasury] + labels: [Label] activeProposals: Int proposalsCount: Int proposalsCount1d: Int @@ -614,6 +615,13 @@ type Treasury { network: String } +type Label { + id: String + name: String + description: String + color: String +} + type BoostSettings { enabled: Boolean bribeEnabled: Boolean