Nuno Góis
667aed828b
feat: banners admin page ( #5111 )
...
https://linear.app/unleash/issue/2-1484/ui-create-an-admin-banners-configuration-page
Adds a new "Banners" page to the admin UI.
This first iteration allows admins to list and preview all configured
message banners, toggle them (whether they are currently visible to all
users or not), and remove them.
Next step will be creating the modal for "new" and "edit" operations.
### Admin menu
![image](https://github.com/Unleash/unleash/assets/14320932/39bcf575-b03a-481b-b19e-fc87697ed51c )
### Banners page
![image](https://github.com/Unleash/unleash/assets/14320932/39df6bc2-6949-4956-9dd0-0e5b1d2959f6 )
2023-10-20 11:14:48 +01:00
Tymoteusz Czech
f1b8d9b8d5
fix: project overview refactor flag ( #5110 )
2023-10-20 11:16:05 +02:00
Tymoteusz Czech
6fab6633c9
feat: add hasStrategies and hasEnabledStrategies on feature environments ( #5012 )
2023-10-20 10:50:57 +02:00
Mateusz Kwasniewski
b890df6e12
feat: show warning about dependencies removed on archive ( #5104 )
2023-10-20 08:58:03 +02:00
Nuno Góis
347c1cabbc
feat: add new sticky component to handle stacked stickies ( #5088 )
...
https://linear.app/unleash/issue/2-1509/discovery-stacked-sticky-elements
Adds a new `Sticky` element that will attempt to stack sticky elements
in the DOM in a smart way.
This needs a wrapping `StickyProvider` that will keep track of sticky
elements.
This PR adapts a few components to use this new element:
- `DemoBanner`
- `FeatureOverviewSidePanel`
- `DraftBanner`
- `MaintenanceBanner`
- `MessageBanner`
Pre-existing `top` properties are taken into consideration for the top
offset, so we can have nice margins like in the feature overview side
panel.
### Before - Sticky elements overlap 😞
![image](https://github.com/Unleash/unleash/assets/14320932/dd6fa188-6774-4afb-86fd-0eefb9aba93e )
### After - Sticky elements stack 😄
![image](https://github.com/Unleash/unleash/assets/14320932/c73a84ab-7133-448f-9df6-69bd4c5330c2 )
2023-10-19 15:50:37 +01:00
andreas-unleash
1335da6366
Feat: show disabled strategies in playground ( #5081 )
...
Show disabled strategies in separate list
Do not show any results in segments/constraints when disabled
Closes #
[1-1506](https://linear.app/unleash/issue/1-1506/display-disabled-strategies-in-playground-page )
![Screenshot 2023-10-18 at 13 13
48](https://github.com/Unleash/unleash/assets/104830839/ab788241-6593-42a2-aced-412b59e308c8 )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-19 16:50:50 +03:00
Nuno Góis
957546e305
refactor: rename message banners to banners ( #5098 )
...
https://linear.app/unleash/issue/2-1531/rename-message-banners-to-banners
This renames "message banners" to "banners".
I also added support for external banners coming from a `banner` flag
instead of only `messageBanner` flag, so we can eventually migrate to
the new one in the future if we want.
2023-10-19 13:18:25 +01:00
Thomas Heartman
8954277d20
chore(ui): add splash screen for oss segments ( #5053 )
...
This PR adds a splash screen for segments being open-sourced.
It looks like this:
![image](https://github.com/Unleash/unleash/assets/17786332/bf8766e6-b9cc-4f0b-a6d1-f6e89e21d844 )
## About the changes
I've more or less wholesale copied the demo dialog that @nunogois
implemented. I've put it in the `splash` directory for now (because
that's where it seemed most appropriate). The reason for straight
copying it instead of extending existing functionality is primarily that
this should be short-lived and deleted after the next release or so. So
isolating all the changes into a single directory seems like a good
idea.
## Discussion points
Because OSS installations don't connect to Unleash, we can't use feature
flags to control the rollout here. Instead, we must just assume that OSS
users will want to see it. If there is a better way we can control this,
that'd be great. I'd love to be able to use time constraints to not show
this after a certain date, for instance, but I don't think that's
something we can do right now?
The splash is also set to display on any page you're at when you first
load unleash. However, closing the dialog (either by closing or by
asking to see segments) will store that in localstorage, and you won't
be shown the dialog again.
---------
Co-authored-by: Nuno Góis <github@nunogois.com>
2023-10-19 08:28:14 +02:00
Nuno Góis
4a49cd5c74
feat: display internal message banners ( #5079 )
...
https://linear.app/unleash/issue/2-1511/adapt-internalmessagebanners-to-use-the-new-hooks-and-display-the
Adapts the `InternalMessageBanners` component to use the new hook and
display the internal message banners.
2023-10-18 20:00:45 +01:00
Nuno Góis
ad7149f26f
refactor: move message banner interface to common file ( #5076 )
...
https://linear.app/unleash/issue/2-1527/set-up-message-banner-interfaces
Tiny refactor to move the message banner interface to its own file,
since it will be used in multiple places.
2023-10-18 10:32:19 +01:00
Jaanus Sellin
d6607373fa
feat: allow selection of text in strategies for contexts ( #5071 )
2023-10-18 09:55:19 +03:00
Mateusz Kwasniewski
163545de8c
feat: warn about sdk update with feature dependencies ( #5065 )
2023-10-17 13:43:49 +02:00
Mateusz Kwasniewski
e9e110f702
feat: show dependencies only when using pro/enterprise or at least on… ( #5052 )
2023-10-16 20:56:06 +02:00
Nuno Góis
19a429c92f
fix: small adjustments on the new header icons ( #5043 )
...
Some small UI adjustments to the new header icons.
![image](https://github.com/Unleash/unleash/assets/14320932/39f711dd-520b-4eb1-ac79-fefc6a79aaf7 )
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-16 12:25:27 +01:00
Mateusz Kwasniewski
092ba2a625
feat: track add and remove dependencies ( #5041 )
2023-10-16 10:57:55 +02:00
andreas-unleash
ff97dfd733
fix: use correct flag name ( #5026 )
...
Fixes a bug with using the wrong feature name
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-13 17:02:48 +03:00
Nuno Góis
9c047e0756
feat: adds a new design to the header icons ( #5025 )
...
After aligning with @nicolaesocaciu, adds a new, cleaner, more
consistent design to our header icons.
![image](https://github.com/Unleash/unleash/assets/14320932/a9f0eb93-ee1f-4e63-96c8-4b2ac11cfdab )
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-13 14:31:07 +01:00
Nuno Góis
e663dc0960
fix: maintenance banner should show right away when toggled ( #5021 )
...
Makes the maintenance banner show right away when toggled. Includes some
misc cleaning up.
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-13 14:30:50 +01:00
andreas-unleash
75fb7a0d93
feat: add a dialog when reviving / batch reviving features ( #4988 )
...
Adds a confirmation dialog when reviving features
Closes #
[SR-91](https://linear.app/unleash/issue/SR-91/reviving-a-feature-toggle-should-have-a-confirmation-dialog )
https://github.com/Unleash/unleash/assets/104830839/49e71590-fd66-4eb5-bd09-5eb322e3d1c9
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-13 16:28:36 +03:00
Mateusz Kwasniewski
19bc519e1b
feat: Verify archive dependent features UI ( #5024 )
2023-10-13 14:31:37 +02:00
Jaanus Sellin
c7a990e5a9
feat: header invite link tracking ( #5001 )
2023-10-13 14:57:20 +03:00
Nuno Góis
36ae842248
feat: make maintenance banner sticky ( #5016 )
...
After checking with @nicolaesocaciu we came to the conclusion that the
maintenance banner should be sticky.
Co-authored-by Nicolae <nicolae@getunleash.ai>
2023-10-13 10:29:01 +01:00
Nuno Góis
2adfb7bd15
fix: error icon, add only relevant variants ( #5014 )
...
https://linear.app/unleash/issue/2-1508/fix-message-banner-error-variant-icon
After aligning with @nicolaesocaciu, we fixed the `error` variant icon
and removed irrelevant message variants for now.
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-12 16:29:19 +01:00
Nuno Góis
5f6c17f4bd
fix: message banner zIndex ( #5015 )
...
After aligning with @nicolaesocaciu, this fixes the message banner
zIndex.
Co-authored-by: Nicolae <nicolae@getunleash.ai>
2023-10-12 15:45:33 +01:00
Nuno Góis
d30e059ffc
fix: message banner internal link assumption ( #5011 )
...
https://linear.app/unleash/issue/2-1504/fix-message-banner-internal-link-assumption
Fixes the internal link assumption in message banner to
`.startsWith('/')` - Any other links will be treated as external (normal
`href`).
2023-10-12 15:07:55 +01:00
Nuno Góis
742abab41e
feat: multiple external message banners ( #4998 )
...
https://linear.app/unleash/issue/2-1495/adapt-existing-message-banner-component-to-be-more-reusablegeneric
https://linear.app/unleash/issue/2-1496/add-support-for-multiple-external-message-banners
This PR does 2 things:
- Refactors the `MessageBanner` component to be more generic and
reusable, by accepting the message info through props;
- Adds support for multiple external message banners;
2023-10-11 13:42:05 +01:00
Nuno Góis
c3575c7727
refactor: make uiFlags typesafe ( #4996 )
...
This should add some typesafety to our usage of uiFlags.
2023-10-11 12:44:54 +01:00
Jaanus Sellin
69286339fc
feat: make invite link more visible ( #4984 )
2023-10-11 14:31:32 +03:00
Nuno Góis
65f424156c
feat: re-order message banners ( #4995 )
...
https://linear.app/unleash/issue/2-1494/re-order-message-banners
- Re-orders message banners to fit into this logic:
>1. Maintenance banner
>2. External message banner(s) - Most likely coming from Unleash
>3. Internal message banner(s)
- Renames the feature flag to better reflect the feature behavior;
- Lays a basic skeleton structure for this new feature;
2023-10-11 11:55:54 +01:00
Mateusz Kwasniewski
2f84ac88e6
feat: delete dependnecy button through change request ( #4983 )
2023-10-10 14:38:10 +02:00
Mateusz Kwasniewski
af50fc2fd3
feat: visualize dependencies managment in change requests ( #4978 )
2023-10-10 10:36:13 +02:00
Mateusz Kwasniewski
b4c8f92a26
feat: do not allow to manage dependencies directly with cr enabled ( #4971 )
2023-10-10 09:25:03 +02:00
Mateusz Kwasniewski
ab739eb6c3
feat: Change request dependency UI ( #4966 )
2023-10-09 14:06:00 +02:00
Mateusz Kwasniewski
d61ccb1f6b
fix: local linter did not find formatting error ( #4954 )
2023-10-06 10:45:29 +02:00
andreas-unleash
cb034976b9
fix: change broken link to groups documentation ( #4941 )
...
Replaces the broken groups documentation link
CLoses: #
[SR-75](https://linear.app/unleash/issue/SR-75/groups-documentation-link-broken )
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-06 10:29:27 +03:00
Mateusz Kwasniewski
80eb6e12c6
refactor: custom render should provide container ( #4938 )
2023-10-06 09:19:49 +02:00
Mateusz Kwasniewski
bed26a938c
test: playground with dependencies ( #4936 )
2023-10-06 09:19:25 +02:00
andreas-unleash
bf527cdbb0
fix: Remove the info from the variants page ( #4937 )
...
Remove the info from the variants page
Closes #
[UNL-231](https://linear.app/unleash/issue/UNL-231/remove-the-info-from-the-variants-page )
<img width="1408" alt="Screenshot 2023-10-05 at 15 11 33"
src="https://github.com/Unleash/unleash/assets/104830839/68bac945-af00-4c9b-ae6d-faeed92ec4bb ">
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-05 17:18:58 +03:00
andreas-unleash
bd008c821a
fix: remove console from FeatureToggleSwitch ( #4928 )
...
Removes missed console log from FeatureToggleSwitch
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-05 16:00:49 +03:00
Mateusz Kwasniewski
2c7587ba4b
feat: dependent features in playground ( #4930 )
2023-10-05 13:05:20 +02:00
andreas-unleash
630028acba
fix: linting ( #4925 )
...
Biome linting fix
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-04 15:59:39 +03:00
andreas-unleash
784d38c230
fix: ReportTable status column not updating ( #4924 )
...
Fixes a bug where the status and expiredAt columns where not updating
dynamically
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-04 12:27:11 +00:00
Mateusz Kwasniewski
257414424d
feat: copy feature with parent ( #4918 )
2023-10-04 12:20:27 +02:00
Mateusz Kwasniewski
5141d9db67
feat: change project with feature dependencies ( #4915 )
2023-10-04 12:16:52 +02:00
andreas-unleash
b07c032d56
fix: update potentially-stale status dynamically ( #4905 )
...
Fixes 2 bugs:
- project-health-service keeping the feature types as an instance
variable and only updating it once was preventing real calculation to
happen if the lifetime value changed for a feature toggle type
- the ui was reading from a predefined map for the lifetime values so
they would never reflect the BE change
Closes #
[SR-66](https://linear.app/unleash/issue/SR-66/slack-question-around-potentially-stale-and-its-uses )
<img width="1680" alt="Screenshot 2023-10-02 at 14 37 17"
src="https://github.com/Unleash/unleash/assets/104830839/7bee8d4a-9054-4214-a1a2-11ad8169c3d5 ">
<img width="1660" alt="Screenshot 2023-10-02 at 14 37 06"
src="https://github.com/Unleash/unleash/assets/104830839/23bf55c7-a380-4423-a732-205ad81d5c3c ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-04 12:47:16 +03:00
Gastón Fournier
bd8b54b5bd
fix: yarn lint:fix ( #4917 )
...
## About the changes
Running yarn lint:fix solves errors in frontend
2023-10-04 11:28:05 +02:00
andreas-unleash
c1f8929ddf
fix: separate project and project enterprise settings forms ( #4911 )
...
Separates ProjectForm and ProjectEnterpriseSettings forms
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
2023-10-04 10:42:02 +03:00
Mateusz Kwasniewski
88305a6388
feat: prevent delete and archive on parent feature ( #4913 )
2023-10-04 09:27:53 +02:00
Mateusz Kwasniewski
296cc9a9f2
feat: update dependency permission ( #4910 )
2023-10-04 09:27:14 +02:00
Nuno Góis
4167a60588
feat: biome lint frontend ( #4903 )
...
Follows up on https://github.com/Unleash/unleash/pull/4853 to add Biome
to the frontend as well.
![image](https://github.com/Unleash/unleash/assets/14320932/1906faf1-fc29-4172-a4d4-b2716d72cd65 )
Added a few `biome-ignore` to speed up the process but we may want to
check and fix them in the future.
2023-10-02 13:25:46 +01:00