From 3971a7a755f522675452bd323fb7246672b976c0 Mon Sep 17 00:00:00 2001 From: Camila Belo Date: Thu, 27 Mar 2025 21:45:06 +0100 Subject: [PATCH] fix: default catalog table search Signed-off-by: Camila Belo --- .changeset/tasty-moments-do.md | 5 +++++ plugins/catalog/src/components/CatalogTable/CatalogTable.tsx | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/tasty-moments-do.md diff --git a/.changeset/tasty-moments-do.md b/.changeset/tasty-moments-do.md new file mode 100644 index 0000000000..716f65088e --- /dev/null +++ b/.changeset/tasty-moments-do.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Fix the default catalog table search behavior by using the catalog table toolbar for all table variations (including when pagination mode is none). diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index 0b2d2e4a4c..f49222849f 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -49,6 +49,7 @@ import { defaultCatalogTableColumnsFunc } from './defaultCatalogTableColumnsFunc import { useTranslationRef } from '@backstage/core-plugin-api/alpha'; import { catalogTranslationRef } from '../../alpha/translation'; import { FavoriteToggleIcon } from '@backstage/core-components'; +import { CatalogTableToolbar } from './CatalogTableToolbar'; /** * Props for {@link CatalogTable}. @@ -251,6 +252,9 @@ export const CatalogTable = (props: CatalogTableProps) => { actions={actions} subtitle={subtitle} emptyContent={emptyContent} + components={{ + Toolbar: CatalogTableToolbar, + }} /> ); };