1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

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>
This commit is contained in:
Thomas Heartman 2022-09-29 11:43:04 +02:00 committed by GitHub
parent 51a64eff47
commit 0302b3d2e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ interface IConstraintAccordionListProps {
constraints: IConstraint[];
setConstraints?: React.Dispatch<React.SetStateAction<IConstraint[]>>;
showCreateButton?: boolean;
/* Add "Custom constraints" title on the top - default `true` */
/* Add "constraints" title on the top - default `true` */
showLabel?: boolean;
}
@ -115,7 +115,7 @@ export const ConstraintAccordionList = forwardRef<
}
show={
<p className={styles.customConstraintLabel}>
Custom constraints
Constraints
</p>
}
/>
@ -141,7 +141,7 @@ export const ConstraintAccordionList = forwardRef<
show={
<div>
<div className={styles.addCustomLabel}>
<p>Add any number of custom constraints</p>
<p>Add any number of constraints</p>
<Tooltip
title="Help"
arrow
@ -164,7 +164,7 @@ export const ConstraintAccordionList = forwardRef<
variant="outlined"
color="secondary"
>
Add custom constraint
Add constraint
</Button>
</div>
}

View File

@ -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.
![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

View File

@ -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)
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)

View File

@ -35,7 +35,7 @@ This guide assumes that you've got the following:
To schedule a feature release via the UI:
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)
![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)

View File

@ -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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

After

Width:  |  Height:  |  Size: 203 KiB