diff --git a/public/containers/IndexDetail/__snapshots__/IndexDetail.test.tsx.snap b/public/containers/IndexDetail/__snapshots__/IndexDetail.test.tsx.snap index 1a6374a6a..144867e1c 100644 --- a/public/containers/IndexDetail/__snapshots__/IndexDetail.test.tsx.snap +++ b/public/containers/IndexDetail/__snapshots__/IndexDetail.test.tsx.snap @@ -16,7 +16,7 @@ exports[` spec render the component 1`] = ` class="euiHorizontalRule euiHorizontalRule--full euiHorizontalRule--marginXSmall" />
Source index details - + {items && items.length ? ( +

Index name

+ + ), description: items[0].index, }, { - title: "Primary shards", + title: ( + +

Primary shards

+
+ ), description: items[0].pri, }, { - title: "Replica shards", + title: ( + +

Replica shards

+
+ ), description: items[0].rep, }, { - title: "Total index size", + title: ( + +

Total index size

+
+ ), description: items[0]["store.size"], }, ]} diff --git a/public/pages/CreateIndex/containers/IndexForm/index.tsx b/public/pages/CreateIndex/containers/IndexForm/index.tsx index 9448a61f2..ebd911e56 100644 --- a/public/pages/CreateIndex/containers/IndexForm/index.tsx +++ b/public/pages/CreateIndex/containers/IndexForm/index.tsx @@ -472,7 +472,13 @@ export class IndexForm extends Component - + {isEdit ? "Update" : "Create"} diff --git a/public/pages/CreateTransform/components/ConfigureTransform/ConfigureTransform.tsx b/public/pages/CreateTransform/components/ConfigureTransform/ConfigureTransform.tsx index c35cd6d75..d621cce5b 100644 --- a/public/pages/CreateTransform/components/ConfigureTransform/ConfigureTransform.tsx +++ b/public/pages/CreateTransform/components/ConfigureTransform/ConfigureTransform.tsx @@ -4,8 +4,17 @@ */ import React, { ChangeEvent } from "react"; -import { EuiSpacer, EuiCompressedFormRow, EuiCompressedFieldText, EuiTextArea, EuiText, EuiFlexGroup, EuiFlexItem } from "@elastic/eui"; -import { ContentPanel } from "../../../../components/ContentPanel"; +import { + EuiSpacer, + EuiCompressedFormRow, + EuiCompressedFieldText, + EuiTextArea, + EuiText, + EuiFlexGroup, + EuiFlexItem, + EuiPanel, + EuiHorizontalRule, +} from "@elastic/eui"; interface ConfigureTransformProps { isEdit: boolean; @@ -24,10 +33,18 @@ const ConfigureTransform = ({ onChangeDescription, description, }: ConfigureTransformProps) => ( - + + +

Job name and description

+
+
+

Name

+ + } helpText="Specify a unique, descriptive name." isInvalid={!!transformIdError} error={transformIdError} @@ -43,13 +60,15 @@ const ConfigureTransform = ({ - -

Description

+ +

Description

- - – optional + +

+ – optional +

@@ -58,6 +77,6 @@ const ConfigureTransform = ({
-
+ ); export default ConfigureTransform; diff --git a/public/pages/CreateTransform/components/CreateTransformSteps/CreateTransformSteps.tsx b/public/pages/CreateTransform/components/CreateTransformSteps/CreateTransformSteps.tsx index 8f5404825..3f1b18711 100644 --- a/public/pages/CreateTransform/components/CreateTransformSteps/CreateTransformSteps.tsx +++ b/public/pages/CreateTransform/components/CreateTransformSteps/CreateTransformSteps.tsx @@ -36,7 +36,7 @@ const setOfSteps = (step: number) => { const CreateTransformSteps = ({ step }: CreateTransformStepsProps) => (
- +
); diff --git a/public/pages/CreateTransform/components/DefineTransforms/DefineTransforms.tsx b/public/pages/CreateTransform/components/DefineTransforms/DefineTransforms.tsx index d13b84c0b..05e7d00d8 100644 --- a/public/pages/CreateTransform/components/DefineTransforms/DefineTransforms.tsx +++ b/public/pages/CreateTransform/components/DefineTransforms/DefineTransforms.tsx @@ -168,8 +168,8 @@ export default function DefineTransforms({ if (isReadOnly) return (
- -
Original fields with sample data
+ +

Original fields with sample data

- -
Transformed fields preview based on sample data
+ +

Transformed fields preview based on sample data

- -
Original fields with sample data
+ +

Select fields to transform

+
+ } + titleSize="m" + > + +

Original fields with sample data

{/*TODO: Substitute "source index", and "filtered by" fields with actual values*/} @@ -242,8 +251,8 @@ export default function DefineTransforms({ }} /> - -
Transformed fields preview based on sample data
+ +

Transformed fields preview based on sample data

diff --git a/public/pages/CreateTransform/components/JobNameAndIndices/JobNameAndIndices.tsx b/public/pages/CreateTransform/components/JobNameAndIndices/JobNameAndIndices.tsx index c1293f49e..1c281d7b0 100644 --- a/public/pages/CreateTransform/components/JobNameAndIndices/JobNameAndIndices.tsx +++ b/public/pages/CreateTransform/components/JobNameAndIndices/JobNameAndIndices.tsx @@ -4,8 +4,8 @@ */ import React, { Component } from "react"; -import { EuiFlexGrid, EuiSpacer, EuiFlexItem, EuiText } from "@elastic/eui"; -import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel"; +import { EuiFlexGrid, EuiSpacer, EuiFlexItem, EuiText, EuiPanel, EuiFlexGroup, EuiHorizontalRule } from "@elastic/eui"; +import { ContentPanelActions } from "../../../../components/ContentPanel"; import { ModalConsumer } from "../../../../components/Modal"; import { IndexItem } from "../../../../../models/interfaces"; @@ -27,28 +27,31 @@ export default class JobNameAndIndices extends Component const { transformId, description, onChangeStep, sourceIndex, targetIndex, sourceIndexFilter } = this.props; return ( - - {() => ( - onChangeStep(1), + + + + +

Set up indices

+
+
+ + + {() => ( + onChangeStep(1), + }, }, - }, - ]} - /> - )} - - } - panelStyles={{ padding: "20px 20px" }} - bodyStyles={{ padding: "10px" }} - title="Set up indices" - titleSize="m" - > + ]} + /> + )} + + +
+
@@ -84,7 +87,7 @@ export default class JobNameAndIndices extends Component
-
+ ); } } diff --git a/public/pages/CreateTransform/components/PreviewEmptyPrompt/PreviewEmptyPrompt.tsx b/public/pages/CreateTransform/components/PreviewEmptyPrompt/PreviewEmptyPrompt.tsx index d7866f9d7..c2dc62c60 100644 --- a/public/pages/CreateTransform/components/PreviewEmptyPrompt/PreviewEmptyPrompt.tsx +++ b/public/pages/CreateTransform/components/PreviewEmptyPrompt/PreviewEmptyPrompt.tsx @@ -24,16 +24,18 @@ export default function PreviewEmptyPrompt({ isReadOnly }: PreviewEmptyPromptPro ) : ( +

No fields selected

} body={ -

- {" "} - From the table above, select a field you want to transform by clicking next to the field - name. -

+ +

+ {" "} + From the table above, select a field you want to transform by clicking next to the + field name. +

+
} /> )} diff --git a/public/pages/CreateTransform/components/ReviewDefinition/ReviewDefinition.tsx b/public/pages/CreateTransform/components/ReviewDefinition/ReviewDefinition.tsx index d2e7ca99d..906843bf9 100644 --- a/public/pages/CreateTransform/components/ReviewDefinition/ReviewDefinition.tsx +++ b/public/pages/CreateTransform/components/ReviewDefinition/ReviewDefinition.tsx @@ -4,8 +4,8 @@ */ import React, { Component } from "react"; -import { EuiFlexGrid, EuiSpacer, EuiFlexItem, EuiText, EuiAccordion } from "@elastic/eui"; -import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel"; +import { EuiFlexGrid, EuiSpacer, EuiFlexItem, EuiText, EuiAccordion, EuiFlexGroup, EuiPanel, EuiHorizontalRule } from "@elastic/eui"; +import { ContentPanelActions } from "../../../../components/ContentPanel"; import { ModalConsumer } from "../../../../components/Modal"; import { TransformGroupItem, FieldItem, TransformAggItem, TRANSFORM_AGG_TYPE } from "../../../../../models/interfaces"; import DefineTransforms from "../DefineTransforms"; @@ -82,32 +82,42 @@ export default class ReviewDefinition extends Component { }; return ( - - {() => ( - onChangeStep(2), + + + + +

Define transforms

+
+
+ + + {() => ( + onChangeStep(2), + }, }, - }, - ]} - /> - )} - - } - panelStyles={{ padding: "20px 20px" }} - bodyStyles={{ padding: "10px" }} - title="Define transforms" - titleSize="m" - > + ]} + /> + )} + + +
+
{aggListItems()} - + +

Sample source index and transform result

+ + } + >
{
-
+ ); } } diff --git a/public/pages/CreateTransform/components/ReviewSchedule/ReviewSchedule.tsx b/public/pages/CreateTransform/components/ReviewSchedule/ReviewSchedule.tsx index a0e6f7e2c..496e3550d 100644 --- a/public/pages/CreateTransform/components/ReviewSchedule/ReviewSchedule.tsx +++ b/public/pages/CreateTransform/components/ReviewSchedule/ReviewSchedule.tsx @@ -4,8 +4,8 @@ */ import React, { Component } from "react"; -import { EuiFlexGrid, EuiFlexItem, EuiText } from "@elastic/eui"; -import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel"; +import { EuiFlexGrid, EuiFlexItem, EuiText, EuiPanel, EuiFlexGroup, EuiHorizontalRule } from "@elastic/eui"; +import { ContentPanelActions } from "../../../../components/ContentPanel"; import { ModalConsumer } from "../../../../components/Modal"; import { buildIntervalScheduleText } from "../../../CreateRollup/utils/helpers"; @@ -31,28 +31,31 @@ export default class ReviewSchedule extends Component { const schedule = buildIntervalScheduleText(continuousJob === "yes", interval, intervalTimeunit); return ( - - {() => ( - onChangeStep(3), + + + + +

Specify schedule

+
+
+ + + {() => ( + onChangeStep(3), + }, }, - }, - ]} - /> - )} - - } - panelStyles={{ padding: "20px 20px" }} - bodyStyles={{ padding: "10px" }} - title="Specify schedule" - titleSize="m" - > + ]} + /> + )} + + +
+
@@ -75,7 +78,7 @@ export default class ReviewSchedule extends Component {
-
+ ); } } diff --git a/public/pages/CreateTransform/components/Schedule/Schedule.tsx b/public/pages/CreateTransform/components/Schedule/Schedule.tsx index 69c26ad5e..3dc7d98fd 100644 --- a/public/pages/CreateTransform/components/Schedule/Schedule.tsx +++ b/public/pages/CreateTransform/components/Schedule/Schedule.tsx @@ -12,6 +12,9 @@ import { EuiCompressedFieldNumber, EuiAccordion, EuiHorizontalRule, + EuiText, + EuiTitle, + EuiPanel, } from "@elastic/eui"; import { ContentPanel } from "../../../../components/ContentPanel"; import { selectInterval } from "../../../Transforms/utils/metadataHelper"; @@ -46,7 +49,13 @@ const radios = [ const isContinuous = (continuousJob: string, onChangeContinuousJob: (optionId: string) => void) => ( - + +

Continuous

+
+ } + > { onChangePage, } = this.props; return ( - + + +

Schedule

+
+
{!isEdit && ( {
-
+ ); } } diff --git a/public/pages/CreateTransform/components/TransformIndices/TransformIndices.tsx b/public/pages/CreateTransform/components/TransformIndices/TransformIndices.tsx index 92ff5537e..ce20e5cdd 100644 --- a/public/pages/CreateTransform/components/TransformIndices/TransformIndices.tsx +++ b/public/pages/CreateTransform/components/TransformIndices/TransformIndices.tsx @@ -17,10 +17,10 @@ import { EuiComboBoxOptionOption, EuiBadge, EuiLink, + EuiPanel, } from "@elastic/eui"; import _ from "lodash"; import EuiCompressedComboBox from "../../../../components/ComboBoxWithoutWarning"; -import { ContentPanel } from "../../../../components/ContentPanel"; import IndexFilterPopover from "../IndexFilterPopover"; import { FieldItem, IndexItem } from "../../../../../models/interfaces"; import IndexService from "../../../../services/IndexService"; @@ -163,7 +163,11 @@ export default class TransformIndices extends Component - + + +

Indices

+
+
{hasAggregation && ( @@ -173,7 +177,11 @@ export default class TransformIndices extends Component )} +

Source index

+ + } error={sourceIndexError} isInvalid={sourceIndexError != ""} helpText="The index where this transform job is performed on. Type in * as wildcard for index pattern. Indices cannot be changed once the job is created. Please ensure that you select the right source index." @@ -193,13 +201,15 @@ export default class TransformIndices extends Component - -

Source index filter

+ +

Source index filter

- - – optional + +

+ – optional +

@@ -253,7 +263,11 @@ export default class TransformIndices extends Component +

Target index

+ + } error={targetIndexError} isInvalid={targetIndexError != ""} helpText="The index stores transform results. You can look up an existing index to reuse or type to create a new index." @@ -272,11 +286,13 @@ export default class TransformIndices extends Component
-
+ -

You can't change indices after creating a job. Double-check the source and target index names before proceeding.

+ +

You can't change indices after creating a job. Double-check the source and target index names before proceeding.

+
diff --git a/public/pages/CreateTransform/components/TransformOptions/TransformOptions.tsx b/public/pages/CreateTransform/components/TransformOptions/TransformOptions.tsx index 207de01ef..4efdbbaf2 100644 --- a/public/pages/CreateTransform/components/TransformOptions/TransformOptions.tsx +++ b/public/pages/CreateTransform/components/TransformOptions/TransformOptions.tsx @@ -395,6 +395,7 @@ export default function TransformOptions({ anchorPosition="rightCenter" > diff --git a/public/pages/CreateTransform/containers/CreateTransformForm/CreateTransformForm.tsx b/public/pages/CreateTransform/containers/CreateTransformForm/CreateTransformForm.tsx index 4fef6fc72..300516a85 100644 --- a/public/pages/CreateTransform/containers/CreateTransformForm/CreateTransformForm.tsx +++ b/public/pages/CreateTransform/containers/CreateTransformForm/CreateTransformForm.tsx @@ -677,7 +677,12 @@ export class CreateTransformForm extends Component - + Cancel diff --git a/public/pages/CreateTransform/containers/CreateTransformForm/__snapshots__/CreateTransformForm.test.tsx.snap b/public/pages/CreateTransform/containers/CreateTransformForm/__snapshots__/CreateTransformForm.test.tsx.snap index 5e01b54e6..ecfe6e846 100644 --- a/public/pages/CreateTransform/containers/CreateTransformForm/__snapshots__/CreateTransformForm.test.tsx.snap +++ b/public/pages/CreateTransform/containers/CreateTransformForm/__snapshots__/CreateTransformForm.test.tsx.snap @@ -24,13 +24,13 @@ exports[` spec renders the component 1`] = ` class="euiSteps" >
spec renders the component 1`] = `
Set up indices
@@ -55,13 +55,13 @@ exports[` spec renders the component 1`] = ` />
spec renders the component 1`] = `
Define transforms
@@ -86,13 +86,13 @@ exports[` spec renders the component 1`] = ` />
spec renders the component 1`] = `
Specify schedule
@@ -117,13 +117,13 @@ exports[` spec renders the component 1`] = ` />
spec renders the component 1`] = `
Review and create
@@ -153,139 +153,129 @@ exports[` spec renders the component 1`] = `
-

- Set up indices -

+

+ Set up indices +

+
+

+ Job name and description +

+
+
+
-

- Job name and description - +
- - - -

+

+ Name +

+
+
-
-
-
-
-
- + +
-
-
- -
-
-
- Specify a unique, descriptive name. -
+ Specify a unique, descriptive name.
+
+
+
-
-
-

- Description -

-
+

+ Description +

+
+
-
+

– optional -

+
+
+
+
-
-
- -
+
+ + Press Enter to start editing. +

+

+ When you're done, press Escape to stop editing. +

+ +
+