Adds AI-generated component descriptions to Components V2#2337
Draft
Mbeaulne wants to merge 1 commit into
Draft
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced May 28, 2026
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.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
0921139 to
8f0e1c1
Compare
83501db to
a170a35
Compare
8f0e1c1 to
7f98450
Compare
7e44940 to
51f8903
Compare
7f98450 to
3cf54a9
Compare
3cf54a9 to
fef7c42
Compare
51f8903 to
c7cca66
Compare
cf7fcde to
8403266
Compare
0872b32 to
702c024
Compare
8403266 to
32898d7
Compare
702c024 to
0e77cda
Compare
32898d7 to
9815ec4
Compare
0e77cda to
6b509de
Compare
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
Adds AI-generated descriptions for components viewed in the Components V2 detail panel. When a component is selected, the panel now shows a dedicated description section with both the source-authored (prefilled) description and an AI-generated description produced by calling the configured LLM provider.
A new
component-search-v2-ai-descriptionsbeta flag controls whether descriptions are generated automatically on component selection. When the flag is off, a manual "Generate AI description" button is shown instead. The flag is hidden in Beta Features settings unless the parentcomponent-search-v2flag is also enabled.The
ComponentDetailcomponent gains ahideDescriptionprop so the detail panel can suppress the built-in description block when the caller renders its own description panel above it.The source filter logic has been extracted from
DashboardComponentsV2Viewinto a dedicatedDashboardComponentsV2SourceFiltermodule. Filter keys are now based on sourcekindrather thankind:id, so all registered libraries are grouped into a single "Registered libraries" toggle instead of one toggle per library. The registered libraries fingerprint now tracks the sorted set of known digests rather than just their count, so the index correctly invalidates when digest values change without a count change.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
component-search-v2beta flag in Settings.component-search-v2-ai-descriptionsbeta flag (visible only whencomponent-search-v2is enabled) and re-select a component. Confirm the description is generated automatically without clicking the button.Additional Comments
The
generateComponentAiDescriptionservice function follows the same OpenAI-compatible chat completions pattern used by the existing rerank service. Internal prompt-builder and config-validation helpers have been renamed to avoid ambiguity now that both rerank and description generation share the same module.