Skip to content

Commit

Permalink
Dhis2 18281/indicator list (#436)
Browse files Browse the repository at this point in the history
* feat: add indicators list view

* feat: add filters to the list

* chore: remove default filters

* chore: lint error check

* chore: resolve filter query
  • Loading branch information
Chisomchima authored Nov 14, 2024
1 parent 699560d commit 88e5785
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 42 deletions.
48 changes: 6 additions & 42 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -961,48 +961,6 @@ msgstr "Filter selected categories"
msgid "At least one category is required"
msgstr "At least one category is required"

msgid "Set up the basic information for this category option group set."
msgstr "Set up the basic information for this category option group set."

msgid "Explain the purpose of this category option group set."
msgstr "Explain the purpose of this category option group set."

msgid ""
"Choose how this category option group set will be used to capture and "
"analyze"
msgstr ""
"Choose how this category option group set will be used to capture and "
"analyze"

msgid ""
"Category option group set will be available to the analytics as another "
"dimension"
msgstr ""
"Category option group set will be available to the analytics as another "
"dimension"

msgid "Category option Groups"
msgstr "Category option Groups"

msgid ""
"Choose the category option groups to include in this category option group "
"set."
msgstr ""
"Choose the category option groups to include in this category option group "
"set."

msgid "Available category option groups"
msgstr "Available category option groups"

msgid "Selected category option groups"
msgstr "Selected category option groups"

msgid "Filter available category option groups"
msgstr "Filter available category option groups"

msgid "Filter selected category option groups"
msgstr "Filter selected category option groups"

msgid "Set up the basic information for this category option group."
msgstr "Set up the basic information for this category option group."

Expand Down Expand Up @@ -1221,6 +1179,12 @@ msgstr "Set up the organisation unit location."
msgid "Reference assignment"
msgstr "Reference assignment"

msgid "Longitude"
msgstr "Longitude"

msgid "Reference assignment"
msgstr "Reference assignment"

msgid "Assign the organisation unit to related objects."
msgstr "Assign the organisation unit to related objects."

Expand Down
1 change: 1 addition & 0 deletions src/lib/sectionList/filters/parseFiltersToQueryParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const filterToQueryParamMap: FilterToQueryParamsMap = {
identifiable: (value) => `identifiable:token:${value}`,
category: (value) => inFilter('categories.id', value),
categoryOption: (value) => inFilter('categoryOptions.id', value),
indicatorType: (value) => inFilter('indicatorType.id', value),
categoryCombo: (value, section) => {
if (section.name === 'category') {
return inFilter('categoryCombos.id', value)
Expand Down

0 comments on commit 88e5785

Please sign in to comment.