diff --git a/.changeset/cool-bulldogs-itch.md b/.changeset/cool-bulldogs-itch.md new file mode 100644 index 0000000000..8f48befee2 --- /dev/null +++ b/.changeset/cool-bulldogs-itch.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-react': patch +--- + +Add EntityRef to Entity Inspector UI diff --git a/plugins/catalog-react/src/components/InspectEntityDialog/components/OverviewPage.tsx b/plugins/catalog-react/src/components/InspectEntityDialog/components/OverviewPage.tsx index d2eb6d4266..8b3b69a55a 100644 --- a/plugins/catalog-react/src/components/InspectEntityDialog/components/OverviewPage.tsx +++ b/plugins/catalog-react/src/components/InspectEntityDialog/components/OverviewPage.tsx @@ -21,6 +21,7 @@ import { List, ListItem, ListItemIcon, + ListItemSecondaryAction, makeStyles, Typography, } from '@material-ui/core'; @@ -36,6 +37,8 @@ import { ListSubheader, } from './common'; import { EntityKindIcon } from './EntityKindIcon'; +import { stringifyEntityRef } from '@backstage/catalog-model'; +import { CopyTextButton } from '@backstage/core-components'; const useStyles = makeStyles({ root: { @@ -60,6 +63,7 @@ export function OverviewPage(props: { entity: AlphaEntity }) { 'type', ); + const entityRef = stringifyEntityRef(props.entity); return ( <> Overview @@ -83,13 +87,25 @@ export function OverviewPage(props: { entity: AlphaEntity }) { {metadata.uid && ( + + + )} {metadata.etag && ( + + + )} + + + + + +