fix: Update UI labeling: custom constraint -> (strategy) constraint (#2101)
* fix: change every instance of "custom constraint" This changes every instance of "custom constraint" to "constraint" or "strategy constraint" depending on the context. * fix: rename custom-constraint.png to avoid confusion * Update images-constraints Co-authored-by: NicolaeUnleash <103567375+NicolaeUnleash@users.noreply.github.com>
@ -16,7 +16,7 @@ interface IConstraintAccordionListProps {
|
|||||||
constraints: IConstraint[];
|
constraints: IConstraint[];
|
||||||
setConstraints?: React.Dispatch<React.SetStateAction<IConstraint[]>>;
|
setConstraints?: React.Dispatch<React.SetStateAction<IConstraint[]>>;
|
||||||
showCreateButton?: boolean;
|
showCreateButton?: boolean;
|
||||||
/* Add "Custom constraints" title on the top - default `true` */
|
/* Add "constraints" title on the top - default `true` */
|
||||||
showLabel?: boolean;
|
showLabel?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ export const ConstraintAccordionList = forwardRef<
|
|||||||
}
|
}
|
||||||
show={
|
show={
|
||||||
<p className={styles.customConstraintLabel}>
|
<p className={styles.customConstraintLabel}>
|
||||||
Custom constraints
|
Constraints
|
||||||
</p>
|
</p>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@ -141,7 +141,7 @@ export const ConstraintAccordionList = forwardRef<
|
|||||||
show={
|
show={
|
||||||
<div>
|
<div>
|
||||||
<div className={styles.addCustomLabel}>
|
<div className={styles.addCustomLabel}>
|
||||||
<p>Add any number of custom constraints</p>
|
<p>Add any number of constraints</p>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title="Help"
|
title="Help"
|
||||||
arrow
|
arrow
|
||||||
@ -164,7 +164,7 @@ export const ConstraintAccordionList = forwardRef<
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
>
|
>
|
||||||
Add custom constraint
|
Add constraint
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ By using [custom context fields](../user_guide/unleash_context#custom-context-fi
|
|||||||
|
|
||||||
You can also combine strategy constraints with the [gradual rollout strategy](../user_guide/activation_strategy#gradual-rollout) to do a gradual rollout to a **specific segment** of your user base.
|
You can also combine strategy constraints with the [gradual rollout strategy](../user_guide/activation_strategy#gradual-rollout) to do a gradual rollout to a **specific segment** of your user base.
|
||||||
|
|
||||||
![A toggle with the gradual rollout strategy. The toggle is constrained on the custom content field "region" and set to only activate if the region is Africa or Europe.](/img/custom-constraints.png)
|
![A toggle with the gradual rollout strategy. The toggle is constrained on the custom content field "region" and set to only activate if the region is Africa or Europe.](/img/strategy-constraints.png)
|
||||||
|
|
||||||
## Constraint structure
|
## Constraint structure
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ On the strategy you're working with, find and select the "edit strategy" button.
|
|||||||
|
|
||||||
![A feature toggle with one strategy. The "edit strategy" button is highlighted.](/img/add-constraint.png)
|
![A feature toggle with one strategy. The "edit strategy" button is highlighted.](/img/add-constraint.png)
|
||||||
|
|
||||||
On the "edit strategy" screen, select the "add custom constraint" button to open the constraints menu.
|
On the "edit strategy" screen, select the "add constraint" button to open the constraints menu.
|
||||||
|
|
||||||
![A feature toggle strategy view showing a button labeled with add constraints.](/img/add-constraint.png)
|
![A feature toggle strategy view showing a button labeled with add constraints.](/img/add-constraint.png)
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ This guide assumes that you've got the following:
|
|||||||
|
|
||||||
To schedule a feature release via the UI:
|
To schedule a feature release via the UI:
|
||||||
1. Add the desired activation strategy to the feature
|
1. Add the desired activation strategy to the feature
|
||||||
2. Open the constraint creator by using the "Add custom constraint" button
|
2. Open the constraint creator by using the "Add constraint" button
|
||||||
3. Add a date-based constraint by selecting the `currentTime` context field (step 1 in the below image), choosing the `DATE_AFTER` operator (step 2), and setting the point in time where you want the feature to be available from (step 3)
|
3. Add a date-based constraint by selecting the `currentTime` context field (step 1 in the below image), choosing the `DATE_AFTER` operator (step 2), and setting the point in time where you want the feature to be available from (step 3)
|
||||||
![A strategy constraint specifying that the activation strategy should be enabled at 12:00 AM, November 25th 2022. There are visual call-outs pointing to the relevant settings mentioned above.](/img/strategy-constraint-date-after.png)
|
![A strategy constraint specifying that the activation strategy should be enabled at 12:00 AM, November 25th 2022. There are visual call-outs pointing to the relevant settings mentioned above.](/img/strategy-constraint-date-after.png)
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ You can either [add constraints when you add the strategy](../api/admin/feature-
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
In the strategy configuration screen for the strategy that you want to configure, use the "add custom constraint" button to add a custom constraint.
|
In the strategy configuration screen for the strategy that you want to configure, use the "add constraint" button to add a strategy constraint.
|
||||||
|
|
||||||
![](/img/create-toggle-add-constraint.png)
|
![](/img/create-toggle-add-constraint.png)
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 162 KiB |
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 178 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 132 KiB |
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 236 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 184 KiB |
BIN
website/static/img/strategy-constraints.png
Normal file
After Width: | Height: | Size: 234 KiB |
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 203 KiB |