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[]; | ||||
|     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> | ||||
|                     } | ||||
|  | ||||
| @ -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. | ||||
| 
 | ||||
|  | ||||
|  | ||||
| 
 | ||||
| ## Constraint structure | ||||
| 
 | ||||
|  | ||||
| @ -20,7 +20,7 @@ On the strategy you're working with, find and select the "edit strategy" button. | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
| 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. | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
|  | ||||
| @ -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) | ||||
|    | ||||
| 
 | ||||
|  | ||||
| @ -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. | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
|  | ||||
| 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 |