Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename kibana_overview to opensearch_dashboards_overview plugin (#37) #155

Merged
merged 3 commits into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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