mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-02 01:17:58 +02:00
chore: add hint to release plan template gradual rollout strategy groupId (#9171)
https://linear.app/unleash/issue/2-3101/ui-hint-for-gradual-rollout-groupid-magic-string-featurename Explains the current release plan milestone gradual rollout strategy groupId behavior with an HelpIcon and a tooltip next to the field, when creating or editing a release plan template. 
This commit is contained in:
parent
08c016b755
commit
91d318a495
@ -9,6 +9,7 @@ import {
|
|||||||
parseParameterString,
|
parseParameterString,
|
||||||
} from 'utils/parseParameter';
|
} from 'utils/parseParameter';
|
||||||
import Input from 'component/common/Input/Input';
|
import Input from 'component/common/Input/Input';
|
||||||
|
import { HelpIcon } from 'component/common/HelpIcon/HelpIcon';
|
||||||
|
|
||||||
interface IMilestoneStrategyTypeFlexibleProps {
|
interface IMilestoneStrategyTypeFlexibleProps {
|
||||||
parameters: IFeatureStrategyParameters;
|
parameters: IFeatureStrategyParameters;
|
||||||
@ -38,8 +39,15 @@ const StyledInnerBox1 = styled(Box)(({ theme }) => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const StyledInnerBox2 = styled(Box)(({ theme }) => ({
|
const StyledInnerBox2 = styled(Box)(({ theme }) => ({
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
gap: theme.spacing(1),
|
||||||
width: '50%',
|
width: '50%',
|
||||||
marginLeft: theme.spacing(0.5),
|
marginLeft: theme.spacing(0.5),
|
||||||
|
marginBottom: theme.spacing(2),
|
||||||
|
'& > div': {
|
||||||
|
flex: 1,
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const DEFAULT_STICKINESS = 'default';
|
const DEFAULT_STICKINESS = 'default';
|
||||||
@ -104,6 +112,16 @@ export const MilestoneStrategyTypeFlexible = ({
|
|||||||
error={Boolean(errors?.getFormError('groupId'))}
|
error={Boolean(errors?.getFormError('groupId'))}
|
||||||
helperText={errors?.getFormError('groupId')}
|
helperText={errors?.getFormError('groupId')}
|
||||||
/>
|
/>
|
||||||
|
<HelpIcon
|
||||||
|
htmlTooltip
|
||||||
|
tooltip={
|
||||||
|
<>
|
||||||
|
Supports <strong>{'{{featureName}}'}</strong> as
|
||||||
|
a template variable. If not set, defaults to the
|
||||||
|
feature flag name.
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
/>
|
||||||
</StyledInnerBox2>
|
</StyledInnerBox2>
|
||||||
</StyledOuterBox>
|
</StyledOuterBox>
|
||||||
</StyledBox>
|
</StyledBox>
|
||||||
|
Loading…
Reference in New Issue
Block a user