plugins: update all other plugins to fit new frontend system naming patterns
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -17,10 +17,10 @@ const _default: BackstagePlugin<
|
||||
export default _default;
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const sampleTechRadarApi: ExtensionDefinition<{}>;
|
||||
export const techRadarApi: ExtensionDefinition<{}>;
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const TechRadarPage: ExtensionDefinition<{
|
||||
export const techRadarPage: ExtensionDefinition<{
|
||||
height: number;
|
||||
width: number;
|
||||
title: string;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { createExtensionTester } from '@backstage/frontend-test-utils';
|
||||
import { screen } from '@testing-library/react';
|
||||
import { TechRadarPage, sampleTechRadarApi } from './alpha';
|
||||
import { techRadarPage, techRadarApi } from './alpha';
|
||||
|
||||
describe('TechRadarPage', () => {
|
||||
beforeAll(() => {
|
||||
@@ -27,7 +27,7 @@ describe('TechRadarPage', () => {
|
||||
});
|
||||
|
||||
it('renders without exploding', async () => {
|
||||
createExtensionTester(TechRadarPage).add(sampleTechRadarApi).render();
|
||||
createExtensionTester(techRadarPage).add(techRadarApi).render();
|
||||
|
||||
await expect(screen.findByText('Tech Radar')).resolves.toBeInTheDocument();
|
||||
});
|
||||
|
||||
@@ -31,7 +31,7 @@ import {
|
||||
import { rootRouteRef } from './plugin';
|
||||
|
||||
/** @alpha */
|
||||
export const TechRadarPage = createPageExtension({
|
||||
export const techRadarPage = createPageExtension({
|
||||
defaultPath: '/tech-radar',
|
||||
routeRef: convertLegacyRouteRef(rootRouteRef),
|
||||
configSchema: createSchemaFromZod(z =>
|
||||
@@ -53,14 +53,14 @@ export const TechRadarPage = createPageExtension({
|
||||
});
|
||||
|
||||
/** @alpha */
|
||||
export const sampleTechRadarApi = createApiExtension({
|
||||
export const techRadarApi = createApiExtension({
|
||||
factory: createApiFactory(techRadarApiRef, new SampleTechRadarApi()),
|
||||
});
|
||||
|
||||
/** @alpha */
|
||||
export default createPlugin({
|
||||
id: 'tech-radar',
|
||||
extensions: [TechRadarPage, sampleTechRadarApi],
|
||||
extensions: [techRadarPage, techRadarApi],
|
||||
routes: {
|
||||
root: convertLegacyRouteRef(rootRouteRef),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user