1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

improved dummy data

This commit is contained in:
andreas-unleash 2022-07-29 12:55:27 +03:00
parent 2895516dda
commit 58edd06eb0
2 changed files with 28 additions and 2 deletions

View File

@ -76,6 +76,29 @@ export const FeatureResultInfoPopoverCell = ({
}, },
], ],
}, },
{
name: 'flexibleRollout',
id: 'strategy-id',
parameters: {},
result: false,
segments: [
{
result: false,
id: 6,
name: 'my-segment',
constraints: [
{
result: false,
contextName: 'appName',
operator: 'IN',
caseInsensitive: false,
inverted: false,
values: ['MyApp2'],
},
],
},
],
},
]; ];
if (!feature) { if (!feature) {

View File

@ -60,7 +60,7 @@ export const PlaygroundResultSegmentExecution = ({
if (!segments) return null; if (!segments) return null;
return ( return (
<> <>
{segments.map(segment => ( {segments.map((segment, index) => (
<SegmentExecutionWrapper key={segment.id}> <SegmentExecutionWrapper key={segment.id}>
<SegmentExecutionHeader> <SegmentExecutionHeader>
<SegmentExecutionLinkWrapper> <SegmentExecutionLinkWrapper>
@ -95,7 +95,10 @@ export const PlaygroundResultSegmentExecution = ({
constraints={segment.constraints} constraints={segment.constraints}
/> />
</SegmentExecutionConstraintWrapper> </SegmentExecutionConstraintWrapper>
<StrategySeparator text="AND" sx={{ pt: 1 }} /> <ConditionallyRender
condition={index < segments?.length -1}
show={<StrategySeparator text="AND" sx={{ pt: 1 }} />}
/>
</SegmentExecutionWrapper> </SegmentExecutionWrapper>
))} ))}
</> </>