From 30fb5a96ced41ff933bcfb387e3985799213e714 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 3 Sep 2024 15:02:39 -0700
Subject: [PATCH] More value validation stuff
---
.../custom-fields-query-dropdown.component.html | 6 ++++++
src-ui/src/app/data/custom-field-query.ts | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html
index 839b54357..276b9cc39 100644
--- a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html
+++ b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.html
@@ -51,6 +51,12 @@
}
+ @case (CustomFieldQueryOperator.IsNull) {
+
+ }
@default {
}
diff --git a/src-ui/src/app/data/custom-field-query.ts b/src-ui/src/app/data/custom-field-query.ts
index 34c66885a..b4f87d905 100644
--- a/src-ui/src/app/data/custom-field-query.ts
+++ b/src-ui/src/app/data/custom-field-query.ts
@@ -109,15 +109,15 @@ export const CUSTOM_FIELD_QUERY_VALUE_TYPES_BY_OPERATOR = {
[CustomFieldQueryOperator.IsNull]: 'boolean',
[CustomFieldQueryOperator.Exists]: 'boolean',
[CustomFieldQueryOperator.IContains]: 'string',
+ [CustomFieldQueryOperator.GreaterThanOrEqual]: 'string',
+ [CustomFieldQueryOperator.LessThanOrEqual]: 'string',
// TODO: Implement these
// [CustomFieldQueryOperator.In]: 'array',
// [CustomFieldQueryOperator.Contains]: 'string',
// [CustomFieldQueryOperator.IStartsWith]: 'string',
// [CustomFieldQueryOperator.IEndsWith]: 'string',
// [CustomFieldQueryOperator.GreaterThan]: 'number',
- // [CustomFieldQueryOperator.GreaterThanOrEqual]: 'number',
// [CustomFieldQueryOperator.LessThan]: 'number',
- // [CustomFieldQueryOperator.LessThanOrEqual]: 'number',
// [CustomFieldQueryOperator.Range]: 'array',
}