Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ exports[`EmptyState should render normally 1`] = `
}
}
>
Couldn't find any Elasticsearch data
<FormattedMessage
defaultMessage="Couldn't find any Elasticsearch data"
id="kbn.management.createIndexPattern.emptyStateHeader"
values={Object {}}
/>
</h2>
</EuiTextColor>
</EuiTitle>
Expand All @@ -44,28 +48,46 @@ exports[`EmptyState should render normally 1`] = `
grow={true}
>
<p>
<EuiTextColor
color="subdued"
component="span"
>
You'll need to index some data into Elasticsearch before you can create an index pattern.
</EuiTextColor>

<EuiLink
color="primary"
href="#/home/tutorial_directory"
type="button"
>
Learn how
</EuiLink>
or
<EuiLink
color="primary"
href="#/home/tutorial_directory/sampleData"
type="button"
>
get started with some sample data sets.
</EuiLink>
<FormattedMessage
defaultMessage="{needToIndex} {learnHowLink} or {getStartedLink}"
id="kbn.management.createIndexPattern.emptyStateLabel.emptyStateDetail"
values={
Object {
"getStartedLink": <EuiLink
color="primary"
href="#/home/tutorial_directory/sampleData"
type="button"
>
<FormattedMessage
defaultMessage="get started with some sample data sets."
id="kbn.management.createIndexPattern.emptyStateLabel.getStartedLink"
values={Object {}}
/>
</EuiLink>,
"learnHowLink": <EuiLink
color="primary"
href="#/home/tutorial_directory"
type="button"
>
<FormattedMessage
defaultMessage="Learn how"
id="kbn.management.createIndexPattern.emptyStateLabel.learnHowLink"
values={Object {}}
/>
</EuiLink>,
"needToIndex": <EuiTextColor
color="subdued"
component="span"
>
<FormattedMessage
defaultMessage="You'll need to index some data into Elasticsearch before you can create an index pattern."
id="kbn.management.createIndexPattern.emptyStateLabel.needToIndexLabel"
values={Object {}}
/>
</EuiTextColor>,
}
}
/>
</p>
</EuiText>
<EuiSpacer
Expand Down Expand Up @@ -93,7 +115,11 @@ exports[`EmptyState should render normally 1`] = `
onClick={[Function]}
type="button"
>
Check for new data
<FormattedMessage
defaultMessage="Check for new data"
id="kbn.management.createIndexPattern.emptyState.checkDataButton"
values={Object {}}
/>
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ import {
EuiButton,
} from '@elastic/eui';

import { FormattedMessage } from '@kbn/i18n/react';

export const EmptyState = ({
onRefresh,
}) => (
Expand All @@ -40,27 +42,47 @@ export const EmptyState = ({
<EuiFlexItem grow={false}>
<EuiTitle>
<EuiTextColor color="subdued">
<h2 style={{ textAlign: 'center' }}>Couldn&apos;t find any Elasticsearch data</h2>
<h2 style={{ textAlign: 'center' }}>
<FormattedMessage
id="kbn.management.createIndexPattern.emptyStateHeader"
defaultMessage="Couldn't find any Elasticsearch data"
/>
</h2>
</EuiTextColor>
</EuiTitle>
<EuiSpacer size="s"/>
<EuiText>
<p>
<EuiTextColor color="subdued">
You&apos;ll need to index some data into Elasticsearch before you can create an index pattern.
</EuiTextColor>
&nbsp;
<EuiLink
href="#/home/tutorial_directory"
>
Learn how
</EuiLink>
{' or '}
<EuiLink
href="#/home/tutorial_directory/sampleData"
>
get started with some sample data sets.
</EuiLink>
<FormattedMessage
id="kbn.management.createIndexPattern.emptyStateLabel.emptyStateDetail"
defaultMessage="{needToIndex} {learnHowLink} or {getStartedLink}"
values={{
needToIndex: (
<EuiTextColor color="subdued">
<FormattedMessage
id="kbn.management.createIndexPattern.emptyStateLabel.needToIndexLabel"
defaultMessage="You'll need to index some data into Elasticsearch before you can create an index pattern."
/>
</EuiTextColor>
),
learnHowLink: (
<EuiLink href="#/home/tutorial_directory">
<FormattedMessage
id="kbn.management.createIndexPattern.emptyStateLabel.learnHowLink"
defaultMessage="Learn how"
/>
</EuiLink>
),
getStartedLink: (
<EuiLink href="#/home/tutorial_directory/sampleData">
<FormattedMessage
id="kbn.management.createIndexPattern.emptyStateLabel.getStartedLink"
defaultMessage="get started with some sample data sets."
/>
</EuiLink>
)
}}
/>
</p>
</EuiText>

Expand All @@ -73,7 +95,10 @@ export const EmptyState = ({
onClick={onRefresh}
data-test-subj="refreshIndicesButton"
>
Check for new data
<FormattedMessage
id="kbn.management.createIndexPattern.emptyState.checkDataButton"
defaultMessage="Check for new data"
/>
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ exports[`Header should render normally 1`] = `
size="m"
>
<h1>
Create index pattern
<FormattedMessage
defaultMessage="Create index pattern"
id="kbn.management.createIndexPatternHeader"
values={Object {}}
/>
</h1>
</EuiTitle>
<EuiFlexGroup
Expand All @@ -33,7 +37,11 @@ exports[`Header should render normally 1`] = `
color="subdued"
component="span"
>
Kibana uses index patterns to retrieve data from Elasticsearch indices for things like visualizations.
<FormattedMessage
defaultMessage="Kibana uses index patterns to retrieve data from Elasticsearch indices for things like visualizations."
id="kbn.management.createIndexPatternLabel"
values={Object {}}
/>
</EuiTextColor>
</p>
</EuiText>
Expand All @@ -45,7 +53,13 @@ exports[`Header should render normally 1`] = `
<EuiSwitch
checked={true}
id="checkboxShowSystemIndices"
label="Include system indices"
label={
<FormattedMessage
defaultMessage="Include system indices"
id="kbn.management.createIndexPattern.includeSystemIndicesToggleSwitch"
values={Object {}}
/>
}
onChange={[Function]}
/>
</EuiFlexItem>
Expand All @@ -65,7 +79,11 @@ exports[`Header should render without including system indices 1`] = `
size="m"
>
<h1>
Create index pattern
<FormattedMessage
defaultMessage="Create index pattern"
id="kbn.management.createIndexPatternHeader"
values={Object {}}
/>
</h1>
</EuiTitle>
<EuiFlexGroup
Expand All @@ -89,7 +107,11 @@ exports[`Header should render without including system indices 1`] = `
color="subdued"
component="span"
>
Kibana uses index patterns to retrieve data from Elasticsearch indices for things like visualizations.
<FormattedMessage
defaultMessage="Kibana uses index patterns to retrieve data from Elasticsearch indices for things like visualizations."
id="kbn.management.createIndexPatternLabel"
values={Object {}}
/>
</EuiTextColor>
</p>
</EuiText>
Expand All @@ -101,7 +123,13 @@ exports[`Header should render without including system indices 1`] = `
<EuiSwitch
checked={false}
id="checkboxShowSystemIndices"
label="Include system indices"
label={
<FormattedMessage
defaultMessage="Include system indices"
id="kbn.management.createIndexPattern.includeSystemIndicesToggleSwitch"
values={Object {}}
/>
}
onChange={[Function]}
/>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,43 @@ import {
EuiSwitch,
} from '@elastic/eui';

import { FormattedMessage } from '@kbn/i18n/react';

export const Header = ({
isIncludingSystemIndices,
onChangeIncludingSystemIndices,
}) => (
<div>
<EuiSpacer size="m"/>
<EuiTitle>
<h1>Create index pattern</h1>
<h1>
<FormattedMessage
id="kbn.management.createIndexPatternHeader"
defaultMessage="Create index pattern"
/>
</h1>

</EuiTitle>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="flexEnd">
<EuiFlexItem grow={false}>
<EuiText>
<p>
<EuiTextColor color="subdued">
Kibana uses index patterns to retrieve data from Elasticsearch indices for things like visualizations.
<FormattedMessage
id="kbn.management.createIndexPatternLabel"
defaultMessage="Kibana uses index patterns to retrieve data from Elasticsearch indices for things like visualizations."
/>
</EuiTextColor>
</p>
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSwitch
label={<FormattedMessage
id="kbn.management.createIndexPattern.includeSystemIndicesToggleSwitch"
defaultMessage="Include system indices"
/>}
id="checkboxShowSystemIndices"
label="Include system indices"
checked={isIncludingSystemIndices}
onChange={onChangeIncludingSystemIndices}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ exports[`LoadingState should render normally 1`] = `
}
}
>
Checking for Elasticsearch data
<FormattedMessage
defaultMessage="Checking for Elasticsearch data"
id="kbn.management.createIndexPattern.loadingState.checkingLabel"
values={Object {}}
/>
</h2>
</EuiTextColor>
</EuiTitle>
Expand Down Expand Up @@ -66,7 +70,11 @@ exports[`LoadingState should render normally 1`] = `
grow={true}
size="s"
>
Reticulating splines...
<FormattedMessage
defaultMessage="Reticulating splines..."
id="kbn.management.createIndexPattern.loadingState.reticulatingLabel"
values={Object {}}
/>
</EuiText>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ import {
EuiTitle,
} from '@elastic/eui';

import { FormattedMessage } from '@kbn/i18n/react';

export const LoadingState = () => (
<EuiPanel paddingSize="l">
<EuiFlexGroup justifyContent="center" alignItems="center">
<EuiFlexItem grow={false}>
<EuiTitle>
<EuiTextColor color="subdued">
<h2 style={{ textAlign: 'center' }}>Checking for Elasticsearch data</h2>
<h2 style={{ textAlign: 'center' }}>
<FormattedMessage
id="kbn.management.createIndexPattern.loadingState.checkingLabel"
defaultMessage="Checking for Elasticsearch data"
/>
</h2>
</EuiTextColor>
</EuiTitle>

Expand All @@ -49,7 +56,10 @@ export const LoadingState = () => (

<EuiFlexItem grow={false}>
<EuiText size="s" color="subdued">
Reticulating splines...
<FormattedMessage
id="kbn.management.createIndexPattern.loadingState.reticulatingLabel"
defaultMessage="Reticulating splines..."
/>
</EuiText>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Loading