1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/frontend/src/component
Thomas Heartman d32990ec4c
fix: make loader not exlpode to 100vh in unnecessary locations (#7589)
This change fixes an issue with the loader where it would explode its
parent component to 100vh even when that was not called for.

To do so, I've added the a new `type` prop to the component, to
distinguish between `fullscreen` and `inline` usage. The `fullscreen`
type sets the height to 100vh, while the `inline` type sets it to
100%.

Now, this doesn't directly make the loader fullscreen (it just makes
sure it's at least as tall as the screen), so maybe the prop name is
misleading. I'd be happy to change it (or to even extract this into
two separate components) if that's preferable. Other potential prop
names could be `height`, which is very direct, or `usage`, which I
think better describes what we do. Like with `type`, I'd like to
communicate the intended behavior more that the actual implementation,
so I'm leaning towards either `type` or `usage`.

## Screenies

I've gone through all the usages of the loader, and checked how each one
works. Here they are:

### Loader in environment variants

I wasn't able to trigger this manually, but it's apparently there

Old (ignore the banner placement; that's firefox's screenshot tool
acting up)

![image](https://github.com/user-attachments/assets/f5d0a709-6815-4838-9ad4-c8f79a54ad0e)

New:

![image](https://github.com/user-attachments/assets/c7538146-b8af-4253-89ed-55d1eb37d6a5)

### Project setting forms

Old:

![image](https://github.com/user-attachments/assets/f8b55899-4483-470a-8d3a-3d11761ec8c7)

New:

![image](https://github.com/user-attachments/assets/29157004-6662-494b-9939-2f34977a9c63)

### Rollout strategy

Old:

![image](https://github.com/user-attachments/assets/5c699a06-37bd-4b3b-a3e3-f613ca7c88d5)

New (no discernible change):

![image](https://github.com/user-attachments/assets/f52178fe-9d26-4ebb-bd48-8a1c4a7e2f04)

### Advanced playground

Old:

![image](https://github.com/user-attachments/assets/43f7183b-cefc-4e29-961e-5d7e18d29be9)

New:

![image](https://github.com/user-attachments/assets/082d94dc-36e0-483c-b7a9-bd75e727c0d5)

### Loading screen / initial redirect

Old:

![image](https://github.com/user-attachments/assets/dbb8b1af-d585-4d48-8431-5379afd4f653)

New (no new component props):

![image](https://github.com/user-attachments/assets/842e766f-0ea7-4396-9696-b88509e24d77)

New (with new props):

![image](https://github.com/user-attachments/assets/e6ffd303-f24e-478d-88d9-b4fa57f307e4)
2024-07-15 14:41:45 +02:00
..
accessOverview
admin feat: API Tokens limit - UI (#7561) 2024-07-12 14:44:46 +02:00
application feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
archive chore: rename toggle to flag #7 (#7125) 2024-05-23 13:19:49 +03:00
banners feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
changeRequest feat: configurable strategies limit (#7488) 2024-07-01 10:03:26 +02:00
commandBar chore: use a command bar shadow thats visible in darkmode as well (#7551) 2024-07-05 14:54:11 +02:00
common fix: make loader not exlpode to 100vh in unnecessary locations (#7589) 2024-07-15 14:41:45 +02:00
context feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
demo feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
environments chore: don't prevent users from entering the env form when they're at the limit (#7549) 2024-07-05 13:11:00 +02:00
events
feature feat: add limit warning for feature flags (#7556) 2024-07-08 15:06:21 +02:00
featureTypes chore: rename toggle to flag #2 (#7097) 2024-05-22 08:20:11 +03:00
feedback feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
feedbackNew feat: command bar feedback (#7485) 2024-07-01 14:15:51 +03:00
filter feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
insights feat: user seats component (#7583) 2024-07-12 15:39:37 +02:00
integrations feat: New Relic integration (#7492) 2024-07-05 15:16:00 +02:00
layout fix: sidebar update active when navigated via command menu. (#7545) 2024-07-05 13:28:00 +03:00
loginHistory task: upgraded semver dependency (and biome) (#7272) 2024-06-04 15:01:43 +02:00
maintenance
menu feat: command bar poc (#7350) 2024-06-11 15:27:59 +03:00
playground/Playground feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
project chore: fix project name overflow (#7575) 2024-07-11 10:00:38 +02:00
providers feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
segments feat: limit segments component (#7553) 2024-07-08 09:03:08 +02:00
signals feat: what's new in Unleash (#7497) 2024-07-03 09:54:38 +02:00
splash
strategies feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
tags feat: upgrade from react v17 to v18 (#7265) 2024-06-11 13:59:52 +03:00
user feat: Disallow repeating last 5 passwords. (#7552) 2024-07-09 16:18:35 +02:00
App.tsx fix: make loader not exlpode to 100vh in unnecessary locations (#7589) 2024-07-15 14:41:45 +02:00
InitialRedirect.tsx