Skip to content

Commit 7bbc025

Browse files
authored
EDM-259: Unify form labels format (#289)
1 parent fbc7ba9 commit 7bbc025

6 files changed

Lines changed: 6 additions & 5 deletions

File tree

libs/cypress/pages/CreateFleetWizardPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class CreateFleetWizardPage {
1616
}
1717

1818
get newFleetNameField() {
19-
return cy.get('input[aria-label="Name"]');
19+
return cy.get('input[aria-label="Fleet name"]');
2020
}
2121

2222
openFleetRichValidationsPopover() {

libs/i18n/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
"Update policies allow you to control when updates should be downloaded and applied.": "Update policies allow you to control when updates should be downloaded and applied.",
261261
"Default update policy": "Default update policy",
262262
"The device will download and apply updates as soon as they are available.": "The device will download and apply updates as soon as they are available.",
263+
"Device alias": "Device alias",
263264
"Device labels": "Device labels",
264265
"Inline": "Inline",
265266
"Image based": "Image based",

libs/ui-components/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const GeneralInfoStep = () => {
4444
<FlightCtlForm>
4545
<RichValidationTextField
4646
fieldName="deviceAlias"
47-
aria-label={t('Alias')}
47+
aria-label={t('Device alias')}
4848
validations={getLabelValueValidations(t)}
4949
/>
5050
<FormGroup label={t('Device labels')}>

libs/ui-components/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const ReviewStep = ({ error }: { error?: string }) => {
3535
}}
3636
>
3737
<DescriptionListGroup>
38-
<DescriptionListTerm>{t('Alias')}</DescriptionListTerm>
38+
<DescriptionListTerm>{t('Device alias')}</DescriptionListTerm>
3939
<DescriptionListDescription>{values.deviceAlias || t('Untitled')}</DescriptionListDescription>
4040
</DescriptionListGroup>
4141
{values.labels.length > 0 && (

libs/ui-components/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const GeneralInfoStep = ({ isEdit }: { isEdit: boolean }) => {
2424
<FlightCtlForm>
2525
<NameField
2626
name="name"
27-
aria-label={t('Name')}
27+
aria-label={t('Fleet name')}
2828
isRequired
2929
isDisabled={isEdit}
3030
resourceType="fleets"

libs/ui-components/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const ReviewStep = ({ error }: { error?: unknown }) => {
4040
}}
4141
>
4242
<DescriptionListGroup>
43-
<DescriptionListTerm>{t('Name')}</DescriptionListTerm>
43+
<DescriptionListTerm>{t('Fleet name')}</DescriptionListTerm>
4444
<DescriptionListDescription>{values.name}</DescriptionListDescription>
4545
</DescriptionListGroup>
4646
{values.fleetLabels.length > 0 && (

0 commit comments

Comments
 (0)