andreas-unleash
d681e614ac
fix: fix broken edit project link ( #5147 )
...
fix broken edit project link
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-25 15:23:53 +03:00
Nuno Góis
6ffca07d51
feat: use new on/off endpoints in banners toggles ( #5144 )
...
https://linear.app/unleash/issue/2-1556/adapt-toggles-in-banners-table-to-use-the-new-on-and-off-endpoints
Uses the new on/off endpoints in the banners table toggles.
Also includes a missing rename for the `useMessageBannersApi` hook, to
`useBannersApi`.
2023-10-25 12:27:47 +01:00
Jaanus Sellin
26dcc70e85
bug: remove strategies from copy breadcrumbs ( #5137 )
2023-10-25 09:12:32 +03:00
Nuno Góis
3ca22c7c5c
feat: banner modal ( #5132 )
...
https://linear.app/unleash/issue/2-1548/ui-create-banner-newedit-modal
Adds a new banner modal (and form) that allows admins to create and edit
banners.
Also adds a new `FormSwitch` common component that may be helpful in
different situations where we need a switch on a form.
<img width="1263" alt="image"
src="https://github.com/Unleash/unleash/assets/14320932/1b89db9b-9003-413c-8829-c37d245e2487 ">
2023-10-24 16:26:44 +01:00
Fredrik Strand Oseberg
5acf691845
fix: last seen at rendering logic ( #5136 )
...
This PR fixes a bug where the rendering in the frontend would only
render the last seen component if feature.lastSeenAt was set, the new
changes considers whether or not environments last seen at is present
and takes precedent over the legacy last seen at field.
2023-10-24 13:58:55 +02:00
Jaanus Sellin
604c19c27e
fix: fix linting for copyfeature ( #5138 )
2023-10-24 12:21:01 +02:00
sjaanus
b47dbd37ff
fix: fix copy functionality always being disabled
2023-10-24 12:50:42 +03:00
Nuno Góis
90296bed82
refactor: slight clean up after GAing multiple roles ( #5133 )
...
Follow up cleanup to https://github.com/Unleash/unleash/pull/5109
Based on
https://github.com/Unleash/unleash/pull/5109#pullrequestreview-1689535863
2023-10-24 09:57:01 +01:00
Mateusz Kwasniewski
599da89288
feat: improved has children/has parent indicator ( #5135 )
2023-10-24 10:51:38 +02:00
Mateusz Kwasniewski
46b8dce081
fix: read project id in edit project ( #5134 )
2023-10-24 10:18:40 +02:00
Christopher Kolstad
314a08b4e6
feat: Make multiple roles per group/user GA by removing the flag ( #5109 )
...
To prepare for 5.6 GA,
I've done a find through both Frontend and Backend here to remove the
usages of the flag. Seems like the flag was only in use in the frontend.
@nunogois can you confirm?
2023-10-23 12:32:15 +00:00
andreas-unleash
69d050a70f
fix: grey out text and icons for disabled strategies in playground ( #5113 )
...
What it says on the tin
Closes #
[1-1512](https://linear.app/unleash/issue/1-1512/grey-out-everything-icons-labels-etc-when-strategy-is-disabled )
<img width="689" alt="Screenshot 2023-10-20 at 12 25 51"
src="https://github.com/Unleash/unleash/assets/104830839/3192a125-0e2a-46f2-a266-e4d6c171bdad ">
<img width="711" alt="Screenshot 2023-10-20 at 14 52 30"
src="https://github.com/Unleash/unleash/assets/104830839/15040439-c059-4725-9518-82e363fd7230 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-23 15:12:15 +03:00
Nuno Góis
93fb615841
fix: draft banner zIndex ( #5124 )
...
Tiny zIndex fix for the draft banner for a regression introduced in
https://github.com/Unleash/unleash/pull/5088
### Before - Draft banner is displayed on top of the profile popup:
![image](https://github.com/Unleash/unleash/assets/14320932/63865f01-9bbe-42f1-9cc4-85c3c985334c )
### After - Profile popup displays on top of the draft banner:
![image](https://github.com/Unleash/unleash/assets/14320932/565e1017-5163-445d-bc0c-ee957023241b )
2023-10-23 13:01:50 +02:00
Jaanus Sellin
ddcd7f47d8
chore: remove invite link flag ( #5119 )
2023-10-23 12:11:11 +03:00
andreas-unleash
8821dbc783
Fix: copy feature alert when change requests enabled in any env ( #4964 )
...
Adds an alert if change requests are enabled in any env and you try to
copy a feature.
Currently the functionality was disabled but with no explanation
Closes #
[SR-79](https://linear.app/unleash/issue/SR-79/when-change-request-is-enable-the-copy-functionality-its-disabled-but )
<img width="1138" alt="Screenshot 2023-10-09 at 12 32 52"
src="https://github.com/Unleash/unleash/assets/104830839/e900e4b8-8d26-46d7-8622-0ad592704d03 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-10-20 15:15:42 +03:00
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