diff --git a/x-pack/packages/kbn-ai-assistant/src/chat/chat_flyout.tsx b/x-pack/packages/kbn-ai-assistant/src/chat/chat_flyout.tsx index 8388ab71d2fd0..320beb1ca6b05 100644 --- a/x-pack/packages/kbn-ai-assistant/src/chat/chat_flyout.tsx +++ b/x-pack/packages/kbn-ai-assistant/src/chat/chat_flyout.tsx @@ -47,7 +47,7 @@ export function ChatFlyout({ isOpen, onClose, navigateToConversation, - hidePreviousConversations, + hideConversationList, }: { initialTitle: string; initialMessages: Message[]; @@ -55,7 +55,7 @@ export function ChatFlyout({ isOpen: boolean; onClose: () => void; navigateToConversation?: (conversationId?: string) => void; - hidePreviousConversations?: boolean; + hideConversationList?: boolean; }) { const { euiTheme } = useEuiTheme(); const breakpoint = useCurrentEuiBreakpoint(); @@ -176,7 +176,7 @@ export function ChatFlyout({ }} > - {!hidePreviousConversations ? ( + {!hideConversationList ? ( diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts index d3a75c5336c59..5b64073592430 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts @@ -39,7 +39,7 @@ export function createService({ const predefinedConversation$ = new Subject<{ messages: Message[]; title?: string; - hidePreviousConversations?: boolean; + hideConversationList?: boolean; }>(); const scope$ = new BehaviorSubject(scopes); @@ -111,13 +111,13 @@ export function createService({ openNewConversation: ({ messages, title, - hidePreviousConversations = false, + hideConversationList = false, }: { messages: Message[]; title?: string; - hidePreviousConversations?: boolean; + hideConversationList?: boolean; }) => { - predefinedConversation$.next({ messages, title, hidePreviousConversations }); + predefinedConversation$.next({ messages, title, hideConversationList }); }, predefinedConversation$: predefinedConversation$.asObservable(), }, diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/types.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/public/types.ts index c6fd1de83aca9..72517df5bffbc 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/public/types.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/public/types.ts @@ -94,12 +94,12 @@ export interface ObservabilityAIAssistantConversationService { openNewConversation: ({}: { messages: Message[]; title?: string; - hidePreviousConversations?: boolean; + hideConversationList?: boolean; }) => void; predefinedConversation$: Observable<{ messages: Message[]; title?: string; - hidePreviousConversations?: boolean; + hideConversationList?: boolean; }>; } diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/index.tsx b/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/index.tsx index af530d6f567ba..b6095ac595cea 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/index.tsx +++ b/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/index.tsx @@ -103,12 +103,12 @@ export function NavControl() { }; }, [service.conversations.predefinedConversation$]); - const { messages, title, hidePreviousConversations } = useObservable( + const { messages, title, hideConversationList } = useObservable( service.conversations.predefinedConversation$ ) ?? { messages: [], title: undefined, - hidePreviousConversations: false, + hideConversationList: false, }; const theme = useTheme(); @@ -174,7 +174,7 @@ export function NavControl() { ) ); }} - hidePreviousConversations={hidePreviousConversations} + hideConversationList={hideConversationList} /> ) : undefined}