From b3fbf72f1b2e74f8c84cdaaf5f7dcb135fc6a49d Mon Sep 17 00:00:00 2001 From: Joy A Date: Mon, 19 Feb 2024 10:17:58 +0530 Subject: [PATCH] #1283 | Display address filter help text consistently. - Introduce new translation key so users on older versions don't see incorrect help text --- .../src/service/reports/DashboardFilterService.js | 1 - packages/openchs-android/src/views/filter/FiltersView.js | 3 ++- packages/openchs-android/src/views/filter/FiltersViewV2.js | 2 +- .../src/views/individual/IndividualSearchView.js | 3 ++- packages/openchs-android/translations/en.json | 3 ++- packages/openchs-android/translations/gu_IN.json | 3 ++- packages/openchs-android/translations/hi_IN.json | 3 ++- packages/openchs-android/translations/ka_IN.json | 3 ++- packages/openchs-android/translations/mr_IN.json | 3 ++- packages/openchs-android/translations/ta_IN.json | 3 ++- 10 files changed, 17 insertions(+), 10 deletions(-) diff --git a/packages/openchs-android/src/service/reports/DashboardFilterService.js b/packages/openchs-android/src/service/reports/DashboardFilterService.js index 71ba32643..e8da054f4 100644 --- a/packages/openchs-android/src/service/reports/DashboardFilterService.js +++ b/packages/openchs-android/src/service/reports/DashboardFilterService.js @@ -13,7 +13,6 @@ import { } from 'openchs-models'; import {DashboardReportFilter} from "../../model/DashboardReportFilters"; import _ from "lodash"; -import General from "../../utility/General"; import AddressLevelService from "../AddressLevelService"; import GlobalContext from "../../GlobalContext"; diff --git a/packages/openchs-android/src/views/filter/FiltersView.js b/packages/openchs-android/src/views/filter/FiltersView.js index fc4ccc869..1bc1bb5d7 100644 --- a/packages/openchs-android/src/views/filter/FiltersView.js +++ b/packages/openchs-android/src/views/filter/FiltersView.js @@ -272,7 +272,8 @@ class FilterView extends AbstractComponent { addressLevelState: addressLevelState }) }} - multiSelect={true}/> : null} + multiSelect={true} + userHintText={this.I18n.t('addressFilterImplicitBehaviorHint')}/> : null} {!_.isEmpty(bottomLevelFilters) ? this.dispatchFilterUpdate(filter, updatedAddressLevelState)} multiSelect={true} - userHintText={this.I18n.t('addressFilterBehaviorHint')}/>; + userHintText={this.I18n.t('addressFilterImplicitBehaviorHint')}/>; case CustomFilter.type.RegistrationDate: case CustomFilter.type.EnrolmentDate: case CustomFilter.type.ProgramEncounterDate: diff --git a/packages/openchs-android/src/views/individual/IndividualSearchView.js b/packages/openchs-android/src/views/individual/IndividualSearchView.js index 8466f348f..a958d340d 100644 --- a/packages/openchs-android/src/views/individual/IndividualSearchView.js +++ b/packages/openchs-android/src/views/individual/IndividualSearchView.js @@ -138,7 +138,8 @@ class IndividualSearchView extends AbstractComponent { onSelect={(addressLevelState) => this.dispatchAction(Actions.TOGGLE_INDIVIDUAL_SEARCH_ADDRESS_LEVEL, {values: addressLevelState}) } - multiSelect={true}/>} + multiSelect={true} + userHintText={this.I18n.t('addressFilterImplicitBehaviorHint')}/>} <> {this.I18n.t("includeVoided")}