1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00

feat: release plans nav menu item and icon suggestion

This commit is contained in:
David Leek 2024-10-17 08:07:08 +02:00
parent 3f8d4c3538
commit b4d377ae3e
No known key found for this signature in database
GPG Key ID: 515EE0F1BB6D0BE1
5 changed files with 17 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

@ -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: {