From 8370bcd064799905b63078fcea98dd0668c68784 Mon Sep 17 00:00:00 2001 From: Kshitij Tandon Date: Mon, 2 Sep 2024 11:43:29 +0530 Subject: [PATCH] Title changes in Old UI Signed-off-by: Kshitij Tandon --- .../components/ContentPanel/ContentPanel.tsx | 4 +- .../__snapshots__/ContentPanel.test.tsx.snap | 22 ++--- .../Aliases/containers/Aliases/Aliases.tsx | 6 +- .../__snapshots__/Aliases.test.tsx.snap | 10 ++- .../containers/ChangePolicy/ChangePolicy.tsx | 6 +- .../__snapshots__/ChangePolicy.test.tsx.snap | 10 ++- .../CreateComposableTemplate.test.tsx.snap | 63 +++++++------ .../containers/IndexAlias/IndexAlias.tsx | 6 +- .../TemplateDetail/TemplateDetail.tsx | 14 ++- .../TemplateDetail.test.tsx.snap | 60 +++++++------ .../CreateDataStream.test.tsx.snap | 22 ++--- .../DataStreamDetail.test.tsx.snap | 22 ++--- .../containers/CreateIndex/CreateIndex.tsx | 6 +- .../CreateIndexTemplate.test.tsx.snap | 13 +-- .../TemplateDetail/TemplateDetail.tsx | 4 +- .../TemplateDetail.test.tsx.snap | 12 +-- .../ConfigurePolicy.test.tsx.snap | 22 ++--- .../__snapshots__/DefinePolicy.test.tsx.snap | 22 ++--- .../__snapshots__/CreatePolicy.test.tsx.snap | 88 ++++++++++--------- .../CreateRollupForm.test.tsx.snap | 44 +++++----- .../CreateTransformForm.test.tsx.snap | 44 +++++----- .../__snapshots__/EditRollup.test.tsx.snap | 44 +++++----- .../__snapshots__/ForceMerge.test.tsx.snap | 22 ++--- .../__snapshots__/Indices.test.tsx.snap | 22 ++--- .../ManagedIndices.test.tsx.snap | 22 ++--- .../__snapshots__/Policies.test.tsx.snap | 22 ++--- .../PolicySettings.test.tsx.snap | 22 ++--- .../CreateIndexFlyout/CreateIndexFlyout.tsx | 6 +- .../CreateIndexFlyout.test.tsx.snap | 13 +-- .../__snapshots__/Reindex.test.tsx.snap | 44 +++++----- .../__snapshots__/Rollover.test.tsx.snap | 22 ++--- .../__snapshots__/ShrinkIndex.test.tsx.snap | 44 +++++----- .../__snapshots__/EditTransform.test.tsx.snap | 66 +++++++------- .../__snapshots__/PolicyInfo.test.tsx.snap | 22 ++--- .../States/__snapshots__/States.test.tsx.snap | 22 ++--- 35 files changed, 496 insertions(+), 397 deletions(-) diff --git a/public/components/ContentPanel/ContentPanel.tsx b/public/components/ContentPanel/ContentPanel.tsx index 0d7b9354f..5c30772d8 100644 --- a/public/components/ContentPanel/ContentPanel.tsx +++ b/public/components/ContentPanel/ContentPanel.tsx @@ -71,12 +71,12 @@ const ContentPanel: React.SFC = ({ {title ? ( {typeof title === "string" ? ( - +

{title} {itemCount > 0 ? `(${itemCount})` : null}

-
+ ) : ( title )} diff --git a/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap b/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap index 7ab9e46e5..f78bebca4 100644 --- a/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap +++ b/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap @@ -12,17 +12,19 @@ exports[` spec renders the component 1`] = `
-

- Testing - - - - -

+

+ Testing + + + + +

+
{ bodyStyles={{ padding: "initial" }} title={ <> - - Aliases - + +

Aliases

+
spec renders the component 1`] = `
- - Aliases - +

+ Aliases +

+
- +

Change policy

-
+ diff --git a/public/pages/ChangePolicy/containers/ChangePolicy/__snapshots__/ChangePolicy.test.tsx.snap b/public/pages/ChangePolicy/containers/ChangePolicy/__snapshots__/ChangePolicy.test.tsx.snap index 85a3791bb..8cba4876d 100644 --- a/public/pages/ChangePolicy/containers/ChangePolicy/__snapshots__/ChangePolicy.test.tsx.snap +++ b/public/pages/ChangePolicy/containers/ChangePolicy/__snapshots__/ChangePolicy.test.tsx.snap @@ -4,11 +4,13 @@ exports[` spec renders the component 1`] = `
-

- Change policy -

+

+ Change policy +

+
diff --git a/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap b/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap index f2bb4f1b3..d4b9fdb03 100644 --- a/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap +++ b/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap @@ -11,12 +11,15 @@ exports[` spec it goes to templates page when click
-

- good_template -

+

+ good_template +

+
spec it goes to templates page when click
-

- Define component template - - - - -

+

+ Define component template + + + + +

+

spec it goes to templates page when click for="some_html_id" >
- Index alias +
+ Index alias +
@@ -269,17 +276,19 @@ exports[` spec it goes to templates page when click
-

- Index settings - - - - -

+

+ Index settings + + + + +

+
+
Index alias
- +
} helpText="Allow the new indexes to be referenced by existing aliases or specify a new alias." > diff --git a/public/pages/CreateComposableTemplate/containers/TemplateDetail/TemplateDetail.tsx b/public/pages/CreateComposableTemplate/containers/TemplateDetail/TemplateDetail.tsx index 009e6728c..91088211d 100644 --- a/public/pages/CreateComposableTemplate/containers/TemplateDetail/TemplateDetail.tsx +++ b/public/pages/CreateComposableTemplate/containers/TemplateDetail/TemplateDetail.tsx @@ -4,7 +4,17 @@ */ import React, { forwardRef, useContext, useEffect, useImperativeHandle, useRef, Ref, useState } from "react"; -import { EuiSmallButton, EuiSmallButtonEmpty, EuiCodeBlock, EuiFlexGroup, EuiFlexItem, EuiLink, EuiSpacer, EuiText, EuiTitle } from "@elastic/eui"; +import { + EuiSmallButton, + EuiSmallButtonEmpty, + EuiCodeBlock, + EuiFlexGroup, + EuiFlexItem, + EuiLink, + EuiSpacer, + EuiText, + EuiTitle, +} from "@elastic/eui"; import { RouteComponentProps } from "react-router-dom"; import { IComposableTemplate, IComposableTemplateRemote } from "../../../../../models/interfaces"; import useField from "../../../../lib/field"; @@ -226,7 +236,7 @@ const TemplateDetail = (props: TemplateDetailProps, ref: Ref ) : ( - {isEdit ?

{templateName}

:

Create component template

}
+ {isEdit ?

{templateName}

:

Create component template

}
)} {isEdit ? null : useNewUX ? ( diff --git a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap index 491aa488c..1133ecbfb 100644 --- a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap +++ b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap @@ -8,11 +8,13 @@ exports[` spec render component 1`] = `
-

- Create component template -

+

+ Create component template +

+
spec render component 1`] = `
-

- Define component template - - - - -

+

+ Define component template + + + + +

+

spec render component 1`] = ` for="some_html_id" >
- Index alias +
+ Index alias +
@@ -304,17 +310,19 @@ exports[` spec render component 1`] = `
-

- Index settings - - - - -

+

+ Index settings + + + + +

+
spec it goes to data streams page when click cance
-

- Define data stream - - - - -

+

+ Define data stream + + + + +

+

spec render component 1`] = `
-

- Define data stream - - - - -

+

+ Define data stream + + + + +

+

{ ) : (
- +

{isEdit ? "Edit" : "Create"} index

-
+ spec render template pages 1`] = `
-

- good_template -

+

+ good_template +

+
) => <> - + {isEdit ?

{templateName}

:

{isEdit ? "Edit" : "Create"} template

} -
+ {isEdit ? null : ( spec render component in non-edit-mode 1`] = `
-

- Create - template -

+

+ Create + template +

+
spec renders the component 1`] = `
-

- Name policy - - - - -

+

+ Name policy + + + + +

+

spec renders the component 1`] = `
-

- Define policy - - - - -

+

+ Define policy + + + + +

+
spec renders the create component 1`] = `
-

- Name policy - - - - -

+

+ Name policy + + + + +

+

spec renders the create component 1`] = `
-

- Define policy - - - - -

+

+ Define policy + + + + +

+
spec renders the edit component 1`] = `
-

- Name policy - - - - -

+

+ Name policy + + + + +

+

spec renders the edit component 1`] = `
-

- Define policy - - - - -

+

+ Define policy + + + + +

+
spec renders the component 1`] = `
-

- Job name and description - - - - -

+

+ Job name and description + + + + +

+

spec renders the component 1`] = `
-

- Indices - - - - -

+

+ Indices + + + + +

+

spec renders the component 1`] = `
-

- Job name and description - - - - -

+

+ Job name and description + + + + +

+

spec renders the component 1`] = `
-

- Indices - - - - -

+

+ Indices + + + + +

+

spec renders the component 1`] = `
-

- Job name and description - - - - -

+

+ Job name and description + + + + +

+

spec renders the component 1`] = `
-

- Schedule - - - - -

+

+ Schedule + + + + +

+

spec renders the component 1`] = `
-

- Configure source index - - - - -

+

+ Configure source index + + + + +

+

spec renders the component 1`] = `
-

- Indexes - - - - -

+

+ Indexes + + + + +

+
spec renders the component 1`] = `
-

- Policy managed indexes - - - - -

+

+ Policy managed indexes + + + + +

+
spec renders the component 1`] = `
-

- State management policies - - - - -

+

+ State management policies + + + + +

+
spec renders the component 1`] = `
-

- Policy settings - - - - -

+

+ Policy settings + + + + +

+

{}} hideCloseButton> - +

Create Index

-
+
diff --git a/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap b/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap index fd8f45ac6..dd9737ff7 100644 --- a/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap +++ b/public/pages/Reindex/components/CreateIndexFlyout/__snapshots__/CreateIndexFlyout.test.tsx.snap @@ -33,12 +33,15 @@ Object {
-

- Create Index -

+

+ Create Index +

+
spec renders the component 1`] = `
-

- Configure source index - - - - -

+

+ Configure source index + + + + +

+

spec renders the component 1`] = `
-

- Configure destination index - - - - -

+

+ Configure destination index + + + + +

+

spec render the component 1`] = `
-

- Configure source - - - - -

+

+ Configure source + + + + +

+

spec renders the component 1`] = `
-

- Configure target index - - - - -

+

+ Configure target index + + + + +

+

spec renders the component 1`] = `
-

- Advanced settings - - - - -

+

+ Advanced settings + + + + +

+
diff --git a/public/pages/Transforms/containers/Transforms/__snapshots__/EditTransform.test.tsx.snap b/public/pages/Transforms/containers/Transforms/__snapshots__/EditTransform.test.tsx.snap index 86ee0124e..6f3a79038 100644 --- a/public/pages/Transforms/containers/Transforms/__snapshots__/EditTransform.test.tsx.snap +++ b/public/pages/Transforms/containers/Transforms/__snapshots__/EditTransform.test.tsx.snap @@ -23,17 +23,19 @@ exports[` spec renders the component 1`] = `
-

- Job name and description - - - - -

+

+ Job name and description + + + + +

+

spec renders the component 1`] = `
-

- Indices - - - - -

+

+ Indices + + + + +

+

spec renders the component 1`] = `
-

- Schedule - - - - -

+

+ Schedule + + + + +

+

spec renders the component 1`] = `
-

- Policy info - - - - -

+

+ Policy info + + + + +

+

spec renders the component 1`] = `
-

- States (2) - - - - -

+

+ States (2) + + + + +

+