diff --git a/frontend/src/component/admin/license/License.tsx b/frontend/src/component/admin/license/License.tsx index f795e6b3f5..40d4e2e2a3 100644 --- a/frontend/src/component/admin/license/License.tsx +++ b/frontend/src/component/admin/license/License.tsx @@ -80,19 +80,27 @@ export const License = () => { Customer - {license?.customer} + {license.customer} + + + + + Instance Name + + + {license.instanceName} Plan - {license?.plan} + {license.plan} Seats - {license?.seats} + {license.seats} diff --git a/frontend/src/hooks/api/getters/useLicense/useLicense.ts b/frontend/src/hooks/api/getters/useLicense/useLicense.ts index 9660aa3ccd..e740a1f01b 100644 --- a/frontend/src/hooks/api/getters/useLicense/useLicense.ts +++ b/frontend/src/hooks/api/getters/useLicense/useLicense.ts @@ -21,6 +21,7 @@ export interface License { license?: { token: string; customer: string; + instanceName: string; plan: string; seats: number; expireAt: Date; diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 038467708b..7ea030febc 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -90,6 +90,7 @@ exports[`should create default config 1`] = ` "embedProxy": true, "embedProxyFrontend": true, "enableLicense": false, + "enableLicenseChecker": false, "encryptEmails": false, "executiveDashboard": false, "extendedUsageMetrics": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 4fd63ab5fd..d00990d142 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -7,6 +7,7 @@ export type IFlagKey = | 'anonymiseEventLog' | 'encryptEmails' | 'enableLicense' + | 'enableLicenseChecker' | 'embedProxy' | 'embedProxyFrontend' | 'responseTimeWithAppNameKillSwitch' @@ -55,6 +56,7 @@ export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; const flags: IFlags = { anonymiseEventLog: false, enableLicense: false, + enableLicenseChecker: false, embedProxy: parseEnvVarBoolean( process.env.UNLEASH_EXPERIMENTAL_EMBED_PROXY, true,