Fix missing changesets and tsc errors from CI

Add changesets for plugin-app and plugin-catalog-graph. Fix cross-style
merge test to use direct schema values with configSchema instead of
factory functions.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-10 12:26:25 +02:00
parent a2a6c3b72e
commit effa7bf459
3 changed files with 18 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-app': patch
---
Migrated `AppLanguageApi` extension to use the new `configSchema` option.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-graph': patch
---
Updated `README-alpha.md` extension examples to use current APIs.
@@ -31,6 +31,7 @@ import {
import { createExtensionInput } from './createExtensionInput';
import { RouteRef } from '../routing';
import { createExtension, ExtensionDefinition } from './createExtension';
import { z as zodV3 } from 'zod/v3';
import {
createExtensionDataContainer,
OpaqueExtensionDefinition,
@@ -315,10 +316,12 @@ describe('createExtensionBlueprint', () => {
attachTo: { id: 'test', input: 'default' },
output: [coreExtensionData.reactElement],
configSchema: {
title: z => z.string().default('default title'),
title: zodV3.string().default('default title'),
},
factory(_, { config }) {
return [coreExtensionData.reactElement(<div>{config.title}</div>)];
return [
coreExtensionData.reactElement(<div>{String(config.title)}</div>),
];
},
});
@@ -330,8 +333,9 @@ describe('createExtensionBlueprint', () => {
},
},
factory(origFactory, { config }) {
expect(config.title).toBe('default title');
expect(config.extra).toBe('extra value');
const c = config as { title: string; extra: string };
expect(c.title).toBe('default title');
expect(c.extra).toBe('extra value');
return origFactory({});
},
});