From aae8c4d9d9d3a2930f637bb33ed0979498d086cd Mon Sep 17 00:00:00 2001 From: Youssef Date: Wed, 23 Feb 2022 00:10:48 +0100 Subject: [PATCH] refactor: update text in ui consistent --- .../component/admin/api-token/ApiTokenList/ApiTokenList.tsx | 2 +- .../admin/project-roles/EditProjectRole/EditProjectRole.tsx | 2 +- frontend/src/component/admin/users/EditUser/EditUser.tsx | 2 +- frontend/src/component/admin/users/UsersAdmin.tsx | 2 +- frontend/src/component/context/ContextList/ContextList.jsx | 2 +- frontend/src/component/context/EditContext/EditContext.tsx | 2 +- .../environments/EditEnvironment/EditEnvironment.tsx | 2 +- .../environments/EnvironmentList/EnvironmentList.tsx | 4 ++-- frontend/src/component/feature/EditFeature/EditFeature.tsx | 2 +- .../component/feature/FeatureToggleList/FeatureToggleList.jsx | 2 +- .../__tests__/__snapshots__/list-component-test.jsx.snap | 4 ++-- .../FeatureStrategiesEnvironments.tsx | 2 +- .../FeatureVariantsList/FeatureVariantsList.tsx | 2 +- .../src/component/project/Project/EditProject/EditProject.tsx | 2 +- frontend/src/component/project/ProjectList/ProjectList.tsx | 2 +- .../component/strategies/StrategiesList/StrategiesList.tsx | 2 +- .../src/component/strategies/StrategyForm/StrategyForm.tsx | 2 +- .../__tests__/__snapshots__/list-component-test.jsx.snap | 4 ++-- frontend/src/component/tags/EditTagType/EditTagType.tsx | 2 +- frontend/src/component/tags/TagTypeList/TagTypeList.jsx | 2 +- .../__tests__/__snapshots__/TagTypeList.test.js.snap | 4 ++-- 21 files changed, 25 insertions(+), 25 deletions(-) diff --git a/frontend/src/component/admin/api-token/ApiTokenList/ApiTokenList.tsx b/frontend/src/component/admin/api-token/ApiTokenList/ApiTokenList.tsx index 7e97a831b1..f313fc83ef 100644 --- a/frontend/src/component/admin/api-token/ApiTokenList/ApiTokenList.tsx +++ b/frontend/src/component/admin/api-token/ApiTokenList/ApiTokenList.tsx @@ -249,7 +249,7 @@ export const ApiTokenList = () => { } data-test={CREATE_API_TOKEN_BUTTON} > - Create API token + New API token } /> diff --git a/frontend/src/component/admin/project-roles/EditProjectRole/EditProjectRole.tsx b/frontend/src/component/admin/project-roles/EditProjectRole/EditProjectRole.tsx index eb79af949c..29c396ff6f 100644 --- a/frontend/src/component/admin/project-roles/EditProjectRole/EditProjectRole.tsx +++ b/frontend/src/component/admin/project-roles/EditProjectRole/EditProjectRole.tsx @@ -125,7 +125,7 @@ to resources within a project" getRoleKey={getRoleKey} > - Edit role + Save diff --git a/frontend/src/component/admin/users/EditUser/EditUser.tsx b/frontend/src/component/admin/users/EditUser/EditUser.tsx index 07e212bf56..4bafebbea2 100644 --- a/frontend/src/component/admin/users/EditUser/EditUser.tsx +++ b/frontend/src/component/admin/users/EditUser/EditUser.tsx @@ -95,7 +95,7 @@ const EditUser = () => { mode={EDIT} > - Edit user + Save diff --git a/frontend/src/component/admin/users/UsersAdmin.tsx b/frontend/src/component/admin/users/UsersAdmin.tsx index 0b9f2c7cf6..bb16b611d9 100644 --- a/frontend/src/component/admin/users/UsersAdmin.tsx +++ b/frontend/src/component/admin/users/UsersAdmin.tsx @@ -35,7 +35,7 @@ const UsersAdmin = () => { history.push('/admin/create-user') } > - Add new user + New user } elseShow={ diff --git a/frontend/src/component/context/ContextList/ContextList.jsx b/frontend/src/component/context/ContextList/ContextList.jsx index c9379b0110..99c5287eae 100644 --- a/frontend/src/component/context/ContextList/ContextList.jsx +++ b/frontend/src/component/context/ContextList/ContextList.jsx @@ -127,7 +127,7 @@ const ContextList = () => { color="primary" variant="contained" > - Add new context field + New context field } /> diff --git a/frontend/src/component/context/EditContext/EditContext.tsx b/frontend/src/component/context/EditContext/EditContext.tsx index 146353167b..4d4de9fc6c 100644 --- a/frontend/src/component/context/EditContext/EditContext.tsx +++ b/frontend/src/component/context/EditContext/EditContext.tsx @@ -107,7 +107,7 @@ const EditContext = () => { permission={UPDATE_CONTEXT_FIELD} type="submit" > - Edit context + Save diff --git a/frontend/src/component/environments/EditEnvironment/EditEnvironment.tsx b/frontend/src/component/environments/EditEnvironment/EditEnvironment.tsx index ecfc11ec5d..5513b15ea3 100644 --- a/frontend/src/component/environments/EditEnvironment/EditEnvironment.tsx +++ b/frontend/src/component/environments/EditEnvironment/EditEnvironment.tsx @@ -86,7 +86,7 @@ const EditEnvironment = () => { clearErrors={clearErrors} > - Edit environment + Save diff --git a/frontend/src/component/environments/EnvironmentList/EnvironmentList.tsx b/frontend/src/component/environments/EnvironmentList/EnvironmentList.tsx index 691946e0de..a2903ca300 100644 --- a/frontend/src/component/environments/EnvironmentList/EnvironmentList.tsx +++ b/frontend/src/component/environments/EnvironmentList/EnvironmentList.tsx @@ -172,10 +172,10 @@ const EnvironmentList = () => { - Add Environment + New Environment } diff --git a/frontend/src/component/feature/EditFeature/EditFeature.tsx b/frontend/src/component/feature/EditFeature/EditFeature.tsx index 239dac8030..636055c001 100644 --- a/frontend/src/component/feature/EditFeature/EditFeature.tsx +++ b/frontend/src/component/feature/EditFeature/EditFeature.tsx @@ -106,7 +106,7 @@ const EditFeature = () => { projectId={project} type="submit" > - Edit toggle + Save diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleList.jsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleList.jsx index 7c5ea29409..b6f94bf062 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleList.jsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleList.jsx @@ -181,7 +181,7 @@ const FeatureToggleList = ({ skeleton: loading, })} > - Create feature toggle + New feature toggle } /> diff --git a/frontend/src/component/feature/FeatureToggleList/__tests__/__snapshots__/list-component-test.jsx.snap b/frontend/src/component/feature/FeatureToggleList/__tests__/__snapshots__/list-component-test.jsx.snap index 36bd2043b0..8999e76e61 100644 --- a/frontend/src/component/feature/FeatureToggleList/__tests__/__snapshots__/list-component-test.jsx.snap +++ b/frontend/src/component/feature/FeatureToggleList/__tests__/__snapshots__/list-component-test.jsx.snap @@ -163,7 +163,7 @@ exports[`renders correctly with one feature 1`] = ` - Create feature toggle + New feature toggle @@ -358,7 +358,7 @@ exports[`renders correctly with one feature without permissions 1`] = ` - Create feature toggle + New feature toggle diff --git a/frontend/src/component/feature/FeatureView/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesEnvironments.tsx b/frontend/src/component/feature/FeatureView/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesEnvironments.tsx index 5845f78f53..0cc45cf4e0 100644 --- a/frontend/src/component/feature/FeatureView/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesEnvironments.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesEnvironments.tsx @@ -282,7 +282,7 @@ const FeatureStrategiesEnvironments = () => { environmentId={activeEnvironment.name} permission={CREATE_FEATURE_STRATEGY} > - Add new strategy + New strategy } /> diff --git a/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureVariantsList/FeatureVariantsList.tsx b/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureVariantsList/FeatureVariantsList.tsx index 5eab68a83f..a215e55731 100644 --- a/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureVariantsList/FeatureVariantsList.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureVariants/FeatureVariantsList/FeatureVariantsList.tsx @@ -293,7 +293,7 @@ const FeatureOverviewVariants = () => { permission={UPDATE_FEATURE_VARIANTS} projectId={projectId} > - Add variant + New variant { validateIdUniqueness={validateIdUniqueness} > - Edit project + Save diff --git a/frontend/src/component/project/ProjectList/ProjectList.tsx b/frontend/src/component/project/ProjectList/ProjectList.tsx index 98be2717f0..d4afcb3bcd 100644 --- a/frontend/src/component/project/ProjectList/ProjectList.tsx +++ b/frontend/src/component/project/ProjectList/ProjectList.tsx @@ -139,7 +139,7 @@ const ProjectListNew = () => { tooltip={createButtonData.title} disabled={createButtonData.disabled} > - Add new project + New project } /> diff --git a/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx b/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx index 8439435d58..cbe3a9f6b9 100644 --- a/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx +++ b/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx @@ -80,7 +80,7 @@ export const StrategiesList = () => { data-test={ADD_NEW_STRATEGY_ID} tooltip={'Add new strategy'} > - Add new strategy + New strategy } /> diff --git a/frontend/src/component/strategies/StrategyForm/StrategyForm.tsx b/frontend/src/component/strategies/StrategyForm/StrategyForm.tsx index c980baa622..2d87e2ce3a 100644 --- a/frontend/src/component/strategies/StrategyForm/StrategyForm.tsx +++ b/frontend/src/component/strategies/StrategyForm/StrategyForm.tsx @@ -178,7 +178,7 @@ export const StrategyForm = ({ editMode, strategy }: IStrategyFormProps) => { color="primary" style={{ display: 'block' }} > - Update + Save } elseShow={ diff --git a/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap b/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap index c3cceed402..729c09e34f 100644 --- a/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap +++ b/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap @@ -62,7 +62,7 @@ exports[`renders correctly with one strategy 1`] = ` - Add new strategy + New strategy @@ -287,7 +287,7 @@ exports[`renders correctly with one strategy without permissions 1`] = ` - Add new strategy + New strategy diff --git a/frontend/src/component/tags/EditTagType/EditTagType.tsx b/frontend/src/component/tags/EditTagType/EditTagType.tsx index cf73153ffe..59c7d0e0a1 100644 --- a/frontend/src/component/tags/EditTagType/EditTagType.tsx +++ b/frontend/src/component/tags/EditTagType/EditTagType.tsx @@ -75,7 +75,7 @@ const EditTagType = () => { clearErrors={clearErrors} > - Edit type + Save diff --git a/frontend/src/component/tags/TagTypeList/TagTypeList.jsx b/frontend/src/component/tags/TagTypeList/TagTypeList.jsx index 72bb7d8b12..e75396282d 100644 --- a/frontend/src/component/tags/TagTypeList/TagTypeList.jsx +++ b/frontend/src/component/tags/TagTypeList/TagTypeList.jsx @@ -80,7 +80,7 @@ export const TagTypeList = () => { history.push('/tag-types/create') } > - Add new tag type + New tag type } /> diff --git a/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.js.snap b/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.js.snap index 54f61d645e..505b5326f3 100644 --- a/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.js.snap +++ b/frontend/src/component/tags/TagTypeList/__tests__/__snapshots__/TagTypeList.test.js.snap @@ -50,7 +50,7 @@ exports[`renders a list with elements correctly 1`] = ` - Add new tag type + New tag type - Add new tag type + New tag type