diff --git a/.changeset/modern-camels-cheat.md b/.changeset/modern-camels-cheat.md new file mode 100644 index 0000000000..c0a80934d5 --- /dev/null +++ b/.changeset/modern-camels-cheat.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': minor +--- + +Removed `CatalogKindHeader` from `DefaultCatalogPage`. Deprecated `CatalogKindHeader` in favour of `EntityKindPicker`. diff --git a/plugins/catalog/api-report.md b/plugins/catalog/api-report.md index 3f72df00e2..74f64882a8 100644 --- a/plugins/catalog/api-report.md +++ b/plugins/catalog/api-report.md @@ -73,7 +73,7 @@ export const CatalogEntityPage: () => JSX.Element; // @public (undocumented) export const CatalogIndexPage: (props: DefaultCatalogPageProps) => JSX.Element; -// @public (undocumented) +// @public @deprecated (undocumented) export function CatalogKindHeader(props: CatalogKindHeaderProps): JSX.Element; // @public diff --git a/plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.tsx b/plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.tsx index bb9e98d9c3..67631a3b98 100644 --- a/plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.tsx +++ b/plugins/catalog/src/components/CatalogKindHeader/CatalogKindHeader.tsx @@ -59,7 +59,10 @@ export interface CatalogKindHeaderProps { initialFilter?: string; } -/** @public */ +/** + * @public + * @deprecated This component has been deprecated in favour of the EntityKindPicker in the list of filters. If you wish to keep this component long term make sure to raise an issue at github.com/backstage/backstage + */ export function CatalogKindHeader(props: CatalogKindHeaderProps) { const { initialFilter = 'component', allowedKinds } = props; const classes = useStyles(); diff --git a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx index c5208c94f5..644453f5fb 100644 --- a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx @@ -39,7 +39,6 @@ import { import React, { ReactNode } from 'react'; import { createComponentRouteRef } from '../../routes'; import { CatalogTable, CatalogTableRow } from '../CatalogTable'; -import { CatalogKindHeader } from '../CatalogKindHeader'; import { useCatalogPluginOptions } from '../../options'; /** @@ -73,17 +72,15 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { return ( - - - } - > - - All your software catalog entities - + + + + All your software catalog entities + + @@ -103,8 +100,8 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { /> - - + + ); }