diff --git a/apps/dashboard/src/@/api/webhook-configs.ts b/apps/dashboard/src/@/api/webhook-configs.ts index f62a12e0c4b..c830ecbc9db 100644 --- a/apps/dashboard/src/@/api/webhook-configs.ts +++ b/apps/dashboard/src/@/api/webhook-configs.ts @@ -37,7 +37,7 @@ type WebhookConfigsResponse = }; interface CreateWebhookConfigRequest { - topics: { id: string; filters: object | null }[]; + topicIdsWithFilters: { id: string; filters: object | null }[]; destinationUrl: string; description: string; isPaused?: boolean; @@ -76,7 +76,7 @@ type TopicsResponse = interface UpdateWebhookConfigRequest { destinationUrl?: string; - topics?: { id: string; filters: object | null }[]; + topicIdsWithFilters?: { id: string; filters: object | null }[]; description?: string; isPaused?: boolean; } diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-config-modal.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-config-modal.tsx index bb54b43ca5d..a24eec33e4e 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-config-modal.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-config-modal.tsx @@ -97,7 +97,7 @@ export function WebhookConfigModal(props: WebhookConfigModalProps) { description: values.description, destinationUrl: values.destinationUrl, isPaused: values.isPaused, - topics: processedTopics, + topicIdsWithFilters: processedTopics, }, projectIdOrSlug: props.projectSlug, teamIdOrSlug: props.teamSlug, @@ -115,7 +115,7 @@ export function WebhookConfigModal(props: WebhookConfigModalProps) { description: values.description, destinationUrl: values.destinationUrl, isPaused: values.isPaused, - topics: processedTopics, + topicIdsWithFilters: processedTopics, }, projectIdOrSlug: props.projectSlug, teamIdOrSlug: props.teamSlug, diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-configs-table.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-configs-table.tsx index 163a2047efc..92c50b7d5d7 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-configs-table.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-configs-table.tsx @@ -187,6 +187,7 @@ export function WebhookConfigsTable(props: { Destination URL Topics Activity (24h) + Webhook Secret Created @@ -258,6 +259,22 @@ export function WebhookConfigsTable(props: { metrics={props.metricsMap.get(config.id) || null} /> + + {config.webhookSecret ? ( + + ) : ( + + No secret + + )} + {config.createdAt ? format(new Date(config.createdAt), "MMM d, yyyy")