diff --git a/cypress/integration/edit/edit_dashboard.feature b/cypress/integration/edit/edit_dashboard.feature
index 857fb924b..a714ea09e 100644
--- a/cypress/integration/edit/edit_dashboard.feature
+++ b/cypress/integration/edit/edit_dashboard.feature
@@ -55,15 +55,15 @@ Feature: Creating, editing and deleting dashboard
Then the dashboard is not starred
- @mutating
- Scenario: I toggle show description
- Given I open existing dashboard
- # And the description is not shown
- And the dashboard description is not displayed
- When I click to show description
- Then the dashboard description is displayed
- When I click to hide the description
- Then the dashboard description is not displayed
+ # @mutating
+ # Scenario: I toggle show description
+ # Given I open existing dashboard
+ # # And the description is not shown
+ # And the dashboard description is not displayed
+ # When I click to show description
+ # Then the dashboard description is displayed
+ # When I click to hide the description
+ # Then the dashboard description is not displayed
# FIXME
# @nonmutating
diff --git a/i18n/en.pot b/i18n/en.pot
index 04cb3d4d8..4df501053 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-02-26T14:42:02.563Z\n"
-"PO-Revision-Date: 2024-02-26T14:42:02.563Z\n"
+"POT-Creation-Date: 2024-03-19T12:31:03.302Z\n"
+"PO-Revision-Date: 2024-03-19T12:31:03.302Z\n"
msgid "Untitled dashboard"
msgstr "Untitled dashboard"
@@ -71,6 +71,12 @@ msgstr "Filters are not applied to line list dashboard items"
msgid "Filters not applied"
msgstr "Filters not applied"
+msgid "Only Period and Organisation unit filters can be applied to this item"
+msgstr "Only Period and Organisation unit filters can be applied to this item"
+
+msgid "Some filters not applied"
+msgstr "Some filters not applied"
+
msgid "There was a problem loading this dashboard item"
msgstr "There was a problem loading this dashboard item"
diff --git a/src/components/Item/VisualizationItem/Item.js b/src/components/Item/VisualizationItem/Item.js
index 2be17f136..b257b9ff1 100644
--- a/src/components/Item/VisualizationItem/Item.js
+++ b/src/components/Item/VisualizationItem/Item.js
@@ -1,3 +1,4 @@
+import { VIS_TYPE_OUTLIER_TABLE } from '@dhis2/analytics'
import i18n from '@dhis2/d2-i18n'
import { Tag, Tooltip } from '@dhis2/ui'
import PropTypes from 'prop-types'
@@ -20,7 +21,9 @@ import {
import {
getDataStatisticsName,
getItemTypeForVis,
+ CHART,
EVENT_VISUALIZATION,
+ VISUALIZATION,
} from '../../../modules/itemTypes.js'
import { sGetIsEditing } from '../../../reducers/editDashboard.js'
import { sGetItemActiveType } from '../../../reducers/itemActiveTypes.js'
@@ -207,19 +210,42 @@ class Item extends Component {
/>
) : null
- const tags =
- isViewMode(dashboardMode) &&
- Object.keys(itemFilters).length &&
- !showNoFiltersOverlay &&
- activeType === EVENT_VISUALIZATION ? (
-
- {i18n.t('Filters not applied')}
-
- ) : null
+ const getTags = (item) => {
+ if (isViewMode(dashboardMode) && Object.keys(itemFilters).length) {
+ switch (activeType) {
+ case EVENT_VISUALIZATION: {
+ return !showNoFiltersOverlay ? (
+
+
+ {i18n.t('Filters not applied')}
+
+
+ ) : null
+ }
+ case CHART:
+ case VISUALIZATION: {
+ return item.visualization.type ===
+ VIS_TYPE_OUTLIER_TABLE ? (
+
+
+ {i18n.t('Some filters not applied')}
+
+
+ ) : null
+ }
+ }
+ }
+
+ return null
+ }
return (
<>
@@ -230,7 +256,7 @@ class Item extends Component {
ref={this.headerRef}
dashboardMode={dashboardMode}
isShortened={item.shortened}
- tags={tags}
+ tags={getTags(item)}
/>