From b335ad01b10fce2780eb1b0f9c93010735a62c3b Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Thu, 9 Jan 2025 11:02:59 +0800 Subject: [PATCH] feat(console,core): enable configure on nameIdFormat and encryption (#6929) * feat(console): enable configure on nameIdFormat and encryption * feat(core): support configuration on nameIdFormat and encryption --- .../ds-components/Textarea/index.module.scss | 11 ++ .../src/ds-components/Textarea/index.tsx | 11 +- .../Settings.tsx | 110 +++++++++++++++++- .../index.module.scss | 5 + .../SamlApplicationDetailsContent/utils.ts | 62 +++++++++- .../SamlApplication/index.test.ts | 2 + .../SamlApplication/index.ts | 61 +++++++--- .../SamlApplication/utils.test.ts | 10 +- .../SamlApplication/utils.ts | 68 +++++------ .../src/saml-applications/queries/index.ts | 9 +- .../src/locales/en/errors/application.ts | 4 + .../admin-console/application-details.ts | 27 +++++ 12 files changed, 314 insertions(+), 66 deletions(-) diff --git a/packages/console/src/ds-components/Textarea/index.module.scss b/packages/console/src/ds-components/Textarea/index.module.scss index 3ae2622c927..3e872d142e9 100644 --- a/packages/console/src/ds-components/Textarea/index.module.scss +++ b/packages/console/src/ds-components/Textarea/index.module.scss @@ -39,3 +39,14 @@ } } } + +.errorMessage { + font: var(--font-body-2); + color: var(--color-error); + margin-top: _.unit(1); + + a { + color: var(--color-error); + text-decoration: underline; + } +} diff --git a/packages/console/src/ds-components/Textarea/index.tsx b/packages/console/src/ds-components/Textarea/index.tsx index 01dfa80f978..7bc7b41634a 100644 --- a/packages/console/src/ds-components/Textarea/index.tsx +++ b/packages/console/src/ds-components/Textarea/index.tsx @@ -14,9 +14,14 @@ function Textarea( reference: ForwardedRef ) { return ( -
-