diff --git a/frontend/src/component/application/ApplicationOverview.test.tsx b/frontend/src/component/application/ApplicationOverview.test.tsx index dde0dd0df3..ca037f0b91 100644 --- a/frontend/src/component/application/ApplicationOverview.test.tsx +++ b/frontend/src/component/application/ApplicationOverview.test.tsx @@ -26,6 +26,7 @@ test('Display application overview with environments', async () => { sdks: ['unleash-client-node:5.5.0-beta.0'], }, ], + issues: [], featureCount: 1, projects: ['default'], }); @@ -53,6 +54,7 @@ test('Display application overview without environments', async () => { setupApi({ environments: [], featureCount: 0, + issues: [], projects: ['default'], }); render( diff --git a/frontend/src/openapi/models/applicationOverviewIssuesSchema.ts b/frontend/src/openapi/models/applicationOverviewIssuesSchema.ts new file mode 100644 index 0000000000..8e6a21ca99 --- /dev/null +++ b/frontend/src/openapi/models/applicationOverviewIssuesSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ApplicationOverviewIssuesSchemaType } from './applicationOverviewIssuesSchemaType'; + +/** + * This list of issues that might be wrong with the application + */ +export interface ApplicationOverviewIssuesSchema { + /** The list of issues that might be wrong with the application */ + items: string[]; + /** The name of this action. */ + type: ApplicationOverviewIssuesSchemaType; +} diff --git a/frontend/src/openapi/models/applicationOverviewIssuesSchemaType.ts b/frontend/src/openapi/models/applicationOverviewIssuesSchemaType.ts new file mode 100644 index 0000000000..60dd7739d7 --- /dev/null +++ b/frontend/src/openapi/models/applicationOverviewIssuesSchemaType.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ApplicationOverviewIssuesSchemaType = + (typeof ApplicationOverviewIssuesSchemaType)[keyof typeof ApplicationOverviewIssuesSchemaType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ApplicationOverviewIssuesSchemaType = { + missingFeatures: 'missingFeatures', + missingStrategies: 'missingStrategies', +} as const; diff --git a/frontend/src/openapi/models/applicationOverviewSchema.ts b/frontend/src/openapi/models/applicationOverviewSchema.ts index b592c398fa..f8b7c6483c 100644 --- a/frontend/src/openapi/models/applicationOverviewSchema.ts +++ b/frontend/src/openapi/models/applicationOverviewSchema.ts @@ -4,6 +4,7 @@ * See `gen:api` script in package.json */ import type { ApplicationOverviewEnvironmentSchema } from './applicationOverviewEnvironmentSchema'; +import type { ApplicationOverviewIssuesSchema } from './applicationOverviewIssuesSchema'; /** * Data about an application that's connected to Unleash via an SDK. @@ -13,6 +14,8 @@ export interface ApplicationOverviewSchema { environments: ApplicationOverviewEnvironmentSchema[]; /** The number of features the application has been using. */ featureCount: number; + /** This list of issues that might be wrong with the application */ + issues: ApplicationOverviewIssuesSchema[]; /** The list of projects the application has been using. */ projects: string[]; } diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index c85c4bcd61..57093b6462 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -91,6 +91,8 @@ export * from './apiTokenSchema'; export * from './apiTokenSchemaType'; export * from './apiTokensSchema'; export * from './applicationOverviewEnvironmentSchema'; +export * from './applicationOverviewIssuesSchema'; +export * from './applicationOverviewIssuesSchemaType'; export * from './applicationOverviewSchema'; export * from './applicationSchema'; export * from './applicationUsageSchema';