Skip to content

Commit

Permalink
[Bug] Fix initial page UI issues (#8217)
Browse files Browse the repository at this point in the history
* fix initial page ui issue

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR #8217 created/updated

* fix test error

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
yubonluo and opensearch-changeset-bot[bot] authored Sep 20, 2024
1 parent c894584 commit ea8d5c4
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 81 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8217.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix initial page UI issues ([#8217](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8217))

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const WorkspaceInitial = () => {
<EuiTitle size="l">
<h1>
{i18n.translate('workspace.initial.title', {
defaultMessage: 'Create a workspace to get started',
defaultMessage: 'Getting started with OpenSearch',
})}
</h1>
</EuiTitle>
Expand All @@ -134,24 +134,20 @@ export const WorkspaceInitial = () => {
<EuiText size="s">
{i18n.translate('workspace.initial.description', {
defaultMessage:
'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.',
'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.',
})}
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false} className="eui-displayInline">
<EuiSmallButtonEmpty
<EuiLink
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html"
iconType="popout"
iconSide="right"
flush="left"
data-test-subj="workspace-initial-button-openSearch"
external
style={{ fontWeight: 'normal' }}
>
<EuiText size="s">
{i18n.translate('workspace.initial.button.openSearch', {
defaultMessage: 'Learn more from documentation',
})}
</EuiText>
</EuiSmallButtonEmpty>
{i18n.translate('workspace.initial.button.openSearch', {
defaultMessage: 'Learn more from documentation',
})}
</EuiLink>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiTitle size="m">
Expand All @@ -176,7 +172,11 @@ export const WorkspaceInitial = () => {
<EuiText size="s">
<EuiIcon type="dashboardApp" size="l" />
&nbsp;&nbsp;Explore live demo environment at{' '}
<EuiLink href="https://playground.opensearch.org/">
<EuiLink
href="https://playground.opensearch.org/"
external
style={{ fontWeight: 'normal' }}
>
playground.opensearch.org
</EuiLink>
</EuiText>
Expand All @@ -190,7 +190,7 @@ export const WorkspaceInitial = () => {
return (
<EuiPage style={{ minHeight: '100vh' }}>
<EuiPageBody>
<EuiFlexGroup direction="column" justifyContent="center" alignItems="center">
<EuiFlexGroup direction="column" alignItems="center" style={{ paddingTop: '100px' }}>
<EuiFlexItem grow={false}>
<EuiImage size="l" alt="OpenSearch" src={logos.OpenSearch.url} />
</EuiFlexItem>
Expand All @@ -206,6 +206,7 @@ export const WorkspaceInitial = () => {
>
{content}
</EuiPageContent>
<EuiSpacer size="m" />
<EuiSmallButtonEmpty
iconType="gear"
iconSide="left"
Expand Down

0 comments on commit ea8d5c4

Please sign in to comment.