Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some text occurrences in UI #4186

Merged
merged 20 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chaoscenter/web/src/components/InputSlider/InputSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export default function InputSlider({ initialValue, name, onChange }: InputSlide
<Layout.Vertical className={cx(css.grow, css.gap1)}>
<div className={css.rangeSliderCont}>
<input
data-testid="rangeSliderInput"
type="range"
data-testid={getString('rangesliderinput')}
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
type={getString("range")}
name={name}
value={value}
min={0}
Expand Down
12 changes: 12 additions & 0 deletions chaoscenter/web/src/strings/strings.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ chooseAuthenticationType: Choose Authentication Type
chooseHubAccess: Choose Hub Access
chooseMembersAddTheProject: Choose members to add to the project
chooseProbeMode: Choose Mode for probe to be executed
clearSearch: Clear search
clickDownload: >-
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.
Expand Down Expand Up @@ -156,6 +157,7 @@ collaborators: Collaborators
comingSoon: Coming Soon
command: Command
comparator: Comparator
comparisonCriteria: Comparison Criteria
completed: Completed
configure: Configure
configureChaosInfrastructure: Configure Chaos Infrastructure
Expand Down Expand Up @@ -205,6 +207,7 @@ createdAt: Created At
createdOn: Created On
creationTime: Creation Time
criteria: Criteria
criteriafordata: Criteria for data
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
cronExpression: Cron Expression
cronExpressionRequired: Cron Expression required
cronSelectOption: Cron (Recurring run)
Expand Down Expand Up @@ -276,6 +279,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?
Expand Down Expand Up @@ -324,6 +328,7 @@ enterProjectName: Enter Project Name
enterYourEmail: Enter your email
enterYourName: Enter your name
enterYourPassword: Enter your password
EnteryourPersonalAcessToken: Enter your Personal Acess Token
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
enterYourUsername: Enter your username
environment: Environment
environmentDescription: >-
Expand Down Expand Up @@ -598,6 +603,7 @@ needAttention: Needs Attention
newChaosExperiment: New Chaos Experiment
newChaosHub: New ChaosHub
newChaosInfrastructure: Enable Chaos
newEnvironment: New Environment
newExperiment: New Experiment
newMember: New Member
newPassword: New Password
Expand Down Expand Up @@ -741,6 +747,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
Expand Down Expand Up @@ -845,6 +852,8 @@ public: Public
query: Query
queryPath: Query path
ranAt: Ran at
range: range
rangesliderinput: rangeSliderInput
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down Expand Up @@ -960,6 +969,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
selectProbes: Select Probes
selectProject: Select a Project
selectTimeframe: Select time frame
Expand All @@ -972,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
Expand Down Expand Up @@ -1076,6 +1087,7 @@ tuneFaultProperties: Tune fault properties
tuneFaultWeight: Tune fault weightage
tuneWeight: Tune Weight
type: Type
typeofdata: Type of data
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
udpatePassword: Update Password
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
unableToGetProbes: Unable to get probe information
unhealthy: Unhealthy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const GitConnectionStep: React.FC<
PAT
</Text>
}
placeholder="Enter your Personal Acess Token"
placeholder={getString('EnteryourPersonalAcessToken')}
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
/>
)}
{formikProps.values.isPrivate && formikProps.values.authType === AuthType.SSH && (
Expand All @@ -276,14 +276,14 @@ const GitConnectionStep: React.FC<
});
}}
variation={ButtonVariation.SECONDARY}
text="Generate New SSH Key"
text={getString('generateSSH')}
/>
<div className={css.textInputContainer}>
<Text font={{ variation: FontVariation.FORM_LABEL }} margin={{ bottom: 'xsmall' }}>
SSH Key
</Text>
<TextInput
placeholder="SSH Key"
placeholder={getString('sshKey')}
value={sshPublicKey}
onChange={(e: FormEvent<HTMLInputElement>) => {
setPublicSshKey(e.currentTarget.value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand All @@ -803,8 +803,8 @@ const TuneDetailsStep: React.FC<
<>
<FormInput.Select
name="kubernetesHTTPProperties.method.get.criteria"
label="Criteria"
placeholder="Criteria for data"
label={getString('criteria')}
placeholder={getString('criteriafordata')}
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
items={[
{ label: '==', value: '==' },
{ label: '!=', value: '!=' },
Expand Down Expand Up @@ -836,8 +836,8 @@ const TuneDetailsStep: React.FC<
/>
<FormInput.Select
name="kubernetesHTTPProperties.method.post.criteria"
label="Criteria"
placeholder="Criteria for data"
label={getString('criteria')}
placeholder={getString('criteriafordata')}
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
items={[
{ label: '==', value: '==' },
{ label: '!=', value: '!=' }
Expand Down Expand Up @@ -882,8 +882,8 @@ const TuneDetailsStep: React.FC<
</Text>
<FormInput.Select
name="kubernetesCMDProperties.comparator.type"
label="Type"
placeholder="Type of data"
label={getString('type')}
placeholder={getString('typeofdata')}
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
onChange={selected => (cmdComparatorType.current = selected.value as string)}
items={[
{ label: 'Int', value: 'int' },
Expand All @@ -894,10 +894,10 @@ const TuneDetailsStep: React.FC<
<Layout.Horizontal flex={{ justifyContent: 'space-between', alignItems: 'flex-start' }} spacing="small">
<FormInput.Select
name="kubernetesCMDProperties.comparator.criteria"
label="Comparison Criteria"
label={getString('comparisonCriteria')}
usePortal
style={{ width: '50%' }}
placeholder="Criteria for data"
placeholder={getString('criteriafordata')}
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
items={
cmdComparatorType.current === 'string'
? [
Expand Down Expand Up @@ -1006,7 +1006,7 @@ const TuneDetailsStep: React.FC<
</Text>
<FormInput.Select
name="promProperties.comparator.type"
label="Type"
label={getString('type')}
onChange={selected => (promComparatorType.current = selected.value as string)}
placeholder="Type of data"
items={[
Expand All @@ -1018,10 +1018,10 @@ const TuneDetailsStep: React.FC<
<Layout.Horizontal flex={{ justifyContent: 'space-between', alignItems: 'flex-start' }} spacing="small">
<FormInput.Select
name="promProperties.comparator.criteria"
label="Comparison Criteria"
label={getString('comparisonCriteria')}
usePortal
style={{ width: '50%' }}
placeholder="Criteria for data"
placeholder={getString('criteriafordata')}
nanu1605 marked this conversation as resolved.
Show resolved Hide resolved
items={
promComparatorType.current === 'string'
? [
Expand Down Expand Up @@ -1072,8 +1072,8 @@ const TuneDetailsStep: React.FC<
<FormInput.Text name="k8sProperties.labelSelector" label={'Label Selector'} placeholder={'Label Selector'} />
<FormInput.Select
name="k8sProperties.operation"
label="Operation"
placeholder="Operation"
label={getString('operation')}
placeholder={getString('operation')}
items={[
// Create to be enabled once Engine CR is updated to include `data` inside k8s properties
// { label: 'Create', value: 'create' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const GitConnectionStep: React.FC<
});
}}
variation={ButtonVariation.SECONDARY}
text="Generate New SSH Key"
text={getString('generateSSH')}
/>
<div className={css.textInputContainer}>
<Text font={{ variation: FontVariation.FORM_LABEL }} margin={{ bottom: 'xsmall' }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function EnvironmentListView({
data-testid="add-environment"
icon="plus"
iconProps={{ size: 10 }}
text="New Environment"
text={getString('newEnvironment')}
permission={PermissionGroup.EDITOR}
onClick={() => open()}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const MenuCell = ({
<Menu style={{ backgroundColor: 'unset' }}>
<RbacMenuItem
icon="edit"
text="Edit Environment"
text={getString('editEnvironment')}
onClick={openEditModal}
permission={PermissionGroup.EDITOR}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function ExperimentAdvancedTuningOptionsView({
isOpen={isOpen}
leftPanel={leftPanel}
handleClose={() => onClose()}
title="Advanced Options"
title={getString('advancedOptions')}
type={DrawerTypes.AdvacedOptions}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
/>
<FormInput.Select
name="criteria"
label="Criteria"
label={getString('criteria')}
placeholder={formikProps.initialValues.criteria}
items={[
{ label: '==', value: '==' },
Expand Down Expand Up @@ -161,7 +161,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
variation={ButtonVariation.SECONDARY}
icon="main-chevron-left"
iconProps={{ color: Color.WHITE }}
text="Previous"
text={getString('previous')}
/>
)}
<Button
Expand Down Expand Up @@ -344,7 +344,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
variation={ButtonVariation.SECONDARY}
icon="main-chevron-left"
iconProps={{ color: Color.WHITE }}
text="Previous"
text={getString('previous')}
/>
)}
<Button
Expand Down Expand Up @@ -424,7 +424,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
>
<FormInput.Text
name="endpoint"
label="Endpoint"
label={getString('endpoint')}
placeholder={formikProps.initialValues.endpoint}
tooltipProps={{ dataTooltipId: 'chaos_probe_prom_endpoint' }}
/>
Expand All @@ -447,7 +447,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
/>
<FormInput.Select
name="criteria"
label="Criteria"
label={getString('criteria')}
placeholder={formikProps.initialValues.criteria}
items={
formikProps.values.type === 'string'
Expand Down Expand Up @@ -483,7 +483,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
variation={ButtonVariation.SECONDARY}
icon="main-chevron-left"
iconProps={{ color: Color.WHITE }}
text="Previous"
text={getString('previous')}
/>
)}
<Button
Expand Down Expand Up @@ -559,7 +559,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
>
<FormInput.Text
name="command"
label="Command"
label={getString('command')}
placeholder={formikProps.initialValues.command}
tooltipProps={{ dataTooltipId: 'chaos_probe_cmd_command' }}
/>
Expand All @@ -576,7 +576,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
/>
<FormInput.Select
name="criteria"
label="Criteria"
label={getString('criteria')}
placeholder={formikProps.initialValues.criteria}
items={
formikProps.values.type === 'string'
Expand Down Expand Up @@ -619,7 +619,7 @@ export const ProbeDetailsStep: React.FC<StepProps<StepData>> = props => {
variation={ButtonVariation.SECONDARY}
icon="main-chevron-left"
iconProps={{ color: Color.WHITE }}
text="Previous"
text={getString('previous')}
/>
)}
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const ProbeOverviewStep: React.FC<StepProps<StepData>> = props => {
variation={ButtonVariation.SECONDARY}
icon="main-chevron-left"
iconProps={{ color: Color.WHITE }}
text="Previous"
text={getString('previous')}
/>
)}
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const ProbePropertiesStep: React.FC<StepProps<StepData>> = props => {
variation={ButtonVariation.SECONDARY}
icon="main-chevron-left"
iconProps={{ color: Color.WHITE }}
text="Previous"
text={getString('previous')}
/>
)}
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function KubernetesChaosInfrastructureView({
icon="reset"
minimal
color={Color.PRIMARY_7}
text="Clear search"
text={getString('clearSearch')}
onClick={() => setSearchTerm('')}
/>
</Layout.Vertical>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ const ConfigureStep: React.FC<
noAutoScroll
isDefaultOpen
addDomId
id="Basic"
id={getString('basic')}
summary={
<Text font={{ variation: FontVariation.CARD_TITLE }} color={Color.GREY_1000}>
{getString('chaosComponentInstallation')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function StudioScheduleView({ mode }: StudioScheduleViewProps): R
return updateSearchParams({ tab: StudioTabs.BUILDER });
}}
/>
<Button type="submit" intent="primary" text="Set Schedule" />
<Button type="submit" intent="primary" text={getString('setSchedule')}/>
</Layout.Horizontal>
</Form>
);
Expand Down