+
-
-
-
-
diff --git a/src/plugins/home/public/application/components/home.test.js b/src/plugins/home/public/application/components/home.test.js
index 444c5f388bb2..6f732256fb37 100644
--- a/src/plugins/home/public/application/components/home.test.js
+++ b/src/plugins/home/public/application/components/home.test.js
@@ -296,9 +296,6 @@ describe('home', () => {
find: () => Promise.resolve({ total: 0 }),
});
- component.instance().skipWelcome();
- component.update();
-
sinon.assert.calledWith(defaultProps.localStorage.setItem, 'home:welcome:show', 'false');
expect(component).toMatchSnapshot();
diff --git a/src/plugins/home/public/application/components/home_app.js b/src/plugins/home/public/application/components/home_app.js
index 4e8dd16dd998..ac10eeedb454 100644
--- a/src/plugins/home/public/application/components/home_app.js
+++ b/src/plugins/home/public/application/components/home_app.js
@@ -33,11 +33,7 @@ import { I18nProvider } from '@osd/i18n/react';
import PropTypes from 'prop-types';
import { Home } from './home';
import { FeatureDirectory } from './feature_directory';
-import { TutorialDirectory } from './tutorial_directory';
-import { Tutorial } from './tutorial/tutorial';
import { HashRouter as Router, Switch, Route } from 'react-router-dom';
-import { getTutorial } from '../load_tutorials';
-import { replaceTemplateStrings } from './tutorial/replace_template_strings';
import { getServices } from '../opensearch_dashboards_services';
import { useMount } from 'react-use';
@@ -50,45 +46,12 @@ const RedirectToDefaultApp = () => {
};
export function HomeApp({ directories, solutions }) {
- const {
- savedObjectsClient,
- getBasePath,
- addBasePath,
- environmentService,
- telemetry,
- } = getServices();
- const environment = environmentService.getEnvironment();
- const isCloudEnabled = environment.cloud;
-
- const renderTutorialDirectory = (props) => {
- return (
-
- );
- };
-
- const renderTutorial = (props) => {
- return (
-
- );
- };
+ const { savedObjectsClient, getBasePath, addBasePath, telemetry } = getServices();
return (
-
-
diff --git a/src/plugins/home/public/plugin.test.ts b/src/plugins/home/public/plugin.test.ts
index c311b6ee0fe5..ab23a292a585 100644
--- a/src/plugins/home/public/plugin.test.ts
+++ b/src/plugins/home/public/plugin.test.ts
@@ -58,7 +58,7 @@ describe('HomePublicPlugin', () => {
category: 'data',
icon: 'indexOpen',
id: 'home_tutorial_directory',
- showOnHomePage: true,
+ showOnHomePage: false,
})
);
});
diff --git a/src/plugins/home/public/plugin.ts b/src/plugins/home/public/plugin.ts
index 03823c5da179..277abdcdf968 100644
--- a/src/plugins/home/public/plugin.ts
+++ b/src/plugins/home/public/plugin.ts
@@ -130,7 +130,8 @@ export class HomePublicPlugin
urlForwarding.forwardApp('home', 'home');
const featureCatalogue = { ...this.featuresCatalogueRegistry.setup() };
-
+ // Disable sample data in home/view app directory
+ // To activate it again, remove visible() and change showOnHomePage to true.
featureCatalogue.register({
id: 'home_tutorial_directory',
title: i18n.translate('home.tutorialDirectory.featureCatalogueTitle', {
@@ -140,9 +141,12 @@ export class HomePublicPlugin
defaultMessage: 'Get started with sample data, visualizations, and dashboards.',
}),
icon: 'indexOpen',
- showOnHomePage: true,
+ showOnHomePage: false,
path: `${HOME_APP_BASE_PATH}#/tutorial_directory`,
category: 'data' as FeatureCatalogueCategory.DATA,
+ visible() {
+ return false;
+ },
order: 500,
});
diff --git a/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/__snapshots__/empty_state.test.tsx.snap b/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/__snapshots__/empty_state.test.tsx.snap
index a617fa0511e2..8a36dc08a89e 100644
--- a/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/__snapshots__/empty_state.test.tsx.snap
+++ b/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/__snapshots__/empty_state.test.tsx.snap
@@ -29,35 +29,7 @@ exports[`EmptyState should render normally 1`] = `
className="inpEmptyState__cardGrid"
columns={3}
responsive={true}
- >
-
-
- }
- icon={
-
- }
- onClick={[Function]}
- title={
-
- }
- />
-
-
+ />
diff --git a/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/empty_state.tsx b/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/empty_state.tsx
index 96862e59ffa5..4a1d7f518e05 100644
--- a/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/empty_state.tsx
+++ b/src/plugins/index_pattern_management/public/components/index_pattern_table/empty_state/empty_state.tsx
@@ -172,25 +172,6 @@ export const EmptyState = ({
/>
*/}
{getMlCardState() !== MlCardState.HIDDEN ? mlCard : <>>}
-
- navigateToApp('home', { path: '#/tutorial_directory/sampleData' })}
- icon={}
- title={
-
- }
- description={
-
- }
- />
-
diff --git a/src/plugins/opensearch_dashboards_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
index 9df3bb12caec..f2a26c2fa3b1 100644
--- a/src/plugins/opensearch_dashboards_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
@@ -168,19 +168,6 @@ exports[`GettingStarted dark mode on 1`] = `
-
-
-
-
-
-
-
-
-
-