Skip to content

Add component collection search results#2449

Open
Mbeaulne wants to merge 1 commit into
06-23-add_component_lifecycle_badgesfrom
06-23-add_component_collection_search_results
Open

Add component collection search results#2449
Mbeaulne wants to merge 1 commit into
06-23-add_component_lifecycle_badgesfrom
06-23-add_component_collection_search_results

Conversation

@Mbeaulne

@Mbeaulne Mbeaulne commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Description

When a user searches for components, registered library collections whose labels match the query are now surfaced as a distinct "Collections" section above the individual component results. Each collection card displays the library name, a component count badge, and a preview of up to three component names.

The buildComponentCollectionMatches function groups matching index entries by their registered source ID, filters by label against the search query, and sorts results alphabetically. Collection results respect the active source filter — if the "Registered libraries" source is disabled, collection cards are hidden. The "no results" empty state is also updated to account for collection matches, so it only appears when both component and collection results are empty. The result count label was updated from "results" to "component results" to distinguish it from collection results.

Related Issue and Pull requests

Type of Change

  • Bug fix
  • New feature
  • Improvement
  • Cleanup/Refactor
  • Breaking change
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  1. Open the components dashboard.
  2. Type a query that matches a registered library label (e.g. "github").
  3. Verify a "Collections" section appears above the component results, showing the matching library name, component count, and a preview of component names.
  4. Disable the "Registered libraries" source filter and repeat the search — confirm the collection card no longer appears.
  5. Search for a term with no matches and confirm the "No components matched" message still appears.

Additional Comments

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: 06-23-add_component_collection_search_results/3a8d3ed

Mbeaulne commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Mbeaulne Mbeaulne force-pushed the 06-23-add_component_lifecycle_badges branch from 8e9b863 to 53dd0b9 Compare June 24, 2026 18:11
@Mbeaulne Mbeaulne force-pushed the 06-23-add_component_collection_search_results branch from c64d0b1 to b8c6934 Compare June 24, 2026 18:36
@Mbeaulne Mbeaulne marked this pull request as ready for review June 24, 2026 18:55
@Mbeaulne Mbeaulne requested a review from a team as a code owner June 24, 2026 18:55
@Mbeaulne Mbeaulne force-pushed the 06-23-add_component_collection_search_results branch from b8c6934 to aeb796f Compare June 24, 2026 19:52
@Mbeaulne Mbeaulne force-pushed the 06-23-add_component_lifecycle_badges branch from 1f7cb6d to a25389c Compare June 25, 2026 15:55
@Mbeaulne Mbeaulne force-pushed the 06-23-add_component_collection_search_results branch 2 times, most recently from 21f8f74 to dc81ddb Compare June 25, 2026 19:38
@Mbeaulne Mbeaulne force-pushed the 06-23-add_component_collection_search_results branch from dc81ddb to 3a8d3ed Compare June 25, 2026 19:43
@Mbeaulne Mbeaulne force-pushed the 06-23-add_component_lifecycle_badges branch from 8d8e6f4 to 30633b0 Compare June 25, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant