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 <iain@roadie.io>
This commit is contained in:
Iain Billett
2021-10-12 13:56:31 +01:00
parent d2bf8ca90d
commit efb0c6bf15
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -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.
@@ -163,6 +163,7 @@ export const CatalogTable = ({ columns, actions }: CatalogTableProps) => {
title={`${titlePreamble} (${entities.length})`}
data={rows}
actions={actions || defaultActions}
localization={{ toolbar: { searchPlaceholder: 'Filter' } }}
/>
);
};