diff --git a/.changeset/perfect-coats-train.md b/.changeset/perfect-coats-train.md new file mode 100644 index 0000000000..a8c62d6264 --- /dev/null +++ b/.changeset/perfect-coats-train.md @@ -0,0 +1,60 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Adds a new `SystemDiagram` component to mvisually map all elements in a system. + +To use this new component, a new system entity page would need to be added to the `packages/app/src/components/catalog/EntityPage.tsx` file. + +For example, + +```tsx +const SystemOverviewContent = ({ entity }: { entity: Entity }) => ( + + + + + + + + +); + +const SystemEntityPage = ({ entity }: { entity: Entity }) => ( + + } + /> + } + /> + +); +``` + +And the addition of a new switch case to the `EntityPage`: + +```diff +-export const EntityPage = () => { +- const { entity } = useEntity(); +- +- switch (entity?.kind?.toLowerCase()) { +- case 'component': +- return ; +- case 'api': +- return ; +- case 'group': +- return ; +- case 'user': +- return ; ++ case 'system': ++ return ; +- default: +- return ; +- } +-}; +```