From feef8d91c7bd81995d2594195ff909991d9c49d4 Mon Sep 17 00:00:00 2001 From: "binary.baum" Date: Tue, 2 Dec 2025 13:26:31 +0100 Subject: [PATCH 1/3] set the default search type to all instead of software-catalog in the search page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: binary.baum Signed-off-by: Vödisch, Alexander --- .changeset/three-rooms-enjoy.md | 5 +++++ plugins/search/src/alpha.tsx | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/three-rooms-enjoy.md diff --git a/.changeset/three-rooms-enjoy.md b/.changeset/three-rooms-enjoy.md new file mode 100644 index 0000000000..2679de1c7f --- /dev/null +++ b/.changeset/three-rooms-enjoy.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-search': major +--- + +Set the default search type to `All` instead of `Software Catalog` in the search page. diff --git a/plugins/search/src/alpha.tsx b/plugins/search/src/alpha.tsx index 2efe9978e0..55382a4814 100644 --- a/plugins/search/src/alpha.tsx +++ b/plugins/search/src/alpha.tsx @@ -152,7 +152,6 @@ export const searchPage = PageBlueprint.makeWithOverrides({ Date: Tue, 2 Dec 2025 13:31:20 +0100 Subject: [PATCH 2/3] set the default search type to all instead of software-catalog in the search page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: binary.baum Signed-off-by: Vödisch, Alexander --- .changeset/three-rooms-enjoy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/three-rooms-enjoy.md b/.changeset/three-rooms-enjoy.md index 2679de1c7f..d47c369ff9 100644 --- a/.changeset/three-rooms-enjoy.md +++ b/.changeset/three-rooms-enjoy.md @@ -1,5 +1,5 @@ --- -'@backstage/plugin-search': major +'@backstage/plugin-search': minor --- Set the default search type to `All` instead of `Software Catalog` in the search page. From 1da4e0eca2aed1877a1fc345b1d8d7ad71b08e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=B6disch=2C=20Alexander?= Date: Mon, 26 Jan 2026 09:44:06 +0100 Subject: [PATCH 3/3] feat(search): add configurable default search type via app-config.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vödisch, Alexander --- .changeset/three-rooms-enjoy.md | 2 +- packages/app/src/components/search/SearchPage.tsx | 5 +++-- plugins/search/README.md | 1 + plugins/search/config.d.ts | 5 +++++ plugins/search/src/alpha.tsx | 5 +++++ 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.changeset/three-rooms-enjoy.md b/.changeset/three-rooms-enjoy.md index d47c369ff9..9856aba0e8 100644 --- a/.changeset/three-rooms-enjoy.md +++ b/.changeset/three-rooms-enjoy.md @@ -2,4 +2,4 @@ '@backstage/plugin-search': minor --- -Set the default search type to `All` instead of `Software Catalog` in the search page. +Added support for configuring the default search type in the search page via the `search.defaultType` option in `app-config.yaml`. This applies to both the legacy and new frontend systems. If not set, the default is empty, which means searching for "all" types. diff --git a/packages/app/src/components/search/SearchPage.tsx b/packages/app/src/components/search/SearchPage.tsx index 743a08561c..b83b83bd65 100644 --- a/packages/app/src/components/search/SearchPage.tsx +++ b/packages/app/src/components/search/SearchPage.tsx @@ -22,7 +22,7 @@ import { Page, useSidebarPinState, } from '@backstage/core-components'; -import { useApi } from '@backstage/core-plugin-api'; +import { configApiRef, useApi } from '@backstage/core-plugin-api'; import { CatalogSearchResultListItem } from '@backstage/plugin-catalog'; import { CATALOG_FILTER_EXISTS, @@ -60,6 +60,7 @@ const SearchPage = () => { const { isMobile } = useSidebarPinState(); const { types } = useSearch(); const catalogApi = useApi(catalogApiRef); + const configApi = useApi(configApiRef); return ( @@ -73,7 +74,7 @@ const SearchPage = () => { @@ -152,6 +154,9 @@ export const searchPage = PageBlueprint.makeWithOverrides({