filterBuckets() — supabase Function Reference
Architecture documentation for the filterBuckets() function in StorageSearchResults.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 1b3540b5_43c3_883a_ac7f_95e3ee5e9da6["filterBuckets()"] 2e5a9f0d_3900_3512_443f_21afb4f3aa24["StorageSearchResults()"] 2e5a9f0d_3900_3512_443f_21afb4f3aa24 -->|calls| 1b3540b5_43c3_883a_ac7f_95e3ee5e9da6 style 1b3540b5_43c3_883a_ac7f_95e3ee5e9da6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/App/CommandMenu/StorageSearchResults.tsx lines 39–53
function filterBuckets<T>(
buckets: T[] | null | undefined,
query: string,
filterFn: (bucket: T, searchLower: string) => boolean,
mapFn: (bucket: T) => ExtendedSearchResult
): ExtendedSearchResult[] {
if (!buckets) return []
const trimmedQuery = query.trim()
const filtered = trimmedQuery
? buckets.filter((bucket) => filterFn(bucket, trimmedQuery.toLowerCase()))
: buckets
return filtered.slice(0, 10).map(mapFn)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does filterBuckets() do?
filterBuckets() is a function in the supabase codebase.
What calls filterBuckets()?
filterBuckets() is called by 1 function(s): StorageSearchResults.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free