From c8f0f7f6542c89739bac706a4fba1f227c2c2b79 Mon Sep 17 00:00:00 2001 From: Alexandre Couedelo Date: Fri, 14 Feb 2025 15:46:37 +0000 Subject: [PATCH 1/4] feat: extract the CortexInsightsCard, so I can be added to any page --- src/index.ts | 16 ++++++++++++++++ src/plugin.ts | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/src/index.ts b/src/index.ts index 652cb57f..32fdd177 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Cortex Applications, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ /* * Copyright 2024 Cortex Applications, Inc. * @@ -26,6 +41,7 @@ export { SystemCortexContent, extendableCortexPlugin, CortexHomepage, + CortexInsightsCard, } from './plugin'; export { extensionApiRef } from './api/ExtensionApi'; export type { CortexScorecardWidgetProps } from './components/CortexScorecardWidget/CortexScorecardWidget'; diff --git a/src/plugin.ts b/src/plugin.ts index 63479127..d2b1bc30 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Cortex Applications, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ /* * Copyright 2024 Cortex Applications, Inc. * @@ -202,3 +217,15 @@ export const CortexHomepage = cortexPlugin.provide( }, }), ); + +export const CortexInsightsCard = cortexPlugin.provide( + createComponentExtension({ + name: 'CortexHomepage', + component: { + lazy: () => + import('./components/Homepage/HomepageInsights').then( + m => m.HomepageInsights, + ), + }, + }), +); From c1cff0caf403717e7fd1b50f24ccaf0de8cdd5f5 Mon Sep 17 00:00:00 2001 From: Alexandre Couedelo Date: Fri, 14 Feb 2025 17:26:15 +0000 Subject: [PATCH 2/4] fix: remove duplicate Copyright --- src/index.ts | 15 --------------- src/plugin.ts | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/src/index.ts b/src/index.ts index 32fdd177..19aff52f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,21 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* - * Copyright 2024 Cortex Applications, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ import CortexIconComponent from './assets/cortex.icon.svg'; import { IconComponent } from '@backstage/core-plugin-api'; import('@cortexapps/birdseye/index.css' as any); diff --git a/src/plugin.ts b/src/plugin.ts index d2b1bc30..297771b6 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -13,21 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* - * Copyright 2024 Cortex Applications, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ import { BackstagePlugin, createApiFactory, From b39f6dd475abbcb4ed921cdbfdb885d0f925af5c Mon Sep 17 00:00:00 2001 From: Alexandre Couedelo Date: Fri, 14 Feb 2025 17:27:38 +0000 Subject: [PATCH 3/4] fix: component name --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 297771b6..b6c65c4d 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -205,7 +205,7 @@ export const CortexHomepage = cortexPlugin.provide( export const CortexInsightsCard = cortexPlugin.provide( createComponentExtension({ - name: 'CortexHomepage', + name: 'CortexInsightsCard', component: { lazy: () => import('./components/Homepage/HomepageInsights').then( From 9d89217f0188685853d715d79bf5677410f69218 Mon Sep 17 00:00:00 2001 From: Alexandre Couedelo Date: Mon, 17 Feb 2025 10:20:55 +0000 Subject: [PATCH 4/4] chore: bump version to 2.13.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d4a755b9..4295bc98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cortexapps/backstage-plugin", - "version": "2.13.5", + "version": "2.13.6", "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0",