File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
studio/src/components/dashboard Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ export function WorkspaceCommandWrapper({
4747 continue ;
4848 }
4949
50+ // Determine whether the namespace contains the filter value
51+ fuse . setCollection ( [ wns ] ) ;
52+ if ( fuse . search ( filterValue ) . length > 0 ) {
53+ // The namespace contains the filter value, add it with all the graphs/subgraphs to the search results
54+ searchResults . push ( wns ) ;
55+ continue ;
56+ }
57+
5058 // We need to clone the namespace to avoid mutating the original object
5159 const clonedWns = wns . clone ( ) ;
5260 clonedWns . graphs = [ ] ;
@@ -105,14 +113,14 @@ export function WorkspaceCommandWrapper({
105113 { showFilter && ( < CommandInput
106114 value = { filter }
107115 onValueChange = { setFilter }
108- placeholder = "Search graphs and subgraphs"
116+ placeholder = "Search namespace, graphs and subgraphs"
109117 /> ) }
110118 < div className = "scrollbar-custom h-full overflow-y-auto" >
111119 { isFiltering || ! children ? (
112120 < >
113121 { filteredGraphs . length === 0 ? (
114122 < div className = "p-3 text-sm text-muted-foreground text-center pointer-events-none" >
115- No graph or subgraph matches your criteria.
123+ No namespace, graph or subgraph matches your criteria.
116124 </ div >
117125 ) : filteredGraphs . map ( ( wns , index ) => (
118126 < >
You can’t perform that action at this time.
0 commit comments