Skip to content

Commit

Permalink
fix: Update UI labeling: custom constraint -> (strategy) constraint (#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
thomasheartman and nicolaesocaciu committed Sep 29, 2022
1 parent 51a64ef commit 0302b3d
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 8 deletions.
Expand Up @@ -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;
}

Expand Down Expand Up @@ -115,7 +115,7 @@ export const ConstraintAccordionList = forwardRef<
}
show={
<p className={styles.customConstraintLabel}>
Custom constraints
Constraints
</p>
}
/>
Expand All @@ -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
Expand All @@ -164,7 +164,7 @@ export const ConstraintAccordionList = forwardRef<
variant="outlined"
color="secondary"
>
Add custom constraint
Add constraint
</Button>
</div>
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/advanced/strategy-constraints.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion website/docs/how-to/how-to-add-strategy-constraints.md
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion website/docs/how-to/how-to-schedule-feature-releases.mdx
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion website/docs/user_guide/create-feature-toggle.md
Expand Up @@ -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)

Expand Down
Binary file modified website/static/img/add-constraint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/constraints-add-additional.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/constraints-add-to-strategy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/constraints_legal_values.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/create-toggle-add-constraint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/create-toggle-add-segment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed website/static/img/custom-constraints.png
Binary file not shown.
Binary file modified website/static/img/environments_strategy_constraints.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/strategy-constraint-date-after.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/strategy-constraints.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/strategy-parameters-ui-controls.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0302b3d

Please sign in to comment.