diff --git a/src/plugins/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap b/src/plugins/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap index deb557611b50..cc28c695a892 100644 --- a/src/plugins/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap +++ b/src/plugins/home/public/application/components/add_data/__snapshots__/add_data.test.tsx.snap @@ -25,26 +25,6 @@ exports[`AddData render 1`] = ` - -
- - - -
-
(path ? path : 'path')); const mockFeatures = [ { category: 'data', - description: 'Ingest data from popular apps and services.', + description: 'Get started with sample data, visualizations, and dashboards.', showOnHomePage: true, icon: 'indexOpen', id: 'home_tutorial_directory', diff --git a/src/plugins/home/public/application/components/add_data/add_data.tsx b/src/plugins/home/public/application/components/add_data/add_data.tsx index 7d53c50ed212..22002c4218ef 100644 --- a/src/plugins/home/public/application/components/add_data/add_data.tsx +++ b/src/plugins/home/public/application/components/add_data/add_data.tsx @@ -32,7 +32,7 @@ import React, { FC } from 'react'; import PropTypes from 'prop-types'; -import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiTitle } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiTitle } from '@elastic/eui'; import { FormattedMessage } from '@osd/i18n/react'; // @ts-expect-error untyped service import { FeatureCatalogueEntry } from '../../services'; @@ -55,23 +55,6 @@ export const AddData: FC = ({ addBasePath, features }) => ( - - -
- - - -
-
diff --git a/src/plugins/home/public/application/components/tutorial_directory.js b/src/plugins/home/public/application/components/tutorial_directory.js index 1bb337b3ecdb..84e2c49f8183 100644 --- a/src/plugins/home/public/application/components/tutorial_directory.js +++ b/src/plugins/home/public/application/components/tutorial_directory.js @@ -66,45 +66,11 @@ class TutorialDirectoryUi extends React.Component { constructor(props) { super(props); - this.tabs = [ - { - id: ALL_TAB_ID, - name: this.props.intl.formatMessage({ - id: 'home.tutorial.tabs.allTitle', - defaultMessage: 'All', - }), - }, - { - id: 'logging', - name: this.props.intl.formatMessage({ - id: 'home.tutorial.tabs.loggingTitle', - defaultMessage: 'Logs', - }), - }, - { - id: 'metrics', - name: this.props.intl.formatMessage({ - id: 'home.tutorial.tabs.metricsTitle', - defaultMessage: 'Metrics', - }), - }, - { - id: 'security', - name: this.props.intl.formatMessage({ - id: 'home.tutorial.tabs.securitySolutionTitle', - defaultMessage: 'Security', - }), - }, - { - id: SAMPLE_DATA_TAB_ID, - name: this.props.intl.formatMessage({ - id: 'home.tutorial.tabs.sampleDataTitle', - defaultMessage: 'Sample data', - }), - }, - ]; + // TODO: Enable the tabs once we have instructions + // and sample code snippets to instruct users to add data + this.tabs = []; - let openTab = ALL_TAB_ID; + let openTab = SAMPLE_DATA_TAB_ID; if ( props.openTab && this.tabs.some((tab) => { @@ -284,7 +250,7 @@ class TutorialDirectoryUi extends React.Component {

diff --git a/src/plugins/home/public/plugin.ts b/src/plugins/home/public/plugin.ts index 63c2bb345cf8..eef92ea8ec99 100644 --- a/src/plugins/home/public/plugin.ts +++ b/src/plugins/home/public/plugin.ts @@ -134,10 +134,10 @@ export class HomePublicPlugin featureCatalogue.register({ id: 'home_tutorial_directory', title: i18n.translate('home.tutorialDirectory.featureCatalogueTitle', { - defaultMessage: 'Add data', + defaultMessage: 'Add sample data', }), description: i18n.translate('home.tutorialDirectory.featureCatalogueDescription', { - defaultMessage: 'Ingest data from popular apps and services.', + defaultMessage: 'Get started with sample data, visualizations, and dashboards.', }), icon: 'indexOpen', showOnHomePage: true, diff --git a/src/plugins/opensearch_dashboards_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 index 47c40e3cf553..5d6b64e48148 100644 --- a/src/plugins/opensearch_dashboards_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 @@ -25,28 +25,6 @@ exports[`AddData render 1`] = ` - - -
- - - -
-
-
= ({ addBasePath, features }) => { - - - -
- - - -
-
-
diff --git a/test/functional/apps/home/_add_data.js b/test/functional/apps/home/_add_data.js index 5e121f56b4e0..ca2f914c084e 100644 --- a/test/functional/apps/home/_add_data.js +++ b/test/functional/apps/home/_add_data.js @@ -37,12 +37,12 @@ export default function ({ getService, getPageObjects }) { const PageObjects = getPageObjects(['common', 'header', 'home', 'dashboard']); describe('add data tutorials', function describeIndexTests() { - it('directory should display registered tutorials', async () => { + it('directory should not display registered tutorials', async () => { await PageObjects.common.navigateToUrl('home', 'tutorial_directory', { useActualUrl: true }); await PageObjects.header.waitUntilLoadingHasFinished(); await retry.try(async () => { const tutorialExists = await PageObjects.home.doesSynopsisExist('netflowlogs'); - expect(tutorialExists).to.be(true); + expect(tutorialExists).to.be(false); }); }); });