-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ai][assistant] Create AI Assistant Icon, Avatar, Beacon #203879
[ai][assistant] Create AI Assistant Icon, Avatar, Beacon #203879
Conversation
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
9b09f24
to
0fe966d
Compare
2f05128
to
937fed4
Compare
@@ -24,7 +24,7 @@ export const sizeMap = { | |||
/** | |||
* Default Elastic AI Assistant logo | |||
* | |||
* TODO: This may be removed when the logo is added to EUI | |||
* @deprecated This component will soon be replaced by `AssistantIcon` from `@kbn/ai-assistant-icon`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would we want to replace the usage of this deprecated component in
kibana/x-pack/solutions/security/packages/upselling/sections/attack_discovery/index.tsx
Line 33 in 937fed4
<AssistantAvatar size="m" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's coming in a separate PR, to make review easier.
Draft: clintandrewhall#37
937fed4
to
3edb58f
Compare
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Unknown metric groupsAPI count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
|
@clintandrewhall Don't we plan to backport this to |
@semd you're absolutely right, an oversight on my part. Thanks for the catch! I'll backport it momentarily |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…204287) > A follow-up to #203879 ## Summary This PR integrates the new Assistant Icon, Beacon, and Avatar into solutions and packages owned by Search. In most cases this was a 1:1 replacement, but in a few, Icon was replaced with Beacon or Beacon was added for consistency, (e.g. welcome screens, upsells, etc), . Note: the scaling of the icon/avatar _before_ was one different from EUI. The new components match EUI directly and represent a 2x scale change (e.g. 's' becomes 'l', 'm' becomes 'xl', etc). --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…) (#204745) # Backport This will backport the following commits from `main` to `8.x`: - [[ai][assistant] Create AI Assistant Icon, Avatar, Beacon (#203879)](#203879) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Clint Andrew Hall","email":"clint.hall@elastic.co"},"sourceCommit":{"committedDate":"2024-12-13T21:18:35Z","message":"[ai][assistant] Create AI Assistant Icon, Avatar, Beacon (#203879)","sha":"666a0cf9719a0af7c868a36f49b9d478b59a39a2","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","release_note:skip","v9.0.0","Team:Obs AI Assistant","ci:project-deploy-observability","v8.18.0"],"number":203879,"url":"https://github.com/elastic/kibana/pull/203879","mergeCommit":{"message":"[ai][assistant] Create AI Assistant Icon, Avatar, Beacon (#203879)","sha":"666a0cf9719a0af7c868a36f49b9d478b59a39a2"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203879","number":203879,"mergeCommit":{"message":"[ai][assistant] Create AI Assistant Icon, Avatar, Beacon (#203879)","sha":"666a0cf9719a0af7c868a36f49b9d478b59a39a2"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…lastic#204287) > A follow-up to elastic#203879 ## Summary This PR integrates the new Assistant Icon, Beacon, and Avatar into solutions and packages owned by Search. In most cases this was a 1:1 replacement, but in a few, Icon was replaced with Beacon or Beacon was added for consistency, (e.g. welcome screens, upsells, etc), . Note: the scaling of the icon/avatar _before_ was one different from EUI. The new components match EUI directly and represent a 2x scale change (e.g. 's' becomes 'l', 'm' becomes 'xl', etc). --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit e078673)
…eacon (#204287) (#204772) # Backport This will backport the following commits from `main` to `8.x`: - [[ai][assistant] Refactor search to use new Assistant logo and beacon (#204287)](#204287) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Clint Andrew Hall","email":"clint.hall@elastic.co"},"sourceCommit":{"committedDate":"2024-12-18T14:51:45Z","message":"[ai][assistant] Refactor search to use new Assistant logo and beacon (#204287)\n\n> A follow-up to #203879 \r\n\r\n## Summary\r\n\r\nThis PR integrates the new Assistant Icon, Beacon, and Avatar into\r\nsolutions and packages owned by Search. In most cases this was a 1:1\r\nreplacement, but in a few, Icon was replaced with Beacon or Beacon was\r\nadded for consistency, (e.g. welcome screens, upsells, etc), .\r\n\r\nNote: the scaling of the icon/avatar _before_ was one different from\r\nEUI. The new components match EUI directly and represent a 2x scale\r\nchange (e.g. 's' becomes 'l', 'm' becomes 'xl', etc).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"e0786738c950870c49b4899937cc3904a1b8ef97","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","release_note:skip","v9.0.0","backport:version","v8.18.0"],"number":204287,"url":"https://github.com/elastic/kibana/pull/204287","mergeCommit":{"message":"[ai][assistant] Refactor search to use new Assistant logo and beacon (#204287)\n\n> A follow-up to #203879 \r\n\r\n## Summary\r\n\r\nThis PR integrates the new Assistant Icon, Beacon, and Avatar into\r\nsolutions and packages owned by Search. In most cases this was a 1:1\r\nreplacement, but in a few, Icon was replaced with Beacon or Beacon was\r\nadded for consistency, (e.g. welcome screens, upsells, etc), .\r\n\r\nNote: the scaling of the icon/avatar _before_ was one different from\r\nEUI. The new components match EUI directly and represent a 2x scale\r\nchange (e.g. 's' becomes 'l', 'm' becomes 'xl', etc).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"e0786738c950870c49b4899937cc3904a1b8ef97"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204287","number":204287,"mergeCommit":{"message":"[ai][assistant] Refactor search to use new Assistant logo and beacon (#204287)\n\n> A follow-up to #203879 \r\n\r\n## Summary\r\n\r\nThis PR integrates the new Assistant Icon, Beacon, and Avatar into\r\nsolutions and packages owned by Search. In most cases this was a 1:1\r\nreplacement, but in a few, Icon was replaced with Beacon or Beacon was\r\nadded for consistency, (e.g. welcome screens, upsells, etc), .\r\n\r\nNote: the scaling of the icon/avatar _before_ was one different from\r\nEUI. The new components match EUI directly and represent a 2x scale\r\nchange (e.g. 's' becomes 'l', 'm' becomes 'xl', etc).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"e0786738c950870c49b4899937cc3904a1b8ef97"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…lastic#204287) > A follow-up to elastic#203879 ## Summary This PR integrates the new Assistant Icon, Beacon, and Avatar into solutions and packages owned by Search. In most cases this was a 1:1 replacement, but in a few, Icon was replaced with Beacon or Beacon was added for consistency, (e.g. welcome screens, upsells, etc), . Note: the scaling of the icon/avatar _before_ was one different from EUI. The new components match EUI directly and represent a 2x scale change (e.g. 's' becomes 'l', 'm' becomes 'xl', etc). --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
The AI Assistant icon exists in several places at the moment, used in more or less the same way, but with different terms and sizes. This PR consolidates those usages into a package that not only enforces consistency throughout Kibana, but also with sizes and terminology used in EUI.
AssistantIcon
- static logo, equivalent toEuiIcon
.AssistantAvatar
- personified presence, equivalent toEuiAvatar
.AssistantBeacon
- animated "hero" logo, adapted equivalent toEuiBeacon
.This PR also creates the
ai-assistant
directory for additional packages. I anticipate many packages to be created in the coming weeks for logic and components, so having a top-level directory makes sense. It also adds a Storybook.NOTE: I don't currently have plans to move
@kbn/ai-assistant
to this directory, or to any other location.Additional changes
@kbn/ai-assistant-common
topackages/ai-assistant
.Next up