diff --git a/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx b/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx index b243e44423..bb37388022 100644 --- a/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx +++ b/plugins/catalog/src/components/SystemDiagram/SystemDiagram.tsx @@ -27,7 +27,9 @@ import { Progress, useApi, } from '@backstage/core'; +import { Box, Typography } from '@material-ui/core'; import { Alert } from '@material-ui/lab'; +import ZoomOutMap from '@material-ui/icons/ZoomOutMap'; import React from 'react'; import { useAsync } from 'react-use'; @@ -90,8 +92,8 @@ export function SystemDiagram({ entity }: SystemDiagramProps) { switch (relation.type) { case RELATION_PROVIDES_API: systemEdges.push({ - from: `${relation.target.kind}:${relation.target.name}`.toLowerCase(), - to: getEntityNodeId(catalogItem), + from: getEntityNodeId(catalogItem), + to: `${relation.target.kind}:${relation.target.name}`.toLowerCase(), label: 'provides API', }); break; @@ -119,12 +121,22 @@ export function SystemDiagram({ entity }: SystemDiagramProps) { return ( - +
+ +
+ + + Use pinch & zoom + to move around the diagram. +
); }