Polish component search explanations#2451
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
fea2281 to
c331649
Compare
04d2c9c to
10ad78e
Compare
c331649 to
55a2ed9
Compare
10ad78e to
46a3885
Compare
457c9d6 to
f0d2687
Compare
0cce278 to
3c20589
Compare
30c8633 to
6663239
Compare
3c20589 to
1618ff9
Compare
maxy-shpfy
approved these changes
Jun 26, 2026
6663239 to
4bd0a11
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
Introduces a dedicated
componentSearchExplanationsservice that centralises the human-readable labels for matched search fields and aformatMatchedFieldsExplanationhelper that converts a list ofMatchFieldvalues into a natural-language sentence (e.g. "Matched name, inputs/outputs, and metadata."). TheMATCH_FIELD_LABELmap that previously lived inline inDashboardComponentsV2Viewhas been removed in favour of the sharedCOMPONENT_SEARCH_MATCH_FIELD_LABELexport.Both
ComponentCard(dashboard) andComponentMarkup(sidebar) now show a "Why: …" explanation for lexical matches, falling back to the AI rerank reason when one is present. Previously only AI-reranked results showed this explanation.The no-results message in both the dashboard and the editor sidebar has been split into two lines: a concise "No components matched …" sentence followed by actionable guidance on what kinds of terms to try.
matchedFieldsis now threaded throughComponentSearchV2ResultandComponentSearchResultsso the sidebar can render per-field match explanations alongside rerank metadata.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
Additional Comments
The
formatMatchedFieldsExplanationhelper deduplicates field labels before joining them, so repeated entries inmatchedFieldsdo not produce malformed output.