From 55edc6c1e00e0c0ec8be78354d91892c0cf0f6dc Mon Sep 17 00:00:00 2001 From: arnav-makkar Date: Sun, 25 Jan 2026 17:29:44 +0530 Subject: [PATCH 1/4] fixed add criteria box --- modules/dataquery/jsx/definefilters.addfiltermodal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx index 93fb18f235..26a26f9eeb 100644 --- a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx +++ b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx @@ -282,15 +282,15 @@ function AddFilterModal(props: { } ); return ( -
-

{t('Field', {ns: 'dataquery', count: 1})}

+

{t('Category', {ns: 'dataquery', count: 1})}

props.categories.modules[key]} @@ -305,6 +305,7 @@ function AddFilterModal(props: { />
+

{t('Field', {ns: 'dataquery', count: 1})}

{fieldSelect}
From 84db646e14d46c574b9524d5b8a06e77bc9035f5 Mon Sep 17 00:00:00 2001 From: arnav-makkar Date: Tue, 3 Feb 2026 13:30:19 +0530 Subject: [PATCH 2/4] removed redundancy, ui improvements --- .../jsx/definefilters.addfiltermodal.tsx | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx index 26a26f9eeb..bb312ad565 100644 --- a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx +++ b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx @@ -145,9 +145,11 @@ function AddFilterModal(props: { } criteriaSelect =
-

{t('Criteria', {ns: 'dataquery'})}

+

+ {t('Criteria', {ns: 'dataquery'})} +

-
+
-
{valueSelect}
+
{valueSelect}
; if (fieldDictionary.scope == 'session' && fieldDictionary.visits) { visitSelect =
e.stopPropagation()}> -

{t('for at least one of the following visits', - {ns: 'dataquery'})}

+

+ {t('Visits', {ns: 'dataquery'})} +

+ {t('Add Condition', {ns: 'dataquery'})} + } show={true} throwWarning={true} onClose={props.closeModal} @@ -290,7 +295,6 @@ function AddFilterModal(props: {
-

{t('Category', {ns: 'dataquery', count: 1})}

props.categories.modules[key]} @@ -304,8 +308,7 @@ function AddFilterModal(props: { }} />
-
-

{t('Field', {ns: 'dataquery', count: 1})}

+
{fieldSelect}
@@ -356,9 +359,9 @@ function getOperatorOptions(dict: FieldDictionary, t: any) { options = { 'eq': '=', 'neq': '≠', - 'startsWith': t('starts with', {ns: 'dataquery'}), - 'contains': t('contains', {ns: 'dataquery'}), - 'endsWith': t('ends with', {ns: 'dataquery'}), + 'startsWith': t('Starts With', {ns: 'dataquery'}), + 'contains': t('Contains', {ns: 'dataquery'}), + 'endsWith': t('Ends With', {ns: 'dataquery'}), }; } else { // fall back to == and !=, valid for any type. From 08502902cdf909868fa8ddaded939d49349c5a79 Mon Sep 17 00:00:00 2001 From: arnav-makkar Date: Tue, 3 Feb 2026 13:38:51 +0530 Subject: [PATCH 3/4] linter --- modules/dataquery/jsx/definefilters.addfiltermodal.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx index bb312ad565..a9e2624371 100644 --- a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx +++ b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx @@ -166,7 +166,7 @@ function AddFilterModal(props: { if (fieldDictionary.scope == 'session' && fieldDictionary.visits) { visitSelect =
e.stopPropagation()}>

- {t('Visits', {ns: 'dataquery'})} + {t('Visits', {ns: 'dataquery'})}

{t('Add Condition', {ns: 'dataquery'})} } - show={true} - throwWarning={true} - onClose={props.closeModal} - onSubmit={submitPromise}> + show={true} + throwWarning={true} + onClose={props.closeModal} + onSubmit={submitPromise}>
From 9a35664b31e5762f18a93576616fd783edca8e5c Mon Sep 17 00:00:00 2001 From: arnav-makkar Date: Thu, 2 Apr 2026 23:49:40 +0530 Subject: [PATCH 4/4] fix comments --- .../dataquery/jsx/definefilters.addfiltermodal.tsx | 11 +++++------ modules/dataquery/locale/dataquery.pot | 3 --- modules/dataquery/locale/fr/LC_MESSAGES/dataquery.po | 3 --- modules/dataquery/locale/hi/LC_MESSAGES/dataquery.po | 3 --- modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po | 3 --- 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx index a9e2624371..34d9e4b09e 100644 --- a/modules/dataquery/jsx/definefilters.addfiltermodal.tsx +++ b/modules/dataquery/jsx/definefilters.addfiltermodal.tsx @@ -165,9 +165,8 @@ function AddFilterModal(props: { if (fieldDictionary.scope == 'session' && fieldDictionary.visits) { visitSelect =
e.stopPropagation()}> -

- {t('Visits', {ns: 'dataquery'})} -

+

{t('for at least one of the following visits', + {ns: 'dataquery'})}