diff --git a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx
index b70f621e73..826add1f31 100644
--- a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx
+++ b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/DateSingleValue/DateSingleValue.tsx
@@ -21,6 +21,10 @@ const StyledWrapper = styled('div')(({ theme }) => ({
gap: theme.spacing(1),
}));
+/**
+ * @deprecated use `component/feature/FeatureStrategy/FeatureStrategyConstraints/ConstraintDateInput.tsx`
+ * Remove with flag `addEditStrategy`
+ */
export const DateSingleValue = ({
setValue,
value,
diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx
index c51c997b54..51a21e1ce4 100644
--- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx
+++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/AddValuesPopover.tsx
@@ -22,12 +22,6 @@ const InputRow = styled('div')(({ theme }) => ({
width: '100%',
}));
-const ErrorMessage = styled('div')(({ theme }) => ({
- color: theme.palette.error.main,
- fontSize: theme.typography.caption.fontSize,
- marginBottom: theme.spacing(1),
-}));
-
export type OnAddActions = {
setError: (error: string) => void;
clearInput: () => void;
@@ -93,7 +87,6 @@ export const AddValuesPopover: FC = ({
}
}}
>
- {error && {error}}
@@ -111,6 +104,8 @@ export const AddValuesPopover: FC = ({
fullWidth
inputRef={inputRef}
autoFocus
+ error={!!error}
+ helperText={error}
/>
} />
+
+ );
+};
diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx
index d48ba424cc..bc63aa39b8 100644
--- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx
+++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/EditableConstraint.tsx
@@ -30,6 +30,7 @@ import { ResolveInput } from 'component/common/NewConstraintAccordion/Constraint
import { ReactComponent as EqualsIcon } from 'assets/icons/constraint-equals.svg';
import { ReactComponent as NotEqualsIcon } from 'assets/icons/constraint-not-equals.svg';
import { AddSingleValueWidget } from './AddSingleValueWidget';
+import { ConstraintDateInput } from './ConstraintDateInput';
const Container = styled('article')(({ theme }) => ({
'--padding': theme.spacing(2),
@@ -208,6 +209,7 @@ export const EditableConstraint: FC = ({
const showSingleValueButton = SINGLE_VALUE_OPERATORS.includes(input);
const showAddValuesButton =
OPERATORS_WITH_ADD_VALUES_WIDGET.includes(input);
+ const showDateInput = input.includes('DATE');
const showInputField = input.includes('LEGAL_VALUES');
/* We need a special case to handle the currentTime context field. Since
@@ -362,6 +364,14 @@ export const EditableConstraint: FC = ({
currentValue={localConstraint.value}
/>
) : null}
+ {showDateInput ? (
+
+ ) : null}