Skip to content

Adds AI-generated component descriptions to Components V2#2337

Merged
Mbeaulne merged 2 commits into
masterfrom
05-28-component_description
Jun 5, 2026
Merged

Adds AI-generated component descriptions to Components V2#2337
Mbeaulne merged 2 commits into
masterfrom
05-28-component_description

Conversation

@Mbeaulne

@Mbeaulne Mbeaulne commented May 28, 2026

Copy link
Copy Markdown
Collaborator

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

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown

🎩 Preview

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

@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
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from 9815ec4 to 59950bb Compare June 3, 2026 13:42
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 6b509de to 0402461 Compare June 3, 2026 13:42
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from b775fcb to 0c16efb Compare June 5, 2026 01:29
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 4956d34 to f32e1fa Compare June 5, 2026 01:57
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch 2 times, most recently from 014a78e to 3219213 Compare June 5, 2026 02:04
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch 2 times, most recently from cf752a1 to d5f797a Compare June 5, 2026 11:54
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch 2 times, most recently from a413182 to e7028c0 Compare June 5, 2026 12:06
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch 2 times, most recently from 9a7ebb9 to 8a164e9 Compare June 5, 2026 12:29
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch 2 times, most recently from a66b440 to d7ea616 Compare June 5, 2026 12:41
@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from 11d5018 to c10c8b9 Compare June 5, 2026 13:40
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from d7ea616 to 293f685 Compare June 5, 2026 13:40
@Mbeaulne Mbeaulne requested review from camielvs and morgan-wowk June 5, 2026 14:14
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch 2 times, most recently from 1d7643e to a2a024a Compare June 5, 2026 14:31

@camielvs camielvs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feature might need some iteration, but okay to merge in for now

@Mbeaulne Mbeaulne force-pushed the 05-27-components-v2-ai-rerank-actions branch from c10c8b9 to 6f6d16e Compare June 5, 2026 17:38
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from a2a024a to 3defa6e Compare June 5, 2026 17:38

Mbeaulne commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Jun 5, 5:42 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 5, 5:54 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 5, 5:57 PM UTC: @Mbeaulne merged this pull request with Graphite.

@Mbeaulne Mbeaulne changed the base branch from 05-27-components-v2-ai-rerank-actions to graphite-base/2337 June 5, 2026 17:48
@Mbeaulne Mbeaulne changed the base branch from graphite-base/2337 to master June 5, 2026 17:52
Mbeaulne and others added 2 commits June 5, 2026 17:53
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Mbeaulne Mbeaulne force-pushed the 05-28-component_description branch from 3defa6e to 7577404 Compare June 5, 2026 17:53
@Mbeaulne Mbeaulne merged commit 2ea5e1d into master Jun 5, 2026
17 checks passed
@Mbeaulne Mbeaulne deleted the 05-28-component_description branch June 5, 2026 17:57
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.

3 participants