1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-03 01:18:43 +02:00
unleash.unleash/frontend/src
Thomas Heartman 0542fef5d8
chore(1 3493): handle cases with no strategies (#9563)
Handle cases where flags have no strategies in the playground.

As part of this, also changes how we deal with the padding/margins in
the playground: instead of making all but one items in the playground
have to explicitly add padding, now we instead say that the only item
that needs to do something is the list, which uses negative inline
margins.

This also has the added benefit of adding all the top-level elements
(that is: that's not part of the strategy lists) inside the same
container, so we can control gaps between them with flex's gaps.

When you have no strategies (before):

![image](https://github.com/user-attachments/assets/52c85ba4-0738-4aa7-b2ac-84e5f0f65b45)


When you have no strategies (after):

![image](https://github.com/user-attachments/assets/80f5ce75-29e5-4b6d-b707-213cb79d53cc)
2025-03-18 15:12:23 +01:00
..
__mocks__ refactor: format files (#719) 2022-02-18 09:51:10 +01:00
assets chore: add release management to new in unleash (#9257) 2025-02-07 14:33:25 +00:00
component chore(1 3493): handle cases with no strategies (#9563) 2025-03-18 15:12:23 +01:00
constants feat: use new environment limit in Unleash UI (#7500) 2024-07-02 06:14:15 +00:00
contexts chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
hooks feat: requests consumption UI for frontend (#9550) 2025-03-17 12:55:01 +02:00
interfaces chore: fix missing primary routes for commandbar (#9557) 2025-03-18 10:13:23 +00:00
openapi chore: update orval types (#9549) 2025-03-17 11:52:25 +02:00
themes chore: deprecate envAccordion colors; update non-legacy components (#9378) 2025-02-27 15:29:37 +01:00
types chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
utils fix: Data usage graphs don't work in UTC-n time zones (#9530) 2025-03-13 15:44:10 +01:00
index.tsx fix: send UI error tracking (#8725) 2024-11-13 16:13:05 +01:00
setupTests.ts chore: scroll-related UX adjustments in the Unleash AI chat (#8478) 2024-10-18 14:38:46 +01:00
vite-env.d.ts refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00