From a1955d7fbe4932c957aa2c6efc8289b492cbf202 Mon Sep 17 00:00:00 2001
From: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>
Date: Tue, 24 Oct 2023 11:05:57 +0200
Subject: [PATCH] Add new sparse vector and dense vector icons (#169493)
---
.../src/field_icon/__snapshots__/field_icon.test.tsx.snap | 4 ++--
packages/kbn-react-field/src/field_icon/field_icon.tsx | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap b/packages/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap
index d33152540f7ea..66377dc0af529 100644
--- a/packages/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap
+++ b/packages/kbn-react-field/src/field_icon/__snapshots__/field_icon.test.tsx.snap
@@ -99,7 +99,7 @@ exports[`FieldIcon renders known field types dense_vector is rendered 1`] = `
@@ -279,7 +279,7 @@ exports[`FieldIcon renders known field types sparse_vector is rendered 1`] = `
diff --git a/packages/kbn-react-field/src/field_icon/field_icon.tsx b/packages/kbn-react-field/src/field_icon/field_icon.tsx
index 4db1c3a61663d..784f8913b5693 100644
--- a/packages/kbn-react-field/src/field_icon/field_icon.tsx
+++ b/packages/kbn-react-field/src/field_icon/field_icon.tsx
@@ -53,7 +53,7 @@ export const typeToEuiIconMap: Partial> = {
conflict: { iconType: 'warning', color: 'euiColorVis9', shape: 'square' },
date: { iconType: 'tokenDate' },
date_range: { iconType: 'tokenDate' },
- dense_vector: { iconType: 'tokenDenseVector' },
+ dense_vector: { iconType: 'tokenVectorDense' },
geo_point: { iconType: 'tokenGeo' },
geo_shape: { iconType: 'tokenGeo' },
ip: { iconType: 'tokenIP' },
@@ -70,7 +70,7 @@ export const typeToEuiIconMap: Partial> = {
_source: { iconType: 'editorCodeBlock', color: 'gray' },
point: { iconType: 'tokenShape' }, // there is no separate icon for `point` yet
shape: { iconType: 'tokenShape' },
- sparse_vector: { iconType: 'tokenDenseVector' },
+ sparse_vector: { iconType: 'tokenVectorSparse' },
string: { iconType: 'tokenString' },
text: { iconType: 'tokenString' },
keyword: { iconType: 'tokenKeyword' },