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:
parent
d3215335c9
commit
4b02d6aa9c
@ -0,0 +1,5 @@
|
||||
import { VFC } from 'react';
|
||||
|
||||
export const ExecutiveDashboard: VFC = () => {
|
||||
return <>test</>;
|
||||
};
|
@ -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",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
@ -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',
|
||||
|
@ -75,6 +75,7 @@ export type UiFlags = {
|
||||
newStrategyConfigurationFeedback?: boolean;
|
||||
extendedUsageMetricsUI?: boolean;
|
||||
adminTokenKillSwitch?: boolean;
|
||||
executiveDashboard?: boolean;
|
||||
};
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -90,6 +90,7 @@ exports[`should create default config 1`] = `
|
||||
"embedProxyFrontend": true,
|
||||
"enableLicense": false,
|
||||
"encryptEmails": false,
|
||||
"executiveDashboard": false,
|
||||
"extendedUsageMetrics": false,
|
||||
"extendedUsageMetricsUI": false,
|
||||
"featureSearchAPI": false,
|
||||
|
@ -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 = {
|
||||
|
@ -50,6 +50,7 @@ process.nextTick(async () => {
|
||||
featureSearchFeedback: true,
|
||||
newStrategyConfigurationFeedback: true,
|
||||
extendedUsageMetricsUI: true,
|
||||
executiveDashboard: true,
|
||||
},
|
||||
},
|
||||
authentication: {
|
||||
|
Loading…
Reference in New Issue
Block a user