From bc9e6b1d2ba458af13b186e09c6c021682ea1570 Mon Sep 17 00:00:00 2001 From: Bishoy Boktor Date: Wed, 10 Mar 2021 17:29:29 +0000 Subject: [PATCH 1/3] Rename kibana_overview to opensearch_dashboards_overview plugin (#37) Signed-off-by: Bishoy Boktor --- src/plugins/kibana_overview/kibana.json | 9 -- .../README.md | 4 +- .../common/index.ts | 4 +- .../opensearch_dashboards.json | 9 ++ .../public/application.tsx | 20 ++--- .../opensearch_dashboards_canvas_dark.svg} | 8 +- .../opensearch_dashboards_canvas_light.svg} | 8 +- .../opensearch_dashboards_dashboard_dark.svg} | 12 +-- ...opensearch_dashboards_dashboard_light.svg} | 12 +-- .../opensearch_dashboards_discover_dark.svg} | 12 +-- .../opensearch_dashboards_discover_light.svg} | 12 +-- .../opensearch_dashboards_graph_dark.svg} | 8 +- .../opensearch_dashboards_graph_light.svg} | 8 +- .../opensearch_dashboards_maps_dark.svg} | 4 +- .../opensearch_dashboards_maps_light.svg} | 4 +- .../assets/opensearch_dashboards_ml_dark.svg} | 8 +- .../opensearch_dashboards_ml_light.svg} | 8 +- .../opensearch_dashboards_montage_dark.svg} | 20 ++--- .../opensearch_dashboards_montage_light.svg} | 20 ++--- .../solutions_enterprise_search_dark_2x.png | Bin .../solutions_enterprise_search_light_2x.png | Bin .../solutions_observability_dark_2x.png | Bin .../solutions_observability_light_2x.png | Bin .../solutions_security_solution_dark_2x.png | Bin .../solutions_security_solution_light_2x.png | Bin .../public/components/_index.scss | 0 .../public/components/_overview.scss | 28 +++--- .../__snapshots__/add_data.test.tsx.snap | 0 .../components/add_data/add_data.test.tsx | 0 .../public/components/add_data/add_data.tsx | 24 +++--- .../public/components/add_data/index.ts | 0 .../public/components/app.tsx | 8 +- .../getting_started.test.tsx.snap | 0 .../getting_started/getting_started.test.tsx | 16 ++-- .../getting_started/getting_started.tsx | 38 ++++----- .../components/getting_started/index.ts | 0 .../__snapshots__/manage_data.test.tsx.snap | 0 .../public/components/manage_data/index.tsx | 0 .../manage_data/manage_data.test.tsx | 0 .../components/manage_data/manage_data.tsx | 24 +++--- .../__snapshots__/news_feed.test.tsx.snap | 0 .../public/components/news_feed/index.ts | 0 .../components/news_feed/news_feed.test.tsx | 2 +- .../public/components/news_feed/news_feed.tsx | 14 +-- .../__snapshots__/overview.test.tsx.snap | 0 .../public/components/overview/index.ts | 0 .../components/overview/overview.test.tsx | 20 ++--- .../public/components/overview/overview.tsx | 80 +++++++++--------- .../__snapshots__/synopsis.test.js.snap | 0 .../public/components/synopsis/index.js | 0 .../public/components/synopsis/synopsis.js | 0 .../components/synopsis/synopsis.test.js | 0 .../public/index.scss | 0 .../public/index.ts | 8 +- .../public/plugin.ts | 62 +++++++------- .../public/types.ts | 4 +- 56 files changed, 259 insertions(+), 259 deletions(-) delete mode 100644 src/plugins/kibana_overview/kibana.json rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/README.md (66%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/common/index.ts (87%) create mode 100644 src/plugins/opensearch_dashboards_overview/opensearch_dashboards.json rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/application.tsx (75%) rename src/plugins/{kibana_overview/public/assets/kibana_canvas_dark.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_dark.svg} (91%) rename src/plugins/{kibana_overview/public/assets/kibana_canvas_light.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_light.svg} (90%) rename src/plugins/{kibana_overview/public/assets/kibana_dashboard_dark.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_dark.svg} (92%) rename src/plugins/{kibana_overview/public/assets/kibana_dashboard_light.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_light.svg} (92%) rename src/plugins/{kibana_overview/public/assets/kibana_discover_dark.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_dark.svg} (93%) rename src/plugins/{kibana_overview/public/assets/kibana_discover_light.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_light.svg} (93%) rename src/plugins/{kibana_overview/public/assets/kibana_graph_dark.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_dark.svg} (90%) rename src/plugins/{kibana_overview/public/assets/kibana_graph_light.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_light.svg} (89%) rename src/plugins/{kibana_overview/public/assets/kibana_maps_dark.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_dark.svg} (99%) rename src/plugins/{kibana_overview/public/assets/kibana_maps_light.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_light.svg} (99%) rename src/plugins/{kibana_overview/public/assets/kibana_ml_dark.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_dark.svg} (95%) rename src/plugins/{kibana_overview/public/assets/kibana_ml_light.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_light.svg} (95%) rename src/plugins/{kibana_overview/public/assets/kibana_montage_dark.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_dark.svg} (91%) rename src/plugins/{kibana_overview/public/assets/kibana_montage_light.svg => opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_light.svg} (92%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/assets/solutions_enterprise_search_dark_2x.png (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/assets/solutions_enterprise_search_light_2x.png (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/assets/solutions_observability_dark_2x.png (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/assets/solutions_observability_light_2x.png (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/assets/solutions_security_solution_dark_2x.png (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/assets/solutions_security_solution_light_2x.png (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/_index.scss (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/_overview.scss (83%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/add_data/__snapshots__/add_data.test.tsx.snap (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/add_data/add_data.test.tsx (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/add_data/add_data.tsx (79%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/add_data/index.ts (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/app.tsx (92%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/getting_started/__snapshots__/getting_started.test.tsx.snap (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/getting_started/getting_started.test.tsx (90%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/getting_started/getting_started.tsx (68%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/getting_started/index.ts (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/manage_data/index.tsx (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/manage_data/manage_data.test.tsx (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/manage_data/manage_data.tsx (78%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/news_feed/__snapshots__/news_feed.test.tsx.snap (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/news_feed/index.ts (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/news_feed/news_feed.test.tsx (98%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/news_feed/news_feed.tsx (81%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/overview/__snapshots__/overview.test.tsx.snap (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/overview/index.ts (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/overview/overview.test.tsx (90%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/overview/overview.tsx (73%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/synopsis/__snapshots__/synopsis.test.js.snap (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/synopsis/index.js (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/synopsis/synopsis.js (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/components/synopsis/synopsis.test.js (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/index.scss (100%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/index.ts (75%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/plugin.ts (65%) rename src/plugins/{kibana_overview => opensearch_dashboards_overview}/public/types.ts (92%) diff --git a/src/plugins/kibana_overview/kibana.json b/src/plugins/kibana_overview/kibana.json deleted file mode 100644 index d7829cb5f88b..000000000000 --- a/src/plugins/kibana_overview/kibana.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "kibanaOverview", - "version": "kibana", - "server": false, - "ui": true, - "requiredPlugins": ["navigation", "data", "home"], - "optionalPlugins": [], - "requiredBundles": ["kibanaReact"] -} diff --git a/src/plugins/kibana_overview/README.md b/src/plugins/opensearch_dashboards_overview/README.md similarity index 66% rename from src/plugins/kibana_overview/README.md rename to src/plugins/opensearch_dashboards_overview/README.md index ad0cbfdf7013..0b1b17de23bf 100644 --- a/src/plugins/kibana_overview/README.md +++ b/src/plugins/opensearch_dashboards_overview/README.md @@ -1,6 +1,6 @@ -# kibana-overview +# OpenSearch-Dashboards-overview -> An overview page highlighting Kibana apps +> An overview page highlighting OpenSearch Dashboards apps --- diff --git a/src/plugins/kibana_overview/common/index.ts b/src/plugins/opensearch_dashboards_overview/common/index.ts similarity index 87% rename from src/plugins/kibana_overview/common/index.ts rename to src/plugins/opensearch_dashboards_overview/common/index.ts index 3bdfbee1081a..03f305541cec 100644 --- a/src/plugins/kibana_overview/common/index.ts +++ b/src/plugins/opensearch_dashboards_overview/common/index.ts @@ -17,7 +17,7 @@ * under the License. */ -export const PLUGIN_ID = 'kibanaOverview'; +export const PLUGIN_ID = 'opensearchDashboardsOverview'; export const PLUGIN_NAME = 'Overview'; -export const PLUGIN_PATH = `/app/kibana_overview`; +export const PLUGIN_PATH = `/app/opensearch_dashboards_overview`; export const PLUGIN_ICON = 'logoKibana'; diff --git a/src/plugins/opensearch_dashboards_overview/opensearch_dashboards.json b/src/plugins/opensearch_dashboards_overview/opensearch_dashboards.json new file mode 100644 index 000000000000..ae91fe6cb32e --- /dev/null +++ b/src/plugins/opensearch_dashboards_overview/opensearch_dashboards.json @@ -0,0 +1,9 @@ +{ + "id": "opensearchDashboardsOverview", + "version": "opensearchDashboards", + "server": false, + "ui": true, + "requiredPlugins": ["navigation", "data", "home"], + "optionalPlugins": [], + "requiredBundles": ["opensearchDashboardsReact"] +} diff --git a/src/plugins/kibana_overview/public/application.tsx b/src/plugins/opensearch_dashboards_overview/public/application.tsx similarity index 75% rename from src/plugins/kibana_overview/public/application.tsx rename to src/plugins/opensearch_dashboards_overview/public/application.tsx index 1bf3fe07c36a..230006927eb3 100644 --- a/src/plugins/kibana_overview/public/application.tsx +++ b/src/plugins/opensearch_dashboards_overview/public/application.tsx @@ -19,12 +19,12 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import { I18nProvider } from '@kbn/i18n/react'; -import { KibanaContextProvider } from '../../../../src/plugins/kibana_react/public'; -import { NewsfeedApiEndpoint } from '../../../../src/plugins/newsfeed/public'; -import { AppMountParameters, CoreStart } from '../../../../src/core/public'; +import { I18nProvider } from '@osd/i18n/react'; +import { OpenSearchDashboardsContextProvider } from '../../opensearch_dashboards_react/public'; +import { NewsfeedApiEndpoint } from '../../newsfeed/public'; +import { AppMountParameters, CoreStart } from '../../../core/public'; import { AppPluginStartDependencies } from './types'; -import { KibanaOverviewApp } from './components/app'; +import { OpenSearchDashboardsOverviewApp } from './components/app'; export const renderApp = ( core: CoreStart, @@ -33,18 +33,18 @@ export const renderApp = ( ) => { const { notifications, http } = core; const { newsfeed, home, navigation } = deps; - const newsfeed$ = newsfeed?.createNewsFeed$(NewsfeedApiEndpoint.KIBANA_ANALYTICS); + const newsfeed$ = newsfeed?.createNewsFeed$(NewsfeedApiEndpoint.OPENSEARCH_DASHBOARDS_ANALYTICS); const navLinks = core.chrome.navLinks.getAll(); const solutions = home.featureCatalogue .getSolutions() - .filter(({ id }) => id !== 'kibana') + .filter(({ id }) => id !== 'opensearchdashboards') .filter(({ id }) => navLinks.find(({ category, hidden }) => !hidden && category?.id === id)); const features = home.featureCatalogue.get(); ReactDOM.render( - - + - + , element ); diff --git a/src/plugins/kibana_overview/public/assets/kibana_canvas_dark.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_dark.svg similarity index 91% rename from src/plugins/kibana_overview/public/assets/kibana_canvas_dark.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_dark.svg index c86a3a89924c..9ac6c01e2c9b 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_canvas_dark.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_dark.svg @@ -1,6 +1,6 @@ - + @@ -30,7 +30,7 @@ - + @@ -47,7 +47,7 @@ - + @@ -56,7 +56,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_canvas_light.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_light.svg similarity index 90% rename from src/plugins/kibana_overview/public/assets/kibana_canvas_light.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_light.svg index d51560cb915c..287c6d39120a 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_canvas_light.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_canvas_light.svg @@ -1,6 +1,6 @@ - + @@ -30,7 +30,7 @@ - + @@ -47,7 +47,7 @@ - + @@ -56,7 +56,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_dashboard_dark.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_dark.svg similarity index 92% rename from src/plugins/kibana_overview/public/assets/kibana_dashboard_dark.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_dark.svg index 834dd98d60e4..ed4bebe815ae 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_dashboard_dark.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_dark.svg @@ -1,6 +1,6 @@ - + @@ -17,7 +17,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -85,7 +85,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -103,7 +103,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_dashboard_light.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_light.svg similarity index 92% rename from src/plugins/kibana_overview/public/assets/kibana_dashboard_light.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_light.svg index 958d25362c43..a23701d7a6b6 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_dashboard_light.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_dashboard_light.svg @@ -1,6 +1,6 @@ - + @@ -17,7 +17,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -85,7 +85,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -103,7 +103,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_discover_dark.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_dark.svg similarity index 93% rename from src/plugins/kibana_overview/public/assets/kibana_discover_dark.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_dark.svg index cf3116ae7f36..1d3cb1d4ce4c 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_discover_dark.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_dark.svg @@ -1,6 +1,6 @@ - + @@ -29,7 +29,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -123,7 +123,7 @@ - + @@ -132,7 +132,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_discover_light.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_light.svg similarity index 93% rename from src/plugins/kibana_overview/public/assets/kibana_discover_light.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_light.svg index 6e039d03bef8..689fe0f0866a 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_discover_light.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_discover_light.svg @@ -1,6 +1,6 @@ - + @@ -29,7 +29,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -123,7 +123,7 @@ - + @@ -132,7 +132,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_graph_dark.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_dark.svg similarity index 90% rename from src/plugins/kibana_overview/public/assets/kibana_graph_dark.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_dark.svg index ea43adf3390d..6ba69ed90eb0 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_graph_dark.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_dark.svg @@ -1,6 +1,6 @@ - + @@ -31,7 +31,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -55,7 +55,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_graph_light.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_light.svg similarity index 89% rename from src/plugins/kibana_overview/public/assets/kibana_graph_light.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_light.svg index c4505209a20b..74ede906e49f 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_graph_light.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_graph_light.svg @@ -1,6 +1,6 @@ - + @@ -31,7 +31,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -55,7 +55,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_maps_dark.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_dark.svg similarity index 99% rename from src/plugins/kibana_overview/public/assets/kibana_maps_dark.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_dark.svg index a6c53012a5e9..73ce72cb24fa 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_maps_dark.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_dark.svg @@ -30,7 +30,7 @@ - + @@ -44,7 +44,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_maps_light.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_light.svg similarity index 99% rename from src/plugins/kibana_overview/public/assets/kibana_maps_light.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_light.svg index 06a3ee5177eb..7a0523664c79 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_maps_light.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_maps_light.svg @@ -30,7 +30,7 @@ - + @@ -44,7 +44,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_ml_dark.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_dark.svg similarity index 95% rename from src/plugins/kibana_overview/public/assets/kibana_ml_dark.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_dark.svg index 574760e523f5..ffdfe95985fa 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_ml_dark.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_dark.svg @@ -1,6 +1,6 @@ - + @@ -14,7 +14,7 @@ - + @@ -119,7 +119,7 @@ - + @@ -128,7 +128,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_ml_light.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_light.svg similarity index 95% rename from src/plugins/kibana_overview/public/assets/kibana_ml_light.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_light.svg index 2375d78ce61f..b836b09b6263 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_ml_light.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_ml_light.svg @@ -1,6 +1,6 @@ - + @@ -14,7 +14,7 @@ - + @@ -119,7 +119,7 @@ - + @@ -128,7 +128,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_montage_dark.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_dark.svg similarity index 91% rename from src/plugins/kibana_overview/public/assets/kibana_montage_dark.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_dark.svg index 7a476e4b19ae..4ae7e72269de 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_montage_dark.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_dark.svg @@ -1,5 +1,5 @@ - + @@ -38,7 +38,7 @@ - + @@ -66,7 +66,7 @@ - + @@ -97,7 +97,7 @@ - + @@ -111,7 +111,7 @@ - + @@ -129,7 +129,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -156,7 +156,7 @@ - + @@ -165,7 +165,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/kibana_montage_light.svg b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_light.svg similarity index 92% rename from src/plugins/kibana_overview/public/assets/kibana_montage_light.svg rename to src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_light.svg index 83f48a0d31a0..a1bb03a92526 100644 --- a/src/plugins/kibana_overview/public/assets/kibana_montage_light.svg +++ b/src/plugins/opensearch_dashboards_overview/public/assets/opensearch_dashboards_montage_light.svg @@ -1,5 +1,5 @@ - + @@ -38,7 +38,7 @@ - + @@ -66,7 +66,7 @@ - + @@ -97,7 +97,7 @@ - + @@ -111,7 +111,7 @@ - + @@ -129,7 +129,7 @@ - + @@ -148,7 +148,7 @@ - + @@ -167,7 +167,7 @@ - + @@ -186,7 +186,7 @@ - + @@ -195,7 +195,7 @@ - + diff --git a/src/plugins/kibana_overview/public/assets/solutions_enterprise_search_dark_2x.png b/src/plugins/opensearch_dashboards_overview/public/assets/solutions_enterprise_search_dark_2x.png similarity index 100% rename from src/plugins/kibana_overview/public/assets/solutions_enterprise_search_dark_2x.png rename to src/plugins/opensearch_dashboards_overview/public/assets/solutions_enterprise_search_dark_2x.png diff --git a/src/plugins/kibana_overview/public/assets/solutions_enterprise_search_light_2x.png b/src/plugins/opensearch_dashboards_overview/public/assets/solutions_enterprise_search_light_2x.png similarity index 100% rename from src/plugins/kibana_overview/public/assets/solutions_enterprise_search_light_2x.png rename to src/plugins/opensearch_dashboards_overview/public/assets/solutions_enterprise_search_light_2x.png diff --git a/src/plugins/kibana_overview/public/assets/solutions_observability_dark_2x.png b/src/plugins/opensearch_dashboards_overview/public/assets/solutions_observability_dark_2x.png similarity index 100% rename from src/plugins/kibana_overview/public/assets/solutions_observability_dark_2x.png rename to src/plugins/opensearch_dashboards_overview/public/assets/solutions_observability_dark_2x.png diff --git a/src/plugins/kibana_overview/public/assets/solutions_observability_light_2x.png b/src/plugins/opensearch_dashboards_overview/public/assets/solutions_observability_light_2x.png similarity index 100% rename from src/plugins/kibana_overview/public/assets/solutions_observability_light_2x.png rename to src/plugins/opensearch_dashboards_overview/public/assets/solutions_observability_light_2x.png diff --git a/src/plugins/kibana_overview/public/assets/solutions_security_solution_dark_2x.png b/src/plugins/opensearch_dashboards_overview/public/assets/solutions_security_solution_dark_2x.png similarity index 100% rename from src/plugins/kibana_overview/public/assets/solutions_security_solution_dark_2x.png rename to src/plugins/opensearch_dashboards_overview/public/assets/solutions_security_solution_dark_2x.png diff --git a/src/plugins/kibana_overview/public/assets/solutions_security_solution_light_2x.png b/src/plugins/opensearch_dashboards_overview/public/assets/solutions_security_solution_light_2x.png similarity index 100% rename from src/plugins/kibana_overview/public/assets/solutions_security_solution_light_2x.png rename to src/plugins/opensearch_dashboards_overview/public/assets/solutions_security_solution_light_2x.png diff --git a/src/plugins/kibana_overview/public/components/_index.scss b/src/plugins/opensearch_dashboards_overview/public/components/_index.scss similarity index 100% rename from src/plugins/kibana_overview/public/components/_index.scss rename to src/plugins/opensearch_dashboards_overview/public/components/_index.scss diff --git a/src/plugins/kibana_overview/public/components/_overview.scss b/src/plugins/opensearch_dashboards_overview/public/components/_overview.scss similarity index 83% rename from src/plugins/kibana_overview/public/components/_overview.scss rename to src/plugins/opensearch_dashboards_overview/public/components/_overview.scss index 74a58122d485..2588c27a73fa 100644 --- a/src/plugins/kibana_overview/public/components/_overview.scss +++ b/src/plugins/opensearch_dashboards_overview/public/components/_overview.scss @@ -17,21 +17,21 @@ * under the License. */ -.kbnOverviewWrapper { +.osdOverviewWrapper { background-color: $euiColorEmptyShade; display: flex; flex-direction: column; min-height: calc(100vh - #{$euiHeaderHeightCompensation}); } -.kbnOverviewContent { +.osdOverviewContent { margin: 0 auto; max-width: 1200px; padding: $euiSizeXL $euiSize; width: 100%; // Ensure card heights are stretched equally when wrapped with this element - .kbnRedirectCrossAppLinks { + .osdRedirectCrossAppLinks { align-items: flex-start; display: flex; flex: 1; @@ -39,21 +39,21 @@ } } -.kbnOverviewApps__item { - .kbnOverviewApps__group--primary & { +.osdOverviewApps__item { + .osdOverviewApps__group--primary & { @include euiBreakpoint('m', 'l', 'xl') { max-width: calc(50% - #{$euiSizeM * 2}); } } - .kbnOverviewApps__group--secondary & { + .osdOverviewApps__group--secondary & { @include euiBreakpoint('m', 'l', 'xl') { max-width: calc(25% - #{$euiSizeM * 2}); } } } -.kbnOverviewNews__content article { +.osdOverviewNews__content article { & + article { margin-top: $euiSizeL; } @@ -70,13 +70,13 @@ } } -.kbnOverviewMore__item { +.osdOverviewMore__item { @include euiBreakpoint('m', 'l', 'xl') { max-width: calc(33.333333333333333% - #{$euiSizeM * 2}); } } -.kbnOverviewSolution__icon { +.osdOverviewSolution__icon { background-color: $euiColorEmptyShade !important; box-shadow: none !important; height: $euiSizeL * 2; @@ -84,21 +84,21 @@ width: $euiSizeL * 2; } -.kbnOverviewSupplements--noNews .kbnOverviewMore { +.osdOverviewSupplements--noNews .osdOverviewMore { h2 { @include euiBreakpoint('m', 'l', 'xl') { text-align: center; } } - .kbnOverviewMore__content { + .osdOverviewMore__content { @include euiBreakpoint('m', 'l', 'xl') { justify-content: center; } } } -.kbnOverviewData--expanded { +.osdOverviewData--expanded { flex-direction: column; &, @@ -109,11 +109,11 @@ } // Accounting for no `flush="both"` prop on EuiButtonEmpty -.kbnOverviewDataAdd__actionButton { +.osdOverviewDataAdd__actionButton { margin-right: 0; } -.kbnOverviewDataManage__item:not(:only-child) { +.osdOverviewDataManage__item:not(:only-child) { @include euiBreakpoint('m', 'l', 'xl') { flex: 0 0 calc(50% - #{$euiSizeM * 2}); } diff --git a/src/plugins/kibana_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap b/src/plugins/opensearch_dashboards_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap rename to src/plugins/opensearch_dashboards_overview/public/components/add_data/__snapshots__/add_data.test.tsx.snap diff --git a/src/plugins/kibana_overview/public/components/add_data/add_data.test.tsx b/src/plugins/opensearch_dashboards_overview/public/components/add_data/add_data.test.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/add_data/add_data.test.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/add_data/add_data.test.tsx diff --git a/src/plugins/kibana_overview/public/components/add_data/add_data.tsx b/src/plugins/opensearch_dashboards_overview/public/components/add_data/add_data.tsx similarity index 79% rename from src/plugins/kibana_overview/public/components/add_data/add_data.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/add_data/add_data.tsx index e29c2a08395c..51c85cf97e9e 100644 --- a/src/plugins/kibana_overview/public/components/add_data/add_data.tsx +++ b/src/plugins/opensearch_dashboards_overview/public/components/add_data/add_data.tsx @@ -20,10 +20,10 @@ import React, { FC } from 'react'; import PropTypes from 'prop-types'; import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiTitle } from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n/react'; -import { CoreStart } from 'kibana/public'; -import { RedirectAppLinks, useKibana } from '../../../../../../src/plugins/kibana_react/public'; -import { FeatureCatalogueEntry } from '../../../../../../src/plugins/home/public'; +import { FormattedMessage } from '@osd/i18n/react'; +import { CoreStart } from 'opensearch-dashboards/public'; +import { RedirectAppLinks, useOpenSearchDashboards } from '../../../../opensearch_dashboards_react/public'; +import { FeatureCatalogueEntry } from '../../../../home/public'; // @ts-expect-error untyped component import { Synopsis } from '../synopsis'; @@ -35,33 +35,33 @@ interface Props { export const AddData: FC = ({ addBasePath, features }) => { const { services: { application }, - } = useKibana(); + } = useOpenSearchDashboards(); return ( -
+
-

+

- +
@@ -71,7 +71,7 @@ export const AddData: FC = ({ addBasePath, features }) => { - + {features.map((feature) => ( diff --git a/src/plugins/kibana_overview/public/components/add_data/index.ts b/src/plugins/opensearch_dashboards_overview/public/components/add_data/index.ts similarity index 100% rename from src/plugins/kibana_overview/public/components/add_data/index.ts rename to src/plugins/opensearch_dashboards_overview/public/components/add_data/index.ts diff --git a/src/plugins/kibana_overview/public/components/app.tsx b/src/plugins/opensearch_dashboards_overview/public/components/app.tsx similarity index 92% rename from src/plugins/kibana_overview/public/components/app.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/app.tsx index bf9211f49a18..bfd8dff56d71 100644 --- a/src/plugins/kibana_overview/public/components/app.tsx +++ b/src/plugins/opensearch_dashboards_overview/public/components/app.tsx @@ -19,7 +19,7 @@ import React, { useEffect, useState } from 'react'; import { Observable } from 'rxjs'; -import { I18nProvider } from '@kbn/i18n/react'; +import { I18nProvider } from '@osd/i18n/react'; import { HashRouter as Router, Switch, Route } from 'react-router-dom'; import { CoreStart } from 'src/core/public'; import { NavigationPublicPluginStart } from 'src/plugins/navigation/public'; @@ -27,7 +27,7 @@ import { FetchResult } from 'src/plugins/newsfeed/public'; import { FeatureCatalogueEntry, FeatureCatalogueSolution } from 'src/plugins/home/public'; import { Overview } from './overview'; -interface KibanaOverviewAppDeps { +interface OpenSearchDashboardsOverviewAppDeps { basename: string; notifications: CoreStart['notifications']; http: CoreStart['http']; @@ -37,12 +37,12 @@ interface KibanaOverviewAppDeps { features: FeatureCatalogueEntry[]; } -export const KibanaOverviewApp = ({ +export const OpenSearchDashboardsOverviewApp = ({ basename, newsfeed$, solutions, features, -}: KibanaOverviewAppDeps) => { +}: OpenSearchDashboardsOverviewAppDeps) => { const [newsFetchResult, setNewsFetchResult] = useState(null); useEffect(() => { diff --git a/src/plugins/kibana_overview/public/components/getting_started/__snapshots__/getting_started.test.tsx.snap b/src/plugins/opensearch_dashboards_overview/public/components/getting_started/__snapshots__/getting_started.test.tsx.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/getting_started/__snapshots__/getting_started.test.tsx.snap rename to src/plugins/opensearch_dashboards_overview/public/components/getting_started/__snapshots__/getting_started.test.tsx.snap diff --git a/src/plugins/kibana_overview/public/components/getting_started/getting_started.test.tsx b/src/plugins/opensearch_dashboards_overview/public/components/getting_started/getting_started.test.tsx similarity index 90% rename from src/plugins/kibana_overview/public/components/getting_started/getting_started.test.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/getting_started/getting_started.test.tsx index 7d40c4174f39..9f43f3492c7b 100644 --- a/src/plugins/kibana_overview/public/components/getting_started/getting_started.test.tsx +++ b/src/plugins/opensearch_dashboards_overview/public/components/getting_started/getting_started.test.tsx @@ -33,7 +33,7 @@ const mockApps = [ order: 100, path: 'path-to-dashboard', showOnHomePage: false, - solutionId: 'kibana', + solutionId: 'opensearchdashboards', subtitle: 'Analyze data in dashboards.', title: 'Dashboard', }, @@ -46,7 +46,7 @@ const mockApps = [ path: 'path-to-discover', showOnHomePage: false, - solutionId: 'kibana', + solutionId: 'opensearchdashboards', subtitle: 'Search and find insights.', title: 'Discover', }, @@ -59,19 +59,19 @@ const mockApps = [ path: 'path-to-canvas', showOnHomePage: false, - solutionId: 'kibana', + solutionId: 'opensearchdashboards', subtitle: 'Design pixel-perfect reports.', title: 'Canvas', }, { category: FeatureCatalogueCategory.DATA, - description: 'Explore geospatial data from Elasticsearch and the Elastic Maps Service.', + description: 'Explore geospatial data from OpenSearch and the Elastic Maps Service.', icon: 'gisApp', id: 'maps', order: 400, path: 'path-to-maps', showOnHomePage: false, - solutionId: 'kibana', + solutionId: 'opensearchdashboards', subtitle: 'Plot geographic data.', title: 'Maps', }, @@ -84,19 +84,19 @@ const mockApps = [ order: 500, path: 'path-to-ml', showOnHomePage: false, - solutionId: 'kibana', + solutionId: 'opensearchdashboards', subtitle: 'Model, predict, and detect.', title: 'Machine Learning', }, { category: FeatureCatalogueCategory.DATA, - description: 'Surface and analyze relevant relationships in your Elasticsearch data.', + description: 'Surface and analyze relevant relationships in your OpenSearch data.', icon: 'graphApp', id: 'graph', order: 600, path: 'path-to-graph', showOnHomePage: false, - solutionId: 'kibana', + solutionId: 'opensearchdashboards', subtitle: 'Reveal patterns and relationships.', title: 'Graph', }, diff --git a/src/plugins/kibana_overview/public/components/getting_started/getting_started.tsx b/src/plugins/opensearch_dashboards_overview/public/components/getting_started/getting_started.tsx similarity index 68% rename from src/plugins/kibana_overview/public/components/getting_started/getting_started.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/getting_started/getting_started.tsx index 9f2d714f43a5..98ccb661fbb3 100644 --- a/src/plugins/kibana_overview/public/components/getting_started/getting_started.tsx +++ b/src/plugins/opensearch_dashboards_overview/public/components/getting_started/getting_started.tsx @@ -30,10 +30,10 @@ import { EuiText, EuiTitle, } from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n/react'; -import { CoreStart } from 'kibana/public'; -import { RedirectAppLinks, useKibana } from '../../../../../../src/plugins/kibana_react/public'; -import { FeatureCatalogueEntry } from '../../../../../../src/plugins/home/public'; +import { FormattedMessage } from '@osd/i18n/react'; +import { CoreStart } from 'opensearch-dashboards/public'; +import { RedirectAppLinks, useOpenSearchDashboards } from '../../../../opensearch_dashboards_react/public'; +import { FeatureCatalogueEntry } from '../../../../home/public'; import { PLUGIN_ID } from '../../../common'; interface Props { @@ -45,24 +45,24 @@ interface Props { export const GettingStarted: FC = ({ addBasePath, isDarkTheme, apps }) => { const { services: { application }, - } = useKibana(); - const gettingStartedGraphicURL = `/plugins/${PLUGIN_ID}/assets/kibana_montage_${ + } = useOpenSearchDashboards(); + const gettingStartedGraphicURL = `/plugins/${PLUGIN_ID}/assets/opensearch_dashboards_montage_${ isDarkTheme ? 'dark' : 'light' }.svg`; return (
- +
-

+

@@ -72,15 +72,15 @@ export const GettingStarted: FC = ({ addBasePath, isDarkTheme, apps }) =>

- + {apps.map(({ subtitle = '', icon, title }) => ( = ({ addBasePath, isDarkTheme, apps }) =>
- + diff --git a/src/plugins/kibana_overview/public/components/getting_started/index.ts b/src/plugins/opensearch_dashboards_overview/public/components/getting_started/index.ts similarity index 100% rename from src/plugins/kibana_overview/public/components/getting_started/index.ts rename to src/plugins/opensearch_dashboards_overview/public/components/getting_started/index.ts diff --git a/src/plugins/kibana_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap b/src/plugins/opensearch_dashboards_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap similarity index 100% rename from src/plugins/kibana_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap rename to src/plugins/opensearch_dashboards_overview/public/components/manage_data/__snapshots__/manage_data.test.tsx.snap diff --git a/src/plugins/kibana_overview/public/components/manage_data/index.tsx b/src/plugins/opensearch_dashboards_overview/public/components/manage_data/index.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/manage_data/index.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/manage_data/index.tsx diff --git a/src/plugins/kibana_overview/public/components/manage_data/manage_data.test.tsx b/src/plugins/opensearch_dashboards_overview/public/components/manage_data/manage_data.test.tsx similarity index 100% rename from src/plugins/kibana_overview/public/components/manage_data/manage_data.test.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/manage_data/manage_data.test.tsx diff --git a/src/plugins/kibana_overview/public/components/manage_data/manage_data.tsx b/src/plugins/opensearch_dashboards_overview/public/components/manage_data/manage_data.tsx similarity index 78% rename from src/plugins/kibana_overview/public/components/manage_data/manage_data.tsx rename to src/plugins/opensearch_dashboards_overview/public/components/manage_data/manage_data.tsx index f7a40b9370ef..3d99ad60ce40 100644 --- a/src/plugins/kibana_overview/public/components/manage_data/manage_data.tsx +++ b/src/plugins/opensearch_dashboards_overview/public/components/manage_data/manage_data.tsx @@ -20,10 +20,10 @@ import React, { FC } from 'react'; import PropTypes from 'prop-types'; import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, EuiSpacer, EuiTitle } from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n/react'; -import { CoreStart } from 'kibana/public'; -import { RedirectAppLinks, useKibana } from '../../../../../../src/plugins/kibana_react/public'; -import { FeatureCatalogueEntry } from '../../../../../../src/plugins/home/public'; +import { FormattedMessage } from '@osd/i18n/react'; +import { CoreStart } from 'opensearch-dashboards/public'; +import { RedirectAppLinks, useOpenSearchDashboards } from '../../../../opensearch_dashboards_react/public'; +import { FeatureCatalogueEntry } from '../../../../home/public'; // @ts-expect-error untyped component import { Synopsis } from '../synopsis'; @@ -35,21 +35,21 @@ interface Props { export const ManageData: FC = ({ addBasePath, features }) => { const { services: { application }, - } = useKibana(); + } = useOpenSearchDashboards(); return ( <> {features.length > 1 ?