1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-28 17:55:15 +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
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
EnvironmentStrategiesDialog Refactor makestyles 2-1 (#2820) 2023-01-04 21:01:18 +02:00
FavoriteIconButton
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
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
ItemList
Loader Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
LoginRedirect
MainHeader
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
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
PermissionHOC
PermissionIconButton Refactor/make styles batch 6 part 3 (#2823) 2023-01-05 09:45:17 +01:00
PermissionSwitch
PremiumFeature Add unique trackable URLs for Pro/Enterprise feature lead generation (#2684) 2022-12-13 14:35:07 +02:00
PrettifyLargeNumber
Proclamation Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
ProjectSelect chore: update MUI to v5 (#923) 2022-05-02 15:52:41 +02:00
ProtectedRoute
ResponsiveButton
ScrollTop
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 Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
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
UpdateButton
UserAvatar
VerticalTabs
common.module.scss
flags.ts
index.jsx
select.tsx
util.ts Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00