1
0
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:
David Leek 2024-10-18 08:23:52 +02:00 committed by GitHub
parent 54a6b036db
commit d9646edcfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 31 additions and 1 deletions

View File

@ -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,
};

View File

@ -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": {},

View File

@ -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',

View File

@ -0,0 +1,3 @@
export const ReleaseManagement = () => {
return null;
};

View File

@ -92,6 +92,7 @@ export type UiFlags = {
personalDashboardUI?: boolean;
purchaseAdditionalEnvironments?: boolean;
unleashAI?: boolean;
releasePlans?: boolean;
};
export interface IVersionInfo {

View File

@ -57,7 +57,7 @@ process.nextTick(async () => {
unleashAI: true,
webhookDomainLogging: true,
addonUsageMetrics: true,
releasePlans: true,
releasePlans: false,
},
},
authentication: {