From 6cf99c4af3ec6fd6902aa7e309817c41cb4f4947 Mon Sep 17 00:00:00 2001 From: abu450 Date: Wed, 21 Aug 2024 09:16:31 +0300 Subject: [PATCH] [AB#45157]: added title to playlist --- services/channel/workflows/src/generated/graphql.tsx | 3 ++- .../stations/Channels/PlaylistsExplorer/Playlists.graphql | 1 + .../src/stations/Channels/PlaylistsExplorer/Playlists.tsx | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/services/channel/workflows/src/generated/graphql.tsx b/services/channel/workflows/src/generated/graphql.tsx index f667c2f2..1e441c7d 100644 --- a/services/channel/workflows/src/generated/graphql.tsx +++ b/services/channel/workflows/src/generated/graphql.tsx @@ -2921,7 +2921,7 @@ export type PlaylistsQueryVariables = Exact<{ }>; -export type PlaylistsQuery = { __typename?: 'Query', filtered?: { __typename?: 'PlaylistsConnection', totalCount: number, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: any | null }, nodes: Array<{ __typename?: 'Playlist', id: any, startDateTime: any, calculatedDurationInSeconds: number, createdDate: any, updatedDate: any, publicationState: PublicationState, publishedDate?: any | null, programs: { __typename?: 'ProgramsConnection', totalCount: number } }> } | null, nonFiltered?: { __typename?: 'PlaylistsConnection', totalCount: number } | null }; +export type PlaylistsQuery = { __typename?: 'Query', filtered?: { __typename?: 'PlaylistsConnection', totalCount: number, pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: any | null }, nodes: Array<{ __typename?: 'Playlist', id: any, startDateTime: any, calculatedDurationInSeconds: number, title: string, createdDate: any, updatedDate: any, publicationState: PublicationState, publishedDate?: any | null, programs: { __typename?: 'ProgramsConnection', totalCount: number } }> } | null, nonFiltered?: { __typename?: 'PlaylistsConnection', totalCount: number } | null }; export type ProgramQueryVariables = Exact<{ id: Scalars['UUID']; @@ -3726,6 +3726,7 @@ export const PlaylistsDocument = gql` id startDateTime calculatedDurationInSeconds + title programs { totalCount } diff --git a/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.graphql b/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.graphql index a1c03bcd..0dda727b 100644 --- a/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.graphql +++ b/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.graphql @@ -15,6 +15,7 @@ query Playlists($filter: PlaylistFilter, $orderBy: [PlaylistsOrderBy!], $after: id startDateTime calculatedDurationInSeconds + title programs{ totalCount } diff --git a/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.tsx b/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.tsx index 917375fa..2c9f4678 100644 --- a/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.tsx +++ b/services/channel/workflows/src/stations/Channels/PlaylistsExplorer/Playlists.tsx @@ -76,6 +76,11 @@ export const Playlists: React.FC = () => { label: 'Scheduled Start', render: DateRenderer, }, + { + propertyName: 'title', + size: '1.5fr', + label: 'Title', + }, { propertyName: 'programs', size: '0.8fr',