diff --git a/plugins/airbrake/api-report.md b/plugins/airbrake/api-report.md index a5b1baf948..dd507ad30f 100644 --- a/plugins/airbrake/api-report.md +++ b/plugins/airbrake/api-report.md @@ -8,10 +8,10 @@ import { BackstagePlugin } from '@backstage/core-plugin-api'; import { RouteRef } from '@backstage/core-plugin-api'; -// Warning: (ae-missing-release-tag) "AirbrakePage" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// Warning: (ae-missing-release-tag) "AirbrakeWidget" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) -export const AirbrakePage: () => JSX.Element; +export const AirbrakeWidget: () => JSX.Element; // Warning: (ae-missing-release-tag) "airbrakePlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // diff --git a/plugins/airbrake/dev/index.tsx b/plugins/airbrake/dev/index.tsx index a76b80a4e3..e2f971169b 100644 --- a/plugins/airbrake/dev/index.tsx +++ b/plugins/airbrake/dev/index.tsx @@ -15,7 +15,7 @@ */ import React from 'react'; import { createDevApp } from '@backstage/dev-utils'; -import { AirbrakePage, airbrakePlugin } from '../src/plugin'; +import { AirbrakeWidget, airbrakePlugin } from '../src/plugin'; import { Content, ContentHeader, @@ -30,7 +30,10 @@ createDevApp() .addPage({ element: ( -
+
@@ -40,7 +43,7 @@ createDevApp() A description of your plugin goes here. - + ), diff --git a/plugins/airbrake/src/index.test.ts b/plugins/airbrake/src/index.test.ts index 6776fa0558..95cc4a95d9 100644 --- a/plugins/airbrake/src/index.test.ts +++ b/plugins/airbrake/src/index.test.ts @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { AirbrakePage, airbrakePlugin } from './index'; +import { AirbrakeWidget, airbrakePlugin } from './index'; describe('The Airbrake plugin index file', () => { it('exports the plugin and page', async () => { - expect(AirbrakePage).toBeTruthy(); + expect(AirbrakeWidget).toBeTruthy(); expect(airbrakePlugin).toBeTruthy(); }); }); diff --git a/plugins/airbrake/src/index.ts b/plugins/airbrake/src/index.ts index 9a75b3bbea..77ca2f9867 100644 --- a/plugins/airbrake/src/index.ts +++ b/plugins/airbrake/src/index.ts @@ -13,4 +13,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { airbrakePlugin, AirbrakePage } from './plugin'; +export { airbrakePlugin, AirbrakeWidget } from './plugin'; diff --git a/plugins/airbrake/src/plugin.test.tsx b/plugins/airbrake/src/plugin.test.tsx index 2d16004f8d..2747a5da67 100644 --- a/plugins/airbrake/src/plugin.test.tsx +++ b/plugins/airbrake/src/plugin.test.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ import React from 'react'; -import { AirbrakePage, airbrakePlugin } from './plugin'; +import { AirbrakeWidget, airbrakePlugin } from './plugin'; import { renderWithEffects } from '@backstage/test-utils'; import { createApp } from '@backstage/app-defaults'; import { Route } from 'react-router'; @@ -48,7 +48,7 @@ describe('Airbrake', () => { const rendered = await renderWithEffects( - } /> + } /> , ); diff --git a/plugins/airbrake/src/plugin.ts b/plugins/airbrake/src/plugin.ts index 8eebd4e31c..a985724dfe 100644 --- a/plugins/airbrake/src/plugin.ts +++ b/plugins/airbrake/src/plugin.ts @@ -27,7 +27,7 @@ export const airbrakePlugin = createPlugin({ }, }); -export const AirbrakePage = airbrakePlugin.provide( +export const AirbrakeWidget = airbrakePlugin.provide( createRoutableExtension({ name: 'AirbrakePage', component: () =>