From efb0c6bf15dc707cda4924d8aa2c4e5be6f9aca4 Mon Sep 17 00:00:00 2001 From: Iain Billett Date: Tue, 12 Oct 2021 13:56:31 +0100 Subject: [PATCH] Set catalog table search field placeholder to "Filter" Full reasoning is in the changeset but in short this is to avoid confusion with the search plugin. Signed-off-by: Iain Billett --- .changeset/healthy-poets-tap.md | 9 +++++++++ .../catalog/src/components/CatalogTable/CatalogTable.tsx | 1 + 2 files changed, 10 insertions(+) create mode 100644 .changeset/healthy-poets-tap.md diff --git a/.changeset/healthy-poets-tap.md b/.changeset/healthy-poets-tap.md new file mode 100644 index 0000000000..31e03e7e09 --- /dev/null +++ b/.changeset/healthy-poets-tap.md @@ -0,0 +1,9 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Set the search field placeholder on the catalog table to "Filter" to differentiate it from the search feature + +We had feedback that users expected the catalog table search field to have more sophisticated behaviour +than simple filtering. This change better sets expectations by setting the placeholder to "Filter" to +differentiate it from components which are part of the search plugin. diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index f293710847..197937d6f7 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -163,6 +163,7 @@ export const CatalogTable = ({ columns, actions }: CatalogTableProps) => { title={`${titlePreamble} (${entities.length})`} data={rows} actions={actions || defaultActions} + localization={{ toolbar: { searchPlaceholder: 'Filter' } }} /> ); };