1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-18 11:14:57 +02:00
unleash.unleash/frontend/src/component/admin
Nuno Góis 8e46bda8e1
chore: fix admin routes should respect plan data (#9828)
https://linear.app/unleash/issue/2-2852/sidebar-bug-with-enterprisepro-only-route-constraints

Fixes an issue where admin routes didn't respect plan data if their flag
was enabled.

First noticed here:
https://github.com/Unleash/unleash/pull/8469#discussion_r1804361222

Issue was that only `adminRoutes` respected plan data. `mainNavRoutes`
and `primaryRoutes` did not follow the same filtering logic.

We can probably clean this up even further in the future, but didn't
want to extend the PR too much.

Also adds tests to validate the intended behavior.
2025-04-24 15:44:06 +01:00
..
apiToken chore: remove references to admin token kill switch (#9324) 2025-02-19 09:08:21 +01:00
auth feat: move admin menu into nav sidebar (#9774) 2025-04-16 14:58:37 +02:00
banners
billing fix: linter rule for hooks (#9660) 2025-04-01 14:33:17 +02:00
cors chore: remove granularAdminPermissions flag (#9467) 2025-03-10 16:36:59 +01:00
groups feat: allow SCIM user deletion (#9190) 2025-02-10 14:17:46 +02:00
instance-admin
instance-privacy
invoice
license
maintenance
network fix(frontend): Now only shows average daily requests when viewing daily (#9758) 2025-04-15 08:38:56 +00:00
roles chore: remove granularAdminPermissions flag (#9467) 2025-03-10 16:36:59 +01:00
serviceAccounts Fix broken anchors in docs (#9406) 2025-03-11 11:45:40 +01:00
users feat: remove access overview flag making it GA ready (#9654) 2025-03-31 14:33:38 +02:00
Admin.tsx feat: admin menu (#9617) 2025-03-26 15:08:56 +01:00
AdminHome.tsx chore: admin menu main layout tweaks (#9671) 2025-04-01 14:16:26 +02:00
AdminIndex.tsx feat: admin menu (#9617) 2025-03-26 15:08:56 +01:00
AdminRedirect.tsx
adminRoutes.ts feat: move admin menu into nav sidebar (#9774) 2025-04-16 14:58:37 +02:00
filterAdminRoutes.test.ts chore: fix admin routes should respect plan data (#9828) 2025-04-24 15:44:06 +01:00
filterRoutesByPlanData.ts chore: fix admin routes should respect plan data (#9828) 2025-04-24 15:44:06 +01:00
LazyAdmin.tsx
LazyAdminExport.tsx
oldAdminRoutes.ts feat: admin menu (#9617) 2025-03-26 15:08:56 +01:00
useAdminRoutes.ts chore: fix admin routes should respect plan data (#9828) 2025-04-24 15:44:06 +01:00