Skip to content

Adds AI-generated component descriptions to Components V2#2337

Draft
Mbeaulne wants to merge 1 commit into
05-27-components-v2-ai-rerank-actionsfrom
05-28-component_description
Draft

Adds AI-generated component descriptions to Components V2#2337
Mbeaulne wants to merge 1 commit into
05-27-components-v2-ai-rerank-actionsfrom
05-28-component_description

Conversation

@Mbeaulne
Copy link
Copy Markdown
Collaborator

@Mbeaulne Mbeaulne commented May 28, 2026

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-descriptions beta 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 parent component-search-v2 flag is also enabled.

The ComponentDetail component gains a hideDescription prop 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 DashboardComponentsV2View into a dedicated DashboardComponentsV2SourceFilter module. Filter keys are now based on source kind rather than kind: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

  • 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. Enable the component-search-v2 beta flag in Settings.
  2. Open the Components V2 view and select any component.
  3. Verify the detail panel shows a "Prefilled description" section and an "AI-generated description" section with a "Generate AI description" button.
  4. Configure Agent settings with a valid LLM provider, then click "Generate AI description" and confirm a description is returned.
  5. Enable the component-search-v2-ai-descriptions beta flag (visible only when component-search-v2 is enabled) and re-select a component. Confirm the description is generated automatically without clicking the button.
  6. Confirm that after a generation error, the description is not retried automatically and a "Try again" button is shown.
  7. Verify the source filter bar groups all registered libraries under a single "Registered libraries" toggle.

Additional Comments

The generateComponentAiDescription service 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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

🎩 Preview

A preview build has been created at: 05-28-component_description/9815ec4

@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch 2 times, most recently from 0921139 to 8f0e1c1 Compare May 28, 2026 17:25
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 83501db to a170a35 Compare May 28, 2026 17:25
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from 8f0e1c1 to 7f98450 Compare May 28, 2026 18:37
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch 2 times, most recently from 7e44940 to 51f8903 Compare May 28, 2026 18:40
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from 7f98450 to 3cf54a9 Compare May 28, 2026 18:40
@Mbeaulne Mbeaulne changed the title Component description Adds AI-generated component descriptions to Components V2 May 28, 2026
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from 3cf54a9 to fef7c42 Compare May 29, 2026 14:38
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 51f8903 to c7cca66 Compare May 29, 2026 14:38
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch 2 times, most recently from cf7fcde to 8403266 Compare May 29, 2026 15:21
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 0872b32 to 702c024 Compare May 29, 2026 15:21
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from 8403266 to 32898d7 Compare May 29, 2026 15:27
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 702c024 to 0e77cda Compare May 29, 2026 15:27
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from 32898d7 to 9815ec4 Compare May 29, 2026 18:04
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 0e77cda to 6b509de Compare May 29, 2026 18:04
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