feat: add entityRef to Entity Inspector view

Signed-off-by: Chris Langhout <clanghout@bol.com>
This commit is contained in:
Chris Langhout
2023-11-09 10:25:57 +01:00
parent 574c9d801f
commit 2ad1bacef7
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': patch
---
Add EntityRef to Entity Inspector UI
@@ -36,6 +36,7 @@ import {
ListSubheader,
} from './common';
import { EntityKindIcon } from './EntityKindIcon';
import { stringifyEntityRef } from '@backstage/catalog-model';
const useStyles = makeStyles({
root: {
@@ -90,6 +91,12 @@ export function OverviewPage(props: { entity: AlphaEntity }) {
<ListItemText primary="etag" secondary={metadata.etag} />
</ListItem>
)}
<ListItem>
<ListItemText
primary="entityRef"
secondary={stringifyEntityRef(props.entity)}
/>
</ListItem>
</List>
</Container>