getScanBorderColor() — supabase Function Reference
Architecture documentation for the getScanBorderColor() function in ExplainVisualizer.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 8a6217ff_d131_f12f_2857_9bdd168d135c["getScanBorderColor()"] 166f7dd9_5315_f92f_c4ab_1cce98e25b81["ExplainNodeRow()"] 166f7dd9_5315_f92f_c4ab_1cce98e25b81 -->|calls| 8a6217ff_d131_f12f_2857_9bdd168d135c style 8a6217ff_d131_f12f_2857_9bdd168d135c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.utils.ts lines 179–198
export function getScanBorderColor(operation: string): string {
const op = operation.toLowerCase()
// Index scans are green
if (
op.includes('index scan') ||
op.includes('index only scan') ||
op.includes('bitmap index scan')
) {
return 'border-l-brand'
}
// Sequential scans are yellow
if (op.includes('seq scan') || op.includes('sequential scan')) {
return 'border-l-warning'
}
// Default neutral color for other operations
return 'border-l-border-muted'
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getScanBorderColor() do?
getScanBorderColor() is a function in the supabase codebase.
What calls getScanBorderColor()?
getScanBorderColor() is called by 1 function(s): ExplainNodeRow.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free