Skip to content

Add source filter bar to editor component search#2470

Merged
Mbeaulne merged 1 commit into
masterfrom
06-29-adds_a_toggle_on_and_off_of_component_libraries
Jun 29, 2026
Merged

Add source filter bar to editor component search#2470
Mbeaulne merged 1 commit into
masterfrom
06-29-adds_a_toggle_on_and_off_of_component_libraries

Conversation

@Mbeaulne

@Mbeaulne Mbeaulne commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds source filtering to the editor's component search panel. The SourceFilterBar component now supports an "icons" display mode that renders compact circular icon-only buttons (instead of full label + count buttons), with tooltips showing the source name, component count, and toggle hint on hover.

The editor's ComponentSearchV2Content renders the SourceFilterBar in "icons" mode, wired up to new state (sourceFilterOptions, disabledSourceKeys, toggleSourceFilter, enableAllSources) exposed by useComponentSearchV2State. Filtering by disabled source keys is applied to lexical matches, AI candidate matches, embedding matches, browse folders, and search suggestions. Resetting the rerank state is also triggered when the source filter changes.

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. Open the editor and expand the component search panel.
  2. Verify that source filter icons appear below the search/rerank controls.
  3. Hover over an icon to confirm the tooltip shows the source name, component count, and click hint.
  4. Click an icon to hide that source and confirm results update accordingly.
  5. Click "Show all" to re-enable all sources.
  6. Confirm that switching sources resets any active rerank state.

Additional Comments

The SourceFilterBar display="icons" mode intentionally omits the label and count from the button itself, relying on the QuickTooltip to surface that information, keeping the toolbar compact in the constrained editor sidebar layout.

@Mbeaulne Mbeaulne changed the title adds a toggle on and off of component libraries Add source filter bar to editor component search Jun 29, 2026
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: 06-29-adds_a_toggle_on_and_off_of_component_libraries/7d9f4e2

@Mbeaulne Mbeaulne force-pushed the 06-29-adds_a_toggle_on_and_off_of_component_libraries branch from faf3026 to 2e4cdd9 Compare June 29, 2026 17:33
@Mbeaulne Mbeaulne marked this pull request as ready for review June 29, 2026 17:41
@Mbeaulne Mbeaulne requested a review from a team as a code owner June 29, 2026 17:41
@Mbeaulne Mbeaulne force-pushed the 06-29-adds_a_toggle_on_and_off_of_component_libraries branch from 2e4cdd9 to b7163ff Compare June 29, 2026 17:48
@Mbeaulne Mbeaulne changed the base branch from 06-29-add_editor_component_search_loading_skeleton_matt to graphite-base/2470 June 29, 2026 17:51
@Mbeaulne Mbeaulne force-pushed the 06-29-adds_a_toggle_on_and_off_of_component_libraries branch from b7163ff to 2c11f71 Compare June 29, 2026 17:51
@Mbeaulne Mbeaulne changed the base branch from graphite-base/2470 to 06-29-add_source_to_component_search_v1_and_v2 June 29, 2026 17:51
@Mbeaulne Mbeaulne force-pushed the 06-29-add_source_to_component_search_v1_and_v2 branch 2 times, most recently from 81d1273 to 567d072 Compare June 29, 2026 18:02
@Mbeaulne Mbeaulne force-pushed the 06-29-adds_a_toggle_on_and_off_of_component_libraries branch from 2c11f71 to f84f5fb Compare June 29, 2026 18:02

Mbeaulne commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Jun 29, 6:06 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 29, 6:07 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 29, 6:13 PM UTC: @Mbeaulne merged this pull request with Graphite.

@Mbeaulne Mbeaulne changed the base branch from 06-29-add_source_to_component_search_v1_and_v2 to graphite-base/2470 June 29, 2026 18:06
@Mbeaulne Mbeaulne changed the base branch from graphite-base/2470 to master June 29, 2026 18:06
@Mbeaulne Mbeaulne force-pushed the 06-29-adds_a_toggle_on_and_off_of_component_libraries branch from f84f5fb to 4682002 Compare June 29, 2026 18:06
@Mbeaulne Mbeaulne force-pushed the 06-29-adds_a_toggle_on_and_off_of_component_libraries branch from 4682002 to 7d9f4e2 Compare June 29, 2026 18:10
@Mbeaulne Mbeaulne merged commit 370138a into master Jun 29, 2026
23 checks passed
@Mbeaulne Mbeaulne deleted the 06-29-adds_a_toggle_on_and_off_of_component_libraries branch June 29, 2026 18:13
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.

2 participants