From f463d46a18e2412da6666bdc54c8ace004353d07 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 2 Oct 2023 09:21:24 +0100 Subject: [PATCH] add buttons for sso config and logs on internal admin page (#14997) * add translation support to subscription admin page * pass groupId to internal subscription admin page needed for the SSO config modal * display buttons for sso config and logs on internal admin page uses the SSOConfigurationModal, which needs a `groupId` to identify the subscription. * fix frontend tests * Added SSO config fetch after refactor --------- Co-authored-by: Miguel Serrano GitOrigin-RevId: 13bec515dac9c6654869e12e088e0cc15a078ef8 --- services/web/frontend/extracted-translations.json | 1 + services/web/locales/en.json | 1 + services/web/types/admin/subscription.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index fc1b94caa9..6e146d10ea 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -1058,6 +1058,7 @@ "sso_is_enabled_explanation_1": "", "sso_is_enabled_explanation_2": "", "sso_link_error": "", + "sso_logs": "", "start_a_free_trial": "", "start_by_adding_your_email": "", "start_free_trial": "", diff --git a/services/web/locales/en.json b/services/web/locales/en.json index d2cf04b76f..5076911b81 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1643,6 +1643,7 @@ "sso_is_enabled_explanation_1": "Group members will <0>only be able to sign in via SSO", "sso_is_enabled_explanation_2": "If there are any problems with the configuration, only you (as the group administrator) will be able to disable SSO.", "sso_link_error": "Error linking account", + "sso_logs": "SSO Logs", "sso_not_linked": "You have not linked your account to __provider__. Please log in to your account another way and link your __provider__ account via your account settings.", "sso_user_denied_access": "Cannot log in because __appName__ was not granted access to your __provider__ account. Please try again.", "standard": "Standard", diff --git a/services/web/types/admin/subscription.ts b/services/web/types/admin/subscription.ts index ea14c6ea9b..9730a99b7b 100644 --- a/services/web/types/admin/subscription.ts +++ b/services/web/types/admin/subscription.ts @@ -8,4 +8,5 @@ export type Subscription = { admin_id: string groupPlan: boolean customAccount: boolean + ssoConfig: object }