1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/interfaces
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
..
addons.ts Task/filter addon by project and environment (#1133) 2022-07-14 12:55:37 +02:00
application.ts
context.ts
environments.ts Update environments (#2339) 2022-11-11 10:24:56 +00:00
event.ts
featureToggle.ts feat: add warning hints on potential misconfiguration (#2948) 2023-01-20 18:09:01 +01:00
featureTypes.ts
group.ts feat: add SSO mappings to groups (#2175) 2022-10-13 11:34:47 +01:00
instance.ts
invoice.ts fix: show previous invoices page if UNLEASH_CLOUD is falsy (#1094) 2022-06-14 15:41:28 +02:00
personalAPIToken.ts Feat sa table info (#2848) 2023-01-09 16:18:37 +00:00
profile.ts feat: new profile page and PATs front-end (#2109) 2022-10-03 10:49:52 +01:00
project.ts feat: favorite feature and project (#2582) 2022-12-02 09:16:03 +02:00
publicSignupTokens.ts Feat/invite user (#2061) 2022-09-30 13:01:32 +02:00
role.ts
route.ts Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
segment.ts
service-account.ts Feat sa table info (#2848) 2023-01-09 16:18:37 +00:00
strategy.ts feat: update strategy segments with edit / create strategy (#2420) 2022-11-16 15:35:39 +01:00
tags.ts
toast.ts
token.ts feat: add CORS instance settings (#1239) 2022-08-23 14:04:09 +02:00
uiConfig.ts Add flag to control CASE_INSENSITIVE_IN_OPERATORS until SDKs catch up (#2927) 2023-01-18 15:53:14 +02:00
user.ts feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00