forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Search][Onboarding] Index Details - No Data view (elastic#193637)
## Summary Introduction of the No Data view for the index details Data tab. ### Screenshots Index without data or mapping ![image](https://github.com/user-attachments/assets/98826d3d-ea2c-434a-9648-35a2098a08e7) Index with mappings but no Data ![image](https://github.com/user-attachments/assets/16c9f84f-868e-4ccd-9125-2fbef5c275c6) ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) (cherry picked from commit 0be74e9)
- Loading branch information
1 parent
24bec01
commit 1f513d2
Showing
24 changed files
with
855 additions
and
108 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
15 changes: 15 additions & 0 deletions
15
x-pack/plugins/search_indices/public/code_examples/constants.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,15 @@ | ||
/* | ||
* 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 { i18n } from '@kbn/i18n'; | ||
|
||
export const UPLOAD_VECTORS_TITLE = i18n.translate( | ||
'xpack.searchIndices.codeExamples.ingest.denseVector.title', | ||
{ | ||
defaultMessage: 'Upload vectors', | ||
} | ||
); |
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
35 changes: 35 additions & 0 deletions
35
x-pack/plugins/search_indices/public/code_examples/ingest_data.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,35 @@ | ||
/* | ||
* 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 { i18n } from '@kbn/i18n'; | ||
import { IngestDataCodeExamples } from '../types'; | ||
import { UPLOAD_VECTORS_TITLE } from './constants'; | ||
|
||
import { JSServerlessIngestVectorDataExample } from './javascript'; | ||
import { PythonServerlessVectorsIngestDataExample } from './python'; | ||
import { ConsoleVectorsIngestDataExample } from './sense'; | ||
import { CurlVectorsIngestDataExample } from './curl'; | ||
|
||
export const DenseVectorServerlessCodeExamples: IngestDataCodeExamples = { | ||
title: UPLOAD_VECTORS_TITLE, | ||
ingestTitle: UPLOAD_VECTORS_TITLE, | ||
description: i18n.translate( | ||
'xpack.searchIndices.codeExamples.serverless.denseVector.description', | ||
{ | ||
defaultMessage: | ||
'The following example connects to your Elasticsearch endpoint and uploads vectors to the index.', | ||
} | ||
), | ||
defaultMapping: { | ||
vector: { type: 'dense_vector', dims: 3 }, | ||
text: { type: 'text' }, | ||
}, | ||
sense: ConsoleVectorsIngestDataExample, | ||
curl: CurlVectorsIngestDataExample, | ||
python: PythonServerlessVectorsIngestDataExample, | ||
javascript: JSServerlessIngestVectorDataExample, | ||
}; |
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
17 changes: 17 additions & 0 deletions
17
x-pack/plugins/search_indices/public/code_examples/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,17 @@ | ||
/* | ||
* 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 { CreateIndexCodeDefinition, IngestDataCodeDefinition } from '../types'; | ||
|
||
export interface CreateIndexLanguageExamples { | ||
default: CreateIndexCodeDefinition; | ||
dense_vector: CreateIndexCodeDefinition; | ||
} | ||
|
||
export interface IngestDataLanguageExamples { | ||
dense_vector: IngestDataCodeDefinition; | ||
} |
Oops, something went wrong.