mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02:00
feat: release plans nav menu item and icon suggestion (#8469)
This commit is contained in:
parent
54a6b036db
commit
d9646edcfc
@ -27,6 +27,7 @@ import BillingIcon from '@mui/icons-material/CreditCardOutlined';
|
||||
import EventLogIcon from '@mui/icons-material/EventNoteOutlined';
|
||||
import GitHubIcon from '@mui/icons-material/GitHub';
|
||||
import LibraryBooksIcon from '@mui/icons-material/LibraryBooks';
|
||||
import LaunchIcon from '@mui/icons-material/Launch';
|
||||
import type { FC } from 'react';
|
||||
|
||||
// TODO: move to routes
|
||||
@ -56,6 +57,7 @@ const icons: Record<string, typeof SvgIcon> = {
|
||||
'/admin/cors': CorsIcon,
|
||||
'/admin/billing': BillingIcon,
|
||||
'/history': EventLogIcon,
|
||||
'/releases-management': LaunchIcon,
|
||||
GitHub: GitHubIcon,
|
||||
Documentation: LibraryBooksIcon,
|
||||
};
|
||||
|
@ -230,6 +230,20 @@ exports[`returns all baseRoutes 1`] = `
|
||||
"title": "Strategy types",
|
||||
"type": "protected",
|
||||
},
|
||||
{
|
||||
"component": [Function],
|
||||
"enterprise": true,
|
||||
"flag": "releasePlans",
|
||||
"menu": {
|
||||
"advanced": true,
|
||||
"mode": [
|
||||
"enterprise",
|
||||
],
|
||||
},
|
||||
"path": "/releases-management",
|
||||
"title": "Release management",
|
||||
"type": "protected",
|
||||
},
|
||||
{
|
||||
"component": [Function],
|
||||
"menu": {},
|
||||
|
@ -48,6 +48,7 @@ import { Application } from 'component/application/Application';
|
||||
import { Signals } from 'component/signals/Signals';
|
||||
import { LazyCreateProject } from '../project/Project/CreateProject/LazyCreateProject';
|
||||
import { PersonalDashboard } from '../personalDashboard/PersonalDashboard';
|
||||
import { ReleaseManagement } from 'component/releases/ReleaseManagement';
|
||||
|
||||
export const routes: IRoute[] = [
|
||||
// Splash
|
||||
@ -246,6 +247,15 @@ export const routes: IRoute[] = [
|
||||
type: 'protected',
|
||||
menu: { mobile: true, advanced: true },
|
||||
},
|
||||
{
|
||||
path: '/releases-management',
|
||||
title: 'Release management',
|
||||
component: ReleaseManagement,
|
||||
type: 'protected',
|
||||
menu: { advanced: true, mode: ['enterprise'] },
|
||||
flag: 'releasePlans',
|
||||
enterprise: true,
|
||||
},
|
||||
{
|
||||
path: '/environments/create',
|
||||
title: 'Environments',
|
||||
|
3
frontend/src/component/releases/ReleaseManagement.tsx
Normal file
3
frontend/src/component/releases/ReleaseManagement.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
export const ReleaseManagement = () => {
|
||||
return null;
|
||||
};
|
@ -92,6 +92,7 @@ export type UiFlags = {
|
||||
personalDashboardUI?: boolean;
|
||||
purchaseAdditionalEnvironments?: boolean;
|
||||
unleashAI?: boolean;
|
||||
releasePlans?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -57,7 +57,7 @@ process.nextTick(async () => {
|
||||
unleashAI: true,
|
||||
webhookDomainLogging: true,
|
||||
addonUsageMetrics: true,
|
||||
releasePlans: true,
|
||||
releasePlans: false,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user