Skip to content

Commit 92bc123

Browse files
authored
Implement latest Ask AI designs (#2306)
* Implement latest AskAI experience - Also includes some search adjustments and overall adjustments - Use new AI Assistant icon and colors - Run streaming in background, so that you can close and open the popover * eslint fixes
1 parent 4bf5ecb commit 92bc123

35 files changed

+3023
-2584
lines changed

aspire/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Should have these secrets
8787
> Parameters:DocumentationElasticApiKey = ****
8888
8989
To set them:
90-
90+
9191
```bash
9292
dotnet user-secrets --project aspire set Parameters:DocumentationElasticApiKey <VALUE>
9393
```
@@ -149,4 +149,3 @@ dotnet test tests-integration/Elastic.Assembler.IntegrationTests --filter "Fully
149149
- Network connectivity issues with Elasticsearch
150150
- **Performance optimization**: Subsequent test runs against the same Elasticsearch instance are significantly faster because indexing is skipped when data is already up-to-date
151151
- The base class `SearchTestBase` can be extended for additional search-related tests, providing consistent initialization and intelligent indexing behavior
152-
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "@parcel/config-default",
3+
"transformers": {
4+
"*.svg": ["@parcel/transformer-svg-react"]
5+
}
6+
}

src/Elastic.Documentation.Site/Assets/eui-icons-cache.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { icon as EuiIconEmpty } from '@elastic/eui/es/components/icon/assets/emp
1919
import { icon as EuiIconError } from '@elastic/eui/es/components/icon/assets/error'
2020
import { icon as EuiIconFaceHappy } from '@elastic/eui/es/components/icon/assets/face_happy'
2121
import { icon as EuiIconFaceSad } from '@elastic/eui/es/components/icon/assets/face_sad'
22+
import { icon as EuiIconKqlFunction } from '@elastic/eui/es/components/icon/assets/kql_function'
2223
import { icon as EuiIconLogoElastic } from '@elastic/eui/es/components/icon/assets/logo_elastic'
2324
import { icon as EuiIconNewChat } from '@elastic/eui/es/components/icon/assets/new_chat'
2425
import { icon as EuiIconPlay } from '@elastic/eui/es/components/icon/assets/play'
@@ -29,6 +30,7 @@ import { icon as EuiIconSearch } from '@elastic/eui/es/components/icon/assets/se
2930
import { icon as EuiIconSortDown } from '@elastic/eui/es/components/icon/assets/sort_down'
3031
import { icon as EuiIconSortUp } from '@elastic/eui/es/components/icon/assets/sort_up'
3132
import { icon as EuiIconSparkles } from '@elastic/eui/es/components/icon/assets/sparkles'
33+
import { icon as EuiIconStop } from '@elastic/eui/es/components/icon/assets/stop'
3234
import { icon as EuiIconThumbDown } from '@elastic/eui/es/components/icon/assets/thumbDown'
3335
import { icon as EuiIconThumbUp } from '@elastic/eui/es/components/icon/assets/thumbUp'
3436
import { icon as EuiIconTrash } from '@elastic/eui/es/components/icon/assets/trash'
@@ -68,9 +70,11 @@ const iconMapping = {
6870
play: EuiIconPlay,
6971
sortUp: EuiIconSortUp,
7072
sortDown: EuiIconSortDown,
73+
stop: EuiIconStop,
7174
arrowStart: EuiIconArrowStart,
7275
arrowEnd: EuiIconArrowEnd,
7376
comment: EuiIconComment,
77+
kqlFunction: EuiIconKqlFunction,
7478
}
7579

7680
appendIconComponentCache(iconMapping)

src/Elastic.Documentation.Site/Assets/global.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ declare module '@elastic/highlightjs-esql' {
33
const esql: LanguageFn
44
export default esql
55
}
6+
7+
declare module '*.svg' {
8+
import { ComponentType, SVGProps } from 'react'
9+
const component: ComponentType<SVGProps<SVGSVGElement>>
10+
export default component
11+
}

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/AskAiSuggestions.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ export const AskAiSuggestions = ({ disabled }: { disabled?: boolean }) => {
5959
`}
6060
>
6161
<EuiButton
62-
iconType="newChat"
63-
color="primary"
64-
fullWidth
62+
color="text"
6563
size="s"
6664
onClick={() => {
6765
if (!disabled) {

0 commit comments

Comments
 (0)