-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 161754-infra-ui-replace-node-details-flyout-…
…with-asset-details-flyout-in-the-inventory-page
- Loading branch information
Showing
73 changed files
with
1,673 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
x-pack/plugins/observability_ai_assistant/public/components/chat/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
type ChatActionClickPayloadBase<TType extends ChatActionClickType, TExtraProps extends {}> = { | ||
type: TType; | ||
} & TExtraProps; | ||
|
||
type ChatActionClickPayloadExecuteEsql = ChatActionClickPayloadBase< | ||
ChatActionClickType.executeEsqlQuery, | ||
{ query: string } | ||
>; | ||
|
||
type ChatActionClickPayload = ChatActionClickPayloadExecuteEsql; | ||
|
||
export enum ChatActionClickType { | ||
executeEsqlQuery = 'executeEsqlQuery', | ||
} | ||
|
||
export type ChatActionClickHandler = (payload: ChatActionClickPayload) => Promise<unknown>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ns/observability_ai_assistant/public/components/message_panel/esql_code_block.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import React from 'react'; | ||
import { ComponentMeta, ComponentStoryObj } from '@storybook/react'; | ||
import { ComponentProps } from 'react'; | ||
import { EuiPanel } from '@elastic/eui'; | ||
import { EsqlCodeBlock as Component } from './esql_code_block'; | ||
|
||
const meta: ComponentMeta<typeof Component> = { | ||
component: Component, | ||
title: 'app/Molecules/ES|QL Code Block', | ||
}; | ||
|
||
export default meta; | ||
|
||
const render = (props: ComponentProps<typeof Component>) => { | ||
return ( | ||
<EuiPanel hasBorder hasShadow={false}> | ||
<Component {...props} /> | ||
</EuiPanel> | ||
); | ||
}; | ||
|
||
export const Simple: ComponentStoryObj<typeof Component> = { | ||
args: { | ||
value: `FROM packetbeat-* | ||
| STATS COUNT_DISTINCT(destination.domain)`, | ||
}, | ||
render, | ||
}; |
Oops, something went wrong.