1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/component/common
Gastón Fournier 70d8f9e58a
feat: add warning hints on potential misconfiguration (#2948)
## About the changes
Add warnings when we detect something might be wrong with the customer
configuration, in particular with regard to variants configuration

## Rationale
Moving from variants per feature to variants per environment will allow
users to have fine-grained permissions and more control over variants on
different environments: #2254

But because this requires an additional step of copying variants to
other environments, we identified the potential risk of users forgetting
to follow this step. To keep them informed about this, we're introducing
a warning sign after a toggle is enabled when we detect that:
1. The environment is enabled without variants
2. Other enabled environments have variants

This situation would be a problem if you rely on `getVariant` method
from the SDK, because without variants you'll receive the default
variant. Probably, not what you'd expect after enabling the toggle, but
there are situations where this might be correct. Because of the latter,
we thought that adding a warning and letting the user handle the
situation was the best solution.

## UI sketches
![image
(6)](https://user-images.githubusercontent.com/455064/213676353-112639f0-7781-42c0-8c9d-8c7eba316bae.png)
![Screenshot from 2023-01-19
08-55-10](https://user-images.githubusercontent.com/455064/213664639-7b11ff4b-048a-4a36-aa71-7df2f889adff.png)

Co-authored-by: Nuno Góis <github@nunogois.com>
2023-01-20 18:09:01 +01:00
..
AdminAlert
AnimateOnMount refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
Announcer MakeStyles refactor 1-3 (#2835) 2023-01-09 10:41:58 +02:00
ApiError
AutocompleteBox MakeStyles refactor 1-3 (#2835) 2023-01-09 10:41:58 +02:00
Badge
BreadcrumbNav fix: small breadcrumb adjustments (#2893) 2023-01-16 13:09:38 +01:00
CheckmarkBadge MakeStyles refactor 1-4 (#2845) 2023-01-11 11:02:10 +02:00
Codebox MakeStyles refactor 1-4 (#2845) 2023-01-11 11:02:10 +02:00
ConditionallyRender
ConstraintAccordion feat: file dropzone (#2939) 2023-01-20 09:50:24 +01:00
CreateButton
DateTimePicker Variants per environment (frontend) (#2453) 2022-11-18 11:43:24 +00:00
Dialogue Update dialogue design (#2342) 2022-12-14 15:16:58 +00:00
DividerText Refactor makestyles 2-1 (#2820) 2023-01-04 21:01:18 +02:00
DropdownMenu
EnvironmentIcon fix: minor ui improvements (#1163) 2022-07-28 12:05:48 +02:00
EnvironmentStrategiesDialog Refactor makestyles 2-1 (#2820) 2023-01-04 21:01:18 +02:00
FavoriteIconButton fix: misc UI/UX fixes, mostly related with favorites (#2683) 2022-12-13 13:19:21 +00:00
FeatureArchiveDialog
FeatureStaleDialog
FeatureStatusChip Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
FormTemplate Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
GeneralSelect Change requests - add multiple reviewers (#2448) 2022-11-17 11:08:29 +02:00
Gradient
GridCol
GridRow
GuidanceIndicator
HelpIcon
Highlighter Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
HtmlTooltip feat: add warning hints on potential misconfiguration (#2948) 2023-01-20 18:09:01 +01:00
Input Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
InputCaption
InputListField
InstanceStatus POC: integration tests (#2422) 2022-12-06 15:28:33 +01:00
ItemList feat: add SSO mappings to groups (#2175) 2022-10-13 11:34:47 +01:00
Loader Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
LoginRedirect
MainHeader fix: misc UI/UX fixes, mostly related with favorites (#2683) 2022-12-13 13:19:21 +00:00
Mermaid perf: Simplify queries to prometheus (#2706) 2022-12-19 17:06:59 +01:00
MessageBanner fix: add frontend eslint check (#2562) 2023-01-02 10:46:32 +01:00
NoItems Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
NotFound Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
OperatorUpgradeAlert refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
PageContent fix: PageContent bodyContainer overflowX (#2852) 2023-01-10 16:46:53 +01:00
PageHeader Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
PasswordField
PercentageCircle
PermissionButton added contraints checking in change request permissions (#2690) 2022-12-14 13:00:51 +01:00
PermissionHOC
PermissionIconButton Refactor/make styles batch 6 part 3 (#2823) 2023-01-05 09:45:17 +01:00
PermissionSwitch added contraints checking in change request permissions (#2690) 2022-12-14 13:00:51 +01:00
PremiumFeature Add unique trackable URLs for Pro/Enterprise feature lead generation (#2684) 2022-12-13 14:35:07 +02:00
PrettifyLargeNumber linter fixes (#2561) 2022-11-30 10:52:13 +01:00
Proclamation Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
ProjectSelect
ProtectedRoute
ResponsiveButton Feat/add pro feature icon to oss projects (#2544) 2022-11-28 17:13:45 +02:00
ScrollTop refactor: port some things to TS (#833) 2022-04-01 10:28:15 +02:00
Search refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
SegmentItem refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
SidebarModal Fix/use swr bug (#2884) 2023-01-12 11:25:42 +01:00
SkipNavLink refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
StaleDataNotification refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
StrategyItemContainer refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
StrategySeparator
StringTruncator
Table feat: better tooltip links (#2891) 2023-01-16 13:04:52 +01:00
TabNav refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
TagSelect
ThemeMode
ToastRenderer refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
TooltipLink fix: tooltip arrow regression after last scroll max size feat (#2935) 2023-01-19 14:46:26 +01:00
TooltipResolver Fix plan upgrade tooltip (#2549) 2022-11-29 10:06:29 +02:00
UpdateButton
UserAvatar
VerticalTabs Feat/add enterprise badge to change req settings (#2585) 2022-12-06 10:05:49 +02:00
common.module.scss
flags.ts feat: add user groups (#1130) 2022-07-22 07:31:08 +00:00
index.jsx
select.tsx
util.ts Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00