From 21f081d9de490c882f06d841bd374103e6839f8a Mon Sep 17 00:00:00 2001 From: Viduni Wickramarachchi Date: Tue, 26 Nov 2024 10:56:11 -0500 Subject: [PATCH] [Obs AI Assistant] Remove hardcoded lines --- .../core/ui-settings/core-ui-settings-common/src/theme.ts | 3 +-- .../core-ui-settings-server-internal/src/settings/theme.ts | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/core/ui-settings/core-ui-settings-common/src/theme.ts b/packages/core/ui-settings/core-ui-settings-common/src/theme.ts index 6622c05cb8f20..73b465d5b192f 100644 --- a/packages/core/ui-settings/core-ui-settings-common/src/theme.ts +++ b/packages/core/ui-settings/core-ui-settings-common/src/theme.ts @@ -35,8 +35,7 @@ export type ThemeTags = readonly ThemeTag[]; * An array of theme tags available in Kibana by default when not customized * using KBN_OPTIMIZER_THEMES environment variable. */ -export const DEFAULT_THEME_TAGS: ThemeTags = SUPPORTED_THEME_TAGS; // TODO: (Viduni) remove after design QA on deployment -// export const DEFAULT_THEME_TAGS: ThemeTags = ThemeAmsterdamTags; // TODO: (Viduni) uncomment after design QA on deployment +export const DEFAULT_THEME_TAGS: ThemeTags = ThemeAmsterdamTags; export const FALLBACK_THEME_TAG: ThemeTag = 'v8light'; diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.ts b/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.ts index f00e0ce1a89bc..36324f951952e 100644 --- a/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.ts +++ b/packages/core/ui-settings/core-ui-settings-server-internal/src/settings/theme.ts @@ -104,10 +104,9 @@ export const getThemeSettings = ( }), }, value: 'amsterdam', - // TODO: (Viduni) Remove after design QA on deployment - // readonly: Object.hasOwn(options, 'isThemeSwitcherEnabled') - // ? !options.isThemeSwitcherEnabled - // : true, + readonly: Object.hasOwn(options, 'isThemeSwitcherEnabled') + ? !options.isThemeSwitcherEnabled + : true, requiresPageReload: true, schema: schema.oneOf([ schema.literal('amsterdam'),