diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index fbd714a05a..52dac12f1a 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -31,7 +31,7 @@ export type AdminPanelHealthServiceData = { description: Scalars['String']; details?: Maybe; errorMessage?: Maybe; - id: Scalars['UUID']; + id: HealthIndicatorId; label: Scalars['String']; queues?: Maybe>; status: AdminPanelHealthServiceStatus; @@ -3840,7 +3840,7 @@ export type GetIndicatorHealthStatusQueryVariables = Exact<{ }>; -export type GetIndicatorHealthStatusQuery = { __typename?: 'Query', getIndicatorHealthStatus: { __typename?: 'AdminPanelHealthServiceData', id: string, label: string, description: string, status: AdminPanelHealthServiceStatus, errorMessage?: string | null, details?: string | null, queues?: Array<{ __typename?: 'AdminPanelWorkerQueueHealth', id: string, queueName: string, status: AdminPanelHealthServiceStatus }> | null } }; +export type GetIndicatorHealthStatusQuery = { __typename?: 'Query', getIndicatorHealthStatus: { __typename?: 'AdminPanelHealthServiceData', id: HealthIndicatorId, label: string, description: string, status: AdminPanelHealthServiceStatus, errorMessage?: string | null, details?: string | null, queues?: Array<{ __typename?: 'AdminPanelWorkerQueueHealth', id: string, queueName: string, status: AdminPanelHealthServiceStatus }> | null } }; export type GetQueueMetricsQueryVariables = Exact<{ queueName: Scalars['String']; diff --git a/packages/twenty-front/src/generated/graphql.ts b/packages/twenty-front/src/generated/graphql.ts index a85f6cf7f5..b15029b6dc 100644 --- a/packages/twenty-front/src/generated/graphql.ts +++ b/packages/twenty-front/src/generated/graphql.ts @@ -31,7 +31,7 @@ export type AdminPanelHealthServiceData = { description: Scalars['String']; details?: Maybe; errorMessage?: Maybe; - id: Scalars['UUID']; + id: HealthIndicatorId; label: Scalars['String']; queues?: Maybe>; status: AdminPanelHealthServiceStatus; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx index 77873fc814..2f83cb06a6 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx @@ -2,6 +2,7 @@ import { createContext } from 'react'; import { AdminPanelHealthServiceData, AdminPanelHealthServiceStatus, + HealthIndicatorId, } from '~/generated/graphql'; type SettingsAdminIndicatorHealthContextType = { @@ -11,7 +12,7 @@ type SettingsAdminIndicatorHealthContextType = { export const SettingsAdminIndicatorHealthContext = createContext({ indicatorHealth: { - id: '', + id: HealthIndicatorId.app, label: '', description: '', errorMessage: '', diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx index 7640af04d3..1508d1bd8f 100644 --- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx +++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx @@ -61,7 +61,7 @@ export const SettingsAdminIndicatorHealthStatus = () => { UUIDScalarType) - id: string; + @Field(() => HealthIndicatorId) + id: HealthIndicatorId; @Field(() => String) label: string;