diff --git a/.changeset/strange-ducks-rhyme.md b/.changeset/strange-ducks-rhyme.md index 1f75593d04..b4a4c3fc37 100644 --- a/.changeset/strange-ducks-rhyme.md +++ b/.changeset/strange-ducks-rhyme.md @@ -1,5 +1,70 @@ --- -'@backstage/create-app': minor +'@backstage/create-app': patch --- -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. +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. This also adds the `EntityLinkCard` for API entities. + +As an example, you might add this to your `packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx`: + +```tsx +const entityWarningContent = ( + <> + + + + + + + + + + + + + + + +); +``` + +and then add that at the top of your various content pages: + +```diff + const overviewContent = ( + ++ {entityWarningContent} + + + +``` + +or in actual page wrappers: + +```diff + const apiPage = ( + + + ++ {entityWarningContent} + + + +``` + +Note that there may be many such `*Page` pages in that file, and you probably want that warning at the top of them all. + +You can also add the links card to your API page if you do not already have it: + +```diff +const apiPage = ( + + + ++ {entityWarningContent} + + + ++ ++ ++ +```