Skip to content

Commit

Permalink
Rename kibana_overview to opensearch_dashboards_overview plugin (#37) (
Browse files Browse the repository at this point in the history
…#155)

* Rename kibana_overview to opensearch_dashboards_overview plugin (#37)

Signed-off-by: Bishoy Boktor <boktorbb@amazon.com>

* Address PR comments

Signed-off-by: Bishoy Boktor <boktorbb@amazon.com>

* Address PR comments

Signed-off-by: Bishoy Boktor <boktorbb@amazon.com>
  • Loading branch information
boktorbb authored and kavilla committed Mar 20, 2021
1 parent 98430cd commit 0301674
Show file tree
Hide file tree
Showing 56 changed files with 252 additions and 252 deletions.
9 changes: 0 additions & 9 deletions src/plugins/kibana_overview/kibana.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kibana-overview
# opensearch-dashboards-overview

> An overview page highlighting Kibana apps
> An overview page highlighting OpenSearch Dashboards apps
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "opensearchDashboardsOverview",
"version": "opensearchDashboards",
"server": false,
"ui": true,
"requiredPlugins": ["navigation", "data", "home"],
"optionalPlugins": [],
"requiredBundles": ["opensearchDashboardsReact"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 { I18nProvider } from '@osd/i18n/react';
import { OpenSearchDashboardsContextProvider } from '../../../../src/plugins/opensearch_dashboards_react/public';
import { NewsfeedApiEndpoint } from '../../../../src/plugins/newsfeed/public';
import { AppMountParameters, CoreStart } from '../../../../src/core/public';
import { AppPluginStartDependencies } from './types';
import { KibanaOverviewApp } from './components/app';
import { OpenSearchDashboardsOverviewApp } from './components/app';

export const renderApp = (
core: CoreStart,
Expand All @@ -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(
<I18nProvider>
<KibanaContextProvider services={{ ...core, ...deps }}>
<KibanaOverviewApp
<OpenSearchDashboardsContextProvider services={{ ...core, ...deps }}>
<OpenSearchDashboardsOverviewApp
basename={appBasePath}
notifications={notifications}
http={http}
Expand All @@ -53,7 +53,7 @@ export const renderApp = (
solutions={solutions}
features={features}
/>
</KibanaContextProvider>
</OpenSearchDashboardsContextProvider>
</I18nProvider>,
element
);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0301674

Please sign in to comment.