From 1e6df0b366e8cdc1fe1c35206b1b270e9455e07c Mon Sep 17 00:00:00 2001 From: Kshitij Tandon Date: Mon, 19 Aug 2024 13:03:10 +0530 Subject: [PATCH] Fixing a few bugs in old UI Signed-off-by: Kshitij Tandon --- .../containers/ChangePolicy/ChangePolicy.tsx | 109 +-- .../__snapshots__/ChangePolicy.test.tsx.snap | 20 +- .../CreateIndexTemplate.test.tsx.snap | 3 - .../TemplateDetail/TemplateDetail.tsx | 1 - .../CreateTransformForm.test.tsx.snap | 664 +++++++++--------- .../DefineTransformsStep.tsx | 4 +- .../ReviewAndCreateStep.tsx | 4 +- .../SetUpIndicesStep/SetUpIndicesStep.tsx | 12 +- .../SpecifyScheduleStep.tsx | 4 +- .../ConfigureTransform/Configure.tsx | 2 +- .../Transforms/components/Indices/Indices.tsx | 2 +- .../components/Schedule/Schedule.tsx | 2 +- .../containers/Transforms/EditTransform.tsx | 16 +- .../__snapshots__/EditTransform.test.tsx.snap | 6 +- 14 files changed, 421 insertions(+), 428 deletions(-) diff --git a/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx b/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx index 2b73723e4..97ececf11 100644 --- a/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx +++ b/public/pages/ChangePolicy/containers/ChangePolicy/ChangePolicy.tsx @@ -159,66 +159,67 @@ export class ChangePolicy extends Component { - return ( - - -

Change Policy

-
- + const Common = () => { + return ( + <> + + + + + + + + + + + + Cancel + - ); - } - : () => {}; - - return ( -
- {Title()} - - - - + + + Change + + + + + ); + }; - + return !useUpdatedUX ? ( +
+ +

Change policy

+
- - - - Cancel - - - - - Change - - - + {Common()}
+ ) : ( +
{Common()}
); } } 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 054623d47..1f40cb70b 100644 --- a/public/pages/ChangePolicy/containers/ChangePolicy/__snapshots__/ChangePolicy.test.tsx.snap +++ b/public/pages/ChangePolicy/containers/ChangePolicy/__snapshots__/ChangePolicy.test.tsx.snap @@ -2,20 +2,16 @@ exports[` spec renders the component 1`] = `
-
-

- Change Policy -

-
-
+ Change policy + +
spec render template pages 1`] = `
-
) => }} /> - ) : null} 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 16deeb136..48c7ae204 100644 --- a/public/pages/CreateTransform/containers/CreateTransformForm/__snapshots__/CreateTransformForm.test.tsx.snap +++ b/public/pages/CreateTransform/containers/CreateTransformForm/__snapshots__/CreateTransformForm.test.tsx.snap @@ -153,21 +153,145 @@ exports[` spec renders the component 1`] = `
+

+ Set up indices +

+
-

- Set up indices -

+
+

+ Job name and description + + + + +

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

+ Description +

+
+
+
+
+
+ + – optional + +
+
+
+
+
+
+
+