From 45d0d6e7791eade858af8caa25569da2d4d7287e Mon Sep 17 00:00:00 2001 From: "NaYeong,Kim" Date: Wed, 18 Dec 2024 21:39:40 +0900 Subject: [PATCH] feat: apply webhook create API (#5254) * feat: apply webhook create API Signed-off-by: NaYeong,Kim * feat: update title and description based on webhook creation step Signed-off-by: NaYeong,Kim * chore: changed comment Signed-off-by: NaYeong,Kim * feat: apply toast alert when webhook created Signed-off-by: NaYeong,Kim --------- Signed-off-by: NaYeong,Kim Signed-off-by: NaYeong,Kim --- .../src/schema/alert-manager/webhook/type.ts | 3 +- .../components/ServiceCreateStep2.vue | 34 ++++++++++++++++--- .../components/WebhookCreateForm.vue | 6 ++-- .../components/WebhookCreateTypeSelector.vue | 1 + .../pages/ServiceCreatePage.vue | 14 ++++++-- .../stores/service-create-form-store.ts | 25 ++++++++++---- .../console-translation-2.8.babel | 21 ++++++++++++ packages/language-pack/en.json | 1 + packages/language-pack/ja.json | 1 + packages/language-pack/ko.json | 1 + 10 files changed, 88 insertions(+), 19 deletions(-) diff --git a/apps/web/src/schema/alert-manager/webhook/type.ts b/apps/web/src/schema/alert-manager/webhook/type.ts index 8adb336754..9462a82cc9 100644 --- a/apps/web/src/schema/alert-manager/webhook/type.ts +++ b/apps/web/src/schema/alert-manager/webhook/type.ts @@ -6,8 +6,7 @@ export type WebhookPluginInfoType = { plugin_id: string; version?: string; options?: Record; - metadata: Record; - secret_id: string; + metadata?: Record; upgrade_mode?: 'AUTO' | 'MANUAL'; }; diff --git a/apps/web/src/services/alert-manager-v2/components/ServiceCreateStep2.vue b/apps/web/src/services/alert-manager-v2/components/ServiceCreateStep2.vue index 10872b3ab3..7a70490f79 100644 --- a/apps/web/src/services/alert-manager-v2/components/ServiceCreateStep2.vue +++ b/apps/web/src/services/alert-manager-v2/components/ServiceCreateStep2.vue @@ -1,6 +1,17 @@