1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-10 01:19:53 +01:00
unleash.unleash/frontend/src/component/feature/FeatureStrategy
Thomas Heartman 51c9617da8
Fix: weird strategy spacing on envs without release plans (#9466)
Fixes a visual bug where envs without release plans would get too much
spacing on the top of their first strategy.

It does this flattening the list of strategies if there are no release
plans. In doing so, I have extracted the strategy list rendering into a
separate component (to make things more legible and re-usable) and have
also removed the FeatureStrategyEmpty component and marked it as
deprecated. In the new designs, you can't expand envs without
strategies, so the component is no longer needed.

Before (what looks like a shadow is actually the extra list being
rendered with a bit of padding):

![image](https://github.com/user-attachments/assets/5ba06ac9-046c-4fbd-8b46-b077b8a0570b)

After:

![image](https://github.com/user-attachments/assets/64270582-1221-4bdf-a85b-c24ce23bd4a3)
2025-03-10 14:49:26 +01:00
..
FeatureStrategyConstraints Strategy docs updates (#8711) 2024-12-11 10:38:39 +01:00
FeatureStrategyCreate chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
FeatureStrategyEdit chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
FeatureStrategyEmpty Fix: weird strategy spacing on envs without release plans (#9466) 2025-03-10 14:49:26 +01:00
FeatureStrategyForm feat: new environment box (#9342) 2025-02-25 10:34:36 +00:00
FeatureStrategyIcon chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
FeatureStrategyIcons chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
FeatureStrategyMenu chore: new add release plan dialog (#9389) 2025-02-28 10:57:20 +00:00
FeatureStrategyProdGuard chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
FeatureStrategySegment Segment view for strategy evaluation (#9399) 2025-02-28 15:15:25 +01:00
FeatureStrategyType fix: strategy parameters UI (#7713) 2024-08-02 11:11:58 +02:00
featureStrategy.utils.ts fix: add collaborators to ignored props for feature diff notif (#7877) 2024-08-14 13:46:03 +02:00