1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/frontend/src/component
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
..
accessOverview feat: add a button to download user access information (#4746) 2023-09-15 11:51:29 +02:00
admin fix: maintenance banner should show right away when toggled (#5021) 2023-10-13 14:30:50 +01:00
application feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
archive fix: use correct flag name (#5026) 2023-10-13 17:02:48 +03:00
banners feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
changeRequest feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
common feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
context fix: local linter did not find formatting error (#4954) 2023-10-06 10:45:29 +02:00
demo feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
environments feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
events feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
feature feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
featureTypes feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
feedback feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
integrations feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
layout feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
loginHistory feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
maintenance feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
menu feat: adds a new design to the header icons (#5025) 2023-10-13 14:31:07 +01:00
playground/Playground Feat: show disabled strategies in playground (#5081) 2023-10-19 16:50:50 +03:00
project refactor: make uiFlags typesafe (#4996) 2023-10-11 12:44:54 +01:00
providers feat: update dependency permission (#4910) 2023-10-04 09:27:14 +02:00
segments refactor: custom render should provide container (#4938) 2023-10-06 09:19:49 +02:00
splash chore(ui): add splash screen for oss segments (#5053) 2023-10-19 08:28:14 +02:00
strategies feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
tags feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
user fix: small adjustments on the new header icons (#5043) 2023-10-16 12:25:27 +01:00
App.tsx refactor: rename message banners to banners (#5098) 2023-10-19 13:18:25 +01:00
InitialRedirect.tsx