Skip to content

Commit

Permalink
fix: adjust help and description texts
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-joe committed Dec 17, 2024
1 parent 7e5b7a7 commit ec05922
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/components/form/attributes/CustomAttributes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function CustomAttributesSection({

<StandardFormSectionDescription>
{i18n.t(
'Set up information for the attributes assigned to {{modelName}}',
'Set up information for the attributes assigned to {{modelName}}.',
{ modelName: schemaSection.titlePlural.toLowerCase() }
)}
</StandardFormSectionDescription>
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/fields/ShortNameField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function ShortNameField({
})

const helpString =
helpText || i18n.t('Often used in reports where space is limited')
helpText || i18n.t('Often used in reports where space is limited.')

return (
<FieldRFF<string | undefined>
Expand Down
8 changes: 3 additions & 5 deletions src/pages/categories/form/CategoryFormFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const CategoryFormFields = () => {
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose how this category option group will be used to capture and analyze'
'Choose how this category option group will be used to capture and analyze data.'
)}
</StandardFormSectionDescription>
<StandardFormField>
Expand Down Expand Up @@ -72,7 +72,7 @@ export const CategoryFormFields = () => {
component={CheckboxFieldFF}
label={i18n.t('Use as data dimension')}
helpText={i18n.t(
'Category option group will be available to the analytics as another dimension'
'Make available to analytics apps as a selectable dimension.'
)}
/>
</StandardFormField>
Expand All @@ -85,9 +85,7 @@ export const CategoryFormFields = () => {
</label>
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose the category options to include in this category option group.'
)}
{i18n.t('Choose the options to include in this category.')}
</StandardFormSectionDescription>
<StandardFormField>
<StandardFormField>
Expand Down
8 changes: 5 additions & 3 deletions src/pages/categoryCombos/form/CategoryComboFormFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export const CategoryComboFormFields = () => {
{i18n.t('Basic information')}
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t('Set up the basic information for this category.')}
{i18n.t(
'Set up the basic information for this category combination.'
)}
</StandardFormSectionDescription>
<StandardFormField>
<NameField schemaSection={section} />
Expand All @@ -43,7 +45,7 @@ export const CategoryComboFormFields = () => {
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose how this category combo will be used to capture and analyze data.'
'Choose how this category combination will be used to capture and analyze data.'
)}
</StandardFormSectionDescription>
<StandardFormField>
Expand Down Expand Up @@ -84,7 +86,7 @@ export const CategoryComboFormFields = () => {
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose the categories to include in this category combo.'
'Choose the categories to include in this category combination.'
)}
</StandardFormSectionDescription>
<StandardFormField>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const CategoryOptionComboFormFields = () => {
{i18n.t('Basic information')}
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t('Set up the basic information for this category.')}
{i18n.t(
'Set up the basic information for this category option combination.'
)}
</StandardFormSectionDescription>
<StandardFormField>
<Field<string | undefined>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function CategoryOptionGroupSetFormFields() {
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose how this category option group set will be used to capture and analyze'
'Choose how this category option group set will be used to capture and analyze data.'
)}
</StandardFormSectionDescription>
<StandardFormField>
Expand Down Expand Up @@ -73,7 +73,7 @@ function CategoryOptionGroupSetFormFields() {
component={CheckboxFieldFF}
label={i18n.t('Use as data dimension')}
helpText={i18n.t(
'Category option group set will be available to the analytics as another dimension'
'Make available to analytics apps as a selectable dimension.'
)}
/>
</StandardFormField>
Expand All @@ -82,7 +82,7 @@ function CategoryOptionGroupSetFormFields() {
<StandardFormSection>
<StandardFormSectionTitle>
<label htmlFor={'categoryOptionGroups'}>
{i18n.t('Category option Groups')}
{i18n.t('Category option groups')}
</label>
</StandardFormSectionTitle>
<StandardFormSectionDescription>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function CategoryOptionGroupFormFields() {
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose how this category option will be used to capture and analyze'
'Choose how this category option will be used to capture and analyze data.'
)}
</StandardFormSectionDescription>
<StandardFormField>
Expand Down Expand Up @@ -76,7 +76,7 @@ function CategoryOptionGroupFormFields() {
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose the category options to include in this category.'
'Choose the options to include in this category option group.'
)}
</StandardFormSectionDescription>
<StandardFormField>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const CategoryOptionFormFields = () => {
</StandardFormSectionTitle>
<StandardFormSectionDescription>
{i18n.t(
'Choose when, and for which organisation units this category option will be available.'
'Choose when, and for which organisation units, this category option will be available.'
)}
</StandardFormSectionDescription>
<StandardFormField>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function DataElementGroupSetFormFields() {

<StandardFormSectionDescription>
{i18n.t(
'Set up the information for this data element group'
'Set up the information for this data element group set.'
)}
</StandardFormSectionDescription>

Expand All @@ -40,7 +40,7 @@ export function DataElementGroupSetFormFields() {
<DescriptionField
schemaSection={section}
helpText={i18n.t(
'Explain the purpose of this data element group.'
'Explain the purpose of this data element group set.'
)}
/>
</StandardFormField>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function DataElementGroupFormFields() {

<StandardFormSectionDescription>
{i18n.t(
'Set up the information for this data element group'
'Set up the information for this data element group.'
)}
</StandardFormSectionDescription>

Expand Down
3 changes: 0 additions & 3 deletions src/pages/dataElements/fields/AggregationLevelsField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ export function AggregationLevelsField() {
<Field
name="aggregationLevels"
label={i18n.t('Aggregation level(s)')}
helpText={i18n.t(
'Choose how this data element is disaggregated'
)}
validationText={meta.touched ? meta.error : undefined}
error={meta.touched && !!meta.error}
dataTest="formfields-aggregationlevels"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dataElements/fields/CategoryComboField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function CategoryComboField() {
fieldLabel: i18n.t('Category combination'),
})}
helpText={i18n.t(
'Choose how this data element is disaggregated'
'Choose how this data element is disaggregated.'
)}
error={meta.touched && !!meta.error}
validationText={meta.touched ? meta.error : undefined}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dataElements/fields/OptionSetCommentField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function OptionSetCommentField() {
name="commentOptionSet.id"
label={i18n.t('Option set comment')}
helpText={i18n.t(
'Choose a set of predefined comment for data entry'
'Choose a set of predefined comments for data entry.'
)}
validationText={meta.touched ? meta.error : undefined}
error={meta.touched && !!meta.error}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dataElements/fields/OptionSetField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function OptionSetField() {
name="optionSet.id"
label={i18n.t('Option set')}
helpText={i18n.t(
'Choose a set of predefined options for data entry'
'Choose a set of predefined options for data entry.'
)}
validationText={meta.touched ? meta.error : undefined}
error={meta.touched && !!meta.error}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dataElements/fields/UrlField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function UrlField() {
inputWidth="400px"
name="url"
label={i18n.t('Url')}
helpText={i18n.t('A web link that provides extra information')}
helpText={i18n.t('A web link that provides extra information.')}
validateFields={[]}
validate={validate}
/>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/dataElements/form/DataElementFormFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function DataElementFormFields() {
</StandardFormSectionTitle>

<StandardFormSectionDescription>
{i18n.t('Set up the information for this data element')}
{i18n.t('Set up the information for this data element.')}
</StandardFormSectionDescription>

<StandardFormField>
Expand Down Expand Up @@ -126,7 +126,7 @@ export function DataElementFormFields() {

<StandardFormSectionDescription>
{i18n.t(
'Visualize values for this data element in Analytics app. Multiple legendSet can be applied.'
'Visualize values for this data element in Analytics app. Multiple legends can be applied.'
)}
</StandardFormSectionDescription>

Expand All @@ -142,7 +142,7 @@ export function DataElementFormFields() {

<StandardFormSectionDescription>
{i18n.t(
'By default, the aggregation will start at the lowest assigned organisation unit. If you for example select "Chiefdom", it means that "Chiefdom", "District" and "National" aggregates use "Chiefdom" (the highest aggregation level available) as the data source, and PHU data will not be included. PHU will still be available for the PHU level, but not included in the aggregations to the levels above.'
'By default, aggregation starts at the lowest assigned organisation unit. You can override this by choosing a different level. Choosing a higher level means that data from lower levels will not be included in the aggregation.'
)}
</StandardFormSectionDescription>

Expand Down

0 comments on commit ec05922

Please sign in to comment.