From b3c846db5e3556c3b2078b8df7b5a217b1c12d2b Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 5 Sep 2023 15:40:02 +0200 Subject: [PATCH] devtools: remove plugin info Co-authored-by: Philipp Hugenroth Co-authored-by: Johan Haals Signed-off-by: Patrik Oldsberg --- plugins/devtools/package.json | 1 - .../Content/InfoContent/InfoContent.tsx | 28 ++----------------- .../InfoContent/InfoDependenciesTable.tsx | 4 +-- 3 files changed, 3 insertions(+), 30 deletions(-) diff --git a/plugins/devtools/package.json b/plugins/devtools/package.json index de95310ea9..7c7ec44575 100644 --- a/plugins/devtools/package.json +++ b/plugins/devtools/package.json @@ -28,7 +28,6 @@ "postpack": "backstage-cli package postpack" }, "dependencies": { - "@backstage/autodetect": "workspace:^", "@backstage/core-components": "workspace:^", "@backstage/core-plugin-api": "workspace:^", "@backstage/errors": "workspace:^", diff --git a/plugins/devtools/src/components/Content/InfoContent/InfoContent.tsx b/plugins/devtools/src/components/Content/InfoContent/InfoContent.tsx index 4155552383..0ed43d2fee 100644 --- a/plugins/devtools/src/components/Content/InfoContent/InfoContent.tsx +++ b/plugins/devtools/src/components/Content/InfoContent/InfoContent.tsx @@ -37,11 +37,7 @@ import MemoryIcon from '@material-ui/icons/Memory'; import DeveloperBoardIcon from '@material-ui/icons/DeveloperBoard'; import { BackstageLogoIcon } from './BackstageLogoIcon'; import FileCopyIcon from '@material-ui/icons/FileCopy'; -import { - DevToolsInfo, - PackageDependency, -} from '@backstage/plugin-devtools-common'; -import { getAvailablePlugins } from '@backstage/autodetect'; +import { DevToolsInfo } from '@backstage/plugin-devtools-common'; const useStyles = makeStyles((theme: Theme) => createStyles({ @@ -77,16 +73,7 @@ const copyToClipboard = ({ about }: { about: DevToolsInfo | undefined }) => { export const InfoContent = () => { const classes = useStyles(); const { about, loading, error } = useInfo(); - const plugins = getAvailablePlugins(); - const availablePlugins: PackageDependency[] = plugins.map( - ({ name, plugin }) => { - return { - name: `${name} (${plugin.getId()})`, - versions: '', - }; - }, - ); if (loading) { return ; } else if (error) { @@ -157,18 +144,7 @@ export const InfoContent = () => { - - - - - - + ); }; diff --git a/plugins/devtools/src/components/Content/InfoContent/InfoDependenciesTable.tsx b/plugins/devtools/src/components/Content/InfoContent/InfoDependenciesTable.tsx index ac54e2ebaa..e1ab59f279 100644 --- a/plugins/devtools/src/components/Content/InfoContent/InfoDependenciesTable.tsx +++ b/plugins/devtools/src/components/Content/InfoContent/InfoDependenciesTable.tsx @@ -35,14 +35,12 @@ const columns: TableColumn[] = [ export const InfoDependenciesTable = ({ infoDependencies, - title, }: { - title: string; infoDependencies: PackageDependency[] | undefined; }) => { return (