1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

Executive Dashboard page setup (#5949)

This commit is contained in:
Tymoteusz Czech 2024-01-18 12:32:25 +01:00 committed by GitHub
parent d3215335c9
commit 4b02d6aa9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,5 @@
import { VFC } from 'react';
export const ExecutiveDashboard: VFC = () => {
return <>test</>;
};

View File

@ -426,5 +426,14 @@ exports[`returns all baseRoutes 1`] = `
"title": "Profile",
"type": "protected",
},
{
"component": [Function],
"enterprise": true,
"flag": "executiveDashboard",
"menu": {},
"path": "/dashboard",
"title": "Executive dashboard",
"type": "protected",
},
]
`;

View File

@ -45,6 +45,7 @@ import { FeatureTypesList } from 'component/featureTypes/FeatureTypesList';
import { ViewIntegration } from 'component/integrations/ViewIntegration/ViewIntegration';
import { ApplicationList } from '../application/ApplicationList/ApplicationList';
import { AddonRedirect } from 'component/integrations/AddonRedirect/AddonRedirect';
import { ExecutiveDashboard } from 'component/executiveDashboard/ExecutiveDashboard';
export const routes: IRoute[] = [
// Splash
@ -429,6 +430,17 @@ export const routes: IRoute[] = [
menu: {},
},
// Executive dashboard
{
path: '/dashboard',
title: 'Executive dashboard',
component: ExecutiveDashboard,
type: 'protected',
menu: {},
flag: 'executiveDashboard',
enterprise: true,
},
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
{
path: '/login',

View File

@ -75,6 +75,7 @@ export type UiFlags = {
newStrategyConfigurationFeedback?: boolean;
extendedUsageMetricsUI?: boolean;
adminTokenKillSwitch?: boolean;
executiveDashboard?: boolean;
};
export interface IVersionInfo {

View File

@ -90,6 +90,7 @@ exports[`should create default config 1`] = `
"embedProxyFrontend": true,
"enableLicense": false,
"encryptEmails": false,
"executiveDashboard": false,
"extendedUsageMetrics": false,
"extendedUsageMetricsUI": false,
"featureSearchAPI": false,

View File

@ -44,7 +44,8 @@ export type IFlagKey =
| 'extendedUsageMetrics'
| 'extendedUsageMetricsUI'
| 'adminTokenKillSwitch'
| 'changeRequestConflictHandling';
| 'changeRequestConflictHandling'
| 'executiveDashboard';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -203,6 +204,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_CHANGE_REQUEST_CONFLICT_HANDLING,
false,
),
executiveDashboard: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_EXECUTIVE_DASHBOARD,
false,
),
};
export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -50,6 +50,7 @@ process.nextTick(async () => {
featureSearchFeedback: true,
newStrategyConfigurationFeedback: true,
extendedUsageMetricsUI: true,
executiveDashboard: true,
},
},
authentication: {