diff --git a/.changeset/strange-ducks-rhyme.md b/.changeset/strange-ducks-rhyme.md new file mode 100644 index 0000000000..1f75593d04 --- /dev/null +++ b/.changeset/strange-ducks-rhyme.md @@ -0,0 +1,5 @@ +--- +'@backstage/create-app': minor +--- + +Updated the default create-app `EntityPage` to include orphan and processing error alerts for all entity types. Previously these were only shown for entities with the `Component` kind. The `EntityPage` in Backstage applications should be updated following [d027681](https://github.com/backstage/backstage/pull/6899/commits/d0276817123ba131c9211de30d229839f13d7775). This also adds the `EntityLinkCard` for API entities. diff --git a/packages/app/src/components/catalog/EntityPage.tsx b/packages/app/src/components/catalog/EntityPage.tsx index d84a7341bc..4a392e0f05 100644 --- a/packages/app/src/components/catalog/EntityPage.tsx +++ b/packages/app/src/components/catalog/EntityPage.tsx @@ -211,20 +211,8 @@ const cicdCard = ( ); -const errorsContent = ( - - - - - - - - - -); - -const overviewContent = ( - +const entityWarningContent = ( + <> @@ -240,7 +228,24 @@ const overviewContent = ( + +); +const errorsContent = ( + + + + + + + + + +); + +const overviewContent = ( + + {entityWarningContent} @@ -448,6 +453,7 @@ const apiPage = ( + {entityWarningContent} @@ -478,6 +484,7 @@ const userPage = ( + {entityWarningContent} @@ -493,6 +500,7 @@ const groupPage = ( + {entityWarningContent} @@ -511,6 +519,7 @@ const systemPage = ( + {entityWarningContent} @@ -535,6 +544,7 @@ const domainPage = ( + {entityWarningContent} diff --git a/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx b/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx index a78d1a8f01..d3b4b786a0 100644 --- a/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx +++ b/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx @@ -82,8 +82,8 @@ const cicdContent = ( ); -const overviewContent = ( - +const entityWarningContent = ( + <> @@ -99,7 +99,12 @@ const overviewContent = ( + +); +const overviewContent = ( + + {entityWarningContent} @@ -214,9 +219,13 @@ const apiPage = ( + {entityWarningContent} + + + @@ -242,6 +251,7 @@ const userPage = ( + {entityWarningContent} @@ -257,6 +267,7 @@ const groupPage = ( + {entityWarningContent} @@ -275,6 +286,7 @@ const systemPage = ( + {entityWarningContent} @@ -299,6 +311,7 @@ const domainPage = ( + {entityWarningContent}