Merge pull request #25909 from backstage/rugvip/default-enabled

catalog: enable entity page extensions by default in the new frontend system
This commit is contained in:
Patrik Oldsberg
2024-08-05 17:09:58 +02:00
committed by GitHub
4 changed files with 19 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
The entity relation cards available for the new frontend system via `/alpha` now have more accurate and granular default filters.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': patch
---
Entity page extensions created for the new frontend system via the `/alpha` exports will now be enabled by default.
+2 -2
View File
@@ -83,7 +83,7 @@ export function createEntityCardExtension<
id: 'entity-content:catalog/overview',
input: 'cards',
},
disabled: options.disabled ?? true,
disabled: options.disabled,
output: {
element: coreExtensionData.reactElement,
filterFunction: catalogExtensionData.entityFilterFunction.optional(),
@@ -137,7 +137,7 @@ export function createEntityContentExtension<
id: 'page:catalog/entity',
input: 'contents',
},
disabled: options.disabled ?? true,
disabled: options.disabled,
output: {
element: coreExtensionData.reactElement,
path: coreExtensionData.routePath,
@@ -46,6 +46,7 @@ export const catalogLabelsEntityCard = createEntityCardExtension({
export const catalogDependsOnComponentsEntityCard = createEntityCardExtension({
name: 'depends-on-components',
filter: 'kind:component',
loader: async () =>
import('../components/DependsOnComponentsCard').then(m =>
compatWrapper(<m.DependsOnComponentsCard variant="gridItem" />),
@@ -54,6 +55,7 @@ export const catalogDependsOnComponentsEntityCard = createEntityCardExtension({
export const catalogDependsOnResourcesEntityCard = createEntityCardExtension({
name: 'depends-on-resources',
filter: 'kind:component',
loader: async () =>
import('../components/DependsOnResourcesCard').then(m =>
compatWrapper(<m.DependsOnResourcesCard variant="gridItem" />),
@@ -62,6 +64,7 @@ export const catalogDependsOnResourcesEntityCard = createEntityCardExtension({
export const catalogHasComponentsEntityCard = createEntityCardExtension({
name: 'has-components',
filter: 'kind:system',
loader: async () =>
import('../components/HasComponentsCard').then(m =>
compatWrapper(<m.HasComponentsCard variant="gridItem" />),
@@ -70,6 +73,7 @@ export const catalogHasComponentsEntityCard = createEntityCardExtension({
export const catalogHasResourcesEntityCard = createEntityCardExtension({
name: 'has-resources',
filter: 'kind:system',
loader: async () =>
import('../components/HasResourcesCard').then(m =>
compatWrapper(<m.HasResourcesCard variant="gridItem" />),
@@ -78,6 +82,7 @@ export const catalogHasResourcesEntityCard = createEntityCardExtension({
export const catalogHasSubcomponentsEntityCard = createEntityCardExtension({
name: 'has-subcomponents',
filter: 'kind:component',
loader: async () =>
import('../components/HasSubcomponentsCard').then(m =>
compatWrapper(<m.HasSubcomponentsCard variant="gridItem" />),
@@ -86,6 +91,7 @@ export const catalogHasSubcomponentsEntityCard = createEntityCardExtension({
export const catalogHasSubdomainsEntityCard = createEntityCardExtension({
name: 'has-subdomains',
filter: 'kind:domain',
loader: async () =>
import('../components/HasSubdomainsCard').then(m =>
compatWrapper(<m.HasSubdomainsCard variant="gridItem" />),
@@ -94,6 +100,7 @@ export const catalogHasSubdomainsEntityCard = createEntityCardExtension({
export const catalogHasSystemsEntityCard = createEntityCardExtension({
name: 'has-systems',
filter: 'kind:domain',
loader: async () =>
import('../components/HasSystemsCard').then(m =>
compatWrapper(<m.HasSystemsCard variant="gridItem" />),