From 7dfa9564a99d312b37c72ad6171f746f908e17aa Mon Sep 17 00:00:00 2001 From: mufaddal motiwala Date: Wed, 8 Dec 2021 22:31:39 +0530 Subject: [PATCH] changed the plugin name to newrelic-dashboard Signed-off-by: mufaddal motiwala --- packages/app/package.json | 2 +- .../app/src/components/catalog/EntityPage.tsx | 9 ++++--- plugins/new-relic-dashboard/dev/index.tsx | 27 ------------------- .../.eslintrc.js | 0 .../README.md | 0 .../package.json | 2 +- .../src/Router.tsx | 0 .../src/api/NewRelicDashboardApi.ts | 0 .../src/api/NewRelicDashboardClient.ts | 0 .../src/api/index.ts | 0 .../NewRelicDashboard/DashboardEntityList.tsx | 0 .../DashboardSnapshot.tsx | 0 .../DashboardSnapshotList.tsx | 0 .../DashboardSnapshotList/index.ts | 0 .../NewRelicComponent.test.tsx | 0 .../NewRelicDashboard/NewRelicDashboard.tsx | 0 .../src/components/NewRelicDashboard/index.ts | 0 .../src/constants.ts | 0 .../src/hooks/index.ts | 0 .../src/index.ts | 0 .../src/plugin.test.ts | 0 .../src/plugin.ts | 0 .../queries/getDashboardParentGuidQuery.ts | 0 .../src/queries/getDashboardSnapshotQuery.ts | 0 .../src/routes.ts | 0 .../src/setupTests.ts | 0 .../src/types/DashboardEntity.ts | 0 .../src/types/DashboardSnapshot.ts | 0 .../src/types/SnapshotDetails.ts | 0 29 files changed, 7 insertions(+), 33 deletions(-) delete mode 100644 plugins/new-relic-dashboard/dev/index.tsx rename plugins/{new-relic-dashboard => newrelic-dashboard}/.eslintrc.js (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/README.md (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/package.json (96%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/Router.tsx (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/api/NewRelicDashboardApi.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/api/NewRelicDashboardClient.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/api/index.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/components/NewRelicDashboard/DashboardEntityList.tsx (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/components/NewRelicDashboard/DashboardSnapshotList/index.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/components/NewRelicDashboard/NewRelicComponent.test.tsx (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/components/NewRelicDashboard/NewRelicDashboard.tsx (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/components/NewRelicDashboard/index.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/constants.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/hooks/index.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/index.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/plugin.test.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/plugin.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/queries/getDashboardParentGuidQuery.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/queries/getDashboardSnapshotQuery.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/routes.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/setupTests.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/types/DashboardEntity.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/types/DashboardSnapshot.ts (100%) rename plugins/{new-relic-dashboard => newrelic-dashboard}/src/types/SnapshotDetails.ts (100%) diff --git a/packages/app/package.json b/packages/app/package.json index a14ace6fad..8f552361d8 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -31,7 +31,7 @@ "@backstage/plugin-kafka": "^0.2.21", "@backstage/plugin-kubernetes": "^0.4.22", "@backstage/plugin-lighthouse": "^0.2.30", - "@backstage/plugin-new-relic-dashboard": "^0.1.0", + "@backstage/plugin-newrelic-dashboard": "^0.1.0", "@backstage/plugin-newrelic": "^0.3.9", "@backstage/plugin-org": "^0.3.28", "@backstage/plugin-pagerduty": "0.3.18", diff --git a/packages/app/src/components/catalog/EntityPage.tsx b/packages/app/src/components/catalog/EntityPage.tsx index 50782825d3..d87e7170bd 100644 --- a/packages/app/src/components/catalog/EntityPage.tsx +++ b/packages/app/src/components/catalog/EntityPage.tsx @@ -128,7 +128,7 @@ import { isNewRelicDashboardAvailable, EntityNewRelicDashboard, EntityPageNewRelicDashboard, -} from '@backstage/plugin-new-relic-dashboard'; +} from '@backstage/plugin-newrelic-dashboard'; import React, { ReactNode, useMemo, useState } from 'react'; @@ -385,8 +385,8 @@ const serviceEntityPage = ( @@ -451,11 +451,12 @@ const websiteEntityPage = ( + diff --git a/plugins/new-relic-dashboard/dev/index.tsx b/plugins/new-relic-dashboard/dev/index.tsx deleted file mode 100644 index 98bc0ba79a..0000000000 --- a/plugins/new-relic-dashboard/dev/index.tsx +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2021 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 React from 'react'; -import { createDevApp } from '@backstage/dev-utils'; -import { newRelicDashboardPlugin, NewRelicDashboardPage } from '../src/plugin'; - -createDevApp() - .registerPlugin(newRelicDashboardPlugin) - .addPage({ - element: , - title: 'Root Page', - path: '/new-relic-dashboard', - }) - .render(); diff --git a/plugins/new-relic-dashboard/.eslintrc.js b/plugins/newrelic-dashboard/.eslintrc.js similarity index 100% rename from plugins/new-relic-dashboard/.eslintrc.js rename to plugins/newrelic-dashboard/.eslintrc.js diff --git a/plugins/new-relic-dashboard/README.md b/plugins/newrelic-dashboard/README.md similarity index 100% rename from plugins/new-relic-dashboard/README.md rename to plugins/newrelic-dashboard/README.md diff --git a/plugins/new-relic-dashboard/package.json b/plugins/newrelic-dashboard/package.json similarity index 96% rename from plugins/new-relic-dashboard/package.json rename to plugins/newrelic-dashboard/package.json index c32d4d122a..becaf402bb 100644 --- a/plugins/new-relic-dashboard/package.json +++ b/plugins/newrelic-dashboard/package.json @@ -1,5 +1,5 @@ { - "name": "@backstage/plugin-new-relic-dashboard", + "name": "@backstage/plugin-newrelic-dashboard", "version": "0.1.0", "main": "src/index.ts", "types": "src/index.ts", diff --git a/plugins/new-relic-dashboard/src/Router.tsx b/plugins/newrelic-dashboard/src/Router.tsx similarity index 100% rename from plugins/new-relic-dashboard/src/Router.tsx rename to plugins/newrelic-dashboard/src/Router.tsx diff --git a/plugins/new-relic-dashboard/src/api/NewRelicDashboardApi.ts b/plugins/newrelic-dashboard/src/api/NewRelicDashboardApi.ts similarity index 100% rename from plugins/new-relic-dashboard/src/api/NewRelicDashboardApi.ts rename to plugins/newrelic-dashboard/src/api/NewRelicDashboardApi.ts diff --git a/plugins/new-relic-dashboard/src/api/NewRelicDashboardClient.ts b/plugins/newrelic-dashboard/src/api/NewRelicDashboardClient.ts similarity index 100% rename from plugins/new-relic-dashboard/src/api/NewRelicDashboardClient.ts rename to plugins/newrelic-dashboard/src/api/NewRelicDashboardClient.ts diff --git a/plugins/new-relic-dashboard/src/api/index.ts b/plugins/newrelic-dashboard/src/api/index.ts similarity index 100% rename from plugins/new-relic-dashboard/src/api/index.ts rename to plugins/newrelic-dashboard/src/api/index.ts diff --git a/plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx similarity index 100% rename from plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx rename to plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx diff --git a/plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx similarity index 100% rename from plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx rename to plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx diff --git a/plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx similarity index 100% rename from plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx rename to plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx diff --git a/plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/index.ts b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/index.ts similarity index 100% rename from plugins/new-relic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/index.ts rename to plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/index.ts diff --git a/plugins/new-relic-dashboard/src/components/NewRelicDashboard/NewRelicComponent.test.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/NewRelicComponent.test.tsx similarity index 100% rename from plugins/new-relic-dashboard/src/components/NewRelicDashboard/NewRelicComponent.test.tsx rename to plugins/newrelic-dashboard/src/components/NewRelicDashboard/NewRelicComponent.test.tsx diff --git a/plugins/new-relic-dashboard/src/components/NewRelicDashboard/NewRelicDashboard.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/NewRelicDashboard.tsx similarity index 100% rename from plugins/new-relic-dashboard/src/components/NewRelicDashboard/NewRelicDashboard.tsx rename to plugins/newrelic-dashboard/src/components/NewRelicDashboard/NewRelicDashboard.tsx diff --git a/plugins/new-relic-dashboard/src/components/NewRelicDashboard/index.ts b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/index.ts similarity index 100% rename from plugins/new-relic-dashboard/src/components/NewRelicDashboard/index.ts rename to plugins/newrelic-dashboard/src/components/NewRelicDashboard/index.ts diff --git a/plugins/new-relic-dashboard/src/constants.ts b/plugins/newrelic-dashboard/src/constants.ts similarity index 100% rename from plugins/new-relic-dashboard/src/constants.ts rename to plugins/newrelic-dashboard/src/constants.ts diff --git a/plugins/new-relic-dashboard/src/hooks/index.ts b/plugins/newrelic-dashboard/src/hooks/index.ts similarity index 100% rename from plugins/new-relic-dashboard/src/hooks/index.ts rename to plugins/newrelic-dashboard/src/hooks/index.ts diff --git a/plugins/new-relic-dashboard/src/index.ts b/plugins/newrelic-dashboard/src/index.ts similarity index 100% rename from plugins/new-relic-dashboard/src/index.ts rename to plugins/newrelic-dashboard/src/index.ts diff --git a/plugins/new-relic-dashboard/src/plugin.test.ts b/plugins/newrelic-dashboard/src/plugin.test.ts similarity index 100% rename from plugins/new-relic-dashboard/src/plugin.test.ts rename to plugins/newrelic-dashboard/src/plugin.test.ts diff --git a/plugins/new-relic-dashboard/src/plugin.ts b/plugins/newrelic-dashboard/src/plugin.ts similarity index 100% rename from plugins/new-relic-dashboard/src/plugin.ts rename to plugins/newrelic-dashboard/src/plugin.ts diff --git a/plugins/new-relic-dashboard/src/queries/getDashboardParentGuidQuery.ts b/plugins/newrelic-dashboard/src/queries/getDashboardParentGuidQuery.ts similarity index 100% rename from plugins/new-relic-dashboard/src/queries/getDashboardParentGuidQuery.ts rename to plugins/newrelic-dashboard/src/queries/getDashboardParentGuidQuery.ts diff --git a/plugins/new-relic-dashboard/src/queries/getDashboardSnapshotQuery.ts b/plugins/newrelic-dashboard/src/queries/getDashboardSnapshotQuery.ts similarity index 100% rename from plugins/new-relic-dashboard/src/queries/getDashboardSnapshotQuery.ts rename to plugins/newrelic-dashboard/src/queries/getDashboardSnapshotQuery.ts diff --git a/plugins/new-relic-dashboard/src/routes.ts b/plugins/newrelic-dashboard/src/routes.ts similarity index 100% rename from plugins/new-relic-dashboard/src/routes.ts rename to plugins/newrelic-dashboard/src/routes.ts diff --git a/plugins/new-relic-dashboard/src/setupTests.ts b/plugins/newrelic-dashboard/src/setupTests.ts similarity index 100% rename from plugins/new-relic-dashboard/src/setupTests.ts rename to plugins/newrelic-dashboard/src/setupTests.ts diff --git a/plugins/new-relic-dashboard/src/types/DashboardEntity.ts b/plugins/newrelic-dashboard/src/types/DashboardEntity.ts similarity index 100% rename from plugins/new-relic-dashboard/src/types/DashboardEntity.ts rename to plugins/newrelic-dashboard/src/types/DashboardEntity.ts diff --git a/plugins/new-relic-dashboard/src/types/DashboardSnapshot.ts b/plugins/newrelic-dashboard/src/types/DashboardSnapshot.ts similarity index 100% rename from plugins/new-relic-dashboard/src/types/DashboardSnapshot.ts rename to plugins/newrelic-dashboard/src/types/DashboardSnapshot.ts diff --git a/plugins/new-relic-dashboard/src/types/SnapshotDetails.ts b/plugins/newrelic-dashboard/src/types/SnapshotDetails.ts similarity index 100% rename from plugins/new-relic-dashboard/src/types/SnapshotDetails.ts rename to plugins/newrelic-dashboard/src/types/SnapshotDetails.ts