1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00
unleash.unleash/frontend/src
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
..
__mocks__
assets chore: add release management to new in unleash (#9257) 2025-02-07 14:33:25 +00:00
component feat(1-3379): add stale badge to the new header (#9320) 2025-02-18 12:34:46 +00:00
constants
contexts
hooks fix: delete project segment with change request (#9315) 2025-02-17 10:41:56 +01:00
interfaces feat: connection count usage (#9294) 2025-02-11 16:15:45 +01:00
openapi chore(1-3267): add orval schemas for the new API endpoint (#9164) 2025-01-29 09:11:29 +01:00
themes refactor: MuiTab font sizes (#9296) 2025-02-12 15:13:22 +01:00
types
utils chore: use union type for traffic search data (#9221) 2025-02-05 10:50:39 +00:00
index.tsx
setupTests.ts
vite-env.d.ts