From 31a23db05eb3164605be41cd08e234d878ea3e13 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Tue, 13 May 2025 10:19:11 +0300 Subject: [PATCH] chore: clarify deleted legal values warning (#9969) --- .../RestrictiveLegalValues.test.tsx | 2 +- .../RestrictiveLegalValues/RestrictiveLegalValues.tsx | 8 ++++---- .../cells/FeatureOverviewCell/FeatureOverviewCell.tsx | 1 - .../FeatureStrategyConstraints/LegalValuesSelector.tsx | 7 ++++--- .../FeatureOverview/FeatureOverviewMetaData/TagRow.tsx | 2 -- frontend/src/component/tags/TagTypeForm/useTagTypeForm.ts | 1 - frontend/src/component/tags/TagTypeList/TagTypeList.tsx | 1 - 7 files changed, 9 insertions(+), 13 deletions(-) diff --git a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.test.tsx b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.test.tsx index 71d0fb103d..43f3e7dbb8 100644 --- a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.test.tsx +++ b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.test.tsx @@ -28,7 +28,7 @@ test('should show alert when you have illegal legal values', async () => { ); await screen.findByText( - 'This constraint is using legal values that have been deleted as valid options. If you save changes on this constraint and then save the strategy the following values will be removed:', + 'This constraint is currently using values that were valid in the past but have since been deleted. If you save changes on this constraint and then save the strategy the following values will be removed:', ); }); diff --git a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.tsx b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.tsx index 3893efc8cc..b61e799bff 100644 --- a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.tsx +++ b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/RestrictiveLegalValues/RestrictiveLegalValues.tsx @@ -173,10 +173,10 @@ export const RestrictiveLegalValues = ({ condition={Boolean(illegalValues && illegalValues.length > 0)} show={ - This constraint is using legal values that have been - deleted as valid options. If you save changes on this - constraint and then save the strategy the following - values will be removed: + This constraint is currently using values that were + valid in the past but have since been deleted. If you + save changes on this constraint and then save the + strategy the following values will be removed: