feat(explore): migrate search result item extension

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-09-29 11:59:17 +02:00
parent 9eb82dbaac
commit 6d5a060d1f
3 changed files with 22 additions and 0 deletions
+1
View File
@@ -50,6 +50,7 @@
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/frontend-plugin-api": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@backstage/plugin-explore-common": "workspace:^",
"@backstage/plugin-explore-react": "workspace:^",
+20
View File
@@ -13,3 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createPlugin } from '@backstage/frontend-plugin-api';
import { createSearchResultListItemExtension } from '@backstage/plugin-search-react/alpha';
/** @alpha */
export const ExploreSearchResultListItemExtension =
createSearchResultListItemExtension({
id: 'explore',
predicate: result => result.type === 'tools',
component: () =>
import('./components/ToolSearchResultListItem').then(
m => m.ToolSearchResultListItem,
),
});
/** @alpha */
export default createPlugin({
id: 'explore',
extensions: [ExploreSearchResultListItemExtension],
});
+1
View File
@@ -6811,6 +6811,7 @@ __metadata:
"@backstage/core-plugin-api": "workspace:^"
"@backstage/dev-utils": "workspace:^"
"@backstage/errors": "workspace:^"
"@backstage/frontend-plugin-api": "workspace:^"
"@backstage/plugin-catalog": "workspace:^"
"@backstage/plugin-catalog-react": "workspace:^"
"@backstage/plugin-explore-common": "workspace:^"