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

feat: styling of info box for release plans (#9741)

This commit is contained in:
Jaanus Sellin 2025-04-10 12:22:07 +03:00 committed by GitHub
parent 3f5f43933a
commit 5d64d0ff4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,11 +109,6 @@ const StyledBox = styled(Box)(({ theme }) => ({
marginTop: theme.spacing(3.5),
}));
const StyledTargetingHeader = styled('div')(({ theme }) => ({
color: theme.palette.text.secondary,
marginTop: theme.spacing(1.5),
}));
const StyledDivider = styled(Divider)(({ theme }) => ({
width: '100%',
}));
@ -315,24 +310,24 @@ export const ReleasePlanTemplateAddStrategyForm = ({
)}
{activeTab === 1 && (
<>
<StyledTargetingHeader>
<Alert severity='info' sx={{ mb: 2 }} icon={false}>
Segmentation and constraints allow you to set
filters on your strategies, so that they will only
be evaluated for users and applications that match
the specified preconditions.
<MilestoneStrategySegment
segments={segments}
setSegments={setSegments}
/>
<StyledBox>
<StyledDivider />
<StyledConstraintSeparator />
</StyledBox>
<MilestoneStrategyConstraints
strategy={currentStrategy}
setStrategy={setCurrentStrategy}
/>
</StyledTargetingHeader>
</Alert>
<MilestoneStrategySegment
segments={segments}
setSegments={setSegments}
/>
<StyledBox>
<StyledDivider />
<StyledConstraintSeparator />
</StyledBox>
<MilestoneStrategyConstraints
strategy={currentStrategy}
setStrategy={setCurrentStrategy}
/>
</>
)}
{activeTab === 2 && showVariants && (