mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +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 EventLogIcon from '@mui/icons-material/EventNoteOutlined';
|
||||||
import GitHubIcon from '@mui/icons-material/GitHub';
|
import GitHubIcon from '@mui/icons-material/GitHub';
|
||||||
import LibraryBooksIcon from '@mui/icons-material/LibraryBooks';
|
import LibraryBooksIcon from '@mui/icons-material/LibraryBooks';
|
||||||
|
import LaunchIcon from '@mui/icons-material/Launch';
|
||||||
import type { FC } from 'react';
|
import type { FC } from 'react';
|
||||||
|
|
||||||
// TODO: move to routes
|
// TODO: move to routes
|
||||||
@ -56,6 +57,7 @@ const icons: Record<string, typeof SvgIcon> = {
|
|||||||
'/admin/cors': CorsIcon,
|
'/admin/cors': CorsIcon,
|
||||||
'/admin/billing': BillingIcon,
|
'/admin/billing': BillingIcon,
|
||||||
'/history': EventLogIcon,
|
'/history': EventLogIcon,
|
||||||
|
'/releases-management': LaunchIcon,
|
||||||
GitHub: GitHubIcon,
|
GitHub: GitHubIcon,
|
||||||
Documentation: LibraryBooksIcon,
|
Documentation: LibraryBooksIcon,
|
||||||
};
|
};
|
||||||
|
@ -230,6 +230,20 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
"title": "Strategy types",
|
"title": "Strategy types",
|
||||||
"type": "protected",
|
"type": "protected",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"component": [Function],
|
||||||
|
"enterprise": true,
|
||||||
|
"flag": "releasePlans",
|
||||||
|
"menu": {
|
||||||
|
"advanced": true,
|
||||||
|
"mode": [
|
||||||
|
"enterprise",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"path": "/releases-management",
|
||||||
|
"title": "Release management",
|
||||||
|
"type": "protected",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"component": [Function],
|
"component": [Function],
|
||||||
"menu": {},
|
"menu": {},
|
||||||
|
@ -48,6 +48,7 @@ import { Application } from 'component/application/Application';
|
|||||||
import { Signals } from 'component/signals/Signals';
|
import { Signals } from 'component/signals/Signals';
|
||||||
import { LazyCreateProject } from '../project/Project/CreateProject/LazyCreateProject';
|
import { LazyCreateProject } from '../project/Project/CreateProject/LazyCreateProject';
|
||||||
import { PersonalDashboard } from '../personalDashboard/PersonalDashboard';
|
import { PersonalDashboard } from '../personalDashboard/PersonalDashboard';
|
||||||
|
import { ReleaseManagement } from 'component/releases/ReleaseManagement';
|
||||||
|
|
||||||
export const routes: IRoute[] = [
|
export const routes: IRoute[] = [
|
||||||
// Splash
|
// Splash
|
||||||
@ -246,6 +247,15 @@ export const routes: IRoute[] = [
|
|||||||
type: 'protected',
|
type: 'protected',
|
||||||
menu: { mobile: true, advanced: true },
|
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',
|
path: '/environments/create',
|
||||||
title: 'Environments',
|
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;
|
personalDashboardUI?: boolean;
|
||||||
purchaseAdditionalEnvironments?: boolean;
|
purchaseAdditionalEnvironments?: boolean;
|
||||||
unleashAI?: boolean;
|
unleashAI?: boolean;
|
||||||
|
releasePlans?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
@ -57,7 +57,7 @@ process.nextTick(async () => {
|
|||||||
unleashAI: true,
|
unleashAI: true,
|
||||||
webhookDomainLogging: true,
|
webhookDomainLogging: true,
|
||||||
addonUsageMetrics: true,
|
addonUsageMetrics: true,
|
||||||
releasePlans: true,
|
releasePlans: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user