feat(techdocs): use entity title as label in header
Signed-off-by: Phil Kuang <pkuang@factset.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-techdocs': patch
|
||||
---
|
||||
|
||||
Use entity title as label in `TechDocsReaderPageHeader` if available
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-techdocs-addons-test-utils': patch
|
||||
---
|
||||
|
||||
Update default mock
|
||||
@@ -82,7 +82,7 @@ type TechDocsAddonTesterOptions = {
|
||||
|
||||
const defaultOptions: TechDocsAddonTesterOptions = {
|
||||
dom: <></>,
|
||||
entity: {},
|
||||
entity: { metadata: { name: '' } },
|
||||
metadata: {},
|
||||
componentId: 'docs',
|
||||
apis: [],
|
||||
|
||||
+1
@@ -110,6 +110,7 @@ export const TechDocsReaderPageHeader = (
|
||||
<EntityRefLink
|
||||
color="inherit"
|
||||
entityRef={entityRef}
|
||||
title={entityMetadata?.metadata.title}
|
||||
defaultKind="Component"
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user