diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx index 220d7f1419..5eee35de8f 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/PlaygroundResultFeatureDetails.tsx @@ -8,7 +8,11 @@ import { useStyles } from './PlaygroundResultFeatureDetails.styles'; import { CloseOutlined } from '@mui/icons-material'; import React from 'react'; import { ConditionallyRender } from '../../../../../common/ConditionallyRender/ConditionallyRender'; -import { checkForEmptyValues, hasCustomStrategies } from './helpers'; +import { + checkForEmptyValues, + hasCustomStrategies, + hasOnlyCustomStrategies, +} from './helpers'; interface PlaygroundFeatureResultDetailsProps { feature: PlaygroundFeatureSchema; @@ -31,7 +35,9 @@ export const PlaygroundResultFeatureDetails = ({ ? 'at least one strategy is True' : !feature.isEnabledInCurrentEnvironment ? 'the environment is disabled' - : 'all strategies are False'; + : hasOnlyCustomStrategies(feature) + ? 'all strategies are Unevaluated' + : 'all strategies are False or Uneavaluated'; const color = feature.isEnabled ? theme.palette.success.main diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/helpers.ts b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/helpers.ts index ea2fe2c6fa..04d60d53bd 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/helpers.ts +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/PlaygroundResultFeatureDetails/helpers.ts @@ -25,3 +25,9 @@ export const hasCustomStrategies = (feature: PlaygroundFeatureSchema) => { strategy => !DEFAULT_STRATEGIES.includes(strategy.name) ); }; + +export const hasOnlyCustomStrategies = (feature: PlaygroundFeatureSchema) => { + return !feature.strategies?.data?.find(strategy => + DEFAULT_STRATEGIES.includes(strategy.name) + ); +};