Merge pull request #31277 from Andy2003/feature/provide-icon-for-search-result-icon

Add support for customizable icons in SearchResultListItemBlueprint
This commit is contained in:
Ben Lambert
2025-11-04 11:21:14 +01:00
committed by GitHub
9 changed files with 38 additions and 8 deletions
+2
View File
@@ -55,6 +55,7 @@ import {
} from '@backstage/plugin-techdocs-react';
import { useTechdocsReaderIconLinkProps } from './hooks/useTechdocsReaderIconLinkProps';
import { DocsIcon } from '@backstage/core-components';
/** @alpha */
const techdocsEntityIconLink = EntityIconLinkBlueprint.make({
@@ -116,6 +117,7 @@ export const techDocsSearchResultListItemExtension =
},
factory(originalFactory, { config }) {
return originalFactory({
icon: <DocsIcon />,
predicate: result => result.type === 'techdocs',
component: async () => {
const { TechDocsSearchResultListItem } = await import(