1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/frontend/src/component/feature/FeatureView
Thomas Heartman 14b6b38238
feat(1-3379): add stale badge to the new header (#9320)
Without this, there's no way to tell if a flag is stale or not on the
flag page, so we're adding it back in. However, we'll only show the
badge if it's stale, not if it's an active flag.

Stale flag with badge:

![image](https://github.com/user-attachments/assets/eded97ab-0bba-41e5-8e1c-37cc90684c63)

When it wraps:

![image](https://github.com/user-attachments/assets/223eb672-20d2-4f3c-a5d9-34c3b739ce5e)

To make the badge line up properly when it wraps, I removed the
hard-coded margin in the badge. To counteract that, I've also removed
the hard-coded margin in the "copy name" button and switched to using
flex gaps to sort that.

It still looks right.

Before:

![image](https://github.com/user-attachments/assets/d945b067-c182-4448-967f-5505cf2e47ca)

After:

![image](https://github.com/user-attachments/assets/3b78b9fc-82b9-4d21-a53a-a3849819e916)
2025-02-18 12:34:46 +00:00
..
FeatureEnvironmentSeen feat: make panels collapsible (#8395) 2024-10-09 14:25:58 +02:00
FeatureLog
FeatureMetrics chore: fix "key" prop issues in front end tests (#8459) 2024-10-16 14:57:43 +02:00
FeatureNotFound
FeatureOverview feat: new flag info box (#9308) 2025-02-18 10:30:52 +01:00
FeatureSettings chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
FeatureVariants chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
Collaborators.test.tsx
Collaborators.tsx refactor: make avatar group more customizable (#7989) 2024-08-27 14:37:45 +02:00
FeatureView.tsx refactor: move feature overview header into separate file (#9319) 2025-02-18 11:35:40 +01:00
FeatureViewHeader.tsx feat(1-3379): add stale badge to the new header (#9320) 2025-02-18 12:34:46 +00:00
FeatureViewLazyExport.tsx
LazyFeatureView.tsx