From 11e7266f8ad049207563b887ccfcf098476218f4 Mon Sep 17 00:00:00 2001 From: Weiko Date: Fri, 4 Aug 2023 04:27:04 +0200 Subject: [PATCH] [FilterDropdownEntitySearchSelect] add missing displayAvatarUrl (#1071) * [FilterDropdownEntitySearchSelect] add missing displayAvatarUrl * add missing avatarUrl in activities * remove console.log --- front/src/generated/graphql.tsx | 6 ++++-- front/src/modules/activities/queries/select.ts | 2 ++ .../components/FilterDropdownEntitySearchSelect.tsx | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx index a8f219d93c..a34a84150a 100644 --- a/front/src/generated/graphql.tsx +++ b/front/src/generated/graphql.tsx @@ -2327,7 +2327,7 @@ export type GetActivitiesByTargetsQueryVariables = Exact<{ }>; -export type GetActivitiesByTargetsQuery = { __typename?: 'Query', findManyActivities: Array<{ __typename?: 'Activity', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string } | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, commentableType?: CommentableType | null, commentableId?: string | null }> | null }> }; +export type GetActivitiesByTargetsQuery = { __typename?: 'Query', findManyActivities: Array<{ __typename?: 'Activity', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null } | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, commentableType?: CommentableType | null, commentableId?: string | null }> | null }> }; export type GetActivitiesQueryVariables = Exact<{ where: ActivityWhereInput; @@ -2342,7 +2342,7 @@ export type GetActivityQueryVariables = Exact<{ }>; -export type GetActivityQuery = { __typename?: 'Query', findManyActivities: Array<{ __typename?: 'Activity', id: string, createdAt: string, body?: string | null, title?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string } | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, commentableType?: CommentableType | null, commentableId?: string | null }> | null }> }; +export type GetActivityQuery = { __typename?: 'Query', findManyActivities: Array<{ __typename?: 'Activity', id: string, createdAt: string, body?: string | null, title?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null } | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, commentableType?: CommentableType | null, commentableId?: string | null }> | null }> }; export type AddActivityTargetsOnActivityMutationVariables = Exact<{ activityId: Scalars['String']; @@ -2898,6 +2898,7 @@ export const GetActivitiesByTargetsDocument = gql` firstName lastName displayName + avatarUrl } author { id @@ -3033,6 +3034,7 @@ export const GetActivityDocument = gql` firstName lastName displayName + avatarUrl } author { id diff --git a/front/src/modules/activities/queries/select.ts b/front/src/modules/activities/queries/select.ts index 9d29c5dd93..821ee602e3 100644 --- a/front/src/modules/activities/queries/select.ts +++ b/front/src/modules/activities/queries/select.ts @@ -23,6 +23,7 @@ export const GET_ACTIVITIES_BY_TARGETS = gql` firstName lastName displayName + avatarUrl } author { id @@ -105,6 +106,7 @@ export const GET_ACTIVITY = gql` firstName lastName displayName + avatarUrl } author { id diff --git a/front/src/modules/ui/filter-n-sort/components/FilterDropdownEntitySearchSelect.tsx b/front/src/modules/ui/filter-n-sort/components/FilterDropdownEntitySearchSelect.tsx index b7f864b469..6f50798ecc 100644 --- a/front/src/modules/ui/filter-n-sort/components/FilterDropdownEntitySearchSelect.tsx +++ b/front/src/modules/ui/filter-n-sort/components/FilterDropdownEntitySearchSelect.tsx @@ -62,6 +62,7 @@ export function FilterDropdownEntitySearchSelect({ operand: selectedOperandInDropdown, type: filterDefinitionUsedInDropdown.type, value: selectedEntity.id, + displayAvatarUrl: selectedEntity.avatarUrl, }); } }