From 4bdeea3a64363df07eb466650703b1899d571409 Mon Sep 17 00:00:00 2001 From: Tanishq Jain Date: Fri, 27 Oct 2023 12:33:35 +0530 Subject: [PATCH] Added some text occurrences in UI (#4186) * Fixed issue with updating audit fields in recent experiment runs (#4172) * fixed mongo schema decode issue Signed-off-by: Saranya-jena * updated the same in other fields Signed-off-by: Saranya-jena * fixed css Signed-off-by: Saranya-jena --------- Signed-off-by: Saranya-jena Signed-off-by: Tanishq Jain * fix: Fixed teaming page UI Issues (#4173) Signed-off-by: Hrishav Signed-off-by: Tanishq Jain * fix: Updated config to support favicon (#4179) Signed-off-by: Hrishav Signed-off-by: Tanishq Jain * replace string with corresponding keys Signed-off-by: Tanishq Jain * replace string with corresponding keys Signed-off-by: Tanishq Jain * replaced the text string with the corresponding keys Signed-off-by: Tanishq Jain Signed-off-by: Tanishq Jain * fix: Added experiment run operator for NewChaosExperimentService (#4184) Signed-off-by: Amit Kumar Das Signed-off-by: Tanishq Jain * Apply suggestions from code review Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com> Signed-off-by: Tanishq Jain * updated type.ts using yarn strings Signed-off-by: Tanishq Jain --------- Signed-off-by: Saranya-jena Signed-off-by: Tanishq Jain Signed-off-by: Hrishav Signed-off-by: Amit Kumar Das Signed-off-by: Saranya Jena Co-authored-by: Saranya Jena Co-authored-by: Hrishav Co-authored-by: Amit Kumar Das Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com> --- .../components/InputSlider/InputSlider.tsx | 4 +-- .../YAMLBuilder/YamlBuilder.module.scss.d.ts | 30 ++++++++++++++++++ chaoscenter/web/src/strings/strings.en.yaml | 12 ++++++- chaoscenter/web/src/strings/types.ts | 12 ++++++- .../AddHubModalWizard/AddHubModalWizard.tsx | 6 ++-- .../AddProbeModalWizard.tsx | 31 ++++++++++--------- .../EditHubModalWizard/EditHubModalWizard.tsx | 2 +- .../EnvironmentList/EnvironmentsTableMenu.tsx | 2 +- .../ExperimentAdvancedTuningOptions.tsx | 2 +- .../AddProbeStepWizard/ProbeDetailsStep.tsx | 18 +++++------ .../AddProbeStepWizard/ProbeOverviewStep.tsx | 2 +- .../ProbePropertiesStep.tsx | 2 +- .../KubernetesChaosInfrastructure.tsx | 2 +- ...sInfrastructureStepWizardConfiguration.tsx | 2 +- .../views/StudioSchedule/StudioSchedule.tsx | 2 +- 15 files changed, 90 insertions(+), 39 deletions(-) create mode 100644 chaoscenter/web/src/components/YAMLBuilder/YamlBuilder.module.scss.d.ts diff --git a/chaoscenter/web/src/components/InputSlider/InputSlider.tsx b/chaoscenter/web/src/components/InputSlider/InputSlider.tsx index 752756ff280..c3839f0e1b7 100644 --- a/chaoscenter/web/src/components/InputSlider/InputSlider.tsx +++ b/chaoscenter/web/src/components/InputSlider/InputSlider.tsx @@ -29,8 +29,8 @@ export default function InputSlider({ initialValue, name, onChange }: InputSlide
- Click on the “Download” button below to download the YML file to a machine where you have kubectl installed and have access to your Kubernetes cluster. @@ -157,6 +158,7 @@ collaborators: Collaborators comingSoon: Coming Soon command: Command comparator: Comparator +comparisonCriteria: Comparison Criteria completed: Completed configure: Configure configureChaosInfrastructure: Configure Chaos Infrastructure @@ -206,6 +208,7 @@ createdAt: Created At createdOn: Created On creationTime: Creation Time criteria: Criteria +criteriaForData: Criteria for data cronExpression: Cron Expression cronExpressionRequired: Cron Expression required cronSelectOption: Cron (Recurring run) @@ -277,6 +280,7 @@ downloadedSuccessfully: Downloaded successfully duration: Duration edit: Edit editChaosHub: Edit ChaosHub +editEnvironment: Edit Environment editExperiment: Edit Experiment editExperimentCopy: Edit Copy editExperimentOptions: Do you want to edit the same experiment or edit a copy? @@ -741,6 +745,7 @@ pollingInterval: Polling Interval preProd: Pre-Prod predefinedExperimentsNotFound: No Predefined Experiments found in this hub preview: Preview +previous: Previous private: Private probeAddedSuccessfully: Probe added successfully, please apply changes before closing probeConfiguration: Probe Configuration @@ -845,6 +850,8 @@ public: Public query: Query queryPath: Query path ranAt: Ran at +range: range +rangeSliderInput: rangeSliderInput rbacDescription: You are missing permission '{{permission}}' to perform this action. rbacHeader: You do not have permission to perform this action reEnterNewPassword: Re-enter new password @@ -961,6 +968,7 @@ selectExperiments: Select Experiments selectHub: Select a ChaosHub selectHubFromList: Select a hub from the list selectHubHeader: Create or select existing ChaosHub +selectMethod: Select Method GET / POST selectProbe: Select Probe selectProbes: Select Probes selectProject: Select a Project @@ -974,6 +982,7 @@ serviceAccount: Service Account serviceAccountName: Service Account Name serviceHealthScore: Service Health Score setFaultWeights: Set fault weights +setSchedule: Set Schedule settings: Settings setupChaosInfrastructures: >- Enabling Chaos on infrastructure helps to inject chaos by studying your @@ -1078,10 +1087,11 @@ tuneFaultProperties: Tune fault properties tuneFaultWeight: Tune fault weightage tuneWeight: Tune Weight type: Type -udpatePassword: Update Password +typeOfData: Type of data unableToGetProbes: Unable to get probe information unhealthy: Unhealthy update: Update +updatePassword: Update Password updatedAt: Updated at updatedBy: Updated by upgradeChaosInfrastructure: Upgrade Chaos Infrastructure diff --git a/chaoscenter/web/src/strings/types.ts b/chaoscenter/web/src/strings/types.ts index 7b6be12bea2..8f7e64999f7 100644 --- a/chaoscenter/web/src/strings/types.ts +++ b/chaoscenter/web/src/strings/types.ts @@ -122,6 +122,7 @@ export interface StringsMap { 'chooseHubAccess': unknown 'chooseMembersAddTheProject': unknown 'chooseProbeMode': unknown + 'clearSearch': unknown 'clickDownload': unknown 'clone': unknown 'cloneExperiment': unknown @@ -137,6 +138,7 @@ export interface StringsMap { 'comingSoon': unknown 'command': unknown 'comparator': unknown + 'comparisonCriteria': unknown 'completed': unknown 'configure': unknown 'configureChaosInfrastructure': unknown @@ -174,6 +176,7 @@ export interface StringsMap { 'createdOn': unknown 'creationTime': unknown 'criteria': unknown + 'criteriaForData': unknown 'cronExpression': unknown 'cronExpressionRequired': unknown 'cronSelectOption': unknown @@ -236,6 +239,7 @@ export interface StringsMap { 'duration': unknown 'edit': unknown 'editChaosHub': unknown + 'editEnvironment': unknown 'editExperiment': unknown 'editExperimentCopy': unknown 'editExperimentOptions': unknown @@ -617,6 +621,7 @@ export interface StringsMap { 'preProd': unknown 'predefinedExperimentsNotFound': unknown 'preview': unknown + 'previous': unknown 'private': unknown 'probeAddedSuccessfully': unknown 'probeConfiguration': unknown @@ -697,6 +702,8 @@ export interface StringsMap { 'query': unknown 'queryPath': unknown 'ranAt': unknown + 'range': unknown + 'rangeSliderInput': unknown 'rbacDescription': PrimitiveObject<'permission'> 'rbacHeader': unknown 'reEnterNewPassword': unknown @@ -808,6 +815,7 @@ export interface StringsMap { 'selectHub': unknown 'selectHubFromList': unknown 'selectHubHeader': unknown + 'selectMethod': unknown 'selectProbe': unknown 'selectProbes': unknown 'selectProject': unknown @@ -821,6 +829,7 @@ export interface StringsMap { 'serviceAccountName': unknown 'serviceHealthScore': unknown 'setFaultWeights': unknown + 'setSchedule': unknown 'settings': unknown 'setupChaosInfrastructures': unknown 'setupProbe': unknown @@ -913,10 +922,11 @@ export interface StringsMap { 'tuneFaultWeight': unknown 'tuneWeight': unknown 'type': unknown - 'udpatePassword': unknown + 'typeOfData': unknown 'unableToGetProbes': unknown 'unhealthy': unknown 'update': unknown + 'updatePassword': unknown 'updatedAt': unknown 'updatedBy': unknown 'upgradeChaosInfrastructure': unknown diff --git a/chaoscenter/web/src/views/AddHubModalWizard/AddHubModalWizard.tsx b/chaoscenter/web/src/views/AddHubModalWizard/AddHubModalWizard.tsx index d0921ca7638..ff40c4df5e0 100644 --- a/chaoscenter/web/src/views/AddHubModalWizard/AddHubModalWizard.tsx +++ b/chaoscenter/web/src/views/AddHubModalWizard/AddHubModalWizard.tsx @@ -260,7 +260,7 @@ const GitConnectionStep: React.FC< PAT } - placeholder="Enter your Personal Acess Token" + placeholder={getString('accessTokenPlaceholder')} /> )} {formikProps.values.isPrivate && formikProps.values.authType === AuthType.SSH && ( @@ -276,14 +276,14 @@ const GitConnectionStep: React.FC< }); }} variation={ButtonVariation.SECONDARY} - text="Generate New SSH Key" + text={getString('generateSSH')} />
SSH Key ) => { setPublicSshKey(e.currentTarget.value); diff --git a/chaoscenter/web/src/views/AddProbeModalWizard/AddProbeModalWizard.tsx b/chaoscenter/web/src/views/AddProbeModalWizard/AddProbeModalWizard.tsx index e19602dfd79..d2340514339 100644 --- a/chaoscenter/web/src/views/AddProbeModalWizard/AddProbeModalWizard.tsx +++ b/chaoscenter/web/src/views/AddProbeModalWizard/AddProbeModalWizard.tsx @@ -792,8 +792,8 @@ const TuneDetailsStep: React.FC< } as SelectOption) : undefined } - label="Method" - placeholder="Select Method GET / POST " + label={getString('method')} + placeholder={getString('selectMethod')} items={[ { label: 'GET', value: 'get' }, { label: 'POST', value: 'post' } @@ -803,8 +803,8 @@ const TuneDetailsStep: React.FC< <> (cmdComparatorType.current = selected.value as string)} items={[ { label: 'Int', value: 'int' }, @@ -894,10 +894,10 @@ const TuneDetailsStep: React.FC< (promComparatorType.current = selected.value as string)} placeholder="Type of data" items={[ @@ -1018,10 +1018,10 @@ const TuneDetailsStep: React.FC<
diff --git a/chaoscenter/web/src/views/Environments/EnvironmentList/EnvironmentsTableMenu.tsx b/chaoscenter/web/src/views/Environments/EnvironmentList/EnvironmentsTableMenu.tsx index 410c17db01f..d8b852c9969 100644 --- a/chaoscenter/web/src/views/Environments/EnvironmentList/EnvironmentsTableMenu.tsx +++ b/chaoscenter/web/src/views/Environments/EnvironmentList/EnvironmentsTableMenu.tsx @@ -28,7 +28,7 @@ export const MenuCell = ({ diff --git a/chaoscenter/web/src/views/ExperimentAdvancedTuningOptions/ExperimentAdvancedTuningOptions.tsx b/chaoscenter/web/src/views/ExperimentAdvancedTuningOptions/ExperimentAdvancedTuningOptions.tsx index d3bbba17cf0..0009a83ebdd 100644 --- a/chaoscenter/web/src/views/ExperimentAdvancedTuningOptions/ExperimentAdvancedTuningOptions.tsx +++ b/chaoscenter/web/src/views/ExperimentAdvancedTuningOptions/ExperimentAdvancedTuningOptions.tsx @@ -286,7 +286,7 @@ function ExperimentAdvancedTuningOptionsView({ isOpen={isOpen} leftPanel={leftPanel} handleClose={() => onClose()} - title="Advanced Options" + title={getString('advancedOptions')} type={DrawerTypes.AdvacedOptions} /> ); diff --git a/chaoscenter/web/src/views/ExperimentCreationFaultConfiguration/Tabs/Probes/AddProbeStepWizard/ProbeDetailsStep.tsx b/chaoscenter/web/src/views/ExperimentCreationFaultConfiguration/Tabs/Probes/AddProbeStepWizard/ProbeDetailsStep.tsx index 4e01e7f9af2..3f9c8cb9408 100644 --- a/chaoscenter/web/src/views/ExperimentCreationFaultConfiguration/Tabs/Probes/AddProbeStepWizard/ProbeDetailsStep.tsx +++ b/chaoscenter/web/src/views/ExperimentCreationFaultConfiguration/Tabs/Probes/AddProbeStepWizard/ProbeDetailsStep.tsx @@ -120,7 +120,7 @@ export const ProbeDetailsStep: React.FC> = props => { /> > = props => { variation={ButtonVariation.SECONDARY} icon="main-chevron-left" iconProps={{ color: Color.WHITE }} - text="Previous" + text={getString('previous')} /> )}