Nuno Góis
|
db61a8a40c
|
feat: message banner (variants) (#3788)
-
https://linear.app/unleash/issue/2-546/fetch-the-payload-from-a-real-feature-flag
-
https://linear.app/unleash/issue/2-547/adapt-ui-to-use-the-feature-flag-information-were-fetching
Tackles the 2 tasks above.
Adapts our `FlagResolver` logic to support variants, so we can use them
for our message banner project but also anything else in the future.
Also adapts MessageBanner to the new logic.
- Add support for variants in `FlagResolver`;
- Adapt `MessageBanner` to a variants flag;
- Adds `sticky` support for the `MessageBanner`;
- Adds our first variants flag to `uiConfig` and `experimental`:
`messageBanner`;
- Adds a `variant-flag-schema` to make it easy to represent the variant
output that we specify in `uiConfig`;
- Adapts `experimental` to be able to represent default variants while
still maintaining type safety;
- Adds helpers to make it easy to use variants in our project, such as
`getVariantValue` and the `useVariant` hook;
- Adapts and adds new tests in `flag-resolver.test.ts`;
### Notes
- ~~The `as PayloadType` assertions need
https://github.com/Unleash/unleash-client-node/pull/454 since it
includes https://github.com/Unleash/unleash-client-node/pull/452~~
(50ccf60893 );
- ~~Enterprise needs a PR that will follow soon~~;

|
2023-05-18 09:38:59 +01:00 |
|
Nuno Góis
|
bf4cbd24b0
|
fix: ensure rel=noreferrer on target=_blank (#3755)
https://linear.app/unleash/issue/2-1043/ensure-that-links-with-target=-blank-include-rel=noreferrer-to-prevent
Ensures that links with `target="_blank"` include `rel="noreferrer"` to
prevent warnings such as:

https://mathiasbynens.github.io/rel-noopener/#recommendations
|
2023-05-12 09:51:33 +01:00 |
|
Mateusz Kwasniewski
|
377e0e9d3e
|
fix: remove all warnings (#3055)
|
2023-02-07 11:20:44 +01:00 |
|
Tymoteusz Czech
|
340bcf1d1b
|
fix: add frontend eslint check (#2562)
Add eslint to CI pipeline
|
2023-01-02 10:46:32 +01:00 |
|
Nuno Góis
|
2d16730cc2
|
feat: adds an optional dialog and markdown support (#2728)
Adds the option of showing a dialog and adds markdown support to it,
could be useful to show changelogs inside Unleash in the future.

|
2022-12-22 15:47:42 +00:00 |
|
Nuno Góis
|
aaa96f71cb
|
feat: message banner (#2726)
Related to:
https://linear.app/unleash/issue/2-511/exploration-build-data-for-the-possibility-of-showing-an-alert-to-the
Namely:
https://unleash-internal.slack.com/archives/C046LV85N3C/p1671443897386729
The idea is to have a general message banner that can be controlled
through a feature flag in Unleash to display announcements, warnings,
informations, etc.
Currently using mock feature flags, but the idea is to bind this to a
feature flag we can manage in our Unleash instance, and use its payload
to provide information to end users whenever we want.
Co-authored-by: Gastón Fournier <gaston@getunleash.ai>
|
2022-12-22 15:16:51 +00:00 |
|