diff --git a/i18n/en.pot b/i18n/en.pot index 79ca7fa5..8c55ff48 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-03-05T14:54:55.437Z\n" -"PO-Revision-Date: 2024-03-05T14:54:55.437Z\n" +"POT-Creation-Date: 2024-03-13T13:19:06.504Z\n" +"PO-Revision-Date: 2024-03-13T13:19:06.504Z\n" msgid "Something went wrong" msgstr "Something went wrong" @@ -57,8 +57,8 @@ msgstr "Something went wrong whilst fetching options" msgid "Checks to run" msgstr "Checks to run" -msgid "Run all available checks" -msgstr "Run all available checks" +msgid "Run all standard checks" +msgstr "Run all standard checks" msgid "Only run selected checks" msgstr "Only run selected checks" @@ -66,6 +66,12 @@ msgstr "Only run selected checks" msgid "Severity" msgstr "Severity" +msgid "Slow checks are resource intensive and should be run with caution" +msgstr "Slow checks are resource intensive and should be run with caution" + +msgid "Slow" +msgstr "Slow" + msgid "Select checks to run." msgstr "Select checks to run." diff --git a/src/components/FormFields/Custom/DataIntegrityChecksField.js b/src/components/FormFields/Custom/DataIntegrityChecksField.js index 2bf5f5eb..942c9bb7 100644 --- a/src/components/FormFields/Custom/DataIntegrityChecksField.js +++ b/src/components/FormFields/Custom/DataIntegrityChecksField.js @@ -8,9 +8,11 @@ import { Radio, Transfer, TransferOption, + Tooltip, ReactFinalForm, InputFieldFF, Help, + Tag, } from '@dhis2/ui' import cx from 'classnames' import { useParameterOption } from '../../../hooks/parameter-options' @@ -83,7 +85,7 @@ const DataIntegrityChecksField = ({ label, name }) => { @@ -108,7 +110,7 @@ const DataIntegrityChecksField = ({ label, name }) => { ) } -const LabelComponent = ({ label, severity, highlighted, disabled }) => ( +const LabelComponent = ({ label, severity, highlighted, disabled, isSlow }) => (
( })} >
{label}
-
{`${i18n.t('Severity')}: ${severity}`}
+
+ {`${i18n.t('Severity')}: ${severity}`} + {isSlow && ( + + {i18n.t('Slow')} + + )} +
) diff --git a/src/components/FormFields/Custom/DataIntegrityChecksField.module.css b/src/components/FormFields/Custom/DataIntegrityChecksField.module.css index 87303e66..9d21a97a 100644 --- a/src/components/FormFields/Custom/DataIntegrityChecksField.module.css +++ b/src/components/FormFields/Custom/DataIntegrityChecksField.module.css @@ -1,20 +1,28 @@ .transfer { - margin-top: 8px; + margin-block-start: var(--spacers-dp8); } .transferOption { + display: flex; + flex-direction: column; font-size: 14px; padding: 4px 0; + gap: 6px; } .optionName { font-weight: 500; - margin-bottom: 4px; } -.optionSeverity { +.optionSubtitle { + display: flex; + align-items: center; + justify-content: space-between; font-weight: 400; font-size: 13px; +} + +.optionSeverity { color: var(--colors-grey600); }