From 402749b005318a4c40d88ca8bcd40b3daed5c146 Mon Sep 17 00:00:00 2001 From: Jonathan Roebuck Date: Mon, 10 Jul 2023 16:00:31 +0100 Subject: [PATCH 1/9] added support to Lighthouse for new backend Signed-off-by: Jonathan Roebuck --- .changeset/pretty-jeans-smell.md | 5 ++ packages/backend-next/package.json | 1 + packages/backend-next/src/index.ts | 4 ++ plugins/lighthouse-backend/README.md | 17 ++++++ plugins/lighthouse-backend/api-report.md | 4 ++ plugins/lighthouse-backend/package.json | 1 + plugins/lighthouse-backend/src/index.ts | 3 +- plugins/lighthouse-backend/src/plugin.ts | 55 +++++++++++++++++++ .../service/{plugin.ts => createScheduler.ts} | 0 yarn.lock | 2 + 10 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 .changeset/pretty-jeans-smell.md create mode 100644 plugins/lighthouse-backend/src/plugin.ts rename plugins/lighthouse-backend/src/service/{plugin.ts => createScheduler.ts} (100%) diff --git a/.changeset/pretty-jeans-smell.md b/.changeset/pretty-jeans-smell.md new file mode 100644 index 0000000000..9092a53deb --- /dev/null +++ b/.changeset/pretty-jeans-smell.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-lighthouse-backend': patch +--- + +Added support for the [new backend system](https://backstage.io/docs/backend-system/) diff --git a/packages/backend-next/package.json b/packages/backend-next/package.json index e33db57f00..a0ff5b6384 100644 --- a/packages/backend-next/package.json +++ b/packages/backend-next/package.json @@ -37,6 +37,7 @@ "@backstage/plugin-devtools-backend": "workspace:^", "@backstage/plugin-entity-feedback-backend": "workspace:^", "@backstage/plugin-kubernetes-backend": "workspace:^", + "@backstage/plugin-lighthouse-backend": "workspace:^", "@backstage/plugin-linguist-backend": "workspace:^", "@backstage/plugin-permission-backend": "workspace:^", "@backstage/plugin-permission-common": "workspace:^", diff --git a/packages/backend-next/src/index.ts b/packages/backend-next/src/index.ts index e03e03af38..fa7561e211 100644 --- a/packages/backend-next/src/index.ts +++ b/packages/backend-next/src/index.ts @@ -38,6 +38,7 @@ import { linguistPlugin } from '@backstage/plugin-linguist-backend'; import { devtoolsPlugin } from '@backstage/plugin-devtools-backend'; import { TaskScheduleDefinition } from '@backstage/backend-tasks'; import { adrPlugin } from '@backstage/plugin-adr-backend'; +import { lighthousePlugin } from '@backstage/plugin-lighthouse-backend'; const backend = createBackend(); @@ -94,6 +95,9 @@ backend.add(searchModuleExploreCollator()); // Kubernetes backend.add(kubernetesPlugin()); +// Lighthouse +backend.add(lighthousePlugin()); + // Permissions backend.add(permissionPlugin()); backend.add(permissionModuleAllowAllPolicy()); diff --git a/plugins/lighthouse-backend/README.md b/plugins/lighthouse-backend/README.md index 2c648754b3..c65ec75b75 100644 --- a/plugins/lighthouse-backend/README.md +++ b/plugins/lighthouse-backend/README.md @@ -58,6 +58,23 @@ export default async function createPlugin(env: PluginEnvironment) { + await lighthouse(lighthouseEnv) ``` +#### New Backend System + +The Lighthouse backend plugin has support for the [new backend system](https://backstage.io/docs/backend-system/), here's how you can set that up: + +In your `packages/backend/src/index.ts` make the following changes: + +```diff + import { createBackend } from '@backstage/backend-defaults'; ++ import { lighthousePlugin } from '@backstage/plugin-lighthouse-backend'; + const backend = createBackend(); + // ... other feature additions ++ backend.add( ++ lighthousePlugin(), ++ ); + backend.start(); +``` + ## Configuration You can define how often and when the scheduler should run the audits: diff --git a/plugins/lighthouse-backend/api-report.md b/plugins/lighthouse-backend/api-report.md index b8c028f3dc..25377af92f 100644 --- a/plugins/lighthouse-backend/api-report.md +++ b/plugins/lighthouse-backend/api-report.md @@ -3,6 +3,7 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts +import { BackendFeature } from '@backstage/backend-plugin-api'; import { CatalogClient } from '@backstage/catalog-client'; import { Config } from '@backstage/config'; import { Logger } from 'winston'; @@ -28,5 +29,8 @@ export function createScheduler( options: CreateLighthouseSchedulerOptions, ): Promise; +// @public +export const lighthousePlugin: () => BackendFeature; + // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/lighthouse-backend/package.json b/plugins/lighthouse-backend/package.json index 03a5c6e0fc..c6995da164 100644 --- a/plugins/lighthouse-backend/package.json +++ b/plugins/lighthouse-backend/package.json @@ -39,6 +39,7 @@ }, "dependencies": { "@backstage/backend-common": "workspace:^", + "@backstage/backend-plugin-api": "workspace:^", "@backstage/backend-tasks": "workspace:^", "@backstage/catalog-client": "workspace:^", "@backstage/catalog-model": "workspace:^", diff --git a/plugins/lighthouse-backend/src/index.ts b/plugins/lighthouse-backend/src/index.ts index ee878b9214..5773beed56 100644 --- a/plugins/lighthouse-backend/src/index.ts +++ b/plugins/lighthouse-backend/src/index.ts @@ -14,4 +14,5 @@ * limitations under the License. */ -export * from './service/plugin'; +export * from './service/createScheduler'; +export { lighthousePlugin } from './plugin'; diff --git a/plugins/lighthouse-backend/src/plugin.ts b/plugins/lighthouse-backend/src/plugin.ts new file mode 100644 index 0000000000..7ce332127e --- /dev/null +++ b/plugins/lighthouse-backend/src/plugin.ts @@ -0,0 +1,55 @@ +/* + * Copyright 2023 The Backstage Authors + * + * 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 { loggerToWinstonLogger } from '@backstage/backend-common'; +import { + createBackendPlugin, + coreServices, +} from '@backstage/backend-plugin-api'; +import { CatalogClient } from '@backstage/catalog-client'; +import { createScheduler } from './service/createScheduler'; + +/** + * Lighthouse backend plugin + * + * @public + */ +export const lighthousePlugin = createBackendPlugin({ + pluginId: 'lighthouse', + register(env) { + env.registerInit({ + deps: { + config: coreServices.config, + discovery: coreServices.discovery, + logger: coreServices.logger, + scheduler: coreServices.scheduler, + tokenManager: coreServices.tokenManager, + }, + async init({ config, discovery, logger, scheduler, tokenManager }) { + const winstonLogger = loggerToWinstonLogger(logger); + const catalogClient = new CatalogClient({ discoveryApi: discovery }); + + await createScheduler({ + catalogClient, + config, + logger: winstonLogger, + scheduler, + tokenManager, + }); + }, + }); + }, +}); diff --git a/plugins/lighthouse-backend/src/service/plugin.ts b/plugins/lighthouse-backend/src/service/createScheduler.ts similarity index 100% rename from plugins/lighthouse-backend/src/service/plugin.ts rename to plugins/lighthouse-backend/src/service/createScheduler.ts diff --git a/yarn.lock b/yarn.lock index 52a770e2b8..6583ba3325 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7688,6 +7688,7 @@ __metadata: resolution: "@backstage/plugin-lighthouse-backend@workspace:plugins/lighthouse-backend" dependencies: "@backstage/backend-common": "workspace:^" + "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-tasks": "workspace:^" "@backstage/catalog-client": "workspace:^" "@backstage/catalog-model": "workspace:^" @@ -24977,6 +24978,7 @@ __metadata: "@backstage/plugin-devtools-backend": "workspace:^" "@backstage/plugin-entity-feedback-backend": "workspace:^" "@backstage/plugin-kubernetes-backend": "workspace:^" + "@backstage/plugin-lighthouse-backend": "workspace:^" "@backstage/plugin-linguist-backend": "workspace:^" "@backstage/plugin-permission-backend": "workspace:^" "@backstage/plugin-permission-common": "workspace:^" From 695196600444e3ad73132c7c1ba083c6f38524a1 Mon Sep 17 00:00:00 2001 From: Jonathan Roebuck Date: Wed, 12 Jul 2023 09:30:48 +0100 Subject: [PATCH 2/9] Update plugins/lighthouse-backend/README.md tidy up example code in README Co-authored-by: Patrik Oldsberg Signed-off-by: Jonathan Roebuck --- plugins/lighthouse-backend/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/lighthouse-backend/README.md b/plugins/lighthouse-backend/README.md index c65ec75b75..28845d3c73 100644 --- a/plugins/lighthouse-backend/README.md +++ b/plugins/lighthouse-backend/README.md @@ -69,9 +69,7 @@ In your `packages/backend/src/index.ts` make the following changes: + import { lighthousePlugin } from '@backstage/plugin-lighthouse-backend'; const backend = createBackend(); // ... other feature additions -+ backend.add( -+ lighthousePlugin(), -+ ); ++ backend.add(lighthousePlugin()); backend.start(); ``` From 4722c948c21734cd754e98ed4c54d12b52966425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20=C5=A0neberger?= Date: Wed, 12 Jul 2023 10:33:33 +0200 Subject: [PATCH 3/9] fix(avatar): Parse unicode characters in name for avatar component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Šneberger --- .changeset/rare-crabs-taste.md | 5 +++++ .github/vale/Vocab/Backstage/accept.txt | 1 + packages/core-components/src/components/Avatar/util.test.ts | 4 ++++ packages/core-components/src/components/Avatar/utils.ts | 5 ++++- 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/rare-crabs-taste.md diff --git a/.changeset/rare-crabs-taste.md b/.changeset/rare-crabs-taste.md new file mode 100644 index 0000000000..9749ae1a1d --- /dev/null +++ b/.changeset/rare-crabs-taste.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-components': patch +--- + +Parse unicode characters in name for avatar component diff --git a/.github/vale/Vocab/Backstage/accept.txt b/.github/vale/Vocab/Backstage/accept.txt index 627e0aa0f3..efd6186405 100644 --- a/.github/vale/Vocab/Backstage/accept.txt +++ b/.github/vale/Vocab/Backstage/accept.txt @@ -402,6 +402,7 @@ Uffizzi ui unbreak Unconference +unicode unmanaged unregister unregistering diff --git a/packages/core-components/src/components/Avatar/util.test.ts b/packages/core-components/src/components/Avatar/util.test.ts index 4d2b5417c0..6581df8b9a 100644 --- a/packages/core-components/src/components/Avatar/util.test.ts +++ b/packages/core-components/src/components/Avatar/util.test.ts @@ -27,6 +27,10 @@ describe('extractInitials', () => { expect(extractInitials('Jenny Doe')).toEqual('JD'); }); + it('extract unicode initials', async () => { + expect(extractInitials('Petr Čech')).toEqual('PČ'); + }); + it('extract single letter for short name', async () => { expect(extractInitials('Doe')).toEqual('D'); }); diff --git a/packages/core-components/src/components/Avatar/utils.ts b/packages/core-components/src/components/Avatar/utils.ts index 4f71d736f1..79627d5996 100644 --- a/packages/core-components/src/components/Avatar/utils.ts +++ b/packages/core-components/src/components/Avatar/utils.ts @@ -28,5 +28,8 @@ export function stringToColor(str: string) { } export function extractInitials(value: string) { - return value.match(/\b\w/g)?.join('').slice(0, 2); + return value + .match(/(? Date: Wed, 12 Jul 2023 10:53:39 +0200 Subject: [PATCH 4/9] update some peer dependencies to silence yarn install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/tricky-toes-train.md | 8 ++++++++ plugins/catalog-unprocessed-entities/package.json | 4 +++- plugins/devtools/package.json | 1 + plugins/nomad/package.json | 3 ++- plugins/puppetdb/package.json | 1 + yarn.lock | 7 ++++++- 6 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .changeset/tricky-toes-train.md diff --git a/.changeset/tricky-toes-train.md b/.changeset/tricky-toes-train.md new file mode 100644 index 0000000000..d93ad81a19 --- /dev/null +++ b/.changeset/tricky-toes-train.md @@ -0,0 +1,8 @@ +--- +'@backstage/plugin-catalog-unprocessed-entities': patch +'@backstage/plugin-devtools': patch +'@backstage/plugin-puppetdb': patch +'@backstage/plugin-nomad': patch +--- + +update some peer dependencies to silence yarn install diff --git a/plugins/catalog-unprocessed-entities/package.json b/plugins/catalog-unprocessed-entities/package.json index eaf671bdd3..97818b538d 100644 --- a/plugins/catalog-unprocessed-entities/package.json +++ b/plugins/catalog-unprocessed-entities/package.json @@ -39,7 +39,9 @@ "react-use": "^17.2.4" }, "peerDependencies": { - "react": "^16.13.1 || ^17.0.0" + "react": "^16.13.1 || ^17.0.0", + "react-dom": "^16.13.1 || ^17.0.0", + "react-router-dom": "6.0.0-beta.0 || ^6.3.0" }, "devDependencies": { "@backstage/cli": "workspace:^", diff --git a/plugins/devtools/package.json b/plugins/devtools/package.json index 9c853e608e..5ef8e07db0 100644 --- a/plugins/devtools/package.json +++ b/plugins/devtools/package.json @@ -44,6 +44,7 @@ "peerDependencies": { "@types/react": "^16.13.1 || ^17.0.0", "react": "^16.13.1 || ^17.0.0", + "react-dom": "^16.13.1 || ^17.0.0", "react-router-dom": "6.0.0-beta.0 || ^6.3.0" }, "devDependencies": { diff --git a/plugins/nomad/package.json b/plugins/nomad/package.json index ed745ee31d..df8fe97db4 100644 --- a/plugins/nomad/package.json +++ b/plugins/nomad/package.json @@ -36,7 +36,8 @@ }, "peerDependencies": { "react": "^16.13.1 || ^17.0.0", - "react-router-dom": "*" + "react-dom": "^16.13.1 || ^17.0.0", + "react-router-dom": "6.0.0-beta.0 || ^6.3.0" }, "devDependencies": { "@backstage/cli": "workspace:^", diff --git a/plugins/puppetdb/package.json b/plugins/puppetdb/package.json index e8a1d2eb6b..1d53a1f03c 100644 --- a/plugins/puppetdb/package.json +++ b/plugins/puppetdb/package.json @@ -47,6 +47,7 @@ }, "peerDependencies": { "react": "^16.13.1 || ^17.0.0", + "react-dom": "^16.13.1 || ^17.0.0", "react-router-dom": "6.0.0-beta.0 || ^6.3.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 52a770e2b8..bf51c8c577 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5983,6 +5983,8 @@ __metadata: react-use: ^17.2.4 peerDependencies: react: ^16.13.1 || ^17.0.0 + react-dom: ^16.13.1 || ^17.0.0 + react-router-dom: 6.0.0-beta.0 || ^6.3.0 languageName: unknown linkType: soft @@ -6448,6 +6450,7 @@ __metadata: peerDependencies: "@types/react": ^16.13.1 || ^17.0.0 react: ^16.13.1 || ^17.0.0 + react-dom: ^16.13.1 || ^17.0.0 react-router-dom: 6.0.0-beta.0 || ^6.3.0 languageName: unknown linkType: soft @@ -7955,7 +7958,8 @@ __metadata: react-use: ^17.2.4 peerDependencies: react: ^16.13.1 || ^17.0.0 - react-router-dom: "*" + react-dom: ^16.13.1 || ^17.0.0 + react-router-dom: 6.0.0-beta.0 || ^6.3.0 languageName: unknown linkType: soft @@ -8405,6 +8409,7 @@ __metadata: react-use: ^17.2.4 peerDependencies: react: ^16.13.1 || ^17.0.0 + react-dom: ^16.13.1 || ^17.0.0 react-router-dom: 6.0.0-beta.0 || ^6.3.0 languageName: unknown linkType: soft From 2d783af0ba84774598c2aa0ae3e3d7d76ed0ae29 Mon Sep 17 00:00:00 2001 From: Jonathan Roebuck Date: Wed, 12 Jul 2023 09:55:59 +0100 Subject: [PATCH 5/9] use catalogServiceRef from plugin-catalog-node for catalogClient Signed-off-by: Jonathan Roebuck --- plugins/lighthouse-backend/package.json | 1 + plugins/lighthouse-backend/src/plugin.ts | 8 ++++---- plugins/lighthouse-backend/src/service/createScheduler.ts | 7 ++----- yarn.lock | 1 + 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/plugins/lighthouse-backend/package.json b/plugins/lighthouse-backend/package.json index c6995da164..07e24f2984 100644 --- a/plugins/lighthouse-backend/package.json +++ b/plugins/lighthouse-backend/package.json @@ -44,6 +44,7 @@ "@backstage/catalog-client": "workspace:^", "@backstage/catalog-model": "workspace:^", "@backstage/config": "workspace:^", + "@backstage/plugin-catalog-node": "workspace:^", "@backstage/plugin-lighthouse-common": "workspace:^", "@backstage/types": "workspace:^", "winston": "^3.2.1" diff --git a/plugins/lighthouse-backend/src/plugin.ts b/plugins/lighthouse-backend/src/plugin.ts index 7ce332127e..fd75cf048a 100644 --- a/plugins/lighthouse-backend/src/plugin.ts +++ b/plugins/lighthouse-backend/src/plugin.ts @@ -19,7 +19,8 @@ import { createBackendPlugin, coreServices, } from '@backstage/backend-plugin-api'; -import { CatalogClient } from '@backstage/catalog-client'; +import { catalogServiceRef } from '@backstage/plugin-catalog-node'; + import { createScheduler } from './service/createScheduler'; /** @@ -32,15 +33,14 @@ export const lighthousePlugin = createBackendPlugin({ register(env) { env.registerInit({ deps: { + catalogClient: catalogServiceRef, config: coreServices.config, - discovery: coreServices.discovery, logger: coreServices.logger, scheduler: coreServices.scheduler, tokenManager: coreServices.tokenManager, }, - async init({ config, discovery, logger, scheduler, tokenManager }) { + async init({ catalogClient, config, logger, scheduler, tokenManager }) { const winstonLogger = loggerToWinstonLogger(logger); - const catalogClient = new CatalogClient({ discoveryApi: discovery }); await createScheduler({ catalogClient, diff --git a/plugins/lighthouse-backend/src/service/createScheduler.ts b/plugins/lighthouse-backend/src/service/createScheduler.ts index 089f20f4ed..498e459a09 100644 --- a/plugins/lighthouse-backend/src/service/createScheduler.ts +++ b/plugins/lighthouse-backend/src/service/createScheduler.ts @@ -16,10 +16,7 @@ import { Logger } from 'winston'; import { PluginTaskScheduler } from '@backstage/backend-tasks'; -import { - CATALOG_FILTER_EXISTS, - CatalogClient, -} from '@backstage/catalog-client'; +import { CATALOG_FILTER_EXISTS, CatalogApi } from '@backstage/catalog-client'; import { Config } from '@backstage/config'; import { LighthouseRestApi } from '@backstage/plugin-lighthouse-common'; import { stringifyEntityRef } from '@backstage/catalog-model'; @@ -31,7 +28,7 @@ export interface CreateLighthouseSchedulerOptions { logger: Logger; config: Config; scheduler?: PluginTaskScheduler; - catalogClient: CatalogClient; + catalogClient: CatalogApi; tokenManager: TokenManager; } diff --git a/yarn.lock b/yarn.lock index 6583ba3325..42dad513bc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7694,6 +7694,7 @@ __metadata: "@backstage/catalog-model": "workspace:^" "@backstage/cli": "workspace:^" "@backstage/config": "workspace:^" + "@backstage/plugin-catalog-node": "workspace:^" "@backstage/plugin-lighthouse-common": "workspace:^" "@backstage/types": "workspace:^" winston: ^3.2.1 From 96784a9bcbfc5ff9a86e8c4c1316e71ce93b6f3e Mon Sep 17 00:00:00 2001 From: Jonathan Roebuck Date: Wed, 12 Jul 2023 10:16:10 +0100 Subject: [PATCH 6/9] fix catalogServiceRef import Signed-off-by: Jonathan Roebuck --- plugins/lighthouse-backend/src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/lighthouse-backend/src/plugin.ts b/plugins/lighthouse-backend/src/plugin.ts index fd75cf048a..7acbd45634 100644 --- a/plugins/lighthouse-backend/src/plugin.ts +++ b/plugins/lighthouse-backend/src/plugin.ts @@ -19,7 +19,7 @@ import { createBackendPlugin, coreServices, } from '@backstage/backend-plugin-api'; -import { catalogServiceRef } from '@backstage/plugin-catalog-node'; +import { catalogServiceRef } from '@backstage/plugin-catalog-node/alpha'; import { createScheduler } from './service/createScheduler'; From c78817b128afc1f500f987877e57210c7c559a5b Mon Sep 17 00:00:00 2001 From: Jonathan Roebuck Date: Wed, 12 Jul 2023 12:16:45 +0100 Subject: [PATCH 7/9] update lighthouse-backend api-report.md Signed-off-by: Jonathan Roebuck --- plugins/lighthouse-backend/api-report.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lighthouse-backend/api-report.md b/plugins/lighthouse-backend/api-report.md index 25377af92f..5d9d948cf4 100644 --- a/plugins/lighthouse-backend/api-report.md +++ b/plugins/lighthouse-backend/api-report.md @@ -4,7 +4,7 @@ ```ts import { BackendFeature } from '@backstage/backend-plugin-api'; -import { CatalogClient } from '@backstage/catalog-client'; +import { CatalogApi } from '@backstage/catalog-client'; import { Config } from '@backstage/config'; import { Logger } from 'winston'; import { PluginTaskScheduler } from '@backstage/backend-tasks'; @@ -13,7 +13,7 @@ import { TokenManager } from '@backstage/backend-common'; // @public (undocumented) export interface CreateLighthouseSchedulerOptions { // (undocumented) - catalogClient: CatalogClient; + catalogClient: CatalogApi; // (undocumented) config: Config; // (undocumented) From 3c5f4ca1e1fd4fa21226fe101152ef38aa5a9857 Mon Sep 17 00:00:00 2001 From: Johannes Kleinlercher Date: Wed, 12 Jul 2023 13:40:20 +0200 Subject: [PATCH 8/9] fix: authorUrl without https Signed-off-by: Johannes Kleinlercher --- microsite/data/plugins/k8sgpt.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microsite/data/plugins/k8sgpt.yaml b/microsite/data/plugins/k8sgpt.yaml index f8a5d9e449..437ee9c2c9 100644 --- a/microsite/data/plugins/k8sgpt.yaml +++ b/microsite/data/plugins/k8sgpt.yaml @@ -1,7 +1,7 @@ --- title: k8sgpt author: suxess-it -authorUrl: github.com/suxess-it +authorUrl: https://github.com/suxess-it category: monitoring description: show all k8sgpt results of the k8sgpt operator related to your entity documentation: https://github.com/suxess-it/backstage-plugin-k8sgpt/blob/main/README.md From b199874668122f1c994ce22dd52c064f52976aa1 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 13 Jul 2023 09:58:02 +0200 Subject: [PATCH 9/9] chore: added a banner for cfp Signed-off-by: blam --- microsite/src/pages/home/_home.tsx | 70 ++++++++++++++++------- microsite/src/pages/home/home.module.scss | 3 + 2 files changed, 51 insertions(+), 22 deletions(-) diff --git a/microsite/src/pages/home/_home.tsx b/microsite/src/pages/home/_home.tsx index deb0d4cd6f..07e05068c6 100644 --- a/microsite/src/pages/home/_home.tsx +++ b/microsite/src/pages/home/_home.tsx @@ -31,7 +31,7 @@ const HomePage = () => {
{ )} >
- 🗞️ Want to stay up to date with Backstage? Sign up for our{' '} - - Newsletter - - ! + CFP is now open for BackstageCon 2023 🚀
- -
hideNewsletterBanner(true)} - > - + - - + Submit a talk +
- ) + {!hiddenNewsletterBanner && ( +
+
+ 🗞️ Want to stay up to date with Backstage? Sign up for our{' '} + + Newsletter + + ! +
+ +
hideNewsletterBanner(true)} + > + + + +
+
+ )} + } >