From dcf1971a009f8e31926b957f41a7bb9835ea65d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Fri, 26 Jun 2026 16:23:56 -0600 Subject: [PATCH] fix[frontend](integrations): added success notification on tenant success creation/edition --- .../integrations/components/setup/cloud/CloudTenantForm.tsx | 5 +++++ frontend/src/shared/i18n/locales/de.json | 4 +++- frontend/src/shared/i18n/locales/en.json | 4 +++- frontend/src/shared/i18n/locales/es.json | 4 +++- frontend/src/shared/i18n/locales/fr.json | 4 +++- frontend/src/shared/i18n/locales/it.json | 4 +++- frontend/src/shared/i18n/locales/pt.json | 4 +++- frontend/src/shared/i18n/locales/ru.json | 4 +++- 8 files changed, 26 insertions(+), 7 deletions(-) diff --git a/frontend/src/features/integrations/components/setup/cloud/CloudTenantForm.tsx b/frontend/src/features/integrations/components/setup/cloud/CloudTenantForm.tsx index c43c053fa..01af3e5fb 100644 --- a/frontend/src/features/integrations/components/setup/cloud/CloudTenantForm.tsx +++ b/frontend/src/features/integrations/components/setup/cloud/CloudTenantForm.tsx @@ -64,6 +64,11 @@ export function CloudTenantForm({ setName('') setConfig(emptyConfig(fields)) onSaved() + toast.success( + isEditing + ? t('integrations.setup.cloud.tenants.updateSuccess') + : t('integrations.setup.cloud.tenants.createSuccess'), + ) }, onError: (err) => { const fallback = isEditing diff --git a/frontend/src/shared/i18n/locales/de.json b/frontend/src/shared/i18n/locales/de.json index 442aa3094..db2a6c12e 100644 --- a/frontend/src/shared/i18n/locales/de.json +++ b/frontend/src/shared/i18n/locales/de.json @@ -2852,7 +2852,9 @@ "fileLoaded": "Datei geladen", "invalidJson": "Die Datei konnte nicht als JSON gelesen werden.", "createError": "Der Mandant konnte nicht erstellt werden. Bitte erneut versuchen.", - "updateError": "Der Mandant konnte nicht aktualisiert werden. Bitte erneut versuchen." + "updateError": "Der Mandant konnte nicht aktualisiert werden. Bitte erneut versuchen.", + "createSuccess": "Mandant erfolgreich erstellt.", + "updateSuccess": "Mandant erfolgreich aktualisiert." }, "google": { "sections": { diff --git a/frontend/src/shared/i18n/locales/en.json b/frontend/src/shared/i18n/locales/en.json index 88003b83a..e2a90f8a8 100644 --- a/frontend/src/shared/i18n/locales/en.json +++ b/frontend/src/shared/i18n/locales/en.json @@ -2852,7 +2852,9 @@ "fileLoaded": "File loaded", "invalidJson": "Could not parse the file as JSON.", "createError": "Could not create the tenant. Please try again.", - "updateError": "Could not update the tenant. Please try again." + "updateError": "Could not update the tenant. Please try again.", + "createSuccess": "Tenant created successfully.", + "updateSuccess": "Tenant updated successfully." }, "google": { "intro": { diff --git a/frontend/src/shared/i18n/locales/es.json b/frontend/src/shared/i18n/locales/es.json index cb7e13f61..25c42cf6a 100644 --- a/frontend/src/shared/i18n/locales/es.json +++ b/frontend/src/shared/i18n/locales/es.json @@ -2852,7 +2852,9 @@ "fileLoaded": "Archivo cargado", "invalidJson": "No se pudo procesar el archivo como JSON.", "createError": "No se pudo crear el tenant. Inténtalo de nuevo.", - "updateError": "No se pudo actualizar el tenant. Inténtalo de nuevo." + "updateError": "No se pudo actualizar el tenant. Inténtalo de nuevo.", + "createSuccess": "Tenant creado correctamente.", + "updateSuccess": "Tenant actualizado correctamente." }, "google": { "sections": { diff --git a/frontend/src/shared/i18n/locales/fr.json b/frontend/src/shared/i18n/locales/fr.json index cc75f826d..07dc3314a 100644 --- a/frontend/src/shared/i18n/locales/fr.json +++ b/frontend/src/shared/i18n/locales/fr.json @@ -2852,7 +2852,9 @@ "fileLoaded": "Fichier chargé", "invalidJson": "Impossible de lire le fichier comme JSON.", "createError": "Impossible de créer le tenant. Veuillez réessayer.", - "updateError": "Impossible de mettre à jour le tenant. Veuillez réessayer." + "updateError": "Impossible de mettre à jour le tenant. Veuillez réessayer.", + "createSuccess": "Tenant créé avec succès.", + "updateSuccess": "Tenant mis à jour avec succès." }, "google": { "sections": { diff --git a/frontend/src/shared/i18n/locales/it.json b/frontend/src/shared/i18n/locales/it.json index f61823e09..fc47f5731 100644 --- a/frontend/src/shared/i18n/locales/it.json +++ b/frontend/src/shared/i18n/locales/it.json @@ -2852,7 +2852,9 @@ "fileLoaded": "File caricato", "invalidJson": "Impossibile interpretare il file come JSON.", "createError": "Impossibile creare il tenant. Riprova.", - "updateError": "Impossibile aggiornare il tenant. Riprova." + "updateError": "Impossibile aggiornare il tenant. Riprova.", + "createSuccess": "Tenant creato con successo.", + "updateSuccess": "Tenant aggiornato con successo." }, "google": { "sections": { diff --git a/frontend/src/shared/i18n/locales/pt.json b/frontend/src/shared/i18n/locales/pt.json index 4f920dd85..7d1532564 100644 --- a/frontend/src/shared/i18n/locales/pt.json +++ b/frontend/src/shared/i18n/locales/pt.json @@ -2852,7 +2852,9 @@ "fileLoaded": "Arquivo carregado", "invalidJson": "Não foi possível ler o arquivo como JSON.", "createError": "Não foi possível criar o tenant. Tente novamente.", - "updateError": "Não foi possível atualizar o tenant. Tente novamente." + "updateError": "Não foi possível atualizar o tenant. Tente novamente.", + "createSuccess": "Tenant criado com sucesso.", + "updateSuccess": "Tenant atualizado com sucesso." }, "google": { "sections": { diff --git a/frontend/src/shared/i18n/locales/ru.json b/frontend/src/shared/i18n/locales/ru.json index e74f3c1ff..384f5a414 100644 --- a/frontend/src/shared/i18n/locales/ru.json +++ b/frontend/src/shared/i18n/locales/ru.json @@ -2752,7 +2752,9 @@ "fileLoaded": "Файл загружен", "invalidJson": "Не удалось прочитать файл как JSON.", "createError": "Не удалось создать тенант. Повторите попытку.", - "updateError": "Не удалось обновить тенант. Повторите попытку." + "updateError": "Не удалось обновить тенант. Повторите попытку.", + "createSuccess": "Тенант успешно создан.", + "updateSuccess": "Тенант успешно обновлён." }, "google": { "sections": {