diff --git a/plugins/api-docs/dev/index.tsx b/plugins/api-docs/dev/index.tsx
index fbfab37f5b..6d4b0c199e 100644
--- a/plugins/api-docs/dev/index.tsx
+++ b/plugins/api-docs/dev/index.tsx
@@ -30,6 +30,13 @@ import graphqlApiEntity from './graphql-example-api.yaml';
import openapiApiEntity from './openapi-example-api.yaml';
import otherApiEntity from './other-example-api.yaml';
+const mockEntities = ([
+ openapiApiEntity,
+ asyncapiApiEntity,
+ graphqlApiEntity,
+ otherApiEntity,
+] as unknown) as Entity[];
+
createDevApp()
.registerApi({
api: catalogApiRef,
@@ -38,14 +45,12 @@ createDevApp()
(({
async getEntities() {
return {
- items: [
- openapiApiEntity,
- asyncapiApiEntity,
- graphqlApiEntity,
- otherApiEntity,
- ],
+ items: mockEntities.slice(),
};
},
+ async getEntityByName(name: string) {
+ return mockEntities.find(e => e.metadata.name === name);
+ },
} as unknown) as typeof catalogApiRef.T),
})
.registerApi({
diff --git a/plugins/cost-insights/dev/index.tsx b/plugins/cost-insights/dev/index.tsx
index 8cfa12fc18..009fca55dd 100644
--- a/plugins/cost-insights/dev/index.tsx
+++ b/plugins/cost-insights/dev/index.tsx
@@ -13,10 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { ExampleCostInsightsClient } from '../src/example';
import { costInsightsApiRef } from '../src/api';
-import { costInsightsPlugin } from '../src/plugin';
+import {
+ costInsightsPlugin,
+ CostInsightsPage,
+ CostInsightsProjectGrowthInstructionsPage,
+ CostInsightsLabelDataflowInstructionsPage,
+} from '../src/plugin';
createDevApp()
.registerPlugin(costInsightsPlugin)
@@ -25,4 +32,16 @@ createDevApp()
deps: {},
factory: () => new ExampleCostInsightsClient(),
})
+ .addPage({
+ title: 'Cost Insights',
+ element: ,
+ })
+ .addPage({
+ title: 'Growth',
+ element: ,
+ })
+ .addPage({
+ title: 'Labelling',
+ element: ,
+ })
.render();
diff --git a/plugins/gcp-projects/dev/index.tsx b/plugins/gcp-projects/dev/index.tsx
index b87d4b7d47..5b01456ec8 100644
--- a/plugins/gcp-projects/dev/index.tsx
+++ b/plugins/gcp-projects/dev/index.tsx
@@ -14,7 +14,14 @@
* limitations under the License.
*/
+import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
-import { gcpProjectsPlugin } from '../src/plugin';
+import { gcpProjectsPlugin, GcpProjectsPage } from '../src/plugin';
-createDevApp().registerPlugin(gcpProjectsPlugin).render();
+createDevApp()
+ .registerPlugin(gcpProjectsPlugin)
+ .addPage({
+ title: 'GCP Projects',
+ element: ,
+ })
+ .render();
diff --git a/plugins/newrelic/dev/index.tsx b/plugins/newrelic/dev/index.tsx
index 9ca421f94a..59e1157d17 100644
--- a/plugins/newrelic/dev/index.tsx
+++ b/plugins/newrelic/dev/index.tsx
@@ -14,7 +14,14 @@
* limitations under the License.
*/
+import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
-import { newRelicPlugin } from '../src/plugin';
+import { newRelicPlugin, NewRelicPage } from '../src/plugin';
-createDevApp().registerPlugin(newRelicPlugin).render();
+createDevApp()
+ .registerPlugin(newRelicPlugin)
+ .addPage({
+ title: 'New Relic',
+ element: ,
+ })
+ .render();
diff --git a/plugins/welcome/dev/index.tsx b/plugins/welcome/dev/index.tsx
index b237812f97..399c157fad 100644
--- a/plugins/welcome/dev/index.tsx
+++ b/plugins/welcome/dev/index.tsx
@@ -14,7 +14,14 @@
* limitations under the License.
*/
+import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
-import { welcomePlugin } from '../src/plugin';
+import { welcomePlugin, WelcomePage } from '../src/plugin';
-createDevApp().registerPlugin(welcomePlugin).render();
+createDevApp()
+ .registerPlugin(welcomePlugin)
+ .addPage({
+ title: 'Welcome',
+ element: ,
+ })
+ .render();