From 385c085e59933e5e98a9426fb935fa117a8d17f7 Mon Sep 17 00:00:00 2001 From: Mario Martins Date: Wed, 26 Nov 2025 14:14:28 +0000 Subject: [PATCH 1/3] improvements to the Field Selection section --- .../jsx/components/filterableselectgroup.tsx | 60 +++++++++++++++---- modules/dataquery/jsx/definefields.tsx | 60 +++++++++++-------- 2 files changed, 81 insertions(+), 39 deletions(-) diff --git a/modules/dataquery/jsx/components/filterableselectgroup.tsx b/modules/dataquery/jsx/components/filterableselectgroup.tsx index 49d937e76c6..ef063613c72 100644 --- a/modules/dataquery/jsx/components/filterableselectgroup.tsx +++ b/modules/dataquery/jsx/components/filterableselectgroup.tsx @@ -19,6 +19,7 @@ type SelectGroup = { * @param {string?} props.placeholder - An optional placeholder value when no elements are selected * @param {object} props.groups - Groups to select the dropdown into * @param {function} props.mapGroupName - A mapper from backend to frontend name for groups + * @param {string?} props.label - Select input label * @returns {React.ReactElement} - The element */ function FilterableSelectGroup(props: { @@ -26,6 +27,7 @@ function FilterableSelectGroup(props: { placeholder?: string, groups: object, mapGroupName?: (module: string) => string, + label?: string, }) { const groups: SelectGroup[] = []; const placeholder = props.placeholder || 'Select a category'; @@ -70,21 +72,53 @@ function FilterableSelectGroup(props: { }; return (
- ({...base, zIndex: 9999}), + valueContainer: + /** + * Adds appropriate zIndex to the react select's base CSS + * + * @param {object} base - The current CSS + * @returns {object} New CSS with z-index added + */ + (base) => ({ + ...base, + fontSize: '14px', + fontWeight: 400, + }), + }} + placeholder={placeholder} + /> + + : + ({...base, zIndex: 9999}), - valueContainer: - /** - * Adds appropriate zIndex to the react select's base CSS - * - * @param {object} base - The current CSS - * @returns {object} New CSS with z-index added - */ - (base) => ({ - ...base, - fontSize: '14px', - fontWeight: 400, - }), - }} - placeholder={placeholder} - /> - - : - ({...base, zIndex: 9999})} + } + placeholder={placeholder} + />
); } export default FilterableSelectGroup; - diff --git a/modules/dataquery/jsx/definefields.tsx b/modules/dataquery/jsx/definefields.tsx index f86814974df..653ac0b86e2 100644 --- a/modules/dataquery/jsx/definefields.tsx +++ b/modules/dataquery/jsx/definefields.tsx @@ -413,8 +413,8 @@ function DefineFields(props: { return (
-
-
+
+

Available Fields

props.allCategories.modules[key]} @@ -423,7 +423,7 @@ function DefineFields(props: { {fieldList}
From 9b2f270c4de0ca03bf0343a8b3cae344443f3a14 Mon Sep 17 00:00:00 2001 From: Mario Martins Date: Mon, 8 Dec 2025 15:38:47 +0000 Subject: [PATCH 3/3] removed commented field --- modules/dataquery/jsx/definefields.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/dataquery/jsx/definefields.tsx b/modules/dataquery/jsx/definefields.tsx index 7c399b0d440..106f9ea0525 100644 --- a/modules/dataquery/jsx/definefields.tsx +++ b/modules/dataquery/jsx/definefields.tsx @@ -443,7 +443,6 @@ function DefineFields(props: { flexWrap: 'wrap', }}>

{t('Selected Fields', {ns: 'dataquery'})}

- {/*

Field Selection

*/}