diff --git a/changelogs/fragments/7857.yml b/changelogs/fragments/7857.yml new file mode 100644 index 000000000000..2e462a9cdac0 --- /dev/null +++ b/changelogs/fragments/7857.yml @@ -0,0 +1,2 @@ +refactor: +- [Workspace] workspace initial page ([#7857](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7857)) \ No newline at end of file diff --git a/src/plugins/workspace/public/components/workspace_initial/__snapshots__/workspace_initial.test.tsx.snap b/src/plugins/workspace/public/components/workspace_initial/__snapshots__/workspace_initial.test.tsx.snap index 67dc620d5834..5f294beb33a9 100644 --- a/src/plugins/workspace/public/components/workspace_initial/__snapshots__/workspace_initial.test.tsx.snap +++ b/src/plugins/workspace/public/components/workspace_initial/__snapshots__/workspace_initial.test.tsx.snap @@ -30,7 +30,7 @@ exports[`WorkspaceInitial render workspace initial page normally when theme is d />
- Getting started with OpenSearch + Create a workspace to get started
- OpenSearch is a flexible, scalable, open-source way to build solutions for data-intensive search and analytics applications. Explore, enrich, and visualize your data, using developer-friendly tools and powerful integrations for machine learning, data processing, and more. + Welcome to OpenSearch! This interface supports you to easily explore, enrich and visualize your data with developer-friendly tools and powerful integrations for machine learning, data process, and more. To begin, create a workspace for your use case.
- Learn more from documentation and more. + Learn more from documentation
@@ -90,42 +90,40 @@ exports[`WorkspaceInitial render workspace initial page normally when theme is d
+

+ Create a workspace +

-
- -   Explore live demo environment at - - - playground.opensearch.org - -
+ Organize projects by use case in a collaborative workspace
+
+ +
@@ -133,54 +131,35 @@ exports[`WorkspaceInitial render workspace initial page normally when theme is d class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Create a workspace + Observability

- - Organize projects by use case in a collaborative workspace. - + Gain visibility into your applications and infrastructure

-
+
+ +
@@ -188,40 +167,35 @@ exports[`WorkspaceInitial render workspace initial page normally when theme is d class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Try OpenSearch + Security Analytics

- Explore sample data before adding your own. + Enhance your security posture with advanced analytics

-
+
+ +
@@ -229,40 +203,35 @@ exports[`WorkspaceInitial render workspace initial page normally when theme is d class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Add your data + Search

- Start collecting and analyzing your data. + Discover and query your data with ease

-
+
+ +
@@ -270,55 +239,73 @@ exports[`WorkspaceInitial render workspace initial page normally when theme is d class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Discover insights + Essentials

- Explore data interactively to uncover insights. + Just the basics for exploring and analyzing data

- +
+
+
+
+
+
-
+ Create Workspace + + +
-
-

- And much more... -

-
+   Explore live demo environment at + + + playground.opensearch.org +
@@ -343,7 +330,7 @@ exports[`WorkspaceInitial render workspace initial page normally when theme is d class="euiButtonEmpty__text" >
Settings and setup
@@ -387,7 +374,7 @@ exports[`WorkspaceInitial render workspace initial page normally when user is da />
- Getting started with OpenSearch + Create a workspace to get started
- OpenSearch is a flexible, scalable, open-source way to build solutions for data-intensive search and analytics applications. Explore, enrich, and visualize your data, using developer-friendly tools and powerful integrations for machine learning, data processing, and more. + Welcome to OpenSearch! This interface supports you to easily explore, enrich and visualize your data with developer-friendly tools and powerful integrations for machine learning, data process, and more. To begin, create a workspace for your use case.
- Learn more from documentation and more. + Learn more from documentation
@@ -447,42 +434,40 @@ exports[`WorkspaceInitial render workspace initial page normally when user is da
+

+ Create a workspace +

-
- -   Explore live demo environment at - - - playground.opensearch.org - -
+ Organize projects by use case in a collaborative workspace
+
+ +
@@ -490,54 +475,35 @@ exports[`WorkspaceInitial render workspace initial page normally when user is da class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Create a workspace + Observability

- - Organize projects by use case in a collaborative workspace. - + Gain visibility into your applications and infrastructure

-
+
+ +
@@ -545,40 +511,35 @@ exports[`WorkspaceInitial render workspace initial page normally when user is da class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Try OpenSearch + Security Analytics

- Explore sample data before adding your own. + Enhance your security posture with advanced analytics

-
+
+ +
@@ -586,40 +547,35 @@ exports[`WorkspaceInitial render workspace initial page normally when user is da class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Add your data + Search

- Start collecting and analyzing your data. + Discover and query your data with ease

-
+
+ +
@@ -627,55 +583,73 @@ exports[`WorkspaceInitial render workspace initial page normally when user is da class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Discover insights + Essentials

- Explore data interactively to uncover insights. + Just the basics for exploring and analyzing data

- +
+
+
+
+
+
-
+ Create Workspace + + +
-
-

- And much more... -

-
+   Explore live demo environment at + + + playground.opensearch.org +
@@ -700,7 +674,7 @@ exports[`WorkspaceInitial render workspace initial page normally when user is da class="euiButtonEmpty__text" >
Settings and setup
@@ -744,7 +718,7 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no />
- Getting started with OpenSearch + Create a workspace to get started
- OpenSearch is a flexible, scalable, open-source way to build solutions for data-intensive search and analytics applications. Explore, enrich, and visualize your data, using developer-friendly tools and powerful integrations for machine learning, data processing, and more. + Welcome to OpenSearch! This interface supports you to easily explore, enrich and visualize your data with developer-friendly tools and powerful integrations for machine learning, data process, and more. To begin, create a workspace for your use case.
- Learn more from documentation and more. + Learn more from documentation
@@ -804,42 +778,40 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no
+

+ Create a workspace +

-
- -   Explore live demo environment at - - - playground.opensearch.org - -
+ Organize projects by use case in a collaborative workspace
+
+ +
@@ -847,18 +819,14 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Create a workspace + Observability

- - Organize projects by use case in a collaborative workspace. - + Gain visibility into your applications and infrastructure

@@ -868,9 +836,18 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no class="euiFlexItem euiFlexItem--flexGrowZero" >
+
+ +
@@ -878,40 +855,35 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Try OpenSearch + Security Analytics

- Explore sample data before adding your own. + Enhance your security posture with advanced analytics

-
+
+ +
@@ -919,40 +891,35 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Add your data + Search

- Start collecting and analyzing your data. + Discover and query your data with ease

-
+
+ +
@@ -960,55 +927,59 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Discover insights + Essentials

- Explore data interactively to uncover insights. + Just the basics for exploring and analyzing data

-
+
+
+
+
+ Contact your administrator to create a workspace or to be added to an existing one. +
+
+
+
-
-

- And much more... -

-
+   Explore live demo environment at + + + playground.opensearch.org +
@@ -1033,7 +1004,7 @@ exports[`WorkspaceInitial render workspace initial page normally when user is no class="euiButtonEmpty__text" >
Settings and setup
diff --git a/src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx b/src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx index 85b158a0928a..7e77a2fa1130 100644 --- a/src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx +++ b/src/plugins/workspace/public/components/workspace_initial/workspace_initial.tsx @@ -20,7 +20,6 @@ import { EuiFlexGroup, EuiPageContent, EuiSmallButton, - EuiToolTip, EuiSmallButtonEmpty, } from '@elastic/eui'; import { i18n } from '@osd/i18n'; @@ -40,11 +39,6 @@ export const WorkspaceInitial = () => { const isDarkTheme = uiSettings.get('theme:darkMode'); const backGroundUrl = isDarkTheme ? BackgroundDarkSVG : BackgroundLightSVG; - const noAdminToolTip = i18n.translate('workspace.initial.card.createWorkspace.toolTip', { - defaultMessage: - 'Contact your administrator to create a workspace or to be added to an existing one.', - }); - const createButton = ( { ); + const noAdminText = ( + + {i18n.translate('workspace.initial.card.createWorkspace.text', { + defaultMessage: + 'Contact your administrator to create a workspace or to be added to an existing one.', + })} + + ); + const cards = ( - - - - <> - {i18n.translate('workspace.initial.card.createWorkspace.description', { - defaultMessage: 'Organize projects by use case in a collaborative workspace.', - })} - - - } - footer={isDashboardAdmin && createButton} - /> - + } + title={i18n.translate('workspace.initial.card.observability.title', { + defaultMessage: 'Observability', })} - description={i18n.translate('workspace.initial.card.tryOpenSearch.description', { - defaultMessage: 'Explore sample data before adding your own.', + description={i18n.translate('workspace.initial.card.observability.description', { + defaultMessage: 'Gain visibility into your applications and infrastructure', })} - footer={ - - {i18n.translate('workspace.initial.card.tryOpenSearch.footer', { - defaultMessage: 'with Sample Datasets', - })} - - } /> } + title={i18n.translate('workspace.initial.card.securityAnalytics.title', { + defaultMessage: 'Security Analytics', })} - description={i18n.translate('workspace.initial.card.addData.description', { - defaultMessage: 'Start collecting and analyzing your data.', + description={i18n.translate('workspace.initial.card.securityAnalytics.description', { + defaultMessage: 'Enhance your security posture with advanced analytics', })} - footer={ - - {i18n.translate('workspace.initial.card.addData.footer', { - defaultMessage: 'with Getting Started Guide', - })} - - } /> } + title={i18n.translate('workspace.initial.card.search.title', { + defaultMessage: 'Search', })} - description={i18n.translate('workspace.initial.card.discoverInsights.description', { - defaultMessage: 'Explore data interactively to uncover insights.', + description={i18n.translate('workspace.initial.card.search.description', { + defaultMessage: 'Discover and query your data with ease', })} - footer={ - - {i18n.translate('workspace.initial.card.discoverInsights.footer', { - defaultMessage: 'with Discover', - })} - - } /> } + title={i18n.translate('workspace.initial.card.essentials.title', { + defaultMessage: 'Essentials', + })} + description={i18n.translate('workspace.initial.card.essentials.description', { + defaultMessage: 'Just the basics for exploring and analyzing data', })} /> @@ -155,45 +125,65 @@ export const WorkspaceInitial = () => {

{i18n.translate('workspace.initial.title', { - defaultMessage: 'Getting started with OpenSearch', + defaultMessage: 'Create a workspace to get started', })}

- - + + {i18n.translate('workspace.initial.description', { defaultMessage: - 'OpenSearch is a flexible, scalable, open-source way to build solutions for data-intensive search and analytics applications. Explore, enrich, and visualize your data, using developer-friendly tools and powerful integrations for machine learning, data processing, and more.', + 'Welcome to OpenSearch! This interface supports you to easily explore, enrich and visualize your data with developer-friendly tools and powerful integrations for machine learning, data process, and more. To begin, create a workspace for your use case.', })} - + {i18n.translate('workspace.initial.button.openSearch', { - defaultMessage: 'Learn more from documentation and more.', + defaultMessage: 'Learn more from documentation', })} - - - - - -   Explore live demo environment at{' '} - playground.opensearch.org - - + + +

+ {i18n.translate('workspace.initial.createWorkspace.title', { + defaultMessage: 'Create a workspace', + })} +

+
+ + {i18n.translate('workspace.initial.createWorkspace.describe', { + defaultMessage: 'Organize projects by use case in a collaborative workspace', + })} +
{cards} + + + {isDashboardAdmin ? createButton : noAdminText} + + + + +   Explore live demo environment at{' '} + + playground.opensearch.org + + + + + +
); @@ -205,7 +195,7 @@ export const WorkspaceInitial = () => { - + { href={settingsAndSetupUrl} data-test-subj="workspace-initial-button-settingsAndSetup" > - + {i18n.translate('workspace.initial.button.settingsAndSetup', { defaultMessage: 'Settings and setup', })}