Skip to content

Commit

Permalink
Updated old UI Title sizes
Browse files Browse the repository at this point in the history
Signed-off-by: Kshitij Tandon <[email protected]>
  • Loading branch information
tandonks committed Sep 2, 2024
1 parent 7a20069 commit 063f07b
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,13 @@ exports[`<CreateTransformForm /> spec renders the component 1`] = `
<div
class="euiFlexItem"
>
<h1
class="euiTitle euiTitle--large"
<div
class="euiText euiText--small"
>
Set up indices
</h1>
<h1>
Set up indices
</h1>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React, { Component } from "react";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem } from "@elastic/eui";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiText } from "@elastic/eui";
import { RouteComponentProps } from "react-router-dom";
import { TransformService } from "../../../../services";
import { BREADCRUMBS, ROUTES } from "../../../../utils/constants";
Expand Down Expand Up @@ -63,9 +63,9 @@ export default class DefineTransformsStep extends Component<DefineTransformsStep
? () => {
return (
<>
<EuiTitle size="l">
<EuiText size="s">
<h1>Define transform</h1>
</EuiTitle>
</EuiText>
<EuiSpacer />
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React, { Component } from "react";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiCallOut } from "@elastic/eui";
import { EuiSpacer, EuiFlexGroup, EuiFlexItem, EuiCallOut, EuiText } from "@elastic/eui";
import { RouteComponentProps } from "react-router-dom";
import { TransformService } from "../../../../services";
import { BREADCRUMBS, ROUTES } from "../../../../utils/constants";
Expand Down Expand Up @@ -64,9 +64,9 @@ export default class ReviewAndCreateStep extends Component<ReviewAndCreateStepPr
? () => {
return (
<>
<EuiTitle size="l">
<EuiText size="s">
<h1>Review and Create</h1>
</EuiTitle>
</EuiText>
<EuiSpacer />
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React, { ChangeEvent, Component } from "react";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiComboBoxOptionOption } from "@elastic/eui";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiComboBoxOptionOption, EuiText } from "@elastic/eui";
import { RouteComponentProps } from "react-router-dom";
import { TransformService } from "../../../../services";
import ConfigureTransform from "../../components/ConfigureTransform";
Expand Down Expand Up @@ -52,9 +52,9 @@ export default class SetUpIndicesStep extends Component<SetUpIndicesStepProps> {
? () => {
return (
<>
<EuiTitle size="l">
<EuiText size="s">
<h1>Set up indices</h1>
</EuiTitle>
</EuiText>
<EuiSpacer />
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React, { ChangeEvent, Component } from "react";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem } from "@elastic/eui";
import { EuiSpacer, EuiTitle, EuiFlexGroup, EuiFlexItem, EuiText } from "@elastic/eui";
import { RouteComponentProps } from "react-router-dom";
import { TransformService } from "../../../../services";
import { BREADCRUMBS, ROUTES } from "../../../../utils/constants";
Expand Down Expand Up @@ -129,9 +129,9 @@ export default class SpecifyScheduleStep extends Component<SpecifyScheduleStepPr
? () => {
return (
<>
<EuiTitle size="l">
<EuiText size="s">
<h1>Specify Schedule</h1>
</EuiTitle>
</EuiText>
<EuiSpacer />
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ export default function IndexDetail(props: IndexDetailModalProps) {
) : (
<>
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
<EuiTitle size="m">
<span>{index}</span>
</EuiTitle>
<EuiText size="s">
<h1>{index}</h1>
</EuiText>
<IndicesActions
selectedItems={[record]}
history={props.history}
Expand Down
4 changes: 2 additions & 2 deletions public/pages/Reindex/container/Reindex/Reindex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,9 @@ class Reindex extends Component<ReindexProps, ReindexState> {
</div>
) : (
<div style={{ padding: "0px 50px" }}>
<EuiTitle size="l">
<EuiText size="s">
<h1>Reindex</h1>
</EuiTitle>
</EuiText>
{subTitleText}
<EuiSpacer />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ exports[`<Reindex /> spec renders the component 1`] = `
<div
style="padding: 0px 50px;"
>
<h1
class="euiTitle euiTitle--large"
<div
class="euiText euiText--small"
>
Reindex
</h1>
<h1>
Reindex
</h1>
</div>
<div
class="euiFormRow euiFormRow--fullWidth euiFormRow--compressed"
id="some_html_id-row"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@ class ShrinkIndex extends Component<ShrinkIndexProps, ShrinkIndexState> {
</div>
) : (
<div style={{ padding: "0px 50px" }}>
<EuiTitle size="l">
<EuiText size="s">
<h1>Shrink index</h1>
</EuiTitle>
</EuiText>
{subTitleText}
<EuiSpacer />
{Common()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ exports[`<Shrink index /> spec renders the component 1`] = `
<div
style="padding: 0px 50px;"
>
<h1
class="euiTitle euiTitle--large"
<div
class="euiText euiText--small"
>
Shrink index
</h1>
<h1>
Shrink index
</h1>
</div>
<div
class="euiFormRow euiFormRow--fullWidth euiFormRow--compressed"
id="some_html_id-row"
Expand Down
6 changes: 3 additions & 3 deletions public/pages/SplitIndex/container/SplitIndex/SplitIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import React, { Component, useContext } from "react";
import { EuiCallOut, EuiSpacer, EuiTitle, EuiSmallButton, EuiLink, EuiCompressedFormRow } from "@elastic/eui";
import { EuiCallOut, EuiSpacer, EuiTitle, EuiSmallButton, EuiLink, EuiCompressedFormRow, EuiText } from "@elastic/eui";
import { get } from "lodash";

import { CatIndex } from "../../../../../server/models/interfaces";
Expand Down Expand Up @@ -273,9 +273,9 @@ export class SplitIndex extends Component<SplitIndexProps> {
</div>
) : (
<div style={{ padding: "0px 50px" }}>
<EuiTitle>
<EuiText size="s">
<h1>Split index</h1>
</EuiTitle>
</EuiText>

<EuiCompressedFormRow
fullWidth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ HTMLCollection [
<div
style="padding: 0px 50px;"
>
<h1
class="euiTitle euiTitle--medium"
<div
class="euiText euiText--small"
>
Split index
</h1>
<h1>
Split index
</h1>
</div>
<div
class="euiFormRow euiFormRow--fullWidth euiFormRow--compressed"
id="some_html_id-row"
Expand Down
13 changes: 4 additions & 9 deletions public/pages/Transforms/containers/Transforms/EditTransform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EMPTY_TRANSFORM } from "../../utils/constants";
import queryString from "query-string";
import { BREADCRUMBS, ROUTES } from "../../../../utils/constants";
import { getErrorMessage } from "../../../../utils/helpers";
import { EuiFlexItem, EuiFlexGroup, EuiSmallButton, EuiTitle, EuiSpacer, EuiSmallButtonEmpty } from "@elastic/eui";
import { EuiFlexItem, EuiFlexGroup, EuiSmallButton, EuiTitle, EuiSpacer, EuiSmallButtonEmpty, EuiText } from "@elastic/eui";
import ConfigureTransform from "../../components/ConfigureTransform";
import Schedule from "../../components/Schedule";
import Indices from "../../components/Indices";
Expand Down Expand Up @@ -193,12 +193,7 @@ export class EditTransform extends Component<EditTransformProps, EditTransformSt
</EuiSmallButtonEmpty>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiSmallButton
fill
onClick={this.onSubmit}
isLoading={isSubmitting}
data-test-subj="editTransformSaveButton"
>
<EuiSmallButton fill onClick={this.onSubmit} isLoading={isSubmitting} data-test-subj="editTransformSaveButton">
Save changes
</EuiSmallButton>
</EuiFlexItem>
Expand All @@ -210,9 +205,9 @@ export class EditTransform extends Component<EditTransformProps, EditTransformSt
<div style={{ padding: "0px 0px" }}>{Common()}</div>
) : (
<div style={{ padding: "25px 50px" }}>
<EuiTitle size="l">
<EuiText size="s">
<h1>Edit transform job</h1>
</EuiTitle>
</EuiText>
<EuiSpacer />
{Common()}
</div>
Expand Down
18 changes: 10 additions & 8 deletions public/pages/Transforms/containers/Transforms/TransformDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ export class TransformDetails extends Component<TransformDetailsProps, Transform
<div style={{ padding: "5px 50px" }}>
<EuiFlexGroup style={{ padding: "0px 10px" }} justifyContent="spaceBetween" alignItems="center">
<EuiFlexItem grow={false}>
<EuiTitle size="m">
<h2>{id}</h2>
</EuiTitle>
<EuiText size="s">
<h1>{id}</h1>
</EuiText>
</EuiFlexItem>

<EuiFlexItem grow={false}>
Expand Down Expand Up @@ -429,7 +429,6 @@ export class TransformDetails extends Component<TransformDetailsProps, Transform
<EuiSpacer />
<TransformStatus metadata={metadata} />
<EuiSpacer />
<EuiSpacer />
<TransformSettings
{...this.props}
transformService={this.props.transformService}
Expand All @@ -444,11 +443,15 @@ export class TransformDetails extends Component<TransformDetailsProps, Transform
<EuiOverlayMask>
<EuiModal onClose={this.closeModal}>
<EuiModalHeader>
<EuiModalHeaderTitle>{"View JSON of " + id} </EuiModalHeaderTitle>
<EuiModalHeaderTitle>
<EuiText size="s">
<h2>{"View JSON of " + id}</h2>
</EuiText>
</EuiModalHeaderTitle>
</EuiModalHeader>

<EuiModalBody>
<EuiCodeBlock language="json" fontSize="m" paddingSize="m" overflowHeight={600} inline={false} isCopyable>
<EuiCodeBlock language="json" fontSize="s" paddingSize="m" overflowHeight={600} inline={false} isCopyable>
{JSON.stringify(transformJson, null, 4)}
</EuiCodeBlock>
</EuiModalBody>
Expand Down Expand Up @@ -481,7 +484,6 @@ export class TransformDetails extends Component<TransformDetailsProps, Transform
<EuiSpacer />
<TransformStatus metadata={metadata} />
<EuiSpacer />
<EuiSpacer />
<TransformSettings
{...this.props}
transformService={this.props.transformService}
Expand All @@ -494,7 +496,7 @@ export class TransformDetails extends Component<TransformDetailsProps, Transform

{isModalOpen && (
<EuiOverlayMask>
<EuiModal onClose={this.closeModal} style={{ padding: "5px 30px" }}>
<EuiModal onClose={this.closeModal}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<EuiText size="s">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ exports[`<EditTransform /> spec renders the component 1`] = `
<div
style="padding: 25px 50px;"
>
<h1
class="euiTitle euiTitle--large"
<div
class="euiText euiText--small"
>
Edit transform job
</h1>
<h1>
Edit transform job
</h1>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
Expand Down

0 comments on commit 063f07b

Please sign in to comment.