From ee88b998bb0748a06110d6e0a9c9933ffe5e89f5 Mon Sep 17 00:00:00 2001 From: Edoardo Sabadelli Date: Mon, 11 Nov 2024 10:42:18 +0100 Subject: [PATCH] fix: shorten expression/filter labels --- src/components/DataDimension/Info/CalculationInfo.js | 6 +----- src/components/DataDimension/Info/IndicatorInfo.js | 12 ++---------- .../DataDimension/Info/ProgramIndicatorInfo.js | 6 ++---- 3 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/components/DataDimension/Info/CalculationInfo.js b/src/components/DataDimension/Info/CalculationInfo.js index eb5149d4a..444b348d6 100644 --- a/src/components/DataDimension/Info/CalculationInfo.js +++ b/src/components/DataDimension/Info/CalculationInfo.js @@ -55,11 +55,7 @@ export const CalculationInfo = ({ id, displayNameProp }) => { <> - - {i18n.t( - 'Expression description in human readable format' - )} - + {i18n.t('Expression description')} {data?.calculation.humanReadableExpression || i18n.t('None')} diff --git a/src/components/DataDimension/Info/IndicatorInfo.js b/src/components/DataDimension/Info/IndicatorInfo.js index f57a57e99..26066bfa3 100644 --- a/src/components/DataDimension/Info/IndicatorInfo.js +++ b/src/components/DataDimension/Info/IndicatorInfo.js @@ -72,11 +72,7 @@ export const IndicatorInfo = ({ id, displayNameProp }) => { {data?.indicator.displayNumeratorDescription} - - {i18n.t( - 'Numerator expression in human readable format' - )} - + {i18n.t('Numerator expression')} {data?.indicator.humanReadableNumeratorExpression || i18n.t('None')} @@ -87,11 +83,7 @@ export const IndicatorInfo = ({ id, displayNameProp }) => { {data?.indicator.displayDenominatorDescription} - - {i18n.t( - 'Denominator expression in human readable format' - )} - + {i18n.t('Denominator expression')} {data?.indicator.humanReadableDenominatorExpression || i18n.t('None')} diff --git a/src/components/DataDimension/Info/ProgramIndicatorInfo.js b/src/components/DataDimension/Info/ProgramIndicatorInfo.js index b6c27bb61..5eb3bc101 100644 --- a/src/components/DataDimension/Info/ProgramIndicatorInfo.js +++ b/src/components/DataDimension/Info/ProgramIndicatorInfo.js @@ -115,16 +115,14 @@ export const ProgramIndicatorInfo = ({ id, displayNameProp }) => { - {i18n.t('Expression in human readable format')} + {i18n.t('Expression')} {data?.programIndicator.humanReadableExpression || i18n.t('None')} - - {i18n.t('Filter expression in human readable format')} - + {i18n.t('Filter expression')} {data?.programIndicator.humanReadableFilter || i18n.t('None')}