diff --git a/src/plugins/kibana_overview/public/application.tsx b/src/plugins/kibana_overview/public/application.tsx index d42c6dcd51da07..1611b9a8abf1fd 100644 --- a/src/plugins/kibana_overview/public/application.tsx +++ b/src/plugins/kibana_overview/public/application.tsx @@ -10,7 +10,10 @@ import React from 'react'; import ReactDOM from 'react-dom'; import { i18n } from '@kbn/i18n'; import { I18nProvider } from '@kbn/i18n/react'; -import { KibanaContextProvider } from '../../../../src/plugins/kibana_react/public'; +import { + KibanaContextProvider, + KibanaThemeProvider, +} from '../../../../src/plugins/kibana_react/public'; import { NewsfeedApiEndpoint } from '../../../../src/plugins/newsfeed/public'; import { AppMountParameters, CoreStart } from '../../../../src/core/public'; import { AppPluginStartDependencies } from './types'; @@ -19,7 +22,7 @@ import { KibanaOverviewApp } from './components/app'; export const renderApp = ( core: CoreStart, deps: AppPluginStartDependencies, - { appBasePath, element }: AppMountParameters + { appBasePath, element, theme$ }: AppMountParameters ) => { const { notifications, http } = core; const { newsfeed, home, navigation } = deps; @@ -37,17 +40,19 @@ export const renderApp = ( ReactDOM.render( - - - + + + + + , element ); diff --git a/src/plugins/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap b/src/plugins/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap index babcab15a49749..1a52bf05b92380 100644 --- a/src/plugins/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap +++ b/src/plugins/kibana_overview/public/components/overview/__snapshots__/overview.test.tsx.snap @@ -1,1027 +1,1100 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Overview render 1`] = ` -, - "rightSideItems": Array [], + "error": null, + "feedItems": Array [ + Object { + "badge": null, + "description": "The official Go client now includes features like request retries and node discovery. Learn more about its architecture and package and repository layout.", + "expireOn": "2050-12-31T11:59:59.000Z", + "hash": "8e18fcedbc", + "linkText": "Read more on the blog", + "linkUrl": "https://www.elastic.co/blog/the-go-client-for-elasticsearch-introduction?blade=kibanafeed", + "publishOn": "2020-08-31T10:23:47.000Z", + "title": "The Go client for Elasticsearch: Introduction", + }, + Object { + "badge": null, + "description": "Learn how to use Elastic Uptime to configure alerting and anomaly detection for sites, services, and APIs.", + "expireOn": "2050-12-31T11:59:59.000Z", + "hash": "fb3e3d42ef", + "linkText": "Read more on the blog", + "linkUrl": "https://www.elastic.co/blog/alerting-and-anomaly-detection-for-uptime-and-reliability?blade=kibanafeed", + "publishOn": "2020-08-14T10:23:47.000Z", + "title": "Alerting and anomaly detection for uptime and reliability", + }, + Object { + "badge": null, + "description": "Managing data using hot-warm architecture and ILM is a cost-effective way of retaining data — and a great way to easily keep your cloud costs down.", + "expireOn": "2050-12-31T11:59:59.000Z", + "hash": "b2fc7d47d5", + "linkText": "Learn more on the blog", + "linkUrl": "https://www.elastic.co/blog/optimizing-costs-elastic-cloud-hot-warm-index-lifecycle-management?blade=kibanafeed", + "publishOn": "2020-08-01T10:23:47.000Z", + "title": "Optimizing costs in Elastic Cloud: Hot-warm + index lifecycle management", + }, + ], + "hasNew": true, + "kibanaVersion": "8.0.0", } } - template="empty" + solutions={ + Array [ + Object { + "description": "Description of Kibana", + "icon": "logoKibana", + "id": "kibana", + "order": 1, + "path": "kibana_landing_page", + "title": "Analytics", + }, + Object { + "description": "Description of solution two", + "icon": "empty", + "id": "solution-2", + "order": 2, + "path": "path-to-solution-two", + "title": "Solution two", + }, + Object { + "description": "Description of solution three", + "icon": "empty", + "id": "solution-3", + "order": 3, + "path": "path-to-solution-three", + "title": "Solution three", + }, + Object { + "description": "Description of solution four", + "icon": "empty", + "id": "solution-4", + "order": 4, + "path": "path-to-solution-four", + "title": "Solution four", + }, + ] + } > -
- -

- -

-
- - -
-