From 203d34388022fa457175241aff79cc67a0c1b84a Mon Sep 17 00:00:00 2001 From: loewy Date: Mon, 25 Mar 2024 19:25:48 -0600 Subject: [PATCH] Process tags from a VideoGQL & use on VideoFeed (#293) currently will select first item if multiple tags present for a given class if we want to change the UI I can make it process & display multiple values for gameTypes/tableSizes, but as of now it's meant to handle a single one CLOSES #288 Co-authored-by: Loewy Reviewed-on: https://dev.railbird.ai/railbird/railbird-mobile/pulls/293 Reviewed-by: Ivan Malison --- src/index.tsx | 11 +++++++++++ src/operations/feed.gql | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 55067be..718c142 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -540,6 +540,11 @@ export type GetFeedQuery = { createdAt: any; updatedAt: any; } | null; + tags: Array<{ + __typename?: "VideoTag"; + name: string; + tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; + }>; }>; pageInfo: { __typename?: "PageInfoGQL"; @@ -958,6 +963,12 @@ export const GetFeedDocument = gql` createdAt updatedAt } + tags { + tagClasses { + name + } + name + } } pageInfo { hasNextPage diff --git a/src/operations/feed.gql b/src/operations/feed.gql index 52b10ef..e08a06c 100644 --- a/src/operations/feed.gql +++ b/src/operations/feed.gql @@ -32,6 +32,12 @@ query GetFeed($limit: Int! = 5, $after: String = null) { createdAt updatedAt } + tags { + tagClasses { + name + } + name + } } pageInfo { hasNextPage