Add context-aware component search suggestions#2458
Open
Mbeaulne wants to merge 1 commit into
Open
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Jun 23, 2026
Collaborator
Author
This was referenced Jun 23, 2026
f91e6bf to
55cfa5e
Compare
514ce6a to
d7eb41c
Compare
55cfa5e to
3010521
Compare
d7eb41c to
cbff091
Compare
3010521 to
01ce24d
Compare
cbff091 to
a5c0c78
Compare
01ce24d to
bfc6ffa
Compare
bfc6ffa to
a7544f7
Compare
a5c0c78 to
67d60c5
Compare
a7544f7 to
3470b6f
Compare
67d60c5 to
48c5305
Compare
3470b6f to
80b5b76
Compare
48c5305 to
41c25b4
Compare
80b5b76 to
d4353cd
Compare
41c25b4 to
6da5934
Compare
maxy-shpfy
reviewed
Jun 26, 2026
maxy-shpfy
reviewed
Jun 26, 2026
maxy-shpfy
approved these changes
Jun 26, 2026
d4353cd to
b7e3cf6
Compare
6da5934 to
0ad0a72
Compare
This was referenced Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Replaces the static list of hardcoded component search suggestions with a dynamic
buildComponentSearchSuggestionsfunction that derives suggestions from the loaded component index. Suggestions are scored and ranked based on common input/output types (highest weight), registered source labels, and component name tokens, with curated fallback defaults when the index is sparse. Each suggestion now carries akindfield ("type","source","name", or"default") and asuggestion_positionindex, both of which are emitted in tracking events instead of the previoussuggested_queryfield. Suggestions that overlap with the current query are filtered out, and the empty-state help text is updated to reflect that suggestions are derived from loaded sources.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
csv) and confirm thatcsvno longer appears as a suggestion chip.suggestion_kindandsuggestion_positioninstead ofsuggested_query.componentSearchSuggestions.test.tsto verify scoring, source label inclusion, and fallback behaviour.Additional Comments
The
COMPONENT_SEARCH_EMPTY_STATE_SUGGESTIONSconstant has been removed. TheComponentSearchEmptyStateSuggestionscomponent no longer sources suggestions internally; callers are now responsible for passing asuggestionsprop, which allows each surface (dashboard v2 and editor v2) to supply index-aware suggestions independently.