Skip to content

Commit

Permalink
[ai][assistant] Create AI Assistant Icon, Avatar, Beacon (elastic#203879
Browse files Browse the repository at this point in the history
)
  • Loading branch information
clintandrewhall authored Dec 13, 2024
1 parent d9fc226 commit 666a0cf
Show file tree
Hide file tree
Showing 50 changed files with 513 additions and 617 deletions.
1 change: 1 addition & 0 deletions .buildkite/scripts/steps/storybooks/build_and_upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { getKibanaDir } from '#pipeline-utils';

// TODO - how to generate this dynamically?
const STORYBOOKS = [
'ai_assistant',
'apm',
'canvas',
'cases',
Expand Down
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ x-pack/examples/triggers_actions_ui_example @elastic/response-ops
x-pack/examples/ui_actions_enhanced_examples @elastic/appex-sharedux
x-pack/packages/ai-infra/product-doc-artifact-builder @elastic/appex-ai-infra
x-pack/packages/kbn-ai-assistant @elastic/search-kibana
x-pack/packages/kbn-ai-assistant-common @elastic/search-kibana
x-pack/packages/kbn-alerting-comparators @elastic/response-ops
x-pack/packages/kbn-alerting-state-types @elastic/response-ops
x-pack/packages/kbn-cloud-security-posture/common @elastic/kibana-cloud-security-posture
Expand Down Expand Up @@ -832,6 +831,8 @@ x-pack/platform/packages/private/ml/ui_actions @elastic/ml-ui
x-pack/platform/packages/private/ml/url_state @elastic/ml-ui
x-pack/platform/packages/private/ml/validators @elastic/ml-ui
x-pack/platform/packages/private/rollup @elastic/kibana-management
x-pack/platform/packages/shared/ai-assistant/common @elastic/search-kibana
x-pack/platform/packages/shared/ai-assistant/icon @elastic/appex-sharedux
x-pack/platform/packages/shared/ai-infra/inference-common @elastic/appex-ai-infra
x-pack/platform/packages/shared/ai-infra/product-doc-common @elastic/appex-ai-infra
x-pack/platform/packages/shared/index-lifecycle-management/index_lifecycle_management_common_shared @elastic/kibana-management
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@
"@kbn/actions-types": "link:packages/kbn-actions-types",
"@kbn/advanced-settings-plugin": "link:src/plugins/advanced_settings",
"@kbn/ai-assistant": "link:x-pack/packages/kbn-ai-assistant",
"@kbn/ai-assistant-common": "link:x-pack/packages/kbn-ai-assistant-common",
"@kbn/ai-assistant-common": "link:x-pack/platform/packages/shared/ai-assistant/common",
"@kbn/ai-assistant-icon": "link:x-pack/platform/packages/shared/ai-assistant/icon",
"@kbn/ai-assistant-management-plugin": "link:src/platform/plugins/shared/ai_assistant_management/selection",
"@kbn/aiops-change-point-detection": "link:x-pack/platform/packages/private/ml/aiops_change_point_detection",
"@kbn/aiops-common": "link:x-pack/platform/packages/shared/ml/aiops_common",
Expand Down
1 change: 1 addition & 0 deletions src/dev/storybook/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// If you wish for your Storybook to be built and included in CI, also add your
// alias to .buildkite/scripts/steps/storybooks/build_and_upload.ts
export const storybookAliases = {
ai_assistant: 'x-pack/packages/kbn-ai-assistant/.storybook',
apm: 'x-pack/plugins/observability_solution/apm/.storybook',
canvas: 'x-pack/plugins/canvas/storybook',
cases: 'packages/kbn-cases-components/.storybook',
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
"@kbn/advanced-settings-plugin/*": ["src/plugins/advanced_settings/*"],
"@kbn/ai-assistant": ["x-pack/packages/kbn-ai-assistant"],
"@kbn/ai-assistant/*": ["x-pack/packages/kbn-ai-assistant/*"],
"@kbn/ai-assistant-common": ["x-pack/packages/kbn-ai-assistant-common"],
"@kbn/ai-assistant-common/*": ["x-pack/packages/kbn-ai-assistant-common/*"],
"@kbn/ai-assistant-common": ["x-pack/platform/packages/shared/ai-assistant/common"],
"@kbn/ai-assistant-common/*": ["x-pack/platform/packages/shared/ai-assistant/common/*"],
"@kbn/ai-assistant-icon": ["x-pack/platform/packages/shared/ai-assistant/icon"],
"@kbn/ai-assistant-icon/*": ["x-pack/platform/packages/shared/ai-assistant/icon/*"],
"@kbn/ai-assistant-management-plugin": ["src/platform/plugins/shared/ai_assistant_management/selection"],
"@kbn/ai-assistant-management-plugin/*": ["src/platform/plugins/shared/ai_assistant_management/selection/*"],
"@kbn/aiops-change-point-detection": ["x-pack/platform/packages/private/ml/aiops_change_point_detection"],
Expand Down
19 changes: 19 additions & 0 deletions x-pack/packages/kbn-ai-assistant/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* 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 { defaultConfig } from '@kbn/storybook';

module.exports = {
...defaultConfig,
stories: [
'../**/*.stories.tsx',
'../../../platform/packages/shared/ai-assistant/**/*.stories.tsx',
],
reactOptions: {
strictMode: true,
},
};
20 changes: 20 additions & 0 deletions x-pack/packages/kbn-ai-assistant/.storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* 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 { addons } from '@storybook/addons';
import { create } from '@storybook/theming';
import { PANEL_ID } from '@storybook/addon-actions';

addons.setConfig({
theme: create({
base: 'light',
brandTitle: 'AI Assistant Storybook',
brandUrl: 'https://github.com/elastic/kibana/tree/main/x-pack/packages/kbn-ai-assistant',
}),
showPanel: true.valueOf,
selectedPanel: PANEL_ID,
});

This file was deleted.

This file was deleted.

This file was deleted.

81 changes: 0 additions & 81 deletions x-pack/packages/kbn-ai-assistant/src/chat/chat_body.stories.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions x-pack/packages/kbn-ai-assistant/src/chat/chat_flyout.stories.tsx

This file was deleted.

Loading

0 comments on commit 666a0cf

Please sign in to comment.