File tree Expand file tree Collapse file tree
packages/kbn-elastic-assistant/impl/assistant
conversations/conversation_settings
plugins/security_solution/public/assistant/stack_management Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export const SETTINGS_PROMPT_HELP_TEXT_TITLE = i18n.translate(
5959export const STREAMING_TITLE = i18n . translate (
6060 'xpack.elasticAssistant.assistant.conversations.settings.streamingTitle' ,
6161 {
62- defaultMessage : 'STREAMING ' ,
62+ defaultMessage : 'Streaming ' ,
6363 }
6464) ;
6565
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ interface Props {
3737 dataViews : DataViewsContract ;
3838 selectedConversation : Conversation ;
3939 onTabChange ?: ( tabId : string ) => void ;
40- currentTab ? : SettingsTabs ;
40+ currentTab : SettingsTabs ;
4141}
4242
4343/**
@@ -65,14 +65,14 @@ export const AssistantSettingsManagement: React.FC<Props> = React.memo(
6565
6666 const tabsConfig = useMemo (
6767 ( ) => [
68- {
69- id : CONNECTORS_TAB ,
70- label : i18n . CONNECTORS_MENU_ITEM ,
71- } ,
7268 {
7369 id : CONVERSATIONS_TAB ,
7470 label : i18n . CONVERSATIONS_MENU_ITEM ,
7571 } ,
72+ {
73+ id : CONNECTORS_TAB ,
74+ label : i18n . CONNECTORS_MENU_ITEM ,
75+ } ,
7676 {
7777 id : SYSTEM_PROMPTS_TAB ,
7878 label : i18n . SYSTEM_PROMPTS_MENU_ITEM ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 EuiContextMenuPanel ,
1313 EuiContextMenuItem ,
1414 EuiConfirmModal ,
15+ EuiIcon ,
1516 EuiNotificationBadge ,
1617 EuiPopover ,
1718 EuiButtonIcon ,
@@ -68,6 +69,7 @@ export const SettingsContextMenu: React.FC<Params> = React.memo(
6869 ( ) =>
6970 navigateToApp ( 'management' , {
7071 path : 'kibana/securityAiAssistantManagement' ,
72+ openInNewTab : true ,
7173 } ) ,
7274 [ navigateToApp ]
7375 ) ;
@@ -81,6 +83,7 @@ export const SettingsContextMenu: React.FC<Params> = React.memo(
8183 ( ) =>
8284 navigateToApp ( 'management' , {
8385 path : `kibana/securityAiAssistantManagement?tab=${ KNOWLEDGE_BASE_TAB } ` ,
86+ openInNewTab : true ,
8487 } ) ,
8588 [ navigateToApp ]
8689 ) ;
@@ -101,6 +104,13 @@ export const SettingsContextMenu: React.FC<Params> = React.memo(
101104 data-test-subj = { 'ai-assistant-settings' }
102105 >
103106 { i18n . AI_ASSISTANT_SETTINGS }
107+ < EuiIcon
108+ css = { css `
109+ margin-left : ${ euiThemeVars . euiSizeXS } ;
110+ ` }
111+ size = "s"
112+ type = "popout"
113+ />
104114 </ EuiContextMenuItem > ,
105115 < EuiContextMenuItem
106116 aria-label = { 'knowledge-base' }
@@ -109,6 +119,13 @@ export const SettingsContextMenu: React.FC<Params> = React.memo(
109119 data-test-subj = { 'knowledge-base' }
110120 >
111121 { i18n . KNOWLEDGE_BASE }
122+ < EuiIcon
123+ css = { css `
124+ margin-left : ${ euiThemeVars . euiSizeXS } ;
125+ ` }
126+ size = "s"
127+ type = "popout"
128+ />
112129 </ EuiContextMenuItem > ,
113130 < EuiContextMenuItem
114131 aria-label = { 'anonymization' }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
1919import { useConversation } from '@kbn/elastic-assistant/impl/assistant/use_conversation' ;
2020import type { FetchConversationsResponse } from '@kbn/elastic-assistant/impl/assistant/api' ;
2121import { SECURITY_AI_SETTINGS } from '@kbn/elastic-assistant/impl/assistant/settings/translations' ;
22- import { CONNECTORS_TAB } from '@kbn/elastic-assistant/impl/assistant/settings/const' ;
22+ import { CONVERSATIONS_TAB } from '@kbn/elastic-assistant/impl/assistant/settings/const' ;
2323import type { SettingsTabs } from '@kbn/elastic-assistant/impl/assistant/settings/types' ;
2424import { useKibana } from '../../common/lib/kibana' ;
2525
@@ -68,7 +68,7 @@ export const ManagementSettings = React.memo(() => {
6868
6969 const [ searchParams ] = useSearchParams ( ) ;
7070 const currentTab = useMemo (
71- ( ) => ( searchParams . get ( 'tab' ) as SettingsTabs ) ?? CONNECTORS_TAB ,
71+ ( ) => ( searchParams . get ( 'tab' ) as SettingsTabs ) ?? CONVERSATIONS_TAB ,
7272 [ searchParams ]
7373 ) ;
7474
You can’t perform that action at this time.
0 commit comments